1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-17 16:05:36 +00:00

manager: add debug messages when adding or removing origins

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-04-17 16:43:21 +02:00
parent 8a4d408f3f
commit f9a324fc6f

View file

@ -149,6 +149,8 @@ add_origin (CallsManager *self, CallsOrigin *origin)
g_assert (CALLS_IS_MANAGER (self)); g_assert (CALLS_IS_MANAGER (self));
g_assert (CALLS_IS_ORIGIN (origin)); 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-added", G_CALLBACK (add_call), self);
g_signal_connect_swapped (origin, "call-removed", G_CALLBACK (remove_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_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); g_signal_handlers_disconnect_by_data (origin, self);
calls_origin_foreach_call(origin, remove_call_cb, self); calls_origin_foreach_call(origin, remove_call_cb, self);