[libhandy/wip/haecker-felix/flap-widget] Fix broken animation
- From: Felix Häcker <haeckerfelix src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/wip/haecker-felix/flap-widget] Fix broken animation
- Date: Sat, 1 Aug 2020 19:27:52 +0000 (UTC)
commit 692df112ef8a2133ca8f570835a6ef5f37b67fca
Author: Felix Häcker <haeckerfelix gnome org>
Date: Sat Aug 1 21:27:46 2020 +0200
Fix broken animation
src/hdy-flap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/hdy-flap.c b/src/hdy-flap.c
index cdbdf1fb..d406643d 100644
--- a/src/hdy-flap.c
+++ b/src/hdy-flap.c
@@ -199,7 +199,7 @@ overlay_tick_cb (HdyFlap *self,
gint64 frame_time;
frame_time = gdk_frame_clock_get_frame_time (frame_clock) / 1000;
- t = (frame_time - self->overlay_start_time) / self->overlay_duration;
+ t = (gdouble) (frame_time - self->overlay_start_time) / self->overlay_duration;
if (t >= 1) {
self->overlay_progress = self->folded ? 1 : 0;
@@ -772,7 +772,7 @@ hdy_flap_set_flap (HdyFlap *self,
return;
if (self->flap)
- gtk_widget_unparent(self->flap);
+ gtk_widget_unparent (self->flap);
self->flap = flap;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]