From a1e418ebd527a227722c0a8e1191241fe35bfdcf Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Tue, 12 May 2015 10:23:59 +0800 Subject: [PATCH] Fix return value error in gtk_font_chooser_get_font_map https://bugzilla.gnome.org/show_bug.cgi?id=749248 --- gtk/gtkfontchooser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c index bd99deee01..d295ce042c 100644 --- a/gtk/gtkfontchooser.c +++ b/gtk/gtkfontchooser.c @@ -485,7 +485,7 @@ gtk_font_chooser_get_font_map (GtkFontChooser *fontchooser) { PangoFontMap *fontmap; - g_return_if_fail (GTK_IS_FONT_CHOOSER (fontchooser)); + g_return_val_if_fail (GTK_IS_FONT_CHOOSER (fontchooser), NULL); g_object_get (fontchooser, "font-map", &fontmap, NULL);