[network-manager-applet] connection-editor: when opening an editor, start on page 2



commit 72471da00e0d4fb54c9aea5ce779a924c8040fd9
Author: Dan Winship <danw gnome org>
Date:   Thu Nov 1 16:03:13 2012 -0400

    connection-editor: when opening an editor, start on page 2
    
    ie, show the connection-type-specific data ("Wired", etc), not the
    "General" page (which hopefully has the correct defaults anyway).

 src/connection-editor/nm-connection-editor.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/connection-editor/nm-connection-editor.c b/src/connection-editor/nm-connection-editor.c
index 666149d..0b99566 100644
--- a/src/connection-editor/nm-connection-editor.c
+++ b/src/connection-editor/nm-connection-editor.c
@@ -589,6 +589,8 @@ idle_validate (gpointer user_data)
 static void
 recheck_initialization (NMConnectionEditor *editor)
 {
+	GtkNotebook *notebook;
+
 	if (!editor_is_initialized (editor) || editor->init_run)
 		return;
 
@@ -596,6 +598,10 @@ recheck_initialization (NMConnectionEditor *editor)
 
 	populate_connection_ui (editor);
 
+	/* Show the second page (the connection-type-specific data) first */
+	notebook = GTK_NOTEBOOK (gtk_builder_get_object (editor->builder, "notebook"));
+	gtk_notebook_set_current_page (notebook, 1);
+
 	/* When everything is initialized, re-present the window to ensure it's on top */
 	nm_connection_editor_present (editor);
 



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