[goffice] Ensure a full initialization of all fields in the font selector. [#698867]



commit 4755cc7333bfe8ef789285fa4ad4f93ab6a64b98
Author: Jean Brefort <jean brefort normalesup org>
Date:   Fri Apr 26 08:28:44 2013 +0200

    Ensure a full initialization of all fields in the font selector. [#698867]

 ChangeLog                 |    5 +++++
 NEWS                      |    2 ++
 goffice/gtk/go-font-sel.c |    1 +
 3 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d033264..09b85f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-26  Jean Brefort  <jean brefort normalesup org>
+
+       * goffice/gtk/go-font-sel.c (gfs_screen_changed): ensure a full
+       initialization of all fields in the font selector. [#698867]
+
 2013-04-25  Jean Brefort  <jean brefort normalesup org>
 
        * goffice/graph/gog-series.c (gog_series_populate_editor): hide the skip
diff --git a/NEWS b/NEWS
index bd8e471..3072396 100644
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,8 @@ Jean:
        * Don't unref a disposed widget. [#698150]
        * Export each marker to svg until cairo bug #63633 is fixed. [#698162]
        * Implement interpolation in line and area plots. [#698534]
+       * Ensure a full initialization of all fields in the font selector.
+       [#698867]
 
 Morten:
        * Fix problems with cspline boxed type. [#695550]
diff --git a/goffice/gtk/go-font-sel.c b/goffice/gtk/go-font-sel.c
index 6556a9b..2d87212 100644
--- a/goffice/gtk/go-font-sel.c
+++ b/goffice/gtk/go-font-sel.c
@@ -640,6 +640,7 @@ gfs_screen_changed (GtkWidget *w, GdkScreen *previous_screen)
        reload_families (gfs);
 
        desc = pango_font_description_from_string ("Sans 72");
+       g_object_set (w, "font-desc", desc, NULL);
        width = go_pango_measure_string
                (gtk_widget_get_pango_context (w),
                 desc,


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