aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-actions.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-26 06:33:32 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-26 22:28:18 +0800
commitc30e55b2d5c2491076b1aace4f73ea0c642fba72 (patch)
treecc0fcf8fc86012d6996b8630b26421ec16f3e9dd /shell/e-shell-window-actions.c
parent1dff09f9e261caa623ee5475d05268955745f790 (diff)
downloadgsoc2013-evolution-c30e55b2d5c2491076b1aace4f73ea0c642fba72.tar.gz
gsoc2013-evolution-c30e55b2d5c2491076b1aace4f73ea0c642fba72.tar.zst
gsoc2013-evolution-c30e55b2d5c2491076b1aace4f73ea0c642fba72.zip
Convert the shell importer to a widget class.
Diffstat (limited to 'shell/e-shell-window-actions.c')
-rw-r--r--shell/e-shell-window-actions.c14
1 files changed, 13 insertions, 1 deletions
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);
}
/**