[glib] Disambiguate source names



commit f39024038fd009d94a5929f9bab656cb2f7097cc
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jun 28 15:49:40 2017 -0400

    Disambiguate source names
    
    This makes debugging more pleasant.

 gio/gdbusconnection.c   |    2 +-
 gio/gdbusnameowning.c   |    2 +-
 gio/gdbusnamewatching.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c
index 15146dc..b56c5a8 100644
--- a/gio/gdbusconnection.c
+++ b/gio/gdbusconnection.c
@@ -4901,7 +4901,7 @@ schedule_method_call (GDBusConnection            *connection,
                          call_in_idle_cb,
                          invocation,
                          g_object_unref);
-  g_source_set_name (idle_source, "[gio] call_in_idle_cb");
+  g_source_set_name (idle_source, "[gio, " __FILE__ "] call_in_idle_cb");
   g_source_attach (idle_source, main_context);
   g_source_unref (idle_source);
 }
diff --git a/gio/gdbusnameowning.c b/gio/gdbusnameowning.c
index d40f934..fcfc2f4 100644
--- a/gio/gdbusnameowning.c
+++ b/gio/gdbusnameowning.c
@@ -197,7 +197,7 @@ schedule_call_in_idle (Client *client, CallType  call_type)
                          call_in_idle_cb,
                          data,
                          (GDestroyNotify) call_handler_data_free);
-  g_source_set_name (idle_source, "[gio] call_in_idle_cb");
+  g_source_set_name (idle_source, "[gio, gdbusnameowning.c] call_in_idle_cb");
   g_source_attach (idle_source, client->main_context);
   g_source_unref (idle_source);
 }
diff --git a/gio/gdbusnamewatching.c b/gio/gdbusnamewatching.c
index 9fb6dd1..dad8e75 100644
--- a/gio/gdbusnamewatching.c
+++ b/gio/gdbusnamewatching.c
@@ -201,7 +201,7 @@ schedule_call_in_idle (Client *client, CallType call_type)
                          call_in_idle_cb,
                          data,
                          (GDestroyNotify) call_handler_data_free);
-  g_source_set_name (idle_source, "[gio] call_in_idle_cb");
+  g_source_set_name (idle_source, "[gio, gdbusnamewatching.c] call_in_idle_cb");
   g_source_attach (idle_source, client->main_context);
   g_source_unref (idle_source);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]