CVS: [RR] wxWindows/src/gtk window.cpp,1.641,1.642

Vadim Zeitlin vadim at wxwindows.org
Fri Sep 1 13:59:32 PDT 2006


On 1 Sep 2006 15:32:49 -0000 anonymous at sunsite.dk wrote:

> Update of /pack/cvsroots/wxwindows/wxWindows/src/gtk
> In directory sunsite.dk:/tmp/cvs-serv29188/src/gtk
> 
> Modified Files:
> 	window.cpp 
> Log Message:
> 
>   Implement wxSetCusorEvent better than before.
>     This also makes wxAUI work nicely.
> 
> Index: window.cpp
> ===================================================================
> RCS file: /pack/cvsroots/wxwindows/wxWindows/src/gtk/window.cpp,v
> retrieving revision 1.641
> retrieving revision 1.642
> diff -u -b -r1.641 -r1.642
> --- window.cpp	2006/08/31 19:30:25	1.641
> +++ window.cpp	2006/09/01 15:32:16	1.642
> @@ -1729,6 +1729,8 @@
>          if (win->GetEventHandler()->ProcessEvent( cevent ))
>          {
>              // Rewrite cursor handling here (away from idle).
> +            win->SetCursor( cevent.GetCursor() );
> +            win->GTKUpdateCursor();
>          }
>      }
>  
> @@ -1944,6 +1946,8 @@
>          if (win->GetEventHandler()->ProcessEvent( cevent ))
>          {
>              // Rewrite cursor handling here (away from idle).
> +            win->SetCursor( cevent.GetCursor() );
> +            win->GTKUpdateCursor();
>          }

 Why not call GTKUpdateCursor() from SetCursor() itself, do we ever not
want to do it?

 Thanks,
VZ





More information about the wx-dev mailing list