[gnome-applets] netspeed: read settings after connecting to changed signal



commit 18992802d404e05acb04d55f89321f8d4cd4df49
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Apr 14 12:05:24 2015 +0300

    netspeed: read settings after connecting to changed signal

 netspeed/src/netspeed.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c
index cde7240..fbe60a9 100644
--- a/netspeed/src/netspeed.c
+++ b/netspeed/src/netspeed.c
@@ -1442,11 +1442,11 @@ netspeed_applet_factory (PanelApplet *applet,
        }       
 
        netspeed->settings = panel_applet_settings_new (applet, "org.gnome.gnome-applets.netspeed");
-       netspeed_applet_settings_changed (netspeed->settings, NULL, netspeed);
 
        g_signal_connect (netspeed->settings, "changed",
                          G_CALLBACK (netspeed_applet_settings_changed),
                          netspeed);
+       netspeed_applet_settings_changed (netspeed->settings, NULL, netspeed);
 
        netspeed->in_label = netspeed_label_new ();
        netspeed->out_label = netspeed_label_new ();


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