From: John Darrington Date: Tue, 24 Mar 2009 11:17:09 +0000 (+0900) Subject: Set the text import dialog's default button. X-Git-Tag: v0.7.3~203 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee125610ee16ec11d9374c1eafd7e8f77d9a870c;p=pspp-builds.git Set the text import dialog's default button. Grab the focus of the appropriate button of the text import dialog, when a new page is prepared. This makes it much easier to use without a mouse. --- diff --git a/src/ui/gui/text-data-import-dialog.c b/src/ui/gui/text-data-import-dialog.c index 2cecd548..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)