From d53abf89445104786e40bef8255f5855c1e28466 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Tue, 16 Jun 2009 10:02:52 +0200 Subject: [PATCH] Fixes NB#120415, cursor focus must be in the first entry in account wizard dialog --- src/hildon2/modest-easysetup-wizard-dialog.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hildon2/modest-easysetup-wizard-dialog.c b/src/hildon2/modest-easysetup-wizard-dialog.c index ff63170..6ffaa16 100644 --- a/src/hildon2/modest-easysetup-wizard-dialog.c +++ b/src/hildon2/modest-easysetup-wizard-dialog.c @@ -1346,11 +1346,15 @@ modest_easysetup_wizard_dialog_append_page (GtkNotebook *notebook, const gchar *label) { gint index; + /* Append page and set attributes */ index = gtk_notebook_append_page (notebook, page, gtk_label_new (label)); gtk_container_child_set (GTK_CONTAINER (notebook), page, "tab-expand", TRUE, "tab-fill", TRUE, NULL); + + /* Give focus to page and show it */ + gtk_container_set_focus_child (GTK_CONTAINER (notebook), page); gtk_widget_show (page); } -- 1.7.9.5