diff options
author | Srinivasa Ragavan <sragavan@gnome.org> | 2010-04-30 13:21:54 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@gnome.org> | 2010-04-30 13:21:54 +0800 |
commit | cab50ae5116499b9ec40c8a0311c10c62f54f073 (patch) | |
tree | 2ac53c94d2a643569ee24478add844026e04464b /shell/e-shell-window-actions.c | |
parent | ac73bb166c4227a02c703697d906b78569ebadb1 (diff) | |
download | gsoc2013-evolution-cab50ae5116499b9ec40c8a0311c10c62f54f073.tar.gz gsoc2013-evolution-cab50ae5116499b9ec40c8a0311c10c62f54f073.tar.zst gsoc2013-evolution-cab50ae5116499b9ec40c8a0311c10c62f54f073.zip |
Add filter_page option for pref window so that we can show only required
preferences for calendar. Bit of a hack, but proves very useful.
Diffstat (limited to 'shell/e-shell-window-actions.c')
-rw-r--r-- | shell/e-shell-window-actions.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c index 2cb53c1a02..06fce0fe69 100644 --- a/shell/e-shell-window-actions.c +++ b/shell/e-shell-window-actions.c @@ -926,10 +926,17 @@ action_preferences_cb (GtkAction *action, shell_backend = e_shell_view_get_shell_backend (shell_view); shell_backend_class = E_SHELL_BACKEND_GET_CLASS (shell_backend); - if (shell_backend_class->preferences_page != NULL) - e_preferences_window_show_page ( - E_PREFERENCES_WINDOW (preferences_window), - shell_backend_class->preferences_page); + if (shell_backend_class->preferences_page != NULL) { + if (e_shell_get_express_mode (shell)) { + e_preferences_window_filter_page ( + E_PREFERENCES_WINDOW (preferences_window), + shell_backend_class->preferences_page); + } else { + e_preferences_window_show_page ( + E_PREFERENCES_WINDOW (preferences_window), + shell_backend_class->preferences_page); + } + } } /** |