diff options
author | monsta <[email protected]> | 2018-01-22 13:46:30 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2018-01-22 13:46:30 +0300 |
commit | 39878cd819fa1c9c71def6b631ac82d9a1a6617f (patch) | |
tree | 45a16148ec0a1472f1ee9cd1f21d1d2a993a2612 | |
parent | 898fbc3c8c59a9f142865d1d1ffc1763e21b1137 (diff) | |
download | mate-applets-39878cd819fa1c9c71def6b631ac82d9a1a6617f.tar.bz2 mate-applets-39878cd819fa1c9c71def6b631ac82d9a1a6617f.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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mateweather/mateweather-pref.c b/mateweather/mateweather-pref.c index faee9e0b..ef907583 100644 --- a/mateweather/mateweather-pref.c +++ b/mateweather/mateweather-pref.c @@ -863,7 +863,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 @@ -889,7 +889,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 @@ -920,7 +920,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 @@ -954,7 +954,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 |