[evolution] ECompEditorPageGeneral: Change signal connect function on meeting store



commit 80685e195300404e6713fb30da629ce682940fd0
Author: Milan Crha <mcrha redhat com>
Date:   Thu Feb 18 13:51:52 2021 +0100

    ECompEditorPageGeneral: Change signal connect function on meeting store
    
    The meeting store can survive the lifetime of the general page when
    there's an ongoing look up of the Free/Busy data, thus connect
    to these objects' signals in a way to ensure when the general page
    is gone the handlers are gone as well.

 src/calendar/gui/e-comp-editor-page-general.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/calendar/gui/e-comp-editor-page-general.c b/src/calendar/gui/e-comp-editor-page-general.c
index 0d17d2eed2..06ae734e86 100644
--- a/src/calendar/gui/e-comp-editor-page-general.c
+++ b/src/calendar/gui/e-comp-editor-page-general.c
@@ -1460,20 +1460,20 @@ ecep_general_constructed (GObject *object)
 
        page_general->priv->attendees_list_view = widget;
 
-       g_signal_connect (page_general->priv->attendees_list_view, "attendee-added",
-               G_CALLBACK (ecep_general_attendee_added_cb), page_general);
+       g_signal_connect_object (page_general->priv->attendees_list_view, "attendee-added",
+               G_CALLBACK (ecep_general_attendee_added_cb), page_general, 0);
 
-       g_signal_connect (page_general->priv->meeting_store, "row-changed",
-               G_CALLBACK (ecep_general_attendee_row_changed_cb), page_general);
+       g_signal_connect_object (page_general->priv->meeting_store, "row-changed",
+               G_CALLBACK (ecep_general_attendee_row_changed_cb), page_general, 0);
 
-       e_signal_connect_notify (page_general->priv->meeting_store, "notify::show-address",
-               G_CALLBACK (ecep_general_attendee_show_address_notify_cb), page_general);
+       e_signal_connect_notify_object (page_general->priv->meeting_store, "notify::show-address",
+               G_CALLBACK (ecep_general_attendee_show_address_notify_cb), page_general, 0);
 
-       g_signal_connect (page_general->priv->attendees_list_view, "event",
-               G_CALLBACK (ecep_general_list_view_event_cb), page_general);
+       g_signal_connect_object (page_general->priv->attendees_list_view, "event",
+               G_CALLBACK (ecep_general_list_view_event_cb), page_general, 0);
 
-       g_signal_connect (page_general->priv->attendees_list_view, "key_press_event",
-               G_CALLBACK (ecep_general_list_view_key_press_cb), page_general);
+       g_signal_connect_object (page_general->priv->attendees_list_view, "key_press_event",
+               G_CALLBACK (ecep_general_list_view_key_press_cb), page_general, 0);
 
        widget = gtk_button_box_new (GTK_ORIENTATION_VERTICAL);
        g_object_set (G_OBJECT (widget),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]