diff options
author | Milan Crha <mcrha@redhat.com> | 2009-11-12 19:32:06 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-11-12 19:32:06 +0800 |
commit | 13d07fdb631a6c2157d9650649ee612c05ff5b57 (patch) | |
tree | 4c1fdfb4346dce80728512998f4be81cc5bcd3c4 /shell/main.c | |
parent | 12a23558d0f34c7dc84a81e50c8cf71535f2416b (diff) | |
download | gsoc2013-evolution-13d07fdb631a6c2157d9650649ee612c05ff5b57.tar.gz gsoc2013-evolution-13d07fdb631a6c2157d9650649ee612c05ff5b57.tar.zst gsoc2013-evolution-13d07fdb631a6c2157d9650649ee612c05ff5b57.zip |
Bug #588093 - Allow import of local files from command line
Diffstat (limited to 'shell/main.c')
-rw-r--r-- | shell/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/main.c b/shell/main.c index cb7cee4f59..42b1fbcf11 100644 --- a/shell/main.c +++ b/shell/main.c @@ -88,6 +88,7 @@ static gboolean force_migrate = FALSE; #endif static gboolean disable_eplugin = FALSE; static gboolean disable_preview = FALSE; +static gboolean import_uris = FALSE; static gboolean idle_cb (gchar **uris); static gchar *requested_view = NULL; @@ -238,7 +239,7 @@ idle_cb (gchar **uris) /* These calls do the right thing when another Evolution * process is running. */ if (uris != NULL && *uris != NULL) { - if (e_shell_handle_uris (shell, uris) == 0) + if (e_shell_handle_uris (shell, uris, import_uris) == 0) gtk_main_quit (); } else e_shell_create_shell_window (shell, requested_view); @@ -330,6 +331,8 @@ static GOptionEntry entries[] = { N_("Disable preview pane of Mail, Contacts and Tasks."), NULL }, { "setup-only", '\0', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &setup_only, NULL, NULL }, + { "import", 'i', 0, G_OPTION_ARG_NONE, &import_uris, + N_("Import URIs or file names given as rest of arguments."), NULL }, { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, &remaining_args, NULL, NULL }, { NULL } }; |