From: Robert Roebling Date: Fri, 29 Mar 2002 17:34:10 +0000 (+0000) Subject: Make scrollbars appear. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/af1d24da230cc1ca3b2c2bfbf10d13887e73183f?ds=sidebyside Make scrollbars appear. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index d3fc1c023d..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 ) diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index d3fc1c023d..17175ec63d 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/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 )