[gnome-applets] gweather: fix temperature label placement



commit ee226b4e01cd36b528521b012046dd599e89cfbd
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Aug 30 19:05:27 2014 +0300

    gweather: fix temperature label placement

 gweather/gweather-applet.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gweather/gweather-applet.c b/gweather/gweather-applet.c
index 6551717..739d558 100644
--- a/gweather/gweather-applet.c
+++ b/gweather/gweather-applet.c
@@ -158,6 +158,7 @@ static void place_widgets (GWeatherApplet *gw_applet)
     gw_applet->image = gtk_image_new_from_icon_name(icon_name, GTK_ICON_SIZE_BUTTON); 
 
     if (icon_name != NULL) {
+        gtk_widget_show (gw_applet->image);
         gtk_widget_size_request(gw_applet->image, &req);
         if (horizontal)
             total_size += req.height;
@@ -175,6 +176,7 @@ static void place_widgets (GWeatherApplet *gw_applet)
         gtk_label_set_text(GTK_LABEL(gw_applet->label), temp);
 
     /* Check the label size to determine box layout */
+    gtk_widget_show (gw_applet->label);
     gtk_widget_size_request(gw_applet->label, &req);
     if (horizontal)
         total_size += req.height;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]