diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-11-15 01:29:06 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-11-15 01:29:06 +0800 |
commit | d9a3bd550f45df85d896a695596e57bb57b1177d (patch) | |
tree | 74f20936011a030a5386738f070c0186ddaa2196 /mail/em-folder-tree-model.h | |
parent | 02031fc95a8670ccda4e51ef003473d494e15d05 (diff) | |
download | gsoc2013-evolution-d9a3bd550f45df85d896a695596e57bb57b1177d.tar.gz gsoc2013-evolution-d9a3bd550f45df85d896a695596e57bb57b1177d.tar.zst gsoc2013-evolution-d9a3bd550f45df85d896a695596e57bb57b1177d.zip |
Only set OK to sensitive if the selected node is not a store node.
2003-11-14 Jeffrey Stedfast <fejj@ximian.com>
* em-folder-selection.c (folder_selected_cb): Only set OK to
sensitive if the selected node is not a store node.
* em-folder-tree-model.c: Moved the store_hash and uri_hash from
EMFolderTreePrivate into here instead.
* em-folder-tree.c: Updated for above changes.
svn path=/trunk/; revision=23355
Diffstat (limited to 'mail/em-folder-tree-model.h')
-rw-r--r-- | mail/em-folder-tree-model.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mail/em-folder-tree-model.h b/mail/em-folder-tree-model.h index c52509ad63..3d928a2ef5 100644 --- a/mail/em-folder-tree-model.h +++ b/mail/em-folder-tree-model.h @@ -27,6 +27,8 @@ #include <gtk/gtktreednd.h> #include <gtk/gtktreestore.h> +#include <camel/camel-store.h> + #ifdef __cplusplus extern "C" { #pragma } @@ -41,10 +43,27 @@ extern "C" { typedef struct _EMFolderTreeModel EMFolderTreeModel; typedef struct _EMFolderTreeModelClass EMFolderTreeModelClass; +typedef struct _EMFolderTreeModelStoreInfo EMFolderTreeModelStoreInfo; + +struct _EMFolderTreeModelStoreInfo { + CamelStore *store; + GtkTreeRowReference *row; + GHashTable *path_hash; /* maps CamelFolderInfo::path's to GtkTreeRowReferences */ + + char *display_name; + + unsigned int created_id; + unsigned int deleted_id; + unsigned int renamed_id; + unsigned int subscribed_id; + unsigned int unsubscribed_id; +}; struct _EMFolderTreeModel { GtkTreeStore parent_object; + GHashTable *store_hash; /* maps CamelStore's to store-info's */ + GHashTable *uri_hash; /* maps URI's to GtkTreeRowReferences */ }; struct _EMFolderTreeModelClass { @@ -74,6 +93,9 @@ GType em_folder_tree_model_get_type (void); EMFolderTreeModel *em_folder_tree_model_new (int n_columns, GType *types); +void em_folder_tree_model_remove_uri (EMFolderTreeModel *model, const char *uri); +void em_folder_tree_model_remove_store_info (EMFolderTreeModel *model, CamelStore *store); + #ifdef __cplusplus } #endif /* __cplusplus */ |