Fixes NB#120415, cursor focus must be in the first entry in account wizard dialog
authorSergio Villar Senin <svillar@igalia.com>
Tue, 16 Jun 2009 08:02:52 +0000 (10:02 +0200)
committerSergio Villar Senin <svillar@igalia.com>
Tue, 16 Jun 2009 08:02:59 +0000 (10:02 +0200)
src/hildon2/modest-easysetup-wizard-dialog.c

index ff63170..6ffaa16 100644 (file)
@@ -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);
 }