summaryrefslogtreecommitdiff
path: root/gtk/gtkprintoperation.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-03-22 12:44:01 +0100
committerMatthias Clasen <mclasen@redhat.com>2014-03-26 20:09:30 -0400
commitf71f7215ab31a85bdcc124b1ac6d6c9ca8a6acf1 (patch)
tree60eaf90866b9c3485115452b2d133f6b986e9bd8 /gtk/gtkprintoperation.c
parent454c485ebe9b2d262d2e84d1f16b86c00980e5b9 (diff)
downloadgtk+-f71f7215ab31a85bdcc124b1ac6d6c9ca8a6acf1.tar.gz
all: Name more idles and timeouts
Following up from 438cd857c49242244dda2923ac447f36464b9e72, name more timeouts and idles. The original grep was missing checking for gdk_threads_add_*() functions (at least for some of the files). https://bugzilla.gnome.org/show_bug.cgi?id=726870
Diffstat (limited to 'gtk/gtkprintoperation.c')
-rw-r--r--gtk/gtkprintoperation.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk/gtkprintoperation.c b/gtk/gtkprintoperation.c
index 245908087d..a7aa2d7802 100644
--- a/gtk/gtkprintoperation.c
+++ b/gtk/gtkprintoperation.c
@@ -631,14 +631,17 @@ preview_ready (GtkPrintOperationPreview *preview,
GtkPrintContext *context,
PreviewOp *pop)
{
+ guint id;
+
pop->print_context = context;
g_object_ref (preview);
- gdk_threads_add_idle_full (G_PRIORITY_DEFAULT_IDLE + 10,
- preview_print_idle,
- pop,
- preview_print_idle_done);
+ id = gdk_threads_add_idle_full (G_PRIORITY_DEFAULT_IDLE + 10,
+ preview_print_idle,
+ pop,
+ preview_print_idle_done);
+ g_source_set_name_by_id (id, "[gtk+] preview_print_idle");
}
@@ -3053,6 +3056,7 @@ print_pages (GtkPrintOperation *op,
print_pages_idle,
data,
print_pages_idle_done);
+ g_source_set_name_by_id (priv->print_pages_idle_id, "[gtk+] print_pages_idle");
/* Recursive main loop to make sure we don't exit on sync operations */
if (priv->is_sync)