diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-30 02:04:54 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-10-30 03:22:35 +0800 |
commit | bc0d5d40ed39c92dcdf62ae891a2e99c25237d74 (patch) | |
tree | a07763eeaa20602bd4c0620b2fe67c443c52d29c /mail/mail-send-recv.c | |
parent | d3e0f96c73dde49acde92f6347b9e362d85e94aa (diff) | |
download | gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.gz gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.bz2 gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.lz gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.xz gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.zst gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.zip |
Bug 710797 - Name all the timeouts added with g_timeout_add()
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 072641bf3c..76859c687e 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -616,7 +616,7 @@ build_dialog (GtkWindow *parent, info->keep_on_server = get_keep_on_server (service); info->cancellable = camel_operation_new (); info->state = allow_send ? SEND_ACTIVE : SEND_COMPLETE; - info->timeout_id = g_timeout_add ( + info->timeout_id = e_named_timeout_add ( STATUS_TIMEOUT, operation_status_timeout, info); g_signal_connect ( @@ -631,9 +631,10 @@ build_dialog (GtkWindow *parent, /* incase we get the same source pop up again */ continue; - } else if (info->timeout_id == 0) - info->timeout_id = g_timeout_add ( + } else if (info->timeout_id == 0) { + info->timeout_id = e_named_timeout_add ( STATUS_TIMEOUT, operation_status_timeout, info); + } recv_icon = gtk_image_new_from_icon_name ( "mail-inbox", SEND_RECV_ICON_SIZE); @@ -704,7 +705,7 @@ build_dialog (GtkWindow *parent, info->keep_on_server = FALSE; info->cancellable = camel_operation_new (); info->state = SEND_ACTIVE; - info->timeout_id = g_timeout_add ( + info->timeout_id = e_named_timeout_add ( STATUS_TIMEOUT, operation_status_timeout, info); g_signal_connect ( @@ -714,9 +715,10 @@ build_dialog (GtkWindow *parent, g_hash_table_insert ( data->active, g_strdup (SEND_URI_KEY), info); list = g_list_prepend (list, info); - } else if (info->timeout_id == 0) - info->timeout_id = g_timeout_add ( + } else if (info->timeout_id == 0) { + info->timeout_id = e_named_timeout_add ( STATUS_TIMEOUT, operation_status_timeout, info); + } send_icon = gtk_image_new_from_icon_name ( "mail-outbox", SEND_RECV_ICON_SIZE); |