[eog/wip/gaction-migration] EogWindow: Drop unneeded handler blocks
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/wip/gaction-migration] EogWindow: Drop unneeded handler blocks
- Date: Tue, 23 Dec 2014 16:55:38 +0000 (UTC)
commit 0309e59fa59b6dc11d94810087a116763541e6bb
Author: Felix Riemann <friemann gnome org>
Date: Tue Dec 23 17:48:24 2014 +0100
EogWindow: Drop unneeded handler blocks
As the action state is now changed without triggering the handlers
they don't need to be blocked anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=741050
src/eog-window.c | 18 ------------------
1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index afba843..12c7aa9 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -1644,14 +1644,8 @@ eog_window_update_fullscreen_action (EogWindow *window)
action = g_action_map_lookup_action (G_ACTION_MAP (window),
"view-fullscreen");
- g_signal_handlers_block_by_func
- (action, G_CALLBACK (eog_window_action_toggle_fullscreen), window);
-
g_simple_action_set_state (G_SIMPLE_ACTION (action),
g_variant_new_boolean (window->priv->mode == EOG_WINDOW_MODE_FULLSCREEN));
-
- g_signal_handlers_unblock_by_func
- (action, G_CALLBACK (eog_window_action_toggle_fullscreen), window);
}
static void
@@ -1662,14 +1656,8 @@ eog_window_update_slideshow_action (EogWindow *window)
action = g_action_map_lookup_action (G_ACTION_MAP (window),
"view-slideshow");
- g_signal_handlers_block_by_func
- (action, G_CALLBACK (eog_window_action_toggle_slideshow), window);
-
g_simple_action_set_state (G_SIMPLE_ACTION (action),
g_variant_new_boolean (window->priv->mode == EOG_WINDOW_MODE_SLIDESHOW));
-
- g_signal_handlers_unblock_by_func
- (action, G_CALLBACK (eog_window_action_toggle_slideshow), window);
}
static void
@@ -1680,14 +1668,8 @@ eog_window_update_pause_slideshow_action (EogWindow *window)
action = g_action_map_lookup_action (G_ACTION_MAP (window),
"pause-slideshow");
- g_signal_handlers_block_by_func
- (action, G_CALLBACK (eog_window_action_pause_slideshow), window);
-
g_simple_action_set_state (G_SIMPLE_ACTION (action),
g_variant_new_boolean (window->priv->mode != EOG_WINDOW_MODE_SLIDESHOW));
-
- g_signal_handlers_unblock_by_func
- (action, G_CALLBACK (eog_window_action_pause_slideshow), window);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]