summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2021-10-25 12:55:43 +0200
committerLubomir Rintel <lkundrak@v3.sk>2021-10-25 13:26:47 +0200
commit3506019a2c05fcd1c75c7ec32ab12a58a53fe872 (patch)
treeffce06afcc08b4cab0d6f514a7f875088439ac5c
parent06a55cb8ba3e7caf8da9c3751aa0050de0213fdf (diff)
downloadnetwork-manager-applet-3506019a2c05fcd1c75c7ec32ab12a58a53fe872.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)