[gnumeric] Cleanup.



commit 5cca1f2839c22a0a3fc2761dd713587c43867279
Author: Morten Welinder <terra gnome org>
Date:   Thu Mar 14 15:10:11 2013 -0400

    Cleanup.

 src/dialogs/ChangeLog            |    1 +
 src/dialogs/dialog-preferences.c |    6 ++----
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 9cb36e9..50cc7ea 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -3,6 +3,7 @@
        * dialog-preferences.c (cb_pref_font_hf_has_changed): Adapt to new
        signal args.
        (cb_pref_font_has_changed): Ditto.
+       (do_set_font): Simplify.
 
 2013-03-13  Morten Welinder  <terra gnome org>
 
diff --git a/src/dialogs/dialog-preferences.c b/src/dialogs/dialog-preferences.c
index 6187731..d5c58f6 100644
--- a/src/dialogs/dialog-preferences.c
+++ b/src/dialogs/dialog-preferences.c
@@ -600,7 +600,6 @@ do_set_font (GOFontSel *fs,
             gboolean is_bold, gboolean is_italic)
 {
        PangoFontDescription *desc;
-       GOFont const *go_font;
 
        desc = pango_font_description_new ();
        pango_font_description_set_family (desc, name);
@@ -612,9 +611,8 @@ do_set_font (GOFontSel *fs,
                (desc,
                 is_italic ? PANGO_STYLE_ITALIC : PANGO_STYLE_NORMAL);
 
-       go_font = go_font_new_by_desc (desc);
-       go_font_sel_set_font (fs, go_font);
-       go_font_unref (go_font);
+       go_font_sel_set_font_desc (fs, desc);
+       pango_font_description_free (desc);
 }
 
 


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