[libhandy/wip/haecker-felix/flap-widget: 90/98] squish few bugs
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/wip/haecker-felix/flap-widget: 90/98] squish few bugs
- Date: Mon, 3 Aug 2020 16:27:56 +0000 (UTC)
commit fb184050f8b546821c0f5bb1b947f1c7e19f190a
Author: Felix Häcker <haeckerfelix gnome org>
Date: Fri Jul 31 20:10:48 2020 +0200
squish few bugs
src/hdy-flap.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/hdy-flap.c b/src/hdy-flap.c
index bd182c91..20df65d9 100644
--- a/src/hdy-flap.c
+++ b/src/hdy-flap.c
@@ -279,7 +279,7 @@ set_overlay (HdyFlap *self,
g_return_if_fail (HDY_IS_FLAP (self));
overlay = !!overlay;
- if (self->reveal_flap == overlay)
+ if (self->overlay == overlay)
return;
self->overlay = overlay;
@@ -377,7 +377,7 @@ get_content_size (HdyFlap *self,
} else {
if (self->orientation == GTK_ORIENTATION_HORIZONTAL)
return widget_alloc->height;
- return widget_alloc->height - adjust_for_overlay (self, get_flap_size (self, widget_alloc,
GTK_ORIENTATION_HORIZONTAL));
+ return widget_alloc->height - adjust_for_overlay (self, get_flap_size (self, widget_alloc,
GTK_ORIENTATION_VERTICAL));
}
}
@@ -688,8 +688,13 @@ hdy_flap_class_init (HdyFlapClass *klass)
static void
hdy_flap_init (HdyFlap *self)
{
- self->flap_position = GTK_PACK_START;
self->orientation = GTK_ORIENTATION_HORIZONTAL;
+ self->flap_position = GTK_PACK_START;
+ self->flap_mode = HDY_FLAP_MODE_NON_OVERLAY;
+ self->reveal_flap = TRUE;
+ self->reveal_progress = 1;
+ self->overlay = FALSE;
+ self->overlay_progress = 0;
self->overlay_duration = 250;
self->reveal_duration = 250;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]