[gnome-photos] preview-nav-buttons: Simplify the hide code



commit dfaf6f5605e5886533d8afbfbcf57c1785604ace
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Feb 28 22:35:49 2015 +0100

    preview-nav-buttons: Simplify the hide code
    
    This keeps the code in sync with gnome-documents.

 src/photos-preview-nav-buttons.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-preview-nav-buttons.c b/src/photos-preview-nav-buttons.c
index 5d2dd80..44e6bc4 100644
--- a/src/photos-preview-nav-buttons.c
+++ b/src/photos-preview-nav-buttons.c
@@ -546,8 +546,7 @@ photos_preview_nav_buttons_hide (PhotosPreviewNavButtons *self)
 
   priv->action = PHOTOS_PREVIEW_ACTION_NONE;
   priv->visible = FALSE;
-  photos_preview_nav_buttons_fade_out_button (self, priv->prev_widget);
-  photos_preview_nav_buttons_fade_out_button (self, priv->next_widget);
+  photos_preview_nav_buttons_update_visibility (self);
 
   g_signal_emit (self, signals[ACTIVATED], 0, priv->action);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]