[gtk+/font-chooser-api] fixup! Fix implementation of GtkFontButton:get_font_{family, face}
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/font-chooser-api] fixup! Fix implementation of GtkFontButton:get_font_{family, face}
- Date: Mon, 12 Sep 2011 19:27:20 +0000 (UTC)
commit 03d1a781a962b6d493d2677a0b72b5eda22bb146
Author: Christian Persch <chpe gnome org>
Date: Mon Sep 12 13:51:24 2011 +0200
fixup! Fix implementation of GtkFontButton:get_font_{family,face}
gtk/gtkfontbutton.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c
index e73c89f..430ed14 100644
--- a/gtk/gtkfontbutton.c
+++ b/gtk/gtkfontbutton.c
@@ -1076,6 +1076,8 @@ response_cb (GtkDialog *dialog,
clear_font_data (font_button);
priv->font_desc = gtk_font_chooser_get_font_desc (font_chooser);
+ if (priv->font_desc)
+ priv->fontname = pango_font_description_to_string (priv->font_desc);
priv->font_family = gtk_font_chooser_get_font_family (font_chooser);
if (priv->font_family)
g_object_ref (priv->font_family);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]