Code

add clearing busy cursor (resets current context's cursor)
authorbuliabyak <buliabyak@users.sourceforge.net>
Sun, 18 Mar 2007 04:04:26 +0000 (04:04 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sun, 18 Mar 2007 04:04:26 +0000 (04:04 +0000)
src/desktop.cpp
src/desktop.h

index 9658f00b71e1a0b03a882c4e4b66018be69f7ec7..ea002b872810d105bfa4e8137ba7d88f6a5e17c0 100644 (file)
@@ -1087,6 +1087,13 @@ void SPDesktop::setWaitingCursor()
        Gtk::Main::iteration();
 }
 
+void SPDesktop::clearWaitingCursor()
+{
+  if (waiting_cursor)
+      sp_event_context_update_cursor(sp_desktop_event_context(this));
+}
+
+
 //----------------------------------------------------------------------
 // Callback implementations. The virtual ones are connected by the view.
 
index fbc92b7a4e76dcbb94392b48e13052556f18b77a..e5f9cdacc1a1b473460d732f340efbf386effbda 100644 (file)
@@ -243,6 +243,7 @@ struct SPDesktop : public Inkscape::UI::View::View
     void disableInteraction();
 
     void setWaitingCursor();
+    void clearWaitingCursor();
     
     void fullscreen();