diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-23 11:21:04 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-23 11:21:04 +0800 |
commit | a63a9dbb82cddad30c25cec46df4220a94e6f296 (patch) | |
tree | 4031162b55e77a45a2439c78480e9826762b305b /shell/e-shell-window.c | |
parent | e0ffe55ce596c6319016004dfe3350b0d7cc762d (diff) | |
download | gsoc2013-evolution-a63a9dbb82cddad30c25cec46df4220a94e6f296.tar.gz 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-window.c')
-rw-r--r-- | shell/e-shell-window.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c index 2de5349ecf..30dd3e627e 100644 --- a/shell/e-shell-window.c +++ b/shell/e-shell-window.c @@ -45,12 +45,19 @@ shell_window_new_view (EShellWindow *shell_window, const gchar *title) { GHashTable *loaded_views; + EShell *shell; + EShellModule *shell_module; EShellView *shell_view; GtkNotebook *notebook; GtkAction *action; GtkWidget *widget; gint page_num; + /* First off, start the shell module. */ + shell = e_shell_window_get_shell (shell_window); + shell_module = e_shell_get_module_by_name (shell, view_name); + e_shell_module_start (shell_module); + /* Determine the page number for the new shell view. */ notebook = GTK_NOTEBOOK (shell_window->priv->content_notebook); |