summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-11-22 17:05:52 +0300
committermonsta <[email protected]>2017-01-29 15:19:47 +0300
commitd3e226fb814684876a0d29c0224bc56913e5ea33 (patch)
treef9aed4e55226e6bba6c150d07d037ad53d2e3e57
parent70a5c628a4c3ace02ee3dc94c18c5903795a9e7f (diff)
downloadmate-applets-d3e226fb814684876a0d29c0224bc56913e5ea33.tar.bz2
mate-applets-d3e226fb814684876a0d29c0224bc56913e5ea33.tar.xz
mateweather: fix temperature label placement with GTK+3
ported from: https://git.gnome.org/browse/gnome-applets/commit/?id=ee226b4e01cd36b528521b012046dd599e89cfbd
-rw-r--r--mateweather/mateweather-applet.c2
1 files changed, 2 insertions, 0 deletions
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);