From 656c8f96bfd31d6e25be8ff2b9c3bff07137bde9 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Mon, 16 Jan 2023 09:16:02 +0100 Subject: [PATCH] account-overview: Respect object lifecycle for signals --- src/calls-account-overview.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/calls-account-overview.c b/src/calls-account-overview.c index 48ae788..88d33c1 100644 --- a/src/calls-account-overview.c +++ b/src/calls-account-overview.c @@ -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),