[network-manager-applet/lr/vpn-scroll: 1/2] page-vpn: make sure the VPN page margins are consistent




commit 81f722138c0dadf5f7f7c6020f6d6680c7435dc7
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Mon Oct 25 16:22:14 2021 +0200

    page-vpn: make sure the VPN page margins are consistent
    
    Currently most VPN plugin widgets set their margins, but they shouldn't.
    Make sure we set them, so they can be fixed.

 src/connection-editor/page-vpn.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/connection-editor/page-vpn.c b/src/connection-editor/page-vpn.c
index 5b35172f..0eab8b62 100644
--- a/src/connection-editor/page-vpn.c
+++ b/src/connection-editor/page-vpn.c
@@ -60,6 +60,12 @@ finish_setup (CEPageVpn *self, gpointer user_data)
                g_warning ("Could not load VPN user interface for service '%s'.", priv->service_type);
                return;
        }
+
+       gtk_widget_set_margin_top (parent->page, 12);
+       gtk_widget_set_margin_bottom (parent->page, 12);
+       gtk_widget_set_margin_left (parent->page, 12);
+       gtk_widget_set_margin_right (parent->page, 12);
+
        g_object_ref_sink (parent->page);
        gtk_widget_show_all (parent->page);
 }


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