[gnome-photos/wip/rishi/zoom: 5/10] preview-view: Disable the navigation buttons when zoomed in
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/zoom: 5/10] preview-view: Disable the navigation buttons when zoomed in
- Date: Thu, 15 Jun 2017 10:08:51 +0000 (UTC)
commit a3a50f3c79198d6bca512178f60d1a9335d09a6d
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jun 14 23:50:46 2017 +0200
preview-view: Disable the navigation buttons when zoomed in
https://bugzilla.gnome.org/show_bug.cgi?id=742662
src/photos-preview-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index 180b6e7..cb9041b 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -848,6 +848,7 @@ photos_preview_view_zoom_best_fit (PhotosPreviewView *self)
photos_image_view_set_best_fit (PHOTOS_IMAGE_VIEW (view), TRUE);
g_simple_action_set_enabled (G_SIMPLE_ACTION (self->zoom_best_fit_action), FALSE);
g_simple_action_set_enabled (G_SIMPLE_ACTION (self->zoom_out_action), FALSE);
+ photos_preview_nav_buttons_set_show_navigation (self->nav_buttons, TRUE);
}
@@ -888,6 +889,7 @@ photos_preview_view_zoom_in (PhotosPreviewView *self, GVariant *parameter)
g_simple_action_set_enabled (G_SIMPLE_ACTION (self->zoom_best_fit_action), TRUE);
g_simple_action_set_enabled (G_SIMPLE_ACTION (self->zoom_out_action), TRUE);
+ photos_preview_nav_buttons_set_show_navigation (self->nav_buttons, FALSE);
}
@@ -926,6 +928,7 @@ photos_preview_view_zoom_out (PhotosPreviewView *self, GVariant *parameter)
photos_image_view_set_best_fit (PHOTOS_IMAGE_VIEW (view), TRUE);
g_simple_action_set_enabled (G_SIMPLE_ACTION (self->zoom_best_fit_action), FALSE);
g_simple_action_set_enabled (G_SIMPLE_ACTION (self->zoom_out_action), FALSE);
+ photos_preview_nav_buttons_set_show_navigation (self->nav_buttons, TRUE);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]