forked from AuroraMiddleware/gtk
GtkFontChooser: check if font name is NULL in gtk_font_selection_set_font_name
This commit is contained in:
parent
ea4603e5d1
commit
14fbbf1420
@ -1535,6 +1535,7 @@ gtk_font_selection_set_font_name (GtkFontSelection *fontsel,
|
||||
gboolean found = FALSE;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_FONT_SELECTION (fontsel), FALSE);
|
||||
g_return_val_if_fail (fontname != NULL, FALSE);
|
||||
|
||||
if (!gtk_widget_has_screen (GTK_WIDGET (fontsel)))
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user