Commit 4bd29a42 authored by Christian Dywan's avatar Christian Dywan
Browse files

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
parent ba5fbdb3
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
......
......@@ -1350,7 +1350,9 @@ 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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment