[network-manager-applet: 1/2] editor: fix vpn tree sort parameters




commit 8183932d985e4ca7c17bafb2cbaddb1ed5d5d6b8
Author: Joe Bauser <coderjoe coderjoe net>
Date:   Thu Jul 8 23:16:08 2021 -0400

    editor: fix vpn tree sort parameters
    
    The call to gtk_tree_sortable_set_sort_column_id expects a column ID
    followed by a GtkSortType, but at some point the argument enumerations
    seem to have been mixed up. Corrected through the use of the appropriate
    constant for sort ordering.
    
    Relates to: #132

 src/connection-editor/page-general.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/connection-editor/page-general.c b/src/connection-editor/page-general.c
index 794407d6..40e48961 100644
--- a/src/connection-editor/page-general.c
+++ b/src/connection-editor/page-general.c
@@ -149,8 +149,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);
+       gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (priv->dependent_vpn_store), COL_ID,
+                                             GTK_SORT_ASCENDING);
 
        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]