diff options
author | monsta <[email protected]> | 2016-01-21 17:14:01 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-21 17:31:06 +0300 |
commit | 31c6e251a91b52dbba6c9176dd50e37540afbcfb (patch) | |
tree | 7236ceab23fc360311120f69f244c268a117d7b8 /gsearchtool/src | |
parent | 415ab693bfe52f117e88d0f4629967946e435bd7 (diff) | |
download | mate-utils-31c6e251a91b52dbba6c9176dd50e37540afbcfb.tar.bz2 mate-utils-31c6e251a91b52dbba6c9176dd50e37540afbcfb.tar.xz |
[GTK+3] gsearchtool: fix a couple of deprecations
Diffstat (limited to 'gsearchtool/src')
-rw-r--r-- | gsearchtool/src/gsearchtool-support.c | 4 | ||||
-rw-r--r-- | gsearchtool/src/gsearchtool.c | 2 |
2 files changed, 6 insertions, 0 deletions
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) { |