From 13971833d8ef565afc5c3b48442ed5dc1384d4dd Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 6 Oct 1999 07:09:26 +0000 Subject: [PATCH] now supports wxCURSOR_BULLSEYE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/cursor.cpp | 10 ++++++---- src/gtk1/cursor.cpp | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/gtk/cursor.cpp b/src/gtk/cursor.cpp index b0f4363412..17646128c6 100644 --- a/src/gtk/cursor.cpp +++ b/src/gtk/cursor.cpp @@ -86,6 +86,8 @@ wxCursor::wxCursor( int cursorId ) case wxCURSOR_LEFT_BUTTON: gdk_cur = GDK_LEFTBUTTON; break; case wxCURSOR_MIDDLE_BUTTON: gdk_cur = GDK_MIDDLEBUTTON; break; case wxCURSOR_RIGHT_BUTTON: gdk_cur = GDK_RIGHTBUTTON; break; + case wxCURSOR_BULLSEYE: gdk_cur = GDK_TARGET; break; + /* case wxCURSOR_DOUBLE_ARROW: gdk_cur = GDK_DOUBLE_ARROW; break; case wxCURSOR_CROSS_REVERSE: gdk_cur = GDK_CROSS_REVERSE; break; @@ -158,7 +160,7 @@ void wxEndBusyCursor() wxSetCursor( gs_savedCursor ); gs_savedCursor = wxNullCursor; - + wxYield(); } @@ -171,9 +173,9 @@ void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) ) T("forgot to call wxEndBusyCursor, will leak memory") ); gs_savedCursor = g_globalCursor; - + wxSetCursor( wxCursor(wxCURSOR_WATCH) ); - + wxYield(); } @@ -184,7 +186,7 @@ bool wxIsBusy() void wxSetCursor( const wxCursor& cursor ) { - if (g_isIdle) + if (g_isIdle) wxapp_install_idle_handler(); g_globalCursor = cursor; diff --git a/src/gtk1/cursor.cpp b/src/gtk1/cursor.cpp index b0f4363412..17646128c6 100644 --- a/src/gtk1/cursor.cpp +++ b/src/gtk1/cursor.cpp @@ -86,6 +86,8 @@ wxCursor::wxCursor( int cursorId ) case wxCURSOR_LEFT_BUTTON: gdk_cur = GDK_LEFTBUTTON; break; case wxCURSOR_MIDDLE_BUTTON: gdk_cur = GDK_MIDDLEBUTTON; break; case wxCURSOR_RIGHT_BUTTON: gdk_cur = GDK_RIGHTBUTTON; break; + case wxCURSOR_BULLSEYE: gdk_cur = GDK_TARGET; break; + /* case wxCURSOR_DOUBLE_ARROW: gdk_cur = GDK_DOUBLE_ARROW; break; case wxCURSOR_CROSS_REVERSE: gdk_cur = GDK_CROSS_REVERSE; break; @@ -158,7 +160,7 @@ void wxEndBusyCursor() wxSetCursor( gs_savedCursor ); gs_savedCursor = wxNullCursor; - + wxYield(); } @@ -171,9 +173,9 @@ void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) ) T("forgot to call wxEndBusyCursor, will leak memory") ); gs_savedCursor = g_globalCursor; - + wxSetCursor( wxCursor(wxCURSOR_WATCH) ); - + wxYield(); } @@ -184,7 +186,7 @@ bool wxIsBusy() void wxSetCursor( const wxCursor& cursor ) { - if (g_isIdle) + if (g_isIdle) wxapp_install_idle_handler(); g_globalCursor = cursor; -- 2.45.2