X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpage-assistant.c;h=0920f6503ee6dd86f798240460004237f58382b3;hb=refs%2Fbuilds%2F20131105032650%2Fpspp;hp=e4f3375d2534b663eb15064d69023e9adff17339;hpb=2e4f9e9f04c812d39db0c247aa956af7aab8b102;p=pspp diff --git a/src/ui/gui/page-assistant.c b/src/ui/gui/page-assistant.c index e4f3375d25..0920f6503e 100644 --- a/src/ui/gui/page-assistant.c +++ b/src/ui/gui/page-assistant.c @@ -35,7 +35,6 @@ #include "libpspp/i18n.h" #include "libpspp/line-reader.h" #include "libpspp/message.h" -#include "ui/gui/checkbox-treeview.h" #include "ui/gui/dialog-common.h" #include "ui/gui/executor.h" #include "ui/gui/helper.h" @@ -46,7 +45,6 @@ #include "ui/gui/psppire-empty-list-store.h" #include "ui/gui/psppire-var-sheet.h" -#include "gl/error.h" #include "gl/intprops.h" #include "gl/xalloc.h" @@ -169,18 +167,33 @@ on_prepare (GtkAssistant *assistant, GtkWidget *page, } else { - if (pn == 0) - prepare_separators_page (ia); - else if (pn == 3) - prepare_formats_page (ia); + switch (pn) + { + case 0: + reset_intro_page (ia); + break; + case 1: + reset_first_line_page (ia); + break; + case 2: + prepare_separators_page (ia); + reset_separators_page (ia); + break; + case 3: + prepare_formats_page (ia); + reset_formats_page (ia); + break; + } } +#if GTK3_TRANSITION 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); +#endif } /* Called when the Cancel button in the assistant is clicked. */ @@ -206,15 +219,6 @@ on_paste (GtkButton *button, struct import_assistant *ia) close_assistant (ia, PSPPIRE_RESPONSE_PASTE); } -static GtkWidget * -assist_get_page (struct assist_page *ap) -{ - if (ap == NULL) - return NULL; - - return ap->page; -} - /* Called when the Reset button is clicked. */ static void on_reset (GtkButton *button, struct import_assistant *ia)