From 3a8a771a3f3e72706e4567a73aa08a64ef2bc27d Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sun, 18 Mar 2007 04:04:26 +0000 Subject: [PATCH] add clearing busy cursor (resets current context's cursor) --- src/desktop.cpp | 7 +++++++ src/desktop.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/desktop.cpp b/src/desktop.cpp index 9658f00b7..ea002b872 100644 --- a/src/desktop.cpp +++ b/src/desktop.cpp @@ -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. diff --git a/src/desktop.h b/src/desktop.h index fbc92b7a4..e5f9cdacc 100644 --- a/src/desktop.h +++ b/src/desktop.h @@ -243,6 +243,7 @@ struct SPDesktop : public Inkscape::UI::View::View void disableInteraction(); void setWaitingCursor(); + void clearWaitingCursor(); void fullscreen(); -- 2.30.2