diff options
author | raveit65 <[email protected]> | 2018-07-07 18:09:27 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2018-07-09 19:02:19 -0400 |
commit | 2c31e38596baf0faca1da8ac880479b4192be86a (patch) | |
tree | 0f8f0ed66f7aade3ce4335f15ecf8a280716562d | |
parent | f4221bef290d8f22e8415821831b8c91169b60e9 (diff) | |
download | mate-applets-2c31e38596baf0faca1da8ac880479b4192be86a.tar.bz2 mate-applets-2c31e38596baf0faca1da8ac880479b4192be86a.tar.xz |
weather-applet: replace deprecated GtkAlignment
-rw-r--r-- | mateweather/mateweather-applet.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mateweather/mateweather-applet.c b/mateweather/mateweather-applet.c index 856c3475..fbbbaebd 100644 --- a/mateweather/mateweather-applet.c +++ b/mateweather/mateweather-applet.c @@ -185,7 +185,7 @@ static void place_widgets (MateWeatherApplet *gw_applet) gw_applet->box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); /* Rebuild the applet it's visual area */ - gtk_container_add (GTK_CONTAINER (gw_applet->container), gw_applet->box); + gtk_container_add (GTK_CONTAINER (gw_applet->applet), gw_applet->box); gtk_box_pack_start (GTK_BOX (gw_applet->box), gw_applet->image, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (gw_applet->box), gw_applet->label, TRUE, TRUE, 0); @@ -340,9 +340,6 @@ void mateweather_applet_create (MateWeatherApplet *gw_applet) gtk_window_set_default_icon_name ("weather-storm"); - gw_applet->container = gtk_alignment_new (0.5, 0.5, 0, 0); - gtk_container_add (GTK_CONTAINER (gw_applet->applet), gw_applet->container); - g_signal_connect (G_OBJECT(gw_applet->applet), "change_orient", G_CALLBACK(change_orient_cb), gw_applet); g_signal_connect (G_OBJECT(gw_applet->applet), "size_allocate", |