Skip to content

Commit 2c31e38

Browse files
raveit65lukefromdc
authored andcommitted
weather-applet: replace deprecated GtkAlignment
1 parent f4221be commit 2c31e38

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mateweather/mateweather-applet.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ static void place_widgets (MateWeatherApplet *gw_applet)
185185
gw_applet->box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
186186

187187
/* Rebuild the applet it's visual area */
188-
gtk_container_add (GTK_CONTAINER (gw_applet->container), gw_applet->box);
188+
gtk_container_add (GTK_CONTAINER (gw_applet->applet), gw_applet->box);
189189
gtk_box_pack_start (GTK_BOX (gw_applet->box), gw_applet->image, TRUE, TRUE, 0);
190190
gtk_box_pack_start (GTK_BOX (gw_applet->box), gw_applet->label, TRUE, TRUE, 0);
191191

@@ -340,9 +340,6 @@ void mateweather_applet_create (MateWeatherApplet *gw_applet)
340340

341341
gtk_window_set_default_icon_name ("weather-storm");
342342

343-
gw_applet->container = gtk_alignment_new (0.5, 0.5, 0, 0);
344-
gtk_container_add (GTK_CONTAINER (gw_applet->applet), gw_applet->container);
345-
346343
g_signal_connect (G_OBJECT(gw_applet->applet), "change_orient",
347344
G_CALLBACK(change_orient_cb), gw_applet);
348345
g_signal_connect (G_OBJECT(gw_applet->applet), "size_allocate",

0 commit comments

Comments
 (0)