]> git.saurik.com Git - wxWidgets.git/commitdiff
Implement wxSetCusorEvent better than before.
authorRobert Roebling <robert@roebling.de>
Fri, 1 Sep 2006 15:32:19 +0000 (15:32 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 1 Sep 2006 15:32:19 +0000 (15:32 +0000)
    This also makes wxAUI work nicely.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/window.h
src/gtk/window.cpp

index 87003b1e6982eb3fbd25434d2fb2f2242efc1a11..fa4e459279c096236e4a34e0c3f7a04ca7b3e535 100644 (file)
@@ -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();
 
index abae449a8a612385f4c044211de16bb2ec791261..65b0886c758f52a941255bec85a3d1bfeda1b67d 100644 (file)
@@ -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();
         }
     }