libreport/0021-Get-rid-of-deprecation-warnings-introduced-with-gtk-.patch
Jakub Filak df5243869d Pre-release update
Resolves: #1133549
2014-09-03 17:19:21 +02:00

35 lines
1.4 KiB
Diff

From 1ed0116488c53f93fe4b8e9d607972dacc9b2146 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Wed, 20 Aug 2014 13:10:31 +0200
Subject: [PATCH 21/33] Get rid of deprecation warnings introduced with
gtk-3.13.6
Fixes #271
Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
src/gtk-helpers/config_dialog.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gtk-helpers/config_dialog.c b/src/gtk-helpers/config_dialog.c
index 5370fcb..b65c217 100644
--- a/src/gtk-helpers/config_dialog.c
+++ b/src/gtk-helpers/config_dialog.c
@@ -270,8 +270,13 @@ GtkWidget *create_config_tab_content(const char *column_label,
g_object_set(G_OBJECT(renderer), "wrap-width", 440, NULL);
gtk_tree_view_column_set_sort_column_id(column, COLUMN_NAME);
gtk_tree_view_append_column(GTK_TREE_VIEW(tv), column);
+
+#if ((GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION < 13) || (GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION == 13 && GTK_MICRO_VERSION < 6))
+ /* https://bugzilla.gnome.org/show_bug.cgi?id=733312 */
/* "Please draw rows in alternating colors": */
gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(tv), TRUE);
+#endif
+
// TODO: gtk_tree_view_set_headers_visible(FALSE)? We have only one column anyway...
GtkTreeModel *model = gtk_tree_model_filter_new(GTK_TREE_MODEL(store), NULL);
gtk_tree_model_filter_set_visible_func(GTK_TREE_MODEL_FILTER(model), config_filter_func, NULL, NULL);
--
2.1.0