summaryrefslogtreecommitdiff
path: root/modules/printbackends
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-06-03 16:24:38 -0400
committerColin Walters <walters@verbum.org>2010-06-03 21:49:22 -0400
commit95bc0f540555c15561ae1ddd2387ea5157591fda (patch)
treebee91a973bc00c15fb70cde7d2b157df008834c4 /modules/printbackends
parentb96a05b81f2de9949da94c376be533114025765b (diff)
downloadgtk+-95bc0f540555c15561ae1ddd2387ea5157591fda.tar.gz
Use g_source_set_name for all custom GSources in GTK+
Naming the sources allows easier debugging with e.g. SystemTap probes. https://bugzilla.gnome.org/show_bug.cgi?id=620511
Diffstat (limited to 'modules/printbackends')
-rw-r--r--modules/printbackends/cups/gtkprintbackendcups.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
index 3924871196..4b26cba5d3 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -1248,6 +1248,7 @@ cups_request_execute (GtkPrintBackendCups *print_backend,
dispatch = (GtkPrintCupsDispatchWatch *) g_source_new (&_cups_dispatch_watch_funcs,
sizeof (GtkPrintCupsDispatchWatch));
+ g_source_set_name (dispatch, "GTK+ CUPS backend");
GTK_NOTE (PRINTING,
g_print ("CUPS Backend: %s <source %p> - Executing cups request on server '%s' and resource '%s'\n", G_STRFUNC, dispatch, request->server, request->resource));