From 31c6e251a91b52dbba6c9176dd50e37540afbcfb Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 21 Jan 2016 17:14:01 +0300 Subject: [GTK+3] gsearchtool: fix a couple of deprecations --- gsearchtool/src/gsearchtool-support.c | 4 ++++ gsearchtool/src/gsearchtool.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gsearchtool/src/gsearchtool-support.c b/gsearchtool/src/gsearchtool-support.c index a120967b..aa823da1 100644 --- a/gsearchtool/src/gsearchtool-support.c +++ b/gsearchtool/src/gsearchtool-support.c @@ -897,7 +897,11 @@ get_themed_icon_pixbuf (GThemedIcon * icon, g_clear_error (&error); } +#if GTK_CHECK_VERSION (3, 8, 0) + g_object_unref (icon_info); +#else gtk_icon_info_free (icon_info); +#endif g_strfreev (icon_names); return pixbuf; diff --git a/gsearchtool/src/gsearchtool.c b/gsearchtool/src/gsearchtool.c index 757e8ca2..4fef1547 100644 --- a/gsearchtool/src/gsearchtool.c +++ b/gsearchtool/src/gsearchtool.c @@ -2336,7 +2336,9 @@ create_search_results_section (GSearchWindow * gsearch) gtk_tree_view_set_headers_visible (gsearch->search_results_tree_view, FALSE); gtk_tree_view_set_search_equal_func (gsearch->search_results_tree_view, gsearch_equal_func, NULL, NULL); +#if !GTK_CHECK_VERSION (3, 14, 0) gtk_tree_view_set_rules_hint (gsearch->search_results_tree_view, TRUE); +#endif g_object_unref (G_OBJECT (gsearch->search_results_list_store)); if (gsearch->is_window_accessible) { -- cgit v1.2.1