From 4731087d261d05b73eba44fea2ac38a1d34e2ee1 Mon Sep 17 00:00:00 2001 From: monsta Date: Mon, 22 Jan 2018 13:46:30 +0300 Subject: 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 --- mateweather/mateweather-pref.c | 8 ++++---- 1 file 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 -- cgit v1.2.1