diff options
author | monsta <[email protected]> | 2016-11-22 17:05:52 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-11-22 17:09:46 +0300 |
commit | 45354a60352e05eba7e66e24a171e713876d71e9 (patch) | |
tree | e2994870d28d5b731b6874b998e6aea847b55b44 /mateweather | |
parent | 0e5ba8dc3799a77c4a070dd33e6ec9e678345a94 (diff) | |
download | mate-applets-45354a60352e05eba7e66e24a171e713876d71e9.tar.bz2 mate-applets-45354a60352e05eba7e66e24a171e713876d71e9.tar.xz |
mateweather: fix temperature label placement with GTK+3
ported from:
https://git.gnome.org/browse/gnome-applets/commit/?id=ee226b4e01cd36b528521b012046dd599e89cfbd
Diffstat (limited to 'mateweather')
-rw-r--r-- | mateweather/mateweather-applet.c | 2 |
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); |