summaryrefslogtreecommitdiff
path: root/gsearchtool
diff options
context:
space:
mode:
Diffstat (limited to 'gsearchtool')
-rw-r--r--gsearchtool/src/gsearchtool-support.c4
-rw-r--r--gsearchtool/src/gsearchtool.c2
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) {