[gtk+/font-chooser-api] fixup! Fix implementation of GtkFontButton:get_font_{family, face}



commit fa2b0e195f6b51ddad28f4419838acc2a85ea6d6
Author: Christian Persch <chpe gnome org>
Date:   Mon Sep 12 01:58:30 2011 +0200

    fixup! Fix implementation of GtkFontButton:get_font_{family,face}

 gtk/gtkfontbutton.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c
index 1c53731..e73c89f 100644
--- a/gtk/gtkfontbutton.c
+++ b/gtk/gtkfontbutton.c
@@ -1175,7 +1175,7 @@ gtk_font_button_update_font_info (GtkFontButton *font_button)
   else if (priv->font_family != NULL)
     family_style = g_strdup (pango_font_family_get_name (priv->font_family));
   else
-    family_style = "";
+    family_style = g_strdup ("");
 
   gtk_label_set_text (GTK_LABEL (font_button->priv->font_label), family_style);
   g_free (family_style);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]