1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-05-28 16:09:29 +00:00

account-overview: Respect object lifecycle for signals

This commit is contained in:
Evangelos Ribeiro Tzaras 2023-01-16 09:16:02 +01:00
parent ffc3c984b0
commit 656c8f96bf

View file

@ -245,9 +245,10 @@ update_account_list (CallsAccountOverview *self)
CallsAccountRow *account_row = calls_account_row_new (provider, account);
g_signal_handlers_disconnect_by_data (account, self);
g_signal_connect (account, "message",
G_CALLBACK (on_account_message),
self);
g_signal_connect_object (account, "message",
G_CALLBACK (on_account_message),
self,
G_CONNECT_AFTER);
gtk_list_box_insert (GTK_LIST_BOX (self->overview),
GTK_WIDGET (account_row),