diff options
author | Dafydd Harries <dafydd.harries@collabora.co.uk> | 2009-08-17 16:56:04 +0100 |
---|---|---|
committer | Dafydd Harries <dafydd.harries@collabora.co.uk> | 2009-08-17 19:19:36 +0100 |
commit | f19ddc0be99d7f04ca987173512519e9fe28b0c7 (patch) | |
tree | f0c8ea73b1408677d8538a9b613655fa8ba1c58c /src/disco.c | |
parent | 52e639f8944b636c843ba7a1fe573a7a0969405a (diff) |
use g_timeout_add_seconds() instead of g_timeout_add() where possible
Diffstat (limited to 'src/disco.c')
-rw-r--r-- | src/disco.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/disco.c b/src/disco.c index f9e66fd76..abd8247b9 100644 --- a/src/disco.c +++ b/src/disco.c @@ -458,8 +458,7 @@ gabble_disco_request (GabbleDisco *self, GabbleDiscoType type, * @type: type of request * @jid: Jabber ID to request on * @node: node to request on @jid, or NULL - * @timeout: the time until the request fails, in milliseconds (1/1000ths of - * a second) + * @timeout: the time until the request fails, in seconds * @callback: #GabbleDiscoCb to call on request fullfilment * @object: GObject to bind request to. the callback will not be * called if this object has been unrefed. NULL if not needed @@ -519,7 +518,7 @@ gabble_disco_request_with_timeout (GabbleDisco *self, GabbleDiscoType type, else { request->timer_id = - g_timeout_add (timeout, timeout_request, request); + g_timeout_add_seconds (timeout, timeout_request, request); lm_message_unref (msg); return request; } |