[gnome-photos/wip/rishi/zoom: 8/11] preview-view: Don't auto-hide the zoom controls when zoomed in
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/zoom: 8/11] preview-view: Don't auto-hide the zoom controls when zoomed in
- Date: Sun, 18 Jun 2017 12:22:01 +0000 (UTC)
commit ebb9592875ce8a7131cb4056a3d8ba54030d760a
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Jun 18 14:08:05 2017 +0200
preview-view: Don't auto-hide the zoom controls 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 4427e39..bf7adab 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -850,6 +850,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_auto_hide (self->nav_buttons, TRUE);
photos_preview_nav_buttons_set_show_navigation (self->nav_buttons, TRUE);
}
@@ -891,6 +892,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_auto_hide (self->nav_buttons, FALSE);
photos_preview_nav_buttons_set_show_navigation (self->nav_buttons, FALSE);
}
@@ -930,6 +932,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_auto_hide (self->nav_buttons, TRUE);
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]