From f9a324fc6f48cc2bc6e04d1cb7b3e0abfbc36721 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Sat, 17 Apr 2021 16:43:21 +0200 Subject: [PATCH] manager: add debug messages when adding or removing origins --- src/calls-manager.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calls-manager.c b/src/calls-manager.c index 1cf2273..bb108b1 100644 --- a/src/calls-manager.c +++ b/src/calls-manager.c @@ -149,6 +149,8 @@ add_origin (CallsManager *self, CallsOrigin *origin) g_assert (CALLS_IS_MANAGER (self)); g_assert (CALLS_IS_ORIGIN (origin)); + g_debug ("Adding origin %s (%p)", calls_origin_get_name (origin), origin); + g_signal_connect_swapped (origin, "call-added", G_CALLBACK (add_call), self); g_signal_connect_swapped (origin, "call-removed", G_CALLBACK (remove_call), self); @@ -177,6 +179,8 @@ remove_origin (CallsManager *self, CallsOrigin *origin) g_return_if_fail (CALLS_IS_ORIGIN (origin)); + g_debug ("Removing origin %s (%p)", calls_origin_get_name (origin), origin); + g_signal_handlers_disconnect_by_data (origin, self); calls_origin_foreach_call(origin, remove_call_cb, self);