aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-importer.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-04-03 00:34:02 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-04-03 00:34:02 +0800
commit460542ead17a5cadc2597cd37a071ef756a7dbb1 (patch)
treefc17ed9c1a02f6772fbbb760ec4775952068a56e /shell/e-shell-importer.c
parent0a0e1f2f03c47e3a3b1fa3e5e39924cfc803be8b (diff)
downloadgsoc2013-evolution-460542ead17a5cadc2597cd37a071ef756a7dbb1.tar
gsoc2013-evolution-460542ead17a5cadc2597cd37a071ef756a7dbb1.tar.gz
gsoc2013-evolution-460542ead17a5cadc2597cd37a071ef756a7dbb1.tar.bz2
gsoc2013-evolution-460542ead17a5cadc2597cd37a071ef756a7dbb1.tar.lz
gsoc2013-evolution-460542ead17a5cadc2597cd37a071ef756a7dbb1.tar.xz
gsoc2013-evolution-460542ead17a5cadc2597cd37a071ef756a7dbb1.tar.zst
gsoc2013-evolution-460542ead17a5cadc2597cd37a071ef756a7dbb1.zip
added "foldertype" argument to GNOME::Evolution::Importer.
2003-04-02 Rodrigo Moya <rodrigo@ximian.com> * importer/GNOME_Evolution_Importer.idl: * importer/evolution-importer.[ch]: added "foldertype" argument to GNOME::Evolution::Importer. * importer/evolution-importer-client.[ch] (evolution_importer_client_load_file): added "folder_type" argument and use it in the call to GNOME_Evolution_Importer_loadFile. * e-shell-importer.c (start_import): added "folder_type" argument and use it in the call to evolution_importer_client_load_file. (folder_selected): pass in the "folder_type" argument to start_import, svn path=/trunk/; revision=20643
Diffstat (limited to 'shell/e-shell-importer.c')
-rw-r--r--shell/e-shell-importer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/shell/e-shell-importer.c b/shell/e-shell-importer.c
index 638e8c5eff..a093d4dd4c 100644
--- a/shell/e-shell-importer.c
+++ b/shell/e-shell-importer.c
@@ -478,7 +478,8 @@ show_error (const char *message,
static void
start_import (const char *physical_uri,
const char *filename,
- const char *iid)
+ const char *iid,
+ const char *folder_type)
{
ImporterComponentData *icd;
char *label;
@@ -546,7 +547,7 @@ start_import (const char *physical_uri,
}
g_free (real_iid);
- if (evolution_importer_client_load_file (icd->client, filename, physical_uri) == FALSE) {
+ if (evolution_importer_client_load_file (icd->client, filename, physical_uri, folder_type) == FALSE) {
label = g_strdup_printf (_("Error loading %s"), filename);
show_error (label, _("Evolution Error"));
@@ -966,7 +967,7 @@ folder_selected (EShellFolderSelectionDialog *dialog,
gtk_widget_destroy (data->dialog);
gtk_widget_hide (GTK_WIDGET (dialog));
- start_import (e_folder_get_physical_uri (folder), filename, iid);
+ start_import (e_folder_get_physical_uri (folder), filename, iid, e_folder_get_type_string (folder));
g_free (iid);
g_free (filename);