[gnome-photos/gnome-3-24] preview-nav-buttons: Hide the controls even if they didn't animate



commit 660e3c7431d340ff34dc70aec99ec7b882799db9
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Dec 8 18:51:48 2017 +0100

    preview-nav-buttons: Hide the controls even if they didn't animate
    
    There is no guarantee that the GtkRevealer will asynchronously animate
    before emitting notify::child-revealed. There is no known breakage,
    since there is no LoadMoreButton anymore. This is a pre-emptive fix.
    
    Fallout from 470c05cd5349937e793467c26af27906a4ed43e3
    
    https://bugzilla.gnome.org/show_bug.cgi?id=785376

 src/photos-preview-nav-buttons.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-preview-nav-buttons.c b/src/photos-preview-nav-buttons.c
index ce8e62e..d272b4e 100644
--- a/src/photos-preview-nav-buttons.c
+++ b/src/photos-preview-nav-buttons.c
@@ -140,11 +140,11 @@ photos_preview_nav_buttons_notify_child_revealed (PhotosPreviewNavButtons *self,
 static void
 photos_preview_nav_buttons_fade_out_button (PhotosPreviewNavButtons *self, GtkWidget *widget)
 {
-  gtk_revealer_set_reveal_child (GTK_REVEALER (widget), FALSE);
   g_signal_connect_swapped (widget,
                             "notify::child-revealed",
                             G_CALLBACK (photos_preview_nav_buttons_notify_child_revealed),
                             self);
+  gtk_revealer_set_reveal_child (GTK_REVEALER (widget), FALSE);
 }
 
 


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