@@ -778,7 +778,6 @@ static void mateweather_pref_create(MateWeatherPref* pref)
778778 #ifdef RADARMAP
779779 GtkWidget * radar_toggle_hbox ;
780780 #endif /* RADARMAP */
781- GtkWidget * pref_basic_update_alignment ;
782781 GtkWidget * pref_basic_update_lbl ;
783782 GtkWidget * pref_basic_update_hbox ;
784783 GtkAdjustment * pref_basic_update_spin_adj ;
@@ -833,12 +832,10 @@ static void mateweather_pref_create(MateWeatherPref* pref)
833832 gtk_container_set_border_width (GTK_CONTAINER (pref_basic_vbox ), 12 );
834833 gtk_container_add (GTK_CONTAINER (pref -> priv -> notebook ), pref_basic_vbox );
835834
836- pref_basic_update_alignment = gtk_alignment_new (0 , 0.5 , 0 , 1 );
837- gtk_widget_show (pref_basic_update_alignment );
838-
839835 pref -> priv -> basic_update_btn = gtk_check_button_new_with_mnemonic (_ ("_Automatically update every:" ));
836+ gtk_widget_set_halign (pref -> priv -> basic_update_btn , GTK_ALIGN_START );
837+ gtk_widget_set_vexpand (pref -> priv -> basic_update_btn , TRUE);
840838 gtk_widget_show (pref -> priv -> basic_update_btn );
841- gtk_container_add (GTK_CONTAINER (pref_basic_update_alignment ), pref -> priv -> basic_update_btn );
842839 g_signal_connect (G_OBJECT (pref -> priv -> basic_update_btn ), "toggled" , G_CALLBACK (auto_update_toggled ), pref );
843840
844841 if (!g_settings_is_writable (pref -> priv -> applet -> settings , "auto-update" ))
@@ -1062,7 +1059,7 @@ static void mateweather_pref_create(MateWeatherPref* pref)
10621059
10631060 value_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL , 6 );
10641061
1065- gtk_box_pack_start (GTK_BOX (pref_basic_update_hbox ), pref_basic_update_alignment , FALSE, TRUE, 0 );
1062+ gtk_box_pack_start (GTK_BOX (pref_basic_update_hbox ), pref -> priv -> basic_update_btn , FALSE, TRUE, 0 );
10661063 gtk_box_pack_start (GTK_BOX (pref_basic_update_hbox ), value_hbox , FALSE, FALSE, 0 );
10671064 gtk_box_pack_start (GTK_BOX (value_hbox ), pref -> priv -> basic_update_spin , FALSE, FALSE, 0 );
10681065 gtk_box_pack_start (GTK_BOX (value_hbox ), pref_basic_update_sec_lbl , FALSE, FALSE, 0 );
0 commit comments