summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-properties-window.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-15 16:09:47 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-15 16:09:47 +0100
commit2de22faab6d8918f6d5001edeb3f794cac829710 (patch)
treeb8dd8e221be8d6fdaefc4f5ea7299f0993e4ba87 /src/file-manager/fm-properties-window.c
parent76cad7a49fd7c5876e780bda4823d55a73ed2556 (diff)
downloadcaja-2de22faab6d8918f6d5001edeb3f794cac829710.tar.bz2
caja-2de22faab6d8918f6d5001edeb3f794cac829710.tar.xz
GTK3 general: don't use gdk_cursor_unref()
taken from: https://git.gnome.org/browse/nautilus/commit/?id=74a8f78
Diffstat (limited to 'src/file-manager/fm-properties-window.c')
-rw-r--r--src/file-manager/fm-properties-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c
index 87b75a6d..13b40b27 100644
--- a/src/file-manager/fm-properties-window.c
+++ b/src/file-manager/fm-properties-window.c
@@ -4067,7 +4067,11 @@ start_long_operation (FMPropertiesWindow *window)
cursor = gdk_cursor_new (GDK_WATCH);
gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (window)), cursor);
+#if GTK_CHECK_VERSION(3,0,0)
+ g_object_unref (cursor);
+#else
gdk_cursor_unref (cursor);
+#endif
}
window->details->long_operation_underway ++;
}