forked from AuroraMiddleware/gtk
fontchooser: Family or face can never be NULL
... so there's no need to special-case those situations.
This commit is contained in:
parent
fb2bc139bb
commit
a5f516c818
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user