summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2021-10-25 12:55:43 +0200
committerLubomir Rintel <lkundrak@v3.sk>2021-11-04 13:47:45 +0100
commit261465eceaf1a445f593e0ed3c871eb61b9bbb4f (patch)
treeafd27f4f778d8cc3b2af149000f2a66dd6b8256e
parentf975210c3e3fe871906857fa18bc402cd57e33bf (diff)
downloadnetwork-manager-applet-261465eceaf1a445f593e0ed3c871eb61b9bbb4f.tar.gz
ethernet-dialog: put labels in a size group
Otherwise they're not nicely aligned.
-rw-r--r--src/8021x.ui5
-rw-r--r--src/ethernet-dialog.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/8021x.ui b/src/8021x.ui
index e35d5188..75c8d94f 100644
--- a/src/8021x.ui
+++ b/src/8021x.ui
@@ -186,4 +186,9 @@
<action-widget response="-5">ok_button</action-widget>
</action-widgets>
</object>
+ <object class="GtkSizeGroup" id="size_group">
+ <widgets>
+ <widget name="network_name_label"/>
+ </widgets>
+ </object>
</interface>
diff --git a/src/ethernet-dialog.c b/src/ethernet-dialog.c
index 21e29565..c558542b 100644
--- a/src/ethernet-dialog.c
+++ b/src/ethernet-dialog.c
@@ -47,6 +47,9 @@ dialog_set_security (NMConnection *connection,
if (G_IS_INITIALLY_UNOWNED (ws))
g_object_ref_sink (ws);
+ nma_ws_add_to_size_group (NMA_WS (ws), GTK_SIZE_GROUP (
+ gtk_builder_get_object (builder, "size_group")));
+
/* Remove any previous wireless security widgets */
children = gtk_container_get_children (GTK_CONTAINER (box));
for (iter = children; iter; iter = iter->next)