aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 0e31de8a5f..4d5997f414 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,10 @@
2003-03-06 Rodrigo Moya <rodrigo@ximian.com>
+ * gui/alarm-queue.c (display_notification): ref the CalClient.
+ (notify_dialog_cb): unref the CalClient.
+
+2003-03-06 Rodrigo Moya <rodrigo@ximian.com>
+
* gui/alarm-notify/alarm-notify-dialog.[ch]
(alarm_notify_dialog_disable_buttons): new function.
(alarm_notify_dialog): made it return a pointer to the dialog structure.
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index b5644e132f..50a36fe4f1 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -700,6 +700,7 @@ notify_dialog_cb (AlarmNotifyResult result, int snooze_mins, gpointer data)
remove_queued_alarm (c->cqa, c->alarm_id);
g_object_unref (c->comp);
+ g_object_unref (c->client);
g_free (c);
}
@@ -758,6 +759,7 @@ display_notification (time_t trigger, CompQueuedAlarms *cqa,
c->alarm_id = alarm_id;
c->comp = cal_component_clone (comp);
c->client = c->cqa->parent_client->client;
+ g_object_ref (c->client);
if (!(c->dialog = alarm_notify_dialog (trigger,
qa->instance->occur_start, qa->instance->occur_end,