aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-13 04:16:20 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-13 04:16:20 +0800
commitabb6b433052b9c32762dbfb8233aaff7799f736a (patch)
tree42cdb6fc8f34b356a826a17431a2571a35b81ef2 /mail/em-folder-tree.h
parent32b1aabf2d93d65de696066395ae004a91b83109 (diff)
downloadgsoc2013-evolution-abb6b433052b9c32762dbfb8233aaff7799f736a.tar.gz
gsoc2013-evolution-abb6b433052b9c32762dbfb8233aaff7799f736a.tar.zst
gsoc2013-evolution-abb6b433052b9c32762dbfb8233aaff7799f736a.zip
EMFolderTree code cleanup.
Diffstat (limited to 'mail/em-folder-tree.h')
-rw-r--r--mail/em-folder-tree.h66
1 files changed, 41 insertions, 25 deletions
diff --git a/mail/em-folder-tree.h b/mail/em-folder-tree.h
index 74b79d37ee..453e40763c 100644
--- a/mail/em-folder-tree.h
+++ b/mail/em-folder-tree.h
@@ -60,10 +60,13 @@ typedef struct _EMFolderTreePrivate EMFolderTreePrivate;
#define EMFT_EXCLUDE_SYSTEM CAMEL_FOLDER_SYSTEM
#define EMFT_EXCLUDE_VTRASH CAMEL_FOLDER_VTRASH
-typedef gboolean (*EMFTExcludeFunc)(EMFolderTree *emft, GtkTreeModel *model, GtkTreeIter *iter, gpointer data);
+typedef gboolean (*EMFTExcludeFunc) (EMFolderTree *folder_tree,
+ GtkTreeModel *model,
+ GtkTreeIter *iter,
+ gpointer user_data);
struct _EMFolderTree {
- GtkTreeView parent_object;
+ GtkTreeView parent;
EMFolderTreePrivate *priv;
};
@@ -71,38 +74,51 @@ struct _EMFolderTreeClass {
GtkTreeViewClass parent_class;
/* signals */
- void (*folder_activated) (EMFolderTree *emft,
+ void (*folder_activated) (EMFolderTree *folder_tree,
const gchar *full_name,
const gchar *uri);
- void (*folder_selected) (EMFolderTree *emft,
+ void (*folder_selected) (EMFolderTree *folder_tree,
const gchar *full_name,
const gchar *uri,
guint32 flags);
- void (*popup_event) (EMFolderTree *emft);
+ void (*popup_event) (EMFolderTree *folder_tree);
};
GType em_folder_tree_get_type (void);
GtkWidget * em_folder_tree_new (void);
-
-void em_folder_tree_enable_drag_and_drop (EMFolderTree *emft);
-
-void em_folder_tree_set_excluded(EMFolderTree *emft, guint32 flags);
-void em_folder_tree_set_excluded_func(EMFolderTree *emft, EMFTExcludeFunc exclude, gpointer data);
-
-void em_folder_tree_set_selected_list (EMFolderTree *emft, GList *list, gboolean expand_only);
-GList *em_folder_tree_get_selected_uris (EMFolderTree *emft);
-GList *em_folder_tree_get_selected_paths (EMFolderTree *emft);
-
-void em_folder_tree_set_selected (EMFolderTree *emft, const gchar *uri, gboolean expand_only);
-void em_folder_tree_select_next_path (EMFolderTree *emft, gboolean skip_read_folders);
-void em_folder_tree_select_prev_path (EMFolderTree *emft, gboolean skip_read_folders);
-gchar *em_folder_tree_get_selected_uri (EMFolderTree *emft);
-gchar *em_folder_tree_get_selected_path (EMFolderTree *emft);
-CamelFolder *em_folder_tree_get_selected_folder (EMFolderTree *emft);
-CamelFolderInfo *em_folder_tree_get_selected_folder_info (EMFolderTree *emft);
-
-gboolean em_folder_tree_create_folder (EMFolderTree *emft, const gchar *full_name, const gchar *uri);
-void em_folder_tree_set_skip_double_click (EMFolderTree *emft, gboolean skip);
+void em_folder_tree_enable_drag_and_drop
+ (EMFolderTree *folder_tree);
+void em_folder_tree_set_excluded (EMFolderTree *folder_tree,
+ guint32 flags);
+void em_folder_tree_set_excluded_func(EMFolderTree *folder_tree,
+ EMFTExcludeFunc exclude,
+ gpointer data);
+void em_folder_tree_set_selected_list(EMFolderTree *folder_tree,
+ GList *list,
+ gboolean expand_only);
+GList * em_folder_tree_get_selected_uris(EMFolderTree *folder_tree);
+GList * em_folder_tree_get_selected_paths
+ (EMFolderTree *folder_tree);
+void em_folder_tree_set_selected (EMFolderTree *folder_tree,
+ const gchar *uri,
+ gboolean expand_only);
+void em_folder_tree_select_next_path (EMFolderTree *folder_tree,
+ gboolean skip_read_folders);
+void em_folder_tree_select_prev_path (EMFolderTree *folder_tree,
+ gboolean skip_read_folders);
+gchar * em_folder_tree_get_selected_uri (EMFolderTree *folder_tree);
+gchar * em_folder_tree_get_selected_path(EMFolderTree *folder_tree);
+CamelFolder * em_folder_tree_get_selected_folder
+ (EMFolderTree *folder_tree);
+CamelFolderInfo *
+ em_folder_tree_get_selected_folder_info
+ (EMFolderTree *folder_tree);
+gboolean em_folder_tree_create_folder (EMFolderTree *folder_tree,
+ const gchar *full_name,
+ const gchar *uri);
+void em_folder_tree_set_skip_double_click
+ (EMFolderTree *folder_tree,
+ gboolean skip);
G_END_DECLS