From 367997b01eeb26dc459d722171594c72263700d1 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 19 Jul 2020 11:35:56 +0200 Subject: [PATCH] PsppireImportAssistant: Proceed to next page when a file is double clicked --- src/ui/gui/psppire-import-assistant.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ui/gui/psppire-import-assistant.c b/src/ui/gui/psppire-import-assistant.c index 84de028c25..a968431d86 100644 --- a/src/ui/gui/psppire-import-assistant.c +++ b/src/ui/gui/psppire-import-assistant.c @@ -655,6 +655,11 @@ chooser_page_reset (PsppireImportAssistant *ia, GtkWidget *page) } +static void +on_file_activated (GtkFileChooser *chooser, PsppireImportAssistant *ia) +{ + gtk_assistant_next_page (GTK_ASSISTANT (ia)); +} static void chooser_page_create (PsppireImportAssistant *ia) @@ -663,6 +668,8 @@ chooser_page_create (PsppireImportAssistant *ia) GtkWidget *chooser = gtk_file_chooser_widget_new (GTK_FILE_CHOOSER_ACTION_OPEN); + g_signal_connect (chooser, "file-activated", G_CALLBACK (on_file_activated), ia); + g_object_set_data (G_OBJECT (chooser), "on-forward", chooser_page_leave); g_object_set_data (G_OBJECT (chooser), "on-reset", chooser_page_reset); g_object_set_data (G_OBJECT (chooser), "on-entering",chooser_page_enter); -- 2.30.2