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
This commit is contained in:
Robert Roebling 2006-09-01 15:32:19 +00:00
parent dcc40ba510
commit ec1e0c6634
2 changed files with 5 additions and 1 deletions

View 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();

View 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();
}
}