diff options
author | Milan Crha <mcrha@redhat.com> | 2012-01-11 22:59:25 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-01-11 22:59:25 +0800 |
commit | d0f2c46a1cf7bbbfc56b1f9e835756cdf542ac75 (patch) | |
tree | 285a58f0ecc2ba6523072c1256470b1e04f3fb4c /shell | |
parent | dd49067b2acfb72419f97a0348dc2524c3bbf56e (diff) | |
download | gsoc2013-evolution-d0f2c46a1cf7bbbfc56b1f9e835756cdf542ac75.tar.gz gsoc2013-evolution-d0f2c46a1cf7bbbfc56b1f9e835756cdf542ac75.tar.zst gsoc2013-evolution-d0f2c46a1cf7bbbfc56b1f9e835756cdf542ac75.zip |
Do not auto-mark-as-seen when changing filter type
Diffstat (limited to 'shell')
-rw-r--r-- | shell/e-shell-view.c | 16 | ||||
-rw-r--r-- | shell/e-shell-view.h | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 89ac929160..5d7669cc9c 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -1676,7 +1676,7 @@ e_shell_view_execute_search (EShellView *shell_view) { g_return_if_fail (E_IS_SHELL_VIEW (shell_view)); - if (!shell_view->priv->execute_search_blocked) + if (!e_shell_view_is_execute_search_blocked (shell_view)) g_signal_emit (shell_view, signals[EXECUTE_SEARCH], 0); } @@ -1713,6 +1713,20 @@ e_shell_view_unblock_execute_search (EShellView *shell_view) } /** + * e_shell_view_is_execute_search_blocked: + * @shell_view: an #EShellView + * + * Returns whether e_shell_view_execute_search() is blocked. + **/ +gboolean +e_shell_view_is_execute_search_blocked (EShellView *shell_view) +{ + g_return_val_if_fail (E_IS_SHELL_VIEW (shell_view), FALSE); + + return shell_view->priv->execute_search_blocked > 0; +} + +/** * e_shell_view_update_actions: * @shell_view: an #EShellView * diff --git a/shell/e-shell-view.h b/shell/e-shell-view.h index 4387082f21..6f5912d6f8 100644 --- a/shell/e-shell-view.h +++ b/shell/e-shell-view.h @@ -214,6 +214,8 @@ void e_shell_view_block_execute_search (EShellView *shell_view); void e_shell_view_unblock_execute_search (EShellView *shell_view); +gboolean e_shell_view_is_execute_search_blocked + (EShellView *shell_view); void e_shell_view_update_actions (EShellView *shell_view); void e_shell_view_block_update_actions (EShellView *shell_view); |