[gnome-photos] preview-nav-buttons: Hide the controls even if they didn't animate
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] preview-nav-buttons: Hide the controls even if they didn't animate
- Date: Fri, 8 Dec 2017 18:28:14 +0000 (UTC)
commit 043cc61a807a0a4290c98d6ed35834be43a48a60
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 09fd84e..2de745a 100644
--- a/src/photos-preview-nav-buttons.c
+++ b/src/photos-preview-nav-buttons.c
@@ -145,11 +145,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]