[gitg/wip/techlivezh/fix-720726: 1/5] Clean up the code a bit



commit 9d4c24259b04cf9c1c6d1445d91cff99aefddb12
Author: Techlive Zheng <techlivezheng gmail com>
Date:   Sun Dec 8 04:23:28 2013 +0800

    Clean up the code a bit
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720726

 libgitg/gitg-diff-view.vala |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libgitg/gitg-diff-view.vala b/libgitg/gitg-diff-view.vala
index 2c776e4..ecd1c4c 100644
--- a/libgitg/gitg-diff-view.vala
+++ b/libgitg/gitg-diff-view.vala
@@ -248,20 +248,22 @@ namespace Gitg
                        settings.javascript_can_access_clipboard = true;
                        settings.enable_page_cache = false;
 
-                       d_fontsettings = new Settings("org.gnome.desktop.interface");
                        set_settings(settings);
 
+                       d_fontsettings = new Settings("org.gnome.desktop.interface");
+
                        update_font_settings();
 
-                       d_fontsettings.changed["monospace-font-name"].connect((s, k) => {
+                       d_fontsettings.changed["font-name"].connect((s, k) => {
                                update_font_settings();
                        });
 
-                       d_fontsettings.changed["font-name"].connect((s, k) => {
+                       d_fontsettings.changed["monospace-font-name"].connect((s, k) => {
                                update_font_settings();
                        });
 
                        ++s_diff_id;
+
                        s_diffmap[s_diff_id.to_string()] = this;
 
                        d_cancellable = new Cancellable();


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