[libadwaita/pwood/avoid-hiding-flap-widget-when-revealing-it] flap: avoid hiding flap widget when revealing it
- From: Phillip Wood <pwood src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/pwood/avoid-hiding-flap-widget-when-revealing-it] flap: avoid hiding flap widget when revealing it
- Date: Tue, 30 Nov 2021 16:22:30 +0000 (UTC)
commit 128bf15e80ea0d1dc7eae1158ed5df09bca1db9a
Author: Phillip Wood <phillip wood dunelm org uk>
Date: Tue Nov 30 16:19:24 2021 +0000
flap: avoid hiding flap widget when revealing it
If the flap widget is focused in response to the reveal_flap property
changing then sometimes it is immediately defocused. This is because
when the animation starts update_child_visibility() can be called with
self->reveal_progress == 0 which hides the flap widget. Fix this by
always showing the flap widget when self->reveal_flap != 0.
src/adw-flap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/adw-flap.c b/src/adw-flap.c
index 4335dce1..5644e90b 100644
--- a/src/adw-flap.c
+++ b/src/adw-flap.c
@@ -226,7 +226,7 @@ set_orientation (AdwFlap *self,
static void
update_child_visibility (AdwFlap *self)
{
- gboolean visible = self->reveal_progress > 0;
+ gboolean visible = self->reveal_flap || self->reveal_progress > 0;
if (self->flap.widget)
gtk_widget_set_child_visible (self->flap.widget, visible);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]