summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
authorDenis Declara <declara91@gmail.com>2012-04-15 12:29:45 +0000
committerDenis Declara <declara91@gmail.com>2012-04-15 12:29:45 +0000
commit6b5ff661a46ea1779c86f6947006c5ed32926117 (patch)
treea5b170f0830854e99ad065055ee2a3996933e614 /src/desktop.cpp
parentImproved User interface. (diff)
parenti18n. Fix for Bug #980518 (Please use c-format). (diff)
downloadinkscape-6b5ff661a46ea1779c86f6947006c5ed32926117.tar.gz
inkscape-6b5ff661a46ea1779c86f6947006c5ed32926117.zip
Trunk merge
(bzr r11073.1.15)
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index cf71c8f9e..7aabb1245 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -1402,7 +1402,11 @@ void SPDesktop::setWaitingCursor()
{
GdkCursor *waiting = gdk_cursor_new(GDK_WATCH);
gdk_window_set_cursor(gtk_widget_get_window(GTK_WIDGET(sp_desktop_canvas(this))), waiting);
+#if GTK_CHECK_VERSION(3,0,0)
+ g_cursor_unref(waiting);
+#else
gdk_cursor_unref(waiting);
+#endif
// GDK needs the flush for the cursor change to take effect
gdk_flush();
waiting_cursor = true;