[gtk+] gtk-demo: Drop use of deprecated api



commit 5f7485f647b7dcd66b432358fca4cfff592d7c08
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 4 10:08:38 2014 +0200

    gtk-demo: Drop use of deprecated api
    
    There were several uses of gtk_tree_view_set_rules_hint here.
    Just drop them, the theme was ignoring them anyway.

 demos/gtk-demo/editable_cells.c |    1 -
 demos/gtk-demo/list_store.c     |    1 -
 demos/gtk-demo/tree_store.c     |    1 -
 3 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/demos/gtk-demo/editable_cells.c b/demos/gtk-demo/editable_cells.c
index debdb8e..917a84e 100644
--- a/demos/gtk-demo/editable_cells.c
+++ b/demos/gtk-demo/editable_cells.c
@@ -351,7 +351,6 @@ do_editable_cells (GtkWidget *do_widget)
 
       /* create tree view */
       treeview = gtk_tree_view_new_with_model (items_model);
-      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_SINGLE);
 
diff --git a/demos/gtk-demo/list_store.c b/demos/gtk-demo/list_store.c
index 343a387..580f07c 100644
--- a/demos/gtk-demo/list_store.c
+++ b/demos/gtk-demo/list_store.c
@@ -284,7 +284,6 @@ do_list_store (GtkWidget *do_widget)
 
       /* create tree view */
       treeview = gtk_tree_view_new_with_model (model);
-      gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (treeview), TRUE);
       gtk_tree_view_set_search_column (GTK_TREE_VIEW (treeview),
                                        COLUMN_DESCRIPTION);
 
diff --git a/demos/gtk-demo/tree_store.c b/demos/gtk-demo/tree_store.c
index feeaff3..c51b946 100644
--- a/demos/gtk-demo/tree_store.c
+++ b/demos/gtk-demo/tree_store.c
@@ -424,7 +424,6 @@ do_tree_store (GtkWidget *do_widget)
       /* create tree view */
       treeview = gtk_tree_view_new_with_model (model);
       g_object_unref (model);
-      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_MULTIPLE);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]