[eog] Ensure UI action sensitivity is set at least once
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Ensure UI action sensitivity is set at least once
- Date: Sat, 23 Jul 2011 14:27:11 +0000 (UTC)
commit 0c82590685da3ca6e657615e0434cd86c88cc67c
Author: Felix Riemann <friemann gnome org>
Date: Sat Jul 23 16:12:45 2011 +0200
Ensure UI action sensitivity is set at least once
Beforehand empty windows had all UI actions active.
Activation could then spawn critical warnings. This was probably caused
by the switch to GtkApplication.
src/eog-window.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 2735f99..1f44023 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4692,6 +4692,8 @@ eog_window_construct_ui (EogWindow *window)
eog_window_can_save_changed_cb (priv->lockdown_settings,
EOG_CONF_DESKTOP_CAN_SAVE, window);
+ update_action_groups_state (window);
+
if ((priv->flags & EOG_STARTUP_FULLSCREEN) ||
(priv->flags & EOG_STARTUP_SLIDE_SHOW)) {
eog_window_run_fullscreen (window, (priv->flags & EOG_STARTUP_SLIDE_SHOW));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]