[gnome-control-center] power: remove the primary battery from the battery label size group



commit 1a085fe68c8d177d513c4a4775cce6fa8fb1b827
Author: Thomas Wood <thomas wood intel com>
Date:   Thu Jun 20 14:32:21 2013 +0100

    power: remove the primary battery from the battery label size group
    
    The primary battery box has a different layout from other battery items
    and therefore shouldn't be included in the same size group. Including it
    in the size group was causing the other items to be resized when the
    battery status changed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702098

 panels/power/cc-power-panel.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index c5c1e6b..e615fa2 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -335,7 +335,6 @@ set_primary (CcPowerPanel *panel, UpDevice *device)
   details = get_details_string (percentage, state, time);
 
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-  gtk_size_group_add_widget (priv->battery_sizegroup, box);
   gtk_widget_set_margin_left (box, 20);
   gtk_widget_set_margin_right (box, 20);
   gtk_widget_set_margin_top (box, 6);


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