aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-module.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-02-23 11:21:04 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-02-23 11:21:04 +0800
commita63a9dbb82cddad30c25cec46df4220a94e6f296 (patch)
tree4031162b55e77a45a2439c78480e9826762b305b /shell/e-shell-module.h
parente0ffe55ce596c6319016004dfe3350b0d7cc762d (diff)
downloadgsoc2013-evolution-a63a9dbb82cddad30c25cec46df4220a94e6f296.tar
gsoc2013-evolution-a63a9dbb82cddad30c25cec46df4220a94e6f296.tar.gz
gsoc2013-evolution-a63a9dbb82cddad30c25cec46df4220a94e6f296.tar.bz2
gsoc2013-evolution-a63a9dbb82cddad30c25cec46df4220a94e6f296.tar.lz
gsoc2013-evolution-a63a9dbb82cddad30c25cec46df4220a94e6f296.tar.xz
gsoc2013-evolution-a63a9dbb82cddad30c25cec46df4220a94e6f296.tar.zst
gsoc2013-evolution-a63a9dbb82cddad30c25cec46df4220a94e6f296.zip
Make filter options for mail labels work again.
Define a new shell module method named start() that tells the module when to start loading data and running background tasks. Only really applies to the mail module right now since the others use evolution-data-server. Basically it prevents the mail module from loading and refreshing mail stores until you actually switch to the mail view. svn path=/branches/kill-bonobo/; revision=37309
Diffstat (limited to 'shell/e-shell-module.h')
-rw-r--r--shell/e-shell-module.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/shell/e-shell-module.h b/shell/e-shell-module.h
index 0f7016532d..4d6274bdf6 100644
--- a/shell/e-shell-module.h
+++ b/shell/e-shell-module.h
@@ -73,6 +73,12 @@ typedef struct _EShellModulePrivate EShellModulePrivate;
* @sort_order: Used to determine the order of modules listed in
* the main menu and in the switcher. See
* e_shell_module_compare().
+ * @start: Callback for notifying the module to begin loading data
+ * and running background tasks. This is called the first
+ * time the corresponding shell view class is instantiated.
+ * It allows the module to delay initialization steps that
+ * consume significant resources until they are actually
+ * needed.
* @is_busy: Callback for querying whether the module has
* operations in progress that cannot be cancelled
* or finished immediately. Returning %TRUE prevents
@@ -96,6 +102,7 @@ struct _EShellModuleInfo {
const gchar *schemes;
gint sort_order;
+ void (*start) (EShellModule *shell_module);
gboolean (*is_busy) (EShellModule *shell_module);
gboolean (*shutdown) (EShellModule *shell_module);
gboolean (*migrate) (EShellModule *shell_module,
@@ -133,6 +140,7 @@ GType e_shell_module_get_shell_view_type
(EShellModule *shell_module);
void e_shell_module_add_activity (EShellModule *shell_module,
EActivity *activity);
+void e_shell_module_start (EShellModule *shell_module);
gboolean e_shell_module_is_busy (EShellModule *shell_module);
gboolean e_shell_module_shutdown (EShellModule *shell_module);
gboolean e_shell_module_migrate (EShellModule *shell_module,