[gnome-control-center] power: Fix device label alignment
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] power: Fix device label alignment
- Date: Wed, 21 Nov 2018 10:51:46 +0000 (UTC)
commit 1b70273221bf34869fcb3d56446a38571861e44e
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 2bc846179..71801637c 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -686,6 +686,7 @@ add_device (CcPowerPanel *panel, UpDevice *device)
gtk_container_add (GTK_CONTAINER (row), hbox);
widget = gtk_label_new ("");
gtk_widget_show (widget);
+ 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]