summaryrefslogtreecommitdiff
path: root/mate-dictionary/libgdict/gdict-client-context.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-dictionary/libgdict/gdict-client-context.c')
-rw-r--r--mate-dictionary/libgdict/gdict-client-context.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mate-dictionary/libgdict/gdict-client-context.c b/mate-dictionary/libgdict/gdict-client-context.c
index 65e72a23..118a0d91 100644
--- a/mate-dictionary/libgdict/gdict-client-context.c
+++ b/mate-dictionary/libgdict/gdict-client-context.c
@@ -136,7 +136,7 @@ typedef struct
#define HOSTNAME_LOOKUP_EXPIRE 300
/* wait 30 seconds between connection and receiving data on the line */
-#define CONNECTION_TIMEOUT 30
+#define CONNECTION_TIMEOUT_SEC 30
enum
{
@@ -1990,9 +1990,9 @@ gdict_client_context_connect (GdictClientContext *context,
return FALSE;
}
- priv->timeout_id = g_timeout_add (CONNECTION_TIMEOUT * 1000,
- check_for_connection,
- context);
+ priv->timeout_id = g_timeout_add_seconds (CONNECTION_TIMEOUT_SEC,
+ check_for_connection,
+ context);
/* XXX - remember that g_io_add_watch() increases the reference count
* of the GIOChannel we are using.