[gnome-calendar/mcatanzaro/quick-add-popover-gnome-3-34] quick-add-popover: Use more g_signal_connect_object
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/mcatanzaro/quick-add-popover-gnome-3-34] quick-add-popover: Use more g_signal_connect_object
- Date: Mon, 7 Oct 2019 15:42:57 +0000 (UTC)
commit 01d721375fcac6b45149e99dbe84d72960a943fd
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Oct 7 10:37:50 2019 -0500
quick-add-popover: Use more g_signal_connect_object
We need to disconnect from the GcalManager when the GcalQuickAddPopover
is destroyed, or crashes happen.
src/gui/gcal-quick-add-popover.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/gcal-quick-add-popover.c b/src/gui/gcal-quick-add-popover.c
index 4f638637..bffd61a5 100644
--- a/src/gui/gcal-quick-add-popover.c
+++ b/src/gui/gcal-quick-add-popover.c
@@ -799,10 +799,10 @@ gcal_quick_add_popover_set_property (GObject *object,
on_calendar_added (manager, l->data, self);
/* Connect to the manager signals and keep the list updates */
- g_signal_connect (manager, "calendar-added", G_CALLBACK (on_calendar_added), self);
- g_signal_connect (manager, "calendar-changed", G_CALLBACK (on_calendar_changed), self);
- g_signal_connect (manager, "calendar-removed", G_CALLBACK (on_calendar_removed), self);
- g_signal_connect_swapped (manager, "notify::default-calendar", G_CALLBACK
(update_default_calendar_row), self);
+ g_signal_connect_object (manager, "calendar-added", G_CALLBACK (on_calendar_added), self, 0);
+ g_signal_connect_object (manager, "calendar-changed", G_CALLBACK (on_calendar_changed), self, 0);
+ g_signal_connect_object (manager, "calendar-removed", G_CALLBACK (on_calendar_removed), self, 0);
+ g_signal_connect_object (manager, "notify::default-calendar", G_CALLBACK
(update_default_calendar_row), self, G_CONNECT_SWAPPED);
g_signal_connect_object (self->context,
"notify::time-format",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]