diff options
author | Benjamin Otte <otte@redhat.com> | 2011-09-16 10:26:55 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-09-19 22:11:05 +0200 |
commit | a5f516c8186bdf128d7f34c1681f3eb49d7f490e (patch) | |
tree | e7b1a08bcb36306e2fa53845799627f19cb3cf60 /gtk/gtkfontchooserwidget.c | |
parent | fb2bc139bb8a6d53e02b3cc9fe2d23b287103996 (diff) | |
download | gtk+-a5f516c8186bdf128d7f34c1681f3eb49d7f490e.tar.gz |
fontchooser: Family or face can never be NULL
... so there's no need to special-case those situations.
Diffstat (limited to 'gtk/gtkfontchooserwidget.c')
-rw-r--r-- | gtk/gtkfontchooserwidget.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c index 71475f9cf7..1b391b52a8 100644 --- a/gtk/gtkfontchooserwidget.c +++ b/gtk/gtkfontchooserwidget.c @@ -444,16 +444,6 @@ cursor_changed_cb (GtkTreeView *treeview, gtk_tree_path_free (path); path = NULL; - if (face == NULL || family == NULL) - { - if (face) - g_object_unref (face); - if (family) - g_object_unref (family); - - return; - } - desc = pango_font_face_describe (face); pango_font_description_set_size (desc, priv->size); gtk_widget_override_font (priv->preview, desc); |