From: Sergio Villar Senin Date: Tue, 16 Jun 2009 08:02:52 +0000 (+0200) Subject: Fixes NB#120415, cursor focus must be in the first entry in account wizard dialog X-Git-Tag: 3.0.17-rc16~24 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=d53abf89445104786e40bef8255f5855c1e28466 Fixes NB#120415, cursor focus must be in the first entry in account wizard dialog --- 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); }