#include "wx/fontutil.h"
#include "wx/scrolwin.h"
-#include "wx/gtk/win_gtk.h"
#include "wx/gtk/private.h"
#include <gdk/gdkx.h>
m_layout = pango_layout_new( m_context );
m_fontdesc = pango_font_description_copy( widget->style->font_desc );
- GtkPizza *pizza = GTK_PIZZA( widget );
- m_window = pizza->bin_window;
+ m_window = widget->window;
// Window not realized ?
if (!m_window)
return wxDoFloodFill( GetOwner(), x, y, col, style);
#else
+ wxUnusedVar(x);
+ wxUnusedVar(y);
+ wxUnusedVar(col);
+ wxUnusedVar(style);
+
return false;
#endif
}
col->Set(image.GetRed(0, 0), image.GetGreen(0, 0), image.GetBlue(0, 0));
return true;
#else // !wxUSE_IMAGE
+ wxUnusedVar(x1);
+ wxUnusedVar(y1);
+ wxUnusedVar(col);
+
return false;
#endif // wxUSE_IMAGE/!wxUSE_IMAGE
}
// update the bounding box
CalcBoundingBox(x + minX, y + minY);
CalcBoundingBox(x + maxX, y + maxY);
-#endif // wxUSE_IMAGE
+#else // !wxUSE_IMAGE
+ wxUnusedVar(text);
+ wxUnusedVar(x);
+ wxUnusedVar(y);
+ wxUnusedVar(angle);
+#endif // wxUSE_IMAGE/!wxUSE_IMAGE
}
void wxGTKWindowImplDC::DoGetTextExtent(const wxString &string,
wxCoord xx, yy, ww, hh;
m_currentClippingRegion.GetBox( xx, yy, ww, hh );
#if wxUSE_NEW_DC
- wxImplDC::DoSetClippingRegion( xx, yy, ww, hh );
+ wxGTKImplDC::DoSetClippingRegion( xx, yy, ww, hh );
#else
wxDC::DoSetClippingRegion( xx, yy, ww, hh );
#endif
wxCoord xx, yy, ww, hh;
m_currentClippingRegion.GetBox( xx, yy, ww, hh );
#if wxUSE_NEW_DC
- wxImplDC::DoSetClippingRegion( xx, yy, ww, hh );
+ wxGTKImplDC::DoSetClippingRegion( xx, yy, ww, hh );
#else
wxDC::DoSetClippingRegion( xx, yy, ww, hh );
#endif