[libgd/wip/ernestask/gtk4: 2/10] notification: use g_timeout_add()
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd/wip/ernestask/gtk4: 2/10] notification: use g_timeout_add()
- Date: Sun, 11 Mar 2018 13:29:33 +0000 (UTC)
commit 45416380a9fadc3da6661a10727f597f7e597123
Author: Ernestas Kulik <ernestask gnome org>
Date: Sat Mar 10 22:03:06 2018 +0200
notification: use g_timeout_add()
The GDK thread functions have been removed.
libgd/gd-notification.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/libgd/gd-notification.c b/libgd/gd-notification.c
index 7182d45..376913b 100644
--- a/libgd/gd-notification.c
+++ b/libgd/gd-notification.c
@@ -308,10 +308,8 @@ start_animation (GdNotification *notification)
target = animation_target (notification);
if (priv->animate_y != target)
- notification->priv->animate_timeout =
- gdk_threads_add_timeout (ANIMATION_STEP,
- animation_timeout_cb,
- notification);
+ priv->animate_timeout =
+ g_timeout_add (ANIMATION_STEP, animation_timeout_cb, notification);
}
static void
@@ -417,9 +415,7 @@ queue_autohide (GdNotification *notification)
if (priv->timeout_source_id == 0 &&
priv->timeout != -1)
priv->timeout_source_id =
- gdk_threads_add_timeout (priv->timeout * 1000,
- gd_notification_timeout_cb,
- notification);
+ g_timeout_add (priv->timeout * 1000, gd_notification_timeout_cb, notification);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]