#ifdef __WXGTK20__
#include <gtk/gtk.h>
- #include "wx/gtk/win_gtk.h"
#endif
// we only have to do it here when we use wxStatusBarGeneric in addition to the
SetFont(*wxSMALL_FONT);
#endif
- // Set the height according to the font and the border size
- wxClientDC dc(this);
- dc.SetFont(GetFont());
-
- wxCoord y;
- dc.GetTextExtent(_T("X"), NULL, &y );
+ wxCoord y;
+ {
+ // Set the height according to the font and the border size
+ wxClientDC dc(this);
+ dc.SetFont(GetFont());
+ dc.GetTextExtent(_T("X"), NULL, &y );
+ }
int height = (int)( (11*y)/10 + 2*GetBorderY());
SetSize(wxDefaultCoord, wxDefaultCoord, wxDefaultCoord, height);
if (GetLayoutDirection() == wxLayout_RightToLeft)
{
gtk_paint_resize_grip( m_widget->style,
- GTK_PIZZA(m_wxwindow)->bin_window,
+ GTKGetDrawingWindow(),
(GtkStateType) GTK_WIDGET_STATE (m_widget),
NULL,
m_widget,
else
{
gtk_paint_resize_grip( m_widget->style,
- GTK_PIZZA(m_wxwindow)->bin_window,
+ GTKGetDrawingWindow(),
(GtkStateType) GTK_WIDGET_STATE (m_widget),
NULL,
m_widget,
wxString text(GetStatusText(i));
- long x = 0, y = 0;
+ wxCoord x = 0, y = 0;
dc.GetTextExtent(text, &x, &y);
if (!GTK_IS_WINDOW (ancestor))
return;
- GdkWindow *source = GTK_PIZZA(m_wxwindow)->bin_window;
+ GdkWindow *source = GTKGetDrawingWindow();
int org_x = 0;
int org_y = 0;
if (!GTK_IS_WINDOW (ancestor))
return;
- GdkWindow *source = GTK_PIZZA(m_wxwindow)->bin_window;
+ GdkWindow *source = GTKGetDrawingWindow();
int org_x = 0;
int org_y = 0;