diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-22 15:43:43 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-23 13:31:18 +0200 |
commit | 438cd857c49242244dda2923ac447f36464b9e72 (patch) | |
tree | 9b583fc07a430a739e80d62c73edede9ad019602 /gtk/gtkprintoperation-win32.c | |
parent | dcc0fd222e78372ce49a8722420ccc7e9e022cdd (diff) | |
download | gtk+-438cd857c49242244dda2923ac447f36464b9e72.tar.gz |
all: Add names to timeouts
Add names to every timeout we setup, so it's easier to track their
usage, and debug possible misbehaviour.
https://bugzilla.gnome.org/show_bug.cgi?id=710651
Diffstat (limited to 'gtk/gtkprintoperation-win32.c')
-rw-r--r-- | gtk/gtkprintoperation-win32.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c index 123af8f8a4..e59eb9f675 100644 --- a/gtk/gtkprintoperation-win32.c +++ b/gtk/gtkprintoperation-win32.c @@ -512,10 +512,12 @@ win32_poll_status_timeout (GtkPrintOperation *op) g_object_ref (op); win32_poll_status (op); - if (!gtk_print_operation_is_finished (op)) + if (!gtk_print_operation_is_finished (op)) { op_win32->timeout_id = gdk_threads_add_timeout (STATUS_POLLING_TIME, (GSourceFunc)win32_poll_status_timeout, op); + g_source_set_name_by_id (op_win32->timeout_id, "[gtk+] win32_poll_status_timeout"); + } g_object_unref (op); return FALSE; } @@ -558,6 +560,7 @@ win32_end_run (GtkPrintOperation *op, op_win32->timeout_id = gdk_threads_add_timeout (STATUS_POLLING_TIME, (GSourceFunc)win32_poll_status_timeout, op); + g_source_set_name_by_id (op_win32->timeout_id, "[gtk+] win32_poll_status_timeout"); } else /* Dunno what happened, pretend its finished */ |