Bug 555573 – gtk_font_selection_set_font_name

shouldn't require a screen

* gtk/gtkfontsel.c (gtk_font_selection_set_font_name):
Don't warn if there is no screen, just return FALSE

svn path=/trunk/; revision=21621
This commit is contained in:
Christian Dywan 2008-10-09 16:26:35 +00:00
parent ba5fbdb32b
commit 4bd29a4229
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2008-10-09 Christian Dywan <christian@imendio.com>
Bug 555573 gtk_font_selection_set_font_name
shouldn't require a screen
* gtk/gtkfontsel.c (gtk_font_selection_set_font_name):
Don't warn if there is no screen, just return FALSE
2008-10-09 Christian Dywan <christian@imendio.com>
Bug 555523 gtk_scale_button_set_adjustment should accept NULL

View File

@ -1350,8 +1350,10 @@ gtk_font_selection_set_font_name (GtkFontSelection *fontsel,
const gchar *new_family_name;
g_return_val_if_fail (GTK_IS_FONT_SELECTION (fontsel), FALSE);
g_return_val_if_fail (gtk_widget_has_screen (GTK_WIDGET (fontsel)), FALSE);
if (!gtk_widget_has_screen (GTK_WIDGET (fontsel)))
return FALSE;
new_desc = pango_font_description_from_string (fontname);
new_family_name = pango_font_description_get_family (new_desc);