aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-01 13:00:36 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-01 18:33:22 +0800
commitaf2178334938f9f45aa2c39f6880394bb5c12988 (patch)
tree50b1dc38b667f459f902dfa8bc0f125c6dd52aad /shell/e-shell-view.c
parent1047848935ff20342a1ced37553ba89d710378d5 (diff)
downloadgsoc2013-evolution-af2178334938f9f45aa2c39f6880394bb5c12988.tar.gz
gsoc2013-evolution-af2178334938f9f45aa2c39f6880394bb5c12988.tar.zst
gsoc2013-evolution-af2178334938f9f45aa2c39f6880394bb5c12988.zip
Remove e_shell_view_[un]block_update_actions().
No longer needed.
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c59
1 files changed, 1 insertions, 58 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 1cc0efdfc8..f39458fd79 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -68,9 +68,6 @@ struct _EShellViewPrivate {
EFilterRule *search_rule;
guint execute_search_blocked;
- guint update_actions_blocked;
- gboolean update_actions_called;
-
GtkWidget *preferences_window;
gulong preferences_hide_id;
};
@@ -719,7 +716,6 @@ shell_view_update_actions (EShellView *shell_view)
EShellWindow *shell_window;
EFocusTracker *focus_tracker;
- g_return_if_fail (!shell_view->priv->update_actions_blocked);
g_return_if_fail (e_shell_view_is_active (shell_view));
shell_window = e_shell_view_get_shell_window (shell_view);
@@ -1685,67 +1681,14 @@ e_shell_view_is_execute_search_blocked (EShellView *shell_view)
* #EShellView::update-actions signal is typically emitted just before
* showing a popup menu or just after the user selects an item in the
* shell view.
- *
- * Emission can be blocked by e_shell_view_block_update_actions().
**/
void
e_shell_view_update_actions (EShellView *shell_view)
{
g_return_if_fail (E_IS_SHELL_VIEW (shell_view));
- if (!e_shell_view_is_active (shell_view))
- return;
-
- if (shell_view->priv->update_actions_blocked > 0) {
- shell_view->priv->update_actions_called = TRUE;
- } else {
- shell_view->priv->update_actions_called = FALSE;
+ if (e_shell_view_is_active (shell_view))
g_signal_emit (shell_view, signals[UPDATE_ACTIONS], 0);
- }
-}
-
-/**
- * e_shell_view_block_update_actions:
- * @shell_view: an #EShellView
- *
- * Block emission of #EShellView::update-actions signal through
- * e_shell_view_update_actions(). The emission si blocked until
- * e_shell_view_unblock_update_actions() is called same times as
- * this function.
- **/
-void
-e_shell_view_block_update_actions (EShellView *shell_view)
-{
- g_return_if_fail (E_IS_SHELL_VIEW (shell_view));
- g_return_if_fail (shell_view->priv->update_actions_blocked + 1 != 0);
-
- shell_view->priv->update_actions_blocked++;
- if (shell_view->priv->update_actions_blocked == 1)
- shell_view->priv->update_actions_called = FALSE;
-}
-
-/**
- * e_shell_view_unblock_update_actions:
- * @shell_view: an #EShellView
- *
- * Unblock emission of #EShellView::update-actions signal through
- * e_shell_view_update_actions(), previously blocked by function
- * e_shell_view_block_update_actions().
- **/
-void
-e_shell_view_unblock_update_actions (EShellView *shell_view)
-{
- g_return_if_fail (E_IS_SHELL_VIEW (shell_view));
- g_return_if_fail (shell_view->priv->update_actions_blocked > 0);
-
- shell_view->priv->update_actions_blocked--;
-
- if (!shell_view->priv->update_actions_blocked &&
- shell_view->priv->update_actions_called) {
-
- shell_view->priv->update_actions_called = FALSE;
- e_shell_view_update_actions (shell_view);
- }
}
/**