[NetworkManager-libreswan/lr/gtk-4.0: 2/7] editor: remove an useless size group




commit bfc37121853267efda44d461fef47ad4f9462ac1
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Tue Oct 19 16:59:33 2021 +0200

    editor: remove an useless size group
    
    The labels are in a size group declared in the GtkBuilder file, which is
    sufficient for good alignment.

 properties/nm-libreswan-editor.c | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/properties/nm-libreswan-editor.c b/properties/nm-libreswan-editor.c
index cdfbe15..ea58ba2 100644
--- a/properties/nm-libreswan-editor.c
+++ b/properties/nm-libreswan-editor.c
@@ -160,7 +160,6 @@ setup_password_widget (LibreswanEditor *self,
 
        widget = (GtkWidget *) gtk_builder_get_object (priv->builder, entry_name);
        g_assert (widget);
-       gtk_size_group_add_widget (priv->group, widget);
 
        if (s_vpn) {
                value = nm_setting_vpn_get_secret (s_vpn, secret_name);
@@ -299,8 +298,6 @@ init_widget (LibreswanEditor *self,
        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, widget_name));
        g_return_val_if_fail (widget, FALSE);
 
-       if (GTK_IS_ENTRY (widget))
-               gtk_size_group_add_widget (priv->group, GTK_WIDGET (widget));
        if (s_vpn) {
                value = nm_setting_vpn_get_data_item (s_vpn, key_name);
                if (!value && alt_key_name)
@@ -345,11 +342,8 @@ init_editor_plugin (LibreswanEditor *self,
 
        s_vpn = nm_connection_get_setting_vpn (connection);
 
-       priv->group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
-
        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "type_combo"));
        g_return_val_if_fail (widget != NULL, FALSE);
-       gtk_size_group_add_widget (priv->group, GTK_WIDGET (widget));
        if (!new_connection && s_vpn) {
                const char *ikev2;
 
@@ -744,9 +738,6 @@ dispose (GObject *object)
                                              (GCallback) password_storage_changed_cb,
                                              plugin);
 
-       if (priv->group)
-               g_object_unref (priv->group);
-
        if (priv->widget)
                g_object_unref (priv->widget);
 


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