[gnome-control-center/gnome-3-30] power: Fix device label alignment
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-30] power: Fix device label alignment
- Date: Wed, 21 Nov 2018 11:28:44 +0000 (UTC)
commit e72f228be8475605cae5693808889ae32875d66a
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Nov 21 12:11:20 2018 +1300
power: Fix device label alignment
Should be left-aligned, previously it was centered
panels/power/cc-power-panel.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index ea12bd593..9da5a54a5 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -659,6 +659,7 @@ add_device (CcPowerPanel *panel, UpDevice *device)
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_container_add (GTK_CONTAINER (row), hbox);
widget = gtk_label_new ("");
+ gtk_label_set_xalign (GTK_LABEL (widget), 0.0);
gtk_widget_set_halign (widget, GTK_ALIGN_START);
gtk_label_set_markup (GTK_LABEL (widget), description->str);
gtk_widget_set_margin_start (widget, 20);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]