[Xfce4-commits] <xfce4-weather-plugin:master> Update scrollbox when changing units.

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


Updating branch refs/heads/master
         to 34937cfad119134a6667cab963ff9b7c439fc59a (commit)
       from e7bed0df44e86f7d5099cc7cd699b05caa3aea24 (commit)

commit 34937cfad119134a6667cab963ff9b7c439fc59a
Author: Harald Judt <h.judt at gmx.at>
Date:   Mon Nov 26 14:02:19 2012 +0100

    Update scrollbox when changing units.

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

diff --git a/configure.ac.in b/configure.ac.in
index 5bb6038..ffd6b5a 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -12,7 +12,7 @@ m4_define([weather_version_major], [0])
 m4_define([weather_version_minor], [8])
 m4_define([weather_version_micro], [2])
 m4_define([weather_version_build], [@REVISION@])
-m4_define([weather_version_tag], [git])
+m4_define([weather_version_tag], [])
 m4_define([weather_version], [weather_version_major().weather_version_minor().weather_version_micro()ifelse(weather_version_tag(), [git], [weather_version_tag()-weather_version_build()], [weather_version_tag()])])
 
 dnl ***************************
diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c
index ac6cce7..a4ce00d 100644
--- a/panel-plugin/weather-config.c
+++ b/panel-plugin/weather-config.c
@@ -563,6 +563,7 @@ combo_unit_temperature_changed(GtkWidget *combo,
     xfceweather_dialog *dialog = (xfceweather_dialog *) user_data;
     dialog->wd->units->temperature =
         gtk_combo_box_get_active(GTK_COMBO_BOX(combo));
+    update_scrollbox(dialog->wd);
 }
 
 
@@ -573,6 +574,7 @@ combo_unit_pressure_changed(GtkWidget *combo,
     xfceweather_dialog *dialog = (xfceweather_dialog *) user_data;
     dialog->wd->units->pressure =
         gtk_combo_box_get_active(GTK_COMBO_BOX(combo));
+    update_scrollbox(dialog->wd);
 }
 
 
@@ -583,6 +585,7 @@ combo_unit_windspeed_changed(GtkWidget *combo,
     xfceweather_dialog *dialog = (xfceweather_dialog *) user_data;
     dialog->wd->units->windspeed =
         gtk_combo_box_get_active(GTK_COMBO_BOX(combo));
+    update_scrollbox(dialog->wd);
 }
 
 
@@ -593,6 +596,7 @@ combo_unit_precipitations_changed(GtkWidget *combo,
     xfceweather_dialog *dialog = (xfceweather_dialog *) user_data;
     dialog->wd->units->precipitations =
         gtk_combo_box_get_active(GTK_COMBO_BOX(combo));
+    update_scrollbox(dialog->wd);
 }
 
 


More information about the Xfce4-commits mailing list