diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-11-14 03:02:07 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-11-14 03:02:07 +0800 |
commit | fd244132adb4225b6982422632bd69bc57b4e589 (patch) | |
tree | e6f706c7bb025b7bd90498aa3a6517924955a6a7 /mail/em-folder-tree.h | |
parent | 4e093efda9886a3c51cdefd3fc236807a34e11f9 (diff) | |
download | gsoc2013-evolution-fd244132adb4225b6982422632bd69bc57b4e589.tar.gz gsoc2013-evolution-fd244132adb4225b6982422632bd69bc57b4e589.tar.zst gsoc2013-evolution-fd244132adb4225b6982422632bd69bc57b4e589.zip |
New folder-tree widget that replaces the shell's folder-tree widget.
2003-11-13 Jeffrey Stedfast <fejj@ximian.com>
* em-folder-tree.[c,h]: New folder-tree widget that replaces the
shell's folder-tree widget.
* em-folder-tree-model.[c,h]: New source files subclassing
GtkTreeStore for handling the mess that is drag&drop.
* em-folder-selection-button.c: Ported to use EMFolderTree.
* em-folder-selection.c: Ported to use EMFolderTree.
* em-folder-selector.c: Ported to use EMFolderTree.
* mail-component.c: Ported to use EMFolderTree.
* mail-offline-handler.c (storage_go_online): Updated to not pass
a storage argument.
* mail-folder-cache.c: Removed storage stuff.
* mail-send-recv.c (receive_update_got_store): Don't do EStorage*
stuff anymore.
svn path=/trunk/; revision=23331
Diffstat (limited to 'mail/em-folder-tree.h')
-rw-r--r-- | mail/em-folder-tree.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/mail/em-folder-tree.h b/mail/em-folder-tree.h index 7a5ce72cc3..938813b34a 100644 --- a/mail/em-folder-tree.h +++ b/mail/em-folder-tree.h @@ -27,6 +27,8 @@ #include <gtk/gtkvbox.h> #include <camel/camel-store.h> +#include "em-folder-tree-model.h" + #ifdef __cplusplus extern "C" { #pragma } @@ -51,15 +53,22 @@ struct _EMFolderTree { struct _EMFolderTreeClass { GtkVBoxClass parent_class; + /* signals */ + void (* folder_selected) (EMFolderTree *emft, const char *path, const char *uri); }; GType em_folder_tree_get_type (void); GtkWidget *em_folder_tree_new (void); +GtkWidget *em_folder_tree_new_with_model (EMFolderTreeModel *model); + +void em_folder_tree_add_store (EMFolderTree *emft, CamelStore *store, const char *display_name); +void em_folder_tree_remove_store (EMFolderTree *emft, CamelStore *store); -void em_folder_tree_add_store (EMFolderTree *tree, CamelStore *store, const char *display_name); -void em_folder_tree_remove_store (EMFolderTree *tree, CamelStore *store); +void em_folder_tree_set_selected (EMFolderTree *emft, const char *uri); +const char *em_folder_tree_get_selected_uri (EMFolderTree *emft); +const char *em_folder_tree_get_selected_path (EMFolderTree *emft); #ifdef __cplusplus } |