aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-01-11 22:59:25 +0800
committerMilan Crha <mcrha@redhat.com>2012-01-11 22:59:25 +0800
commitd0f2c46a1cf7bbbfc56b1f9e835756cdf542ac75 (patch)
tree285a58f0ecc2ba6523072c1256470b1e04f3fb4c /shell/e-shell-view.c
parentdd49067b2acfb72419f97a0348dc2524c3bbf56e (diff)
downloadgsoc2013-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/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c16
1 files changed, 15 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
*