[gtk+/font-chooser: 15/84] GtkFontChooser: Set rules hint to TRUE in the main tree view



commit 035de37771720a7c8505cab7922111fe96e86865
Author: Alberto Ruiz <aruiz gnome org>
Date:   Sat Apr 16 01:54:39 2011 +0100

    GtkFontChooser: Set rules hint to TRUE in the main tree view

 gtk/gtkfontchooser.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index 05fd2bf..e2405a6 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -385,12 +385,15 @@ set_cursor_to_iter (GtkTreeView *view,
 }
 
 static void 
-gtk_font_selection_populate_model (GtkTreeView *treeview, GtkListStore *model)
+gtk_font_selection_populate_list (GtkTreeView *treeview)
 {
+  GtkListStore *model;
   PangoFontFamily *match_family;
   PangoFontFamily **families;
   gint n_families, i;
   GtkTreeIter match_row;
+  
+  model = GTK_LIST_STORE(gtk_tree_view_get_model (treeview));
 
   pango_context_list_families (gtk_widget_get_pango_context (GTK_WIDGET (treeview)),
                                &families,
@@ -434,18 +437,17 @@ gtk_font_selection_bootstrap_fontlist (GtkTreeView* treeview)
                                     PANGO_TYPE_FONT_FACE,
                                     G_TYPE_STRING);
   gtk_tree_view_set_model (treeview, GTK_TREE_MODEL (fonts_model));
-
-
-  gtk_tree_view_set_headers_visible   (treeview, FALSE);
+  
+  gtk_tree_view_set_rules_hint      (treeview, TRUE);
+  gtk_tree_view_set_headers_visible (treeview, FALSE);
 
   col = gtk_tree_view_column_new_with_attributes ("Family",
                                                    gtk_cell_renderer_text_new (),
                                                    "markup", TEXT_COLUMN,
                                                    NULL);
-  
   gtk_tree_view_append_column (treeview, col);
 
-  gtk_font_selection_populate_model (treeview, fonts_model);  
+  gtk_font_selection_populate_list (treeview);  
 }
 
 



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