[libgd] Use an idle priority for the resize timeout
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd] Use an idle priority for the resize timeout
- Date: Fri, 8 Feb 2013 21:36:48 +0000 (UTC)
commit 918bf2e7d12e7e80b25e2cef589dce87be5a2bb7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Feb 8 12:20:52 2013 -0500
Use an idle priority for the resize timeout
This makes the revealer works correctly when used with clutter-gtk.
libgd/gd-revealer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgd/gd-revealer.c b/libgd/gd-revealer.c
index 634a97f..d4033fe 100644
--- a/libgd/gd-revealer.c
+++ b/libgd/gd-revealer.c
@@ -489,8 +489,8 @@ gd_revealer_start_animation (GdRevealer *revealer,
priv->end_time = priv->start_time + (priv->duration * 1000);
if (priv->timeout == 0)
priv->timeout =
- gdk_threads_add_timeout ((guint) FRAME_TIME_MSEC,
- (GSourceFunc)gd_revealer_animate_cb, revealer);
+ gdk_threads_add_timeout_full (G_PRIORITY_DEFAULT_IDLE, (guint) FRAME_TIME_MSEC,
+ (GSourceFunc)gd_revealer_animate_cb, revealer, NULL);
gd_revealer_animate_step (revealer, priv->start_time);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]