summaryrefslogtreecommitdiff
path: root/mate-panel/panel-util.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-22 14:09:09 +0100
committerinfirit <[email protected]>2014-11-22 15:13:50 +0100
commitca5abdea1b6a1e5e178dfe63a260b73106f69658 (patch)
treef01ceabc2e75f9f51c905ccde2612b4af740313b /mate-panel/panel-util.c
parent7dbd1866ad11c2052cf1508531faed7e57d5d2cc (diff)
downloadmate-panel-ca5abdea1b6a1e5e178dfe63a260b73106f69658.tar.bz2
mate-panel-ca5abdea1b6a1e5e178dfe63a260b73106f69658.tar.xz
Gtk3: Replaced gdk_cursor_unref() by g_object_unref()
gdk_cursor_unref () is deprecated in Gtk+3
Diffstat (limited to 'mate-panel/panel-util.c')
-rw-r--r--mate-panel/panel-util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mate-panel/panel-util.c b/mate-panel/panel-util.c
index 838d9687..f3ab7bc7 100644
--- a/mate-panel/panel-util.c
+++ b/mate-panel/panel-util.c
@@ -116,7 +116,11 @@ panel_push_window_busy (GtkWidget *window)
if (win != NULL) {
GdkCursor *cursor = gdk_cursor_new (GDK_WATCH);
gdk_window_set_cursor (win, cursor);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_object_unref (cursor);
+#else
gdk_cursor_unref (cursor);
+#endif
gdk_flush ();
}
}