aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-03-06 20:44:37 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-03-06 20:44:37 +0800
commit9b665c1a82813d17deb3c50d357bc60f13d041dc (patch)
tree00ef1249227c2d5fbb6bdd6cf8c58d5389cd206c
parent245d1c200e2d09a77c540f1874d1c0eb31c2dbd3 (diff)
downloadgsoc2013-evolution-9b665c1a82813d17deb3c50d357bc60f13d041dc.tar
gsoc2013-evolution-9b665c1a82813d17deb3c50d357bc60f13d041dc.tar.gz
gsoc2013-evolution-9b665c1a82813d17deb3c50d357bc60f13d041dc.tar.bz2
gsoc2013-evolution-9b665c1a82813d17deb3c50d357bc60f13d041dc.tar.lz
gsoc2013-evolution-9b665c1a82813d17deb3c50d357bc60f13d041dc.tar.xz
gsoc2013-evolution-9b665c1a82813d17deb3c50d357bc60f13d041dc.tar.zst
gsoc2013-evolution-9b665c1a82813d17deb3c50d357bc60f13d041dc.zip
ref the CalClient. (notify_dialog_cb): unref the CalClient.
2003-03-06 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-queue.c (display_notification): ref the CalClient. (notify_dialog_cb): unref the CalClient. svn path=/trunk/; revision=20186
-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,