From d3e226fb814684876a0d29c0224bc56913e5ea33 Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 22 Nov 2016 17:05:52 +0300 Subject: mateweather: fix temperature label placement with GTK+3 ported from: https://git.gnome.org/browse/gnome-applets/commit/?id=ee226b4e01cd36b528521b012046dd599e89cfbd --- mateweather/mateweather-applet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mateweather/mateweather-applet.c b/mateweather/mateweather-applet.c index bf737800..9d774e55 100644 --- a/mateweather/mateweather-applet.c +++ b/mateweather/mateweather-applet.c @@ -153,6 +153,7 @@ static void place_widgets (MateWeatherApplet *gw_applet) if (icon_name != NULL) { #if GTK_CHECK_VERSION(3, 0, 0) + gtk_widget_show (gw_applet->image); gtk_widget_get_preferred_size (gw_applet->image, &req, NULL); #else gtk_widget_size_request(gw_applet->image, &req); @@ -173,6 +174,7 @@ static void place_widgets (MateWeatherApplet *gw_applet) /* Check the label size to determine box layout */ #if GTK_CHECK_VERSION(3, 0, 0) + gtk_widget_show (gw_applet->label); gtk_widget_get_preferred_size (gw_applet->label, &req, NULL); #else gtk_widget_size_request(gw_applet->label, &req); -- cgit v1.2.1