X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/67d7821742674d740f1a14e300ea5f446310fd17..af1d24da230cc1ca3b2c2bfbf10d13887e73183f:/src/gtk/window.cpp?ds=sidebyside diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 111d947640..17175ec63d 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -76,6 +76,10 @@ #endif #endif +#ifdef __WXGTK20__ +extern GtkContainerClass *pizza_parent_class; +#endif + //----------------------------------------------------------------------------- // documentation on internals //----------------------------------------------------------------------------- @@ -480,6 +484,11 @@ gint gtk_window_own_expose_callback( GtkWidget *widget, GdkEventExpose *gdk_even draw_frame( widget, win ); +#ifdef __WXGTK20__ + + (* GTK_WIDGET_CLASS (pizza_parent_class)->expose_event) (widget, gdk_event); + +#endif return TRUE; } @@ -769,10 +778,6 @@ static void gtk_window_size_request_callback( GtkWidget *widget, GtkRequisition // "expose_event" of m_wxwindow //----------------------------------------------------------------------------- -#ifdef __WXGTK20__ -extern GtkContainerClass *pizza_parent_class; -#endif - static int gtk_window_expose_callback( GtkWidget *widget, GdkEventExpose *gdk_event, wxWindow *win ) @@ -2721,7 +2726,7 @@ void wxWindowGTK::DoSetSize( int x, int y, int width, int height, int sizeFlags int border = 0; int bottom_border = 0; -#ifndef __WXGTK__ +#ifndef __WXGTK20__ if (GTK_WIDGET_CAN_DEFAULT(m_widget)) { /* the default button has a border around it */