From: Jose Dapena Paz Date: Tue, 10 Feb 2009 12:15:38 +0000 (+0000) Subject: Properly set focus in test plugin settings (fixes NB#101213). X-Git-Tag: git_migration_finished~626 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=d6ce8bf42e14d85c0e16c7462f46b98a2d96072e Properly set focus in test plugin settings (fixes NB#101213). pmo-trunk-r7441 --- 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 =