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
This commit is contained in:
Colin Walters
2010-06-03 16:24:38 -04:00
parent b96a05b81f
commit 95bc0f5405
4 changed files with 8 additions and 0 deletions

View File

@ -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));