X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Ftext-data-import-dialog.c;h=79f77627cf5b9d5b6f2c136e64c46ffd005dfc90;hb=ae1be0785be76a86b0d0ace1ec820c2a4f3e313d;hp=9c288ad5148bd2af7695c2e0173613360e2c91f0;hpb=df83cf8a655317445e3237457658bd827282f970;p=pspp-builds.git diff --git a/src/ui/gui/text-data-import-dialog.c b/src/ui/gui/text-data-import-dialog.c index 9c288ad5..79f77627 100644 --- a/src/ui/gui/text-data-import-dialog.c +++ b/src/ui/gui/text-data-import-dialog.c @@ -649,6 +649,13 @@ static void on_prepare (GtkAssistant *assistant, GtkWidget *page, struct import_assistant *ia) { + + if (gtk_assistant_get_page_type (assistant, page) + == GTK_ASSISTANT_PAGE_CONFIRM) + gtk_widget_grab_focus (assistant->apply); + else + gtk_widget_grab_focus (assistant->forward); + if (page == ia->separators.page) prepare_separators_page (ia); else if (page == ia->formats.page) @@ -1628,7 +1635,7 @@ prepare_formats_page (struct import_assistant *ia) (void *) NULL); var_sheet = PSPPIRE_VAR_SHEET (psppire_var_sheet_new ()); g_object_set (var_sheet, - "dictionary", var_store, + "model", var_store, "may-create-vars", FALSE, (void *) NULL);