[gtk+/wip/baedert/drawing: 113/348] inspector: Fix list row alignment in general tab
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 113/348] inspector: Fix list row alignment in general tab
- Date: Sat, 8 Jul 2017 10:40:18 +0000 (UTC)
commit a49b623a5d5f37c2b27b1d2efc0405e3b6c390a9
Author: Timm Bäder <mail baedert org>
Date: Sat May 6 12:19:19 2017 +0200
inspector: Fix list row alignment in general tab
gtk/inspector/general.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/inspector/general.c b/gtk/inspector/general.c
index 28eae3f..20000e1 100644
--- a/gtk/inspector/general.c
+++ b/gtk/inspector/general.c
@@ -138,6 +138,7 @@ add_check_row (GtkInspectorGeneral *gen,
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_BASELINE);
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
+ gtk_widget_set_hexpand (label, TRUE);
gtk_box_pack_start (GTK_BOX (box), label);
check = gtk_image_new_from_icon_name ("object-select-symbolic", GTK_ICON_SIZE_MENU);
@@ -150,6 +151,7 @@ add_check_row (GtkInspectorGeneral *gen,
gtk_container_add (GTK_CONTAINER (row), box);
gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE);
+ gtk_widget_set_hexpand (box, FALSE);
gtk_list_box_insert (list, row, -1);
gtk_size_group_add_widget (GTK_SIZE_GROUP (gen->priv->labels), label);
@@ -176,6 +178,7 @@ add_label_row (GtkInspectorGeneral *gen,
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_BASELINE);
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
+ gtk_widget_set_hexpand (label, TRUE);
gtk_box_pack_start (GTK_BOX (box), label);
label = gtk_label_new (value);
@@ -189,6 +192,7 @@ add_label_row (GtkInspectorGeneral *gen,
gtk_container_add (GTK_CONTAINER (row), box);
gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE);
+ gtk_widget_set_hexpand (box, FALSE);
gtk_list_box_insert (GTK_LIST_BOX (list), row, -1);
gtk_size_group_add_widget (GTK_SIZE_GROUP (gen->priv->labels), label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]