[network-manager-applet/lr-ethernet-dialog: 2/3] ethernet-dialog: put labels in a size group




commit 5c02423370c5b9ed6fe33efc7ba61432c25a489e
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Mon Oct 25 12:55:43 2021 +0200

    ethernet-dialog: put labels in a size group
    
    Otherwise they're not nicely aligned.

 src/8021x.ui          | 5 +++++
 src/ethernet-dialog.c | 3 +++
 2 files changed, 8 insertions(+)
---
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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]