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