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:
parent
fba28b612c
commit
1a085fe68c
1 changed files with 0 additions and 1 deletions
|
@ -335,7 +335,6 @@ set_primary (CcPowerPanel *panel, UpDevice *device)
|
||||||
details = get_details_string (percentage, state, time);
|
details = get_details_string (percentage, state, time);
|
||||||
|
|
||||||
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
|
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_left (box, 20);
|
||||||
gtk_widget_set_margin_right (box, 20);
|
gtk_widget_set_margin_right (box, 20);
|
||||||
gtk_widget_set_margin_top (box, 6);
|
gtk_widget_set_margin_top (box, 6);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue