diff options
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r-- | calendar/gui/gnome-cal.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 460e0151d6..e97947cbf0 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -1327,6 +1327,13 @@ ical_object_released_cb (EventEditor *ee, const char *uid, gpointer data) g_free (orig_uid); } +/* Callback used when an event editor dialog is closed */ +static void +editor_closed_cb (EventEditor *ee, gpointer data) +{ + gtk_object_unref (GTK_OBJECT (ee)); +} + void gnome_calendar_edit_object (GnomeCalendar *gcal, iCalObject *ico) { @@ -1353,6 +1360,9 @@ gnome_calendar_edit_object (GnomeCalendar *gcal, iCalObject *ico) gtk_signal_connect (GTK_OBJECT (ee), "ical_object_released", GTK_SIGNAL_FUNC (ical_object_released_cb), gcal); + gtk_signal_connect (GTK_OBJECT (ee), "editor_closed", + GTK_SIGNAL_FUNC (editor_closed_cb), gcal); + event_editor_set_ical_object (EVENT_EDITOR (ee), ico); } |