fontchooser: Take font description from model

... instead of taking face and constructing it from there.
This commit is contained in:
Benjamin Otte 2011-09-21 00:23:07 +02:00
parent 2b83d03604
commit 7cf53a9f60

View File

@ -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);