diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-07-30 22:58:26 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-07-30 22:58:26 +0800 |
commit | 9085a5a18c23f894a0d29be73222ad7c55a03bf1 (patch) | |
tree | 7f2882617c1b44d523b6bba9d496ae218900d145 /shell/e-shell-utils.c | |
parent | 1d2a02b6581372e13a2162bef597fb93a6d163ab (diff) | |
download | gsoc2013-evolution-9085a5a18c23f894a0d29be73222ad7c55a03bf1.tar.gz gsoc2013-evolution-9085a5a18c23f894a0d29be73222ad7c55a03bf1.tar.zst gsoc2013-evolution-9085a5a18c23f894a0d29be73222ad7c55a03bf1.zip |
Remove unused 'preview' argument from e_import_assistant_new_simple().
We preview imported files by other means now.
Diffstat (limited to 'shell/e-shell-utils.c')
-rw-r--r-- | shell/e-shell-utils.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/shell/e-shell-utils.c b/shell/e-shell-utils.c index 1b19d17d7e..d47b88e174 100644 --- a/shell/e-shell-utils.c +++ b/shell/e-shell-utils.c @@ -303,13 +303,11 @@ exit: /** * e_shell_utils_import_uris: * @shell: The #EShell instance - * @uris: %NULL-terminated list of URIs to import or preview - * @preview: rather preview than import given URIs + * @uris: %NULL-terminated list of URIs to import * * Imports given URIs to Evolution, giving user a choice what to import * if more than one importer can be applied, and where to import it, if - * the importer itself is configurable. It can preview data, instead of - * importing if requested and the imported has that implemented. + * the importer itself is configurable. * * URIs should be either a filename or URI of form file://. * All others are skipped. @@ -317,7 +315,8 @@ exit: * Returns: the number of URIs successfully handled **/ guint -e_shell_utils_import_uris (EShell *shell, gchar **uris, gboolean preview) +e_shell_utils_import_uris (EShell *shell, + gchar **uris) { GtkWindow *parent; GtkWidget *assistant; @@ -326,7 +325,7 @@ e_shell_utils_import_uris (EShell *shell, gchar **uris, gboolean preview) g_return_val_if_fail (uris != NULL, 0); parent = e_shell_get_active_window (shell); - assistant = e_import_assistant_new_simple (parent, uris, preview); + assistant = e_import_assistant_new_simple (parent, uris); if (assistant) { g_signal_connect_after ( @@ -340,11 +339,8 @@ e_shell_utils_import_uris (EShell *shell, gchar **uris, gboolean preview) e_shell_watch_window (shell, GTK_WINDOW (assistant)); gtk_widget_show (assistant); - } else { - g_warning ( - "%s: Cannot %s any of the given URIs", - G_STRFUNC, preview ? "preview" : "import"); - } + } else + g_warning ("Cannot import any of the given URIs"); return g_strv_length (uris); } |