fontchooser: Family or face can never be NULL

... so there's no need to special-case those situations.
This commit is contained in:
Benjamin Otte 2011-09-16 10:26:55 +02:00
parent fb2bc139bb
commit a5f516c818

View File

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