[eog] EogWindow: Hide collection if only one image is available
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogWindow: Hide collection if only one image is available
- Date: Fri, 22 May 2015 21:31:05 +0000 (UTC)
commit 054055d37a35c2aa5945b9f33d0f4dcfc865bcd3
Author: Felix Riemann <friemann gnome org>
Date: Fri May 22 23:29:50 2015 +0200
EogWindow: Hide collection if only one image is available
This restores the collection's pre-3.16 behaviour.
src/eog-window.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 738213f..a87379e 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -771,8 +771,7 @@ update_action_groups_state (EogWindow *window)
gtk_widget_show (priv->layout);
- if (show_image_gallery)
- gtk_widget_show (priv->nav);
+ gtk_widget_set_visible (priv->nav, show_image_gallery);
g_simple_action_set_state (G_SIMPLE_ACTION (action_gallery),
g_variant_new_boolean (show_image_gallery));
@@ -1933,7 +1932,8 @@ update_ui_visibility (EogWindow *window)
if (priv->status != EOG_WINDOW_STATUS_INIT) {
visible = g_settings_get_boolean (priv->ui_settings,
EOG_CONF_UI_IMAGE_GALLERY);
- visible = visible && priv->mode != EOG_WINDOW_MODE_SLIDESHOW;
+ visible &= gtk_widget_get_visible (priv->nav);
+ visible &= (priv->mode != EOG_WINDOW_MODE_SLIDESHOW);
action = g_action_map_lookup_action (G_ACTION_MAP (window), "view-gallery");
g_assert (action != NULL);
g_simple_action_set_state (G_SIMPLE_ACTION (action), g_variant_new_boolean (visible));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]