From 09e3162fb2cb6f66030ef9892a5f022b7eea082a Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Sun, 25 Jan 2015 12:21:41 +0100 Subject: [PATCH] [glib] Remove deprecated use of gtk_tree_view_set_rules_hint() The use of rules-hint is deprecated in gtk because it is considered bad application API and is not really usefull. See https://git.gnome.org/browse/gtk+/commit/?id=0ed766ec866a2da7e3db05b1db2fc2519d6b1cdc https://bugs.freedesktop.org/show_bug.cgi?id=88788 --- glib/demo/attachments.c | 1 - glib/demo/find.c | 1 - glib/demo/fonts.c | 1 - glib/demo/transitions.c | 1 - 4 files changed, 4 deletions(-) diff --git a/glib/demo/attachments.c b/glib/demo/attachments.c index 0ecd5b8..efffd72 100644 --- a/glib/demo/attachments.c +++ b/glib/demo/attachments.c @@ -82,7 +82,6 @@ pgd_attachments_create_list (GtkTreeModel *model) treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model)); gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), TRUE); - gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (treeview), TRUE); renderer = gtk_cell_renderer_text_new (); gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), diff --git a/glib/demo/find.c b/glib/demo/find.c index 8e91952..8b02dfc 100644 --- a/glib/demo/find.c +++ b/glib/demo/find.c @@ -453,7 +453,6 @@ pgd_find_create_widget (PopplerDocument *document) treeview = gtk_tree_view_new_with_model (model); g_object_unref (model); demo->treeview = treeview; - gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (treeview), TRUE); selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)); gtk_tree_selection_set_mode (selection, GTK_SELECTION_SINGLE); g_signal_connect (selection, "changed", diff --git a/glib/demo/fonts.c b/glib/demo/fonts.c index d0ffa3d..078368e 100644 --- a/glib/demo/fonts.c +++ b/glib/demo/fonts.c @@ -255,7 +255,6 @@ pgd_fonts_create_widget (PopplerDocument *document) model = gtk_list_store_new (N_COLUMNS, G_TYPE_STRING, G_TYPE_STRING); demo->treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model)); gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (demo->treeview), FALSE); - gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (demo->treeview), TRUE); gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (demo->treeview)), GTK_SELECTION_NONE); g_object_unref (model); diff --git a/glib/demo/transitions.c b/glib/demo/transitions.c index e6e2ab4..b646dd6 100644 --- a/glib/demo/transitions.c +++ b/glib/demo/transitions.c @@ -207,7 +207,6 @@ pgd_transitions_create_list (GtkTreeModel *model) treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model)); gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), TRUE); - gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (treeview), TRUE); gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)), GTK_SELECTION_NONE); -- 1.9.1