summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Riemann <[email protected]>2011-07-23 16:12:45 +0200
committerraveit65 <[email protected]>2018-07-08 12:19:44 +0200
commit9e687fad2c7fc2a874c41090ad3a9ba8dc7b2c4e (patch)
tree44c90584a9728c65384bdabdb839b2f300c364cc /src
parentbc859fd4560cac60e9292ebaec88222c9eefd634 (diff)
downloadeom-9e687fad2c7fc2a874c41090ad3a9ba8dc7b2c4e.tar.bz2
eom-9e687fad2c7fc2a874c41090ad3a9ba8dc7b2c4e.tar.xz
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. origin commit: https://gitlab.gnome.org/GNOME/eog/commit/0c82590
Diffstat (limited to 'src')
-rw-r--r--src/eom-window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eom-window.c b/src/eom-window.c
index b8ca305..329b6da 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -4489,6 +4489,8 @@ eom_window_construct_ui (EomWindow *window)
g_settings_bind (priv->ui_settings, EOM_CONF_UI_IMAGE_COLLECTION_RESIZABLE,
window, "collection-resizable", G_SETTINGS_BIND_GET);
+ update_action_groups_state (window);
+
if ((priv->flags & EOM_STARTUP_FULLSCREEN) ||
(priv->flags & EOM_STARTUP_SLIDE_SHOW)) {
eom_window_run_fullscreen (window, (priv->flags & EOM_STARTUP_SLIDE_SHOW));