aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree-model.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-12-03 01:50:38 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-12-03 01:50:38 +0800
commit8f446ab62628c20b9e745f2a9bcea520ab578b9d (patch)
tree54793330b3fc74ea3ecb4897cba357da4f6be893 /mail/em-folder-tree-model.h
parentf22ee6ae4a87bf23c1bfbe2daa5ddd2fc50e3d9e (diff)
downloadgsoc2013-evolution-8f446ab62628c20b9e745f2a9bcea520ab578b9d.tar.gz
gsoc2013-evolution-8f446ab62628c20b9e745f2a9bcea520ab578b9d.tar.zst
gsoc2013-evolution-8f446ab62628c20b9e745f2a9bcea520ab578b9d.zip
Fixed to pass the evolution dir into em_folder_tree_model_new().
2003-12-02 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (em_folder_tree_new): Fixed to pass the evolution dir into em_folder_tree_model_new(). (model_save_state): Removed. (em_folder_tree_save_state): Moved all the saving logic into em_folder_tree_model_save_expanded(). * em-folder-tree-model.c (em_folder_tree_model_new): Load the expanded state off disk. (em_folder_tree_model_save_expanded): New function to save expanded state. (em_folder_tree_model_get_expanded): new function to get if a node should be expanded. (em_folder_tree_model_set_expanded): new function to set the expanded state of a node. * mail-component.c (mail_component_init): Pass the evo dir to em_folder_tree_model_new() which now requires it. svn path=/trunk/; revision=23585
Diffstat (limited to 'mail/em-folder-tree-model.h')
-rw-r--r--mail/em-folder-tree-model.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/mail/em-folder-tree-model.h b/mail/em-folder-tree-model.h
index e8755f0578..f06591bfbd 100644
--- a/mail/em-folder-tree-model.h
+++ b/mail/em-folder-tree-model.h
@@ -78,9 +78,11 @@ struct _EMFolderTreeModelStoreInfo {
struct _EMFolderTreeModel {
GtkTreeStore parent_object;
+ char *filename; /* state filename */
+
GHashTable *store_hash; /* maps CamelStore's to store-info's */
GHashTable *uri_hash; /* maps URI's to GtkTreeRowReferences */
- GHashTable *expanded;
+ GHashTable *expanded; /* saved expanded state from previous session */
};
struct _EMFolderTreeModelClass {
@@ -107,7 +109,7 @@ struct _EMFolderTreeModelClass {
GType em_folder_tree_model_get_type (void);
-EMFolderTreeModel *em_folder_tree_model_new (void);
+EMFolderTreeModel *em_folder_tree_model_new (const char *evolution_dir);
void em_folder_tree_model_set_folder_info (EMFolderTreeModel *model, GtkTreeIter *iter,
@@ -119,6 +121,10 @@ void em_folder_tree_model_remove_store (EMFolderTreeModel *model, CamelStore *st
void em_folder_tree_model_remove_folders (EMFolderTreeModel *model, struct _EMFolderTreeModelStoreInfo *si,
GtkTreeIter *toplevel);
+gboolean em_folder_tree_model_get_expanded (EMFolderTreeModel *model, const char *key);
+void em_folder_tree_model_set_expanded (EMFolderTreeModel *model, const char *key, gboolean expanded);
+void em_folder_tree_model_save_expanded (EMFolderTreeModel *model);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */