mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-23 20:15:32 +00:00
call-window: Respect object lifecycle for signals
This commit is contained in:
parent
63d065118f
commit
6ab5905a9b
1 changed files with 15 additions and 12 deletions
|
@ -285,20 +285,23 @@ calls_call_window_init (CallsCallWindow *self)
|
||||||
self->calls = g_list_store_new (CALLS_TYPE_CALL_SELECTOR_ITEM);
|
self->calls = g_list_store_new (CALLS_TYPE_CALL_SELECTOR_ITEM);
|
||||||
|
|
||||||
// Show errors in in-app-notification
|
// Show errors in in-app-notification
|
||||||
g_signal_connect_swapped (calls_manager_get_default (),
|
g_signal_connect_object (calls_manager_get_default (),
|
||||||
"message",
|
"message",
|
||||||
G_CALLBACK (calls_in_app_notification_show),
|
G_CALLBACK (calls_in_app_notification_show),
|
||||||
self->in_app_notification);
|
self->in_app_notification,
|
||||||
|
G_CONNECT_SWAPPED);
|
||||||
|
|
||||||
g_signal_connect_swapped (calls_manager_get_default (),
|
g_signal_connect_object (calls_manager_get_default (),
|
||||||
"ui-call-added",
|
"ui-call-added",
|
||||||
G_CALLBACK (add_call),
|
G_CALLBACK (add_call),
|
||||||
self);
|
self,
|
||||||
|
G_CONNECT_SWAPPED);
|
||||||
|
|
||||||
g_signal_connect_swapped (calls_manager_get_default (),
|
g_signal_connect_object (calls_manager_get_default (),
|
||||||
"ui-call-removed",
|
"ui-call-removed",
|
||||||
G_CALLBACK (remove_call),
|
G_CALLBACK (remove_call),
|
||||||
self);
|
self,
|
||||||
|
G_CONNECT_SWAPPED);
|
||||||
|
|
||||||
calls = calls_manager_get_calls (calls_manager_get_default ());
|
calls = calls_manager_get_calls (calls_manager_get_default ());
|
||||||
for (c = calls; c != NULL; c = c->next) {
|
for (c = calls; c != NULL; c = c->next) {
|
||||||
|
|
Loading…
Reference in a new issue