[goffice] Show the font face selector in the graph properties. [#697243]



commit 5d8325288230a89988efe49f5a4cecdf35351361
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sun Apr 7 07:57:12 2013 +0200

    Show the font face selector in the graph properties. [#697243]

 ChangeLog                |    5 +++++
 NEWS                     |    1 +
 goffice/utils/go-style.c |    2 +-
 3 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 142074f..3e499fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-07  Jean Brefort  <jean brefort normalesup org>
+
+       * goffice/utils/go-style.c (font_init): show the font face selector.
+       [#697243]
+
 2013-03-30  Jean Brefort  <jean brefort normalesup org>
 
        * goffice/component/go-component.c (go_component_set_property),
diff --git a/NEWS b/NEWS
index db26cd3..6772009 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ Jean:
        * Fix currency selector visibility. [#696647]
        * Fix mouse events for widgets inside a GtkContainer. [#696533]
        * Make the GOEditor scrolled window optional. [696825]
+       * Show the font face selector in the graph properties. [#697243]
 
 Morten:
        * Fix problems with cspline boxed type. [#695550]
diff --git a/goffice/utils/go-style.c b/goffice/utils/go-style.c
index 55ad03c..4224352 100644
--- a/goffice/utils/go-style.c
+++ b/goffice/utils/go-style.c
@@ -928,7 +928,7 @@ font_init (StylePrefState *state, guint32 enable, GOEditor *editor, GOCmdContext
        gtk_grid_attach (GTK_GRID (grid), w, 1, 0, 1, 1);
        gtk_widget_show (w);
 
-       w = go_font_sel_new ();
+       w = GTK_WIDGET (g_object_new (GO_TYPE_FONT_SEL, "show-style", TRUE, NULL));
        go_font_sel_set_font (GO_FONT_SEL (w), style->font.font);
        g_signal_connect (G_OBJECT (w), "font_changed",
                          G_CALLBACK (cb_font_changed), state);


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