[wx-dev] Patch 1484416.

Robert Roebling robert at roebling.de
Wed Oct 4 01:17:23 PDT 2006


What behaviour does the patch change? I mean, what problem
does it fix?

  Robert

<<<<<

I finally have time to figure this one out... ;-)

Here is the small patch that makes GTK behave as MSW:

--- wxWidgets.orig/src/gtk/window.cpp	2006-09-28 11:31:13.000000000
-0700
+++ wxWidgets.patch/src/gtk/window.cpp	2006-10-03 23:19:23.000000000
-0700
@@ -1471,7 +1471,10 @@
                                   GdkEventButton *gdk_event,
                                   wxWindowGTK *win )
 {
+    if( !( win->IsKindOf( CLASSINFO( wxToolBar ) ) ) )
+    {
     wxCOMMON_CALLBACK_PROLOGUE(gdk_event, win);
+    }
 
     if (win->m_wxwindow && (g_focusWindow != win) &&
win->AcceptsFocus())
     {


I don't know, if it's possible to re-instate the patch, and it's so
small.

Thank you in advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-dev-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wx-dev-help at lists.wxwidgets.org








More information about the wx-dev mailing list