From d6ce8bf42e14d85c0e16c7462f46b98a2d96072e Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Tue, 10 Feb 2009 12:15:38 +0000 Subject: [PATCH] Properly set focus in test plugin settings (fixes NB#101213). pmo-trunk-r7441 --- src/hildon2/modest-easysetup-wizard-dialog.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hildon2/modest-easysetup-wizard-dialog.c b/src/hildon2/modest-easysetup-wizard-dialog.c index 9f1040f..030df27 100644 --- a/src/hildon2/modest-easysetup-wizard-dialog.c +++ b/src/hildon2/modest-easysetup-wizard-dialog.c @@ -1467,6 +1467,7 @@ create_subsequent_pages (ModestEasysetupWizardDialog *self) proto_type != priv->last_plugin_protocol_selected) { ModestPairList *tabs; GSList *tmp; + gboolean first_page = TRUE; /* Remember the last selected plugin protocol */ priv->last_plugin_protocol_selected = proto_type; @@ -1479,6 +1480,11 @@ create_subsequent_pages (ModestEasysetupWizardDialog *self) modest_easysetup_wizard_dialog_append_page (notebook, GTK_WIDGET (pair->second), (const gchar *) pair->first); + if (first_page) { + gtk_container_set_focus_child (GTK_CONTAINER (notebook), + GTK_WIDGET (pair->second)); + first_page = FALSE; + } /* Connect signals */ priv->missing_data_signals = -- 1.7.9.5