[gtk+] fontchooser: Use fixed height mode for the font face list



commit 18a6d9803ef0542567600db43a38056e8c9efd56
Author: Benjamin Otte <otte redhat com>
Date:   Thu Sep 22 18:17:54 2011 +0200

    fontchooser: Use fixed height mode for the font face list
    
    Now that we enforce same height anyway, this just further speeds things
    up.

 gtk/gtkfontchooserwidget.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index d7c3acc..e3cac95 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -934,12 +934,14 @@ gtk_font_chooser_widget_bootstrap_fontlist (GtkFontChooserWidget *fontchooser)
 
   gtk_tree_view_set_rules_hint      (treeview, TRUE);
   gtk_tree_view_set_headers_visible (treeview, FALSE);
+  gtk_tree_view_set_fixed_height_mode (treeview, TRUE);
 
   priv->family_face_cell = gtk_cell_renderer_text_new ();
   g_object_set (priv->family_face_cell, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
 
   col = gtk_tree_view_column_new ();
   gtk_tree_view_column_set_title (col, _("Font Family"));
+  gtk_tree_view_column_set_sizing (col, GTK_TREE_VIEW_COLUMN_FIXED);
   gtk_tree_view_column_pack_start (col, priv->family_face_cell, TRUE);
   gtk_tree_view_column_set_cell_data_func (col,
                                            priv->family_face_cell,



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