[gtk+/font-chooser: 64/86] GtkFontChooser: check if font name is NULL in gtk_font_selection_set_font_name
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/font-chooser: 64/86] GtkFontChooser: check if font name is NULL in gtk_font_selection_set_font_name
- Date: Sun, 10 Jul 2011 23:45:16 +0000 (UTC)
commit e6e2aab212bd741dead8ae2b79e252e0576606f6
Author: Alberto Ruiz <aruiz gnome org>
Date: Tue May 3 01:37:48 2011 +0100
GtkFontChooser: check if font name is NULL in gtk_font_selection_set_font_name
gtk/gtkfontchooser.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index bc86b81..8a98b1e 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]