From c30e55b2d5c2491076b1aace4f73ea0c642fba72 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 25 Sep 2009 18:33:32 -0400 Subject: Convert the shell importer to a widget class. --- shell/e-shell-window-actions.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'shell/e-shell-window-actions.c') diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c index 8d74ae97de..7ded180449 100644 --- a/shell/e-shell-window-actions.c +++ b/shell/e-shell-window-actions.c @@ -838,7 +838,19 @@ static void action_import_cb (GtkAction *action, EShellWindow *shell_window) { - e_shell_importer_start_import (); + GtkWidget *importer; + + importer = e_shell_importer_new (GTK_WINDOW (shell_window)); + + g_signal_connect ( + importer, "cancel", + G_CALLBACK (gtk_widget_destroy), NULL); + + g_signal_connect ( + importer, "finished", + G_CALLBACK (gtk_widget_destroy), NULL); + + gtk_widget_show (importer); } /** -- cgit v1.2.3