[gnome-photos/wip/rishi/zoom: 6/10] preview-view: Disable the navigation buttons when zoomed in



commit b5dcb0824c9d83a8bd64768f777bd79aac5f2f7a
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 d814d9e..f049017 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -849,6 +849,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);
 }
 
 
@@ -889,6 +890,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);
 }
 
 
@@ -927,6 +929,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]