[gtk+/font-selection-new: 15/73] GtkFontSelection: Set rules hint to TRUE in the main tree view
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/font-selection-new: 15/73] GtkFontSelection: Set rules hint to TRUE in the main tree view
- Date: Sat, 7 May 2011 18:13:29 +0000 (UTC)
commit e55a232487217e5c21a108844048cd3e33c7de0b
Author: Alberto Ruiz <aruiz gnome org>
Date: Sat Apr 16 01:54:39 2011 +0100
GtkFontSelection: Set rules hint to TRUE in the main tree view
gtk/gtkfontsel.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c
index 05fd2bf..e2405a6 100644
--- a/gtk/gtkfontsel.c
+++ b/gtk/gtkfontsel.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]