[network-manager-applet] editor: sort the secondary VPN list



commit c5d36950e4bfaf35d6ff6df53c7eab2974b891f2
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Fri Sep 20 15:46:58 2019 +0200

    editor: sort the secondary VPN list
    
    https://gitlab.gnome.org/GNOME/network-manager-applet/issues/67
    https://gitlab.gnome.org/GNOME/network-manager-applet/merge_requests/63

 src/connection-editor/page-general.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/connection-editor/page-general.c b/src/connection-editor/page-general.c
index fcc6a641..b91cb90b 100644
--- a/src/connection-editor/page-general.c
+++ b/src/connection-editor/page-general.c
@@ -150,6 +150,8 @@ general_private_init (CEPageGeneral *self)
        priv->dependent_vpn_checkbox = GTK_TOGGLE_BUTTON (gtk_builder_get_object (builder, 
"dependent_vpn_checkbox"));
        priv->dependent_vpn = GTK_COMBO_BOX (gtk_builder_get_object (builder, "dependent_vpn_combo"));
        priv->dependent_vpn_store = GTK_LIST_STORE (gtk_builder_get_object (builder, "dependent_vpn_model"));
+       gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (priv->dependent_vpn_store), 0,
+                                             GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID);
 
        priv->autoconnect = GTK_WIDGET (gtk_builder_get_object (builder, "connection_autoconnect"));
        priv->autoconnect_prio = GTK_SPIN_BUTTON (gtk_builder_get_object (builder, "autoconnect_prio"));


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