From: John Darrington Date: Sun, 19 Jul 2020 09:35:56 +0000 (+0200) Subject: PsppireImportAssistant: Proceed to next page when a file is double clicked X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=367997b01eeb26dc459d722171594c72263700d1;p=pspp PsppireImportAssistant: Proceed to next page when a file is double clicked --- 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);