[wx-dev] Patch 1484416.
Igor Korot
ikorot at earthlink.net
Wed Oct 4 07:33:02 PDT 2006
Robert,
In MSW it is posiible to create a handler for the mouse
clicks on the toolbar. The native behavior is to call
toolbar setup dialog I think WM_CUSTOMIZE message).
This change allows mouse clicks on toolbars for the GTK port.
Thank you for looking into this.
-----Original Message-----
>From: Robert Roebling <robert at roebling.de>
>Sent: Oct 4, 2006 1:17 AM
>To: wx-dev at lists.wxwidgets.org
>Subject: Re: [wx-dev] Patch 1484416.
>
>
>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
>
>
>
>
>
>---------------------------------------------------------------------
>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