summaryrefslogtreecommitdiff
path: root/libslab
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-15 14:15:37 +0300
committermonsta <[email protected]>2016-01-15 15:46:07 +0300
commitcc82c832c8ffaaac575e867446a11395c5a61df4 (patch)
treef255bcedd941a757c803bc18585e63452eb9a759 /libslab
parenta6143c03e1c080954f5c581caa56bd141500c306 (diff)
downloadmate-control-center-cc82c832c8ffaaac575e867446a11395c5a61df4.tar.bz2
mate-control-center-cc82c832c8ffaaac575e867446a11395c5a61df4.tar.xz
[GTK+3] libslab: use g_object_unref instead of deprecated function
Diffstat (limited to 'libslab')
-rw-r--r--libslab/app-shell.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libslab/app-shell.c b/libslab/app-shell.c
index eb6af9da..5dd45652 100644
--- a/libslab/app-shell.c
+++ b/libslab/app-shell.c
@@ -568,7 +568,11 @@ handle_filter_changed_delayed (gpointer user_data)
app_data->busy_cursor =
gdk_cursor_new_for_display (gtk_widget_get_display (app_data->shell), GDK_WATCH);
gdk_window_set_cursor (gtk_widget_get_window (app_data->shell), app_data->busy_cursor);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_object_unref (app_data->busy_cursor);
+#else
gdk_cursor_unref (app_data->busy_cursor);
+#endif
set_state (app_data, NULL);
app_resizer_set_vadjustment_value (app_data->category_layout, 0);