From: Robert Roebling Date: Fri, 1 Sep 2006 15:32:19 +0000 (+0000) Subject: Implement wxSetCusorEvent better than before. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ec1e0c6634b94edaf4138f68bcb0c5d801f952b2 Implement wxSetCusorEvent better than before. This also makes wxAUI work nicely. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/gtk/window.h b/include/wx/gtk/window.h index 87003b1e69..fa4e459279 100644 --- a/include/wx/gtk/window.h +++ b/include/wx/gtk/window.h @@ -353,7 +353,7 @@ protected: // set the current cursor for all GdkWindows making part of this widget // (see GTKGetWindow) - // +public: // should be called from OnInternalIdle() if it's overridden void GTKUpdateCursor(); diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index abae449a8a..65b0886c75 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1729,6 +1729,8 @@ gtk_window_motion_notify_callback( GtkWidget *widget, if (win->GetEventHandler()->ProcessEvent( cevent )) { // Rewrite cursor handling here (away from idle). + win->SetCursor( cevent.GetCursor() ); + win->GTKUpdateCursor(); } } @@ -1944,6 +1946,8 @@ gtk_window_enter_callback( GtkWidget *widget, if (win->GetEventHandler()->ProcessEvent( cevent )) { // Rewrite cursor handling here (away from idle). + win->SetCursor( cevent.GetCursor() ); + win->GTKUpdateCursor(); } }