From 0ab84cc3ffe6129ae40ad436eb62fccbd52b00ad Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 13 Oct 2007 11:47:48 +0000 Subject: Use g_timeout_add_seconds when appropriated to avoid weaking the process 2007-10-13 Xavier Claessens * libempathy-gtk/empathy-main-window.c: * libempathy-gtk/empathy-presence-chooser.c: * libempathy-gtk/empathy-contact-list-view.c: * libempathy-gtk/empathy-contact-widget.c: * libempathy-gtk/empathy-chat.c: * libempathy-gtk/empathy-contact-list-store.c: * libempathy-gtk/empathy-chat-window.c: * libempathy/empathy-idle.c: * tests/contact-manager.c: Use g_timeout_add_seconds when appropriated to avoid weaking the process too much. svn path=/trunk/; revision=370 --- libempathy-gtk/empathy-chat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libempathy-gtk/empathy-chat.c') diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index c98cc12df..f68a82826 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -1029,8 +1029,8 @@ chat_composing_start (EmpathyChat *chat) TP_CHANNEL_CHAT_STATE_COMPOSING); } - priv->composing_stop_timeout_id = g_timeout_add ( - 1000 * COMPOSING_STOP_TIMEOUT, + priv->composing_stop_timeout_id = g_timeout_add_seconds ( + COMPOSING_STOP_TIMEOUT, (GSourceFunc) chat_composing_stop_timeout_cb, chat); } -- cgit v1.2.3