[Xfce4-commits] <xfce4-weather-plugin:master> Start auto-detect-by-ip after the signal handlers have been set up.

Harald Judt noreply at xfce.org
Tue Nov 27 16:46:49 CET 2012


Updating branch refs/heads/master
         to 16717f41cf8b3b8260c4f9c8d200ddaabf3596e1 (commit)
       from fbf102d7da372a835b222644fb3f270536804374 (commit)

commit 16717f41cf8b3b8260c4f9c8d200ddaabf3596e1
Author: Harald Judt <h.judt at gmx.at>
Date:   Tue Nov 27 16:27:45 2012 +0100

    Start auto-detect-by-ip after the signal handlers have been set up.

 panel-plugin/weather-config.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c
index 790794a..213b46f 100644
--- a/panel-plugin/weather-config.c
+++ b/panel-plugin/weather-config.c
@@ -533,10 +533,6 @@ create_location_page(xfceweather_dialog *dialog)
     gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, BORDER/2);
     gtk_box_pack_start(GTK_BOX(page), vbox, FALSE, FALSE, 0);
 
-    /* automatically detect current location if it is yet unknown */
-    if (!(dialog->wd->lat && dialog->wd->lon))
-        start_auto_locate(dialog);
-
     /* set up the altitude spin box and unit label (meters/feet) */
     setup_altitude(dialog);
 
@@ -1305,6 +1301,11 @@ create_config_dialog(xfceweather_data *data,
                              create_scrollbox_page(dialog),
                              gtk_label_new_with_mnemonic("_Scrollbox"));
     setup_notebook_signals(dialog);
+
+    /* automatically detect current location if it is yet unknown */
+    if (!(dialog->wd->lat && dialog->wd->lon))
+        start_auto_locate(dialog);
+
     gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0);
     gtk_widget_show_all(vbox);
     return dialog;


More information about the Xfce4-commits mailing list