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
This commit is contained in:
Thomas Wood 2013-06-20 14:32:21 +01:00
parent fba28b612c
commit 1a085fe68c

View file

@ -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);