summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-22 13:46:30 +0300
committermonsta <[email protected]>2018-03-02 16:17:31 +0300
commit4731087d261d05b73eba44fea2ac38a1d34e2ee1 (patch)
treed24f969148bc6880c3d921b412a50ff04495f28f
parent03b9c51a4ffd0ceb990a08162945219df85bc01b (diff)
downloadmate-applets-4731087d261d05b73eba44fea2ac38a1d34e2ee1.tar.bz2
mate-applets-4731087d261d05b73eba44fea2ac38a1d34e2ee1.tar.xz
weather: fix possible crash when opening prefs dialog
fixes https://github.com/mate-desktop/mate-applets/issues/299 fallout from https://github.com/mate-desktop/mate-applets/commit/37e590249dd9d191a2331040fb879830c9ceea8e
-rw-r--r--mateweather/mateweather-pref.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mateweather/mateweather-pref.c b/mateweather/mateweather-pref.c
index 266a615a..445c883b 100644
--- a/mateweather/mateweather-pref.c
+++ b/mateweather/mateweather-pref.c
@@ -856,7 +856,7 @@ static void mateweather_pref_create(MateWeatherPref* pref)
gtk_label_set_use_markup (GTK_LABEL (temp_label), TRUE);
gtk_label_set_justify (GTK_LABEL (temp_label), GTK_JUSTIFY_LEFT);
#if GTK_CHECK_VERSION (3, 16, 0)
- gtk_label_set_xalign (GTK_LABEL (label), 0.0);
+ gtk_label_set_xalign (GTK_LABEL (temp_label), 0.0);
#else
gtk_misc_set_alignment (GTK_MISC (temp_label), 0.0, 0.5);
#endif
@@ -882,7 +882,7 @@ static void mateweather_pref_create(MateWeatherPref* pref)
gtk_label_set_use_markup (GTK_LABEL (speed_label), TRUE);
gtk_label_set_justify (GTK_LABEL (speed_label), GTK_JUSTIFY_LEFT);
#if GTK_CHECK_VERSION (3, 16, 0)
- gtk_label_set_xalign (GTK_LABEL (label), 0.0);
+ gtk_label_set_xalign (GTK_LABEL (speed_label), 0.0);
#else
gtk_misc_set_alignment (GTK_MISC (speed_label), 0.0, 0.5);
#endif
@@ -913,7 +913,7 @@ static void mateweather_pref_create(MateWeatherPref* pref)
gtk_label_set_use_markup (GTK_LABEL (pres_label), TRUE);
gtk_label_set_justify (GTK_LABEL (pres_label), GTK_JUSTIFY_LEFT);
#if GTK_CHECK_VERSION (3, 16, 0)
- gtk_label_set_xalign (GTK_LABEL (label), 0.0);
+ gtk_label_set_xalign (GTK_LABEL (pres_label), 0.0);
#else
gtk_misc_set_alignment (GTK_MISC (pres_label), 0.0, 0.5);
#endif
@@ -947,7 +947,7 @@ static void mateweather_pref_create(MateWeatherPref* pref)
gtk_label_set_use_markup (GTK_LABEL (dist_label), TRUE);
gtk_label_set_justify (GTK_LABEL (dist_label), GTK_JUSTIFY_LEFT);
#if GTK_CHECK_VERSION (3, 16, 0)
- gtk_label_set_xalign (GTK_LABEL (label), 0.0);
+ gtk_label_set_xalign (GTK_LABEL (dist_label), 0.0);
#else
gtk_misc_set_alignment (GTK_MISC (dist_label), 0, 0.5);
#endif