[anjal] API to make delete/junk work.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjal] API to make delete/junk work.
- Date: Sun, 22 Mar 2009 07:33:12 -0400 (EDT)
commit 2022873bef137cb817f5daa220ab5767856d5c91
Author: Srinivasa Ragavan <sragavan novell com>
Date: Sun Mar 22 17:04:15 2009 +0530
API to make delete/junk work.
---
src/em-tree-store.c | 11 +++++++++++
src/em-tree-store.h | 1 +
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/em-tree-store.c b/src/em-tree-store.c
index 7669df5..7589c51 100644
--- a/src/em-tree-store.c
+++ b/src/em-tree-store.c
@@ -1290,3 +1290,14 @@ em_tree_store_get_child_sorted_tree (EMTreeStore *emts, GtkTreeIter *iter)
return nodes;
}
+
+CamelMessageInfo *
+em_tree_store_get_info_from_path_string (EMTreeStore *emts, const char *path)
+{
+ GtkTreeIter iter;
+ EMTreeNode *node;
+ gtk_tree_model_get_iter_from_string (emts, &iter, path);
+ node = iter.user_data;
+
+ return node->info;
+}
diff --git a/src/em-tree-store.h b/src/em-tree-store.h
index 830bd2f..f4a033b 100644
--- a/src/em-tree-store.h
+++ b/src/em-tree-store.h
@@ -109,4 +109,5 @@ int em_tree_store_get_iter(EMTreeStore *store, struct _GtkTreeIter *iter, const
time_t em_tree_store_thread_time (EMTreeStore *emts, const char *uid);
int em_tree_store_count_children (EMTreeStore *emts, GtkTreeIter *iter);
GPtrArray * em_tree_store_get_child_sorted_tree (EMTreeStore *emts, GtkTreeIter *iter);
+CamelMessageInfo * em_tree_store_get_info_from_path_string (EMTreeStore *emts, const char *path);
#endif /* _EM_TREE_STORE_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]