aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-import.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-05-19 04:47:29 +0800
committerMilan Crha <mcrha@redhat.com>2010-05-19 04:47:29 +0800
commitef7690c3845e3c1cebcf3caba7f7667a10e7123d (patch)
treeab4a5bfa25bc5e25e0fed851c25226ce1930ec52 /e-util/e-import.c
parent0f92771be57383e5d6e7d0f3e05743d192066eb3 (diff)
downloadgsoc2013-evolution-ef7690c3845e3c1cebcf3caba7f7667a10e7123d.tar.gz
gsoc2013-evolution-ef7690c3845e3c1cebcf3caba7f7667a10e7123d.tar.zst
gsoc2013-evolution-ef7690c3845e3c1cebcf3caba7f7667a10e7123d.zip
Bug #499320 - Preview before import from command line
Diffstat (limited to 'e-util/e-import.c')
-rw-r--r--e-util/e-import.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/e-util/e-import.c b/e-util/e-import.c
index 4475344018..14485633c1 100644
--- a/e-util/e-import.c
+++ b/e-util/e-import.c
@@ -216,6 +216,32 @@ e_import_get_widget (EImport *import,
}
/**
+ * e_import_get_preview_widget:
+ * @import: an #EImport
+ * @target: Target of interest
+ * @im: Importer to get a preview widget of
+ *
+ * Gets a widget that the importer uses to preview data to be
+ * imported. This widget should be packed into a container
+ * widget. It should not be shown_all.
+ *
+ * Return value: NULL if the importer doesn't support preview.
+ **/
+GtkWidget *
+e_import_get_preview_widget (EImport *import,
+ EImportTarget *target,
+ EImportImporter *im)
+{
+ g_return_val_if_fail (im != NULL, NULL);
+ g_return_val_if_fail (target != NULL, NULL);
+
+ if (!im->get_preview)
+ return NULL;
+
+ return im->get_preview (import, target, im);
+}
+
+/**
* e_import_complete:
* @import: an #EImport
* @target: Target just completed (unused currently)