aboutsummaryrefslogtreecommitdiffstats
path: root/importers/pine-importer.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-08-30 06:14:02 +0800
committerIain Holmes <iain@src.gnome.org>2001-08-30 06:14:02 +0800
commit8d8d02da690396538a009e4caf67ea6e4cfa8a95 (patch)
tree7e6555a595963d76df0e1c5c97dde07b1d535ce6 /importers/pine-importer.c
parenta036c22b744939540ce776e76826f215cf7d81a2 (diff)
downloadgsoc2013-evolution-8d8d02da690396538a009e4caf67ea6e4cfa8a95.tar
gsoc2013-evolution-8d8d02da690396538a009e4caf67ea6e4cfa8a95.tar.gz
gsoc2013-evolution-8d8d02da690396538a009e4caf67ea6e4cfa8a95.tar.bz2
gsoc2013-evolution-8d8d02da690396538a009e4caf67ea6e4cfa8a95.tar.lz
gsoc2013-evolution-8d8d02da690396538a009e4caf67ea6e4cfa8a95.tar.xz
gsoc2013-evolution-8d8d02da690396538a009e4caf67ea6e4cfa8a95.tar.zst
gsoc2013-evolution-8d8d02da690396538a009e4caf67ea6e4cfa8a95.zip
Importer changes
svn path=/trunk/; revision=12521
Diffstat (limited to 'importers/pine-importer.c')
-rw-r--r--importers/pine-importer.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/importers/pine-importer.c b/importers/pine-importer.c
index e483b1a5d6..a6ca9a4f17 100644
--- a/importers/pine-importer.c
+++ b/importers/pine-importer.c
@@ -332,6 +332,21 @@ import_addressbook (PineImporter *importer)
g_free (uri);
}
+static gboolean
+importer_timeout_fn (gpointer data)
+{
+ PineImporter *importer = (PineImporter *) data;
+ CORBA_Object objref;
+ CORBA_Environment ev;
+
+ CORBA_exception_init (&ev);
+ objref = bonobo_object_corba_objref (BONOBO_OBJECT (importer->listener));
+ GNOME_Evolution_Importer_processItem (importer->importer, objref, &ev);
+ CORBA_exception_free (&ev);
+
+ return FALSE;
+}
+
static void
importer_cb (EvolutionImporterListener *listener,
EvolutionImporterResult result,
@@ -342,6 +357,12 @@ importer_cb (EvolutionImporterListener *listener,
CORBA_Object objref;
CORBA_Environment ev;
+ if (result == EVOLUTION_IMPORTER_NOT_READY ||
+ result == EVOLUTION_IMPORTER_BUSY) {
+ gtk_timeout_add (5000, importer_timeout_fn, data);
+ return;
+ }
+
if (more_items) {
CORBA_exception_init (&ev);
objref = bonobo_object_corba_objref (BONOBO_OBJECT (importer->listener));
@@ -380,7 +401,7 @@ pine_import_file (PineImporter *importer,
result = GNOME_Evolution_Importer_loadFile (importer->importer, path,
folderpath, &ev);
if (ev._major != CORBA_NO_EXCEPTION || result == FALSE) {
- g_warning ("Exception here: %s", CORBA_exception_id (&ev));
+ g_warning ("Exception here: %s\n%s, %s", CORBA_exception_id (&ev), path, folderpath);
CORBA_Object_release (importer->importer, &ev);
CORBA_exception_free (&ev);
return FALSE;