From cc82c832c8ffaaac575e867446a11395c5a61df4 Mon Sep 17 00:00:00 2001 From: monsta Date: Fri, 15 Jan 2016 14:15:37 +0300 Subject: [GTK+3] libslab: use g_object_unref instead of deprecated function --- libslab/app-shell.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libslab') 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); -- cgit v1.2.1