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



commit 7b6f3685d807a4d5e3c84790919607746beb3c21
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 ac7d7b1..6c56b04 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]