[gnome-photos/wip/rishi/edit-mode: 8/30] preview-view: Show the buttons when returning from edit mode
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/edit-mode: 8/30] preview-view: Show the buttons when returning from edit mode
- Date: Sun, 14 Jun 2015 18:13:21 +0000 (UTC)
commit ebc1c76d8f9f4b9b7aac57f5a0ffcc866763364f
Author: Debarshi Ray <debarshir gnome org>
Date: Thu May 7 09:11:10 2015 +0200
preview-view: Show the buttons when returning from edit mode
Easiest way to do that is to show them every time we enter the preview.
We will have one redundant call when entering the preview from one of
the overviews because we call show when setting the model, but that is
fine.
src/photos-preview-view.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index d79c112..e978118 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -227,6 +227,8 @@ photos_preview_view_create_view (PhotosPreviewView *self)
static void
photos_preview_view_window_mode_changed (PhotosPreviewView *self, PhotosWindowMode mode, PhotosWindowMode
old_mode)
{
+ PhotosPreviewViewPrivate *priv = self->priv;
+
switch (mode)
{
case PHOTOS_WINDOW_MODE_COLLECTIONS:
@@ -234,10 +236,11 @@ photos_preview_view_window_mode_changed (PhotosPreviewView *self, PhotosWindowMo
case PHOTOS_WINDOW_MODE_FAVORITES:
case PHOTOS_WINDOW_MODE_OVERVIEW:
case PHOTOS_WINDOW_MODE_SEARCH:
- photos_preview_nav_buttons_hide (self->priv->nav_buttons);
+ photos_preview_nav_buttons_hide (priv->nav_buttons);
break;
case PHOTOS_WINDOW_MODE_PREVIEW:
+ photos_preview_nav_buttons_show (priv->nav_buttons);
break;
case PHOTOS_WINDOW_MODE_NONE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]