[gtk+] fontchooser: Take font description from model



commit 7cf53a9f60194add93b38005da3374e646bbb255
Author: Benjamin Otte <otte redhat com>
Date:   Wed Sep 21 00:23:07 2011 +0200

    fontchooser: Take font description from model
    
    ... instead of taking face and constructing it from there.

 gtk/gtkfontchooserwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index f721046..4ef5436 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -390,12 +390,12 @@ cursor_changed_cb (GtkTreeView *treeview,
   gtk_tree_model_get (priv->filter_model, &iter,
                       FACE_COLUMN, &face,
                       FAMILY_COLUMN, &family,
+                      FONT_DESC_COLUMN, &desc,
                       -1);
 
   gtk_tree_path_free (path);
   path = NULL;
 
-  desc = pango_font_face_describe (face);
   pango_font_description_set_size (desc, pango_font_description_get_size (priv->font_desc));
   gtk_widget_override_font (priv->preview, desc);
 



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