summaryrefslogtreecommitdiff
path: root/mate-panel/panel-force-quit.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-force-quit.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-force-quit.c')
-rw-r--r--mate-panel/panel-force-quit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mate-panel/panel-force-quit.c b/mate-panel/panel-force-quit.c
index b4498aeb..9d70b590 100644
--- a/mate-panel/panel-force-quit.c
+++ b/mate-panel/panel-force-quit.c
@@ -302,7 +302,11 @@ panel_force_quit (GdkScreen *screen,
cross = gdk_cursor_new (GDK_CROSS);
status = gdk_pointer_grab (root, FALSE, GDK_BUTTON_PRESS_MASK,
NULL, cross, time);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_object_unref (cross);
+#else
gdk_cursor_unref (cross);
+#endif
if (status != GDK_GRAB_SUCCESS) {
g_warning ("Pointer grab failed\n");
remove_popup (popup);