diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-06-02 12:40:44 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-06-02 12:40:44 +0800 |
commit | c91b4c129a05a17a3a4b9861630a9cb43589ca4a (patch) | |
tree | fc31f3a9b4719e3b2ce2654e7a557cbe6650ca99 /calendar/gui/gnome-cal.c | |
parent | a161070ec2a2de0527a9b442f11d29a6749db122 (diff) | |
download | gsoc2013-evolution-c91b4c129a05a17a3a4b9861630a9cb43589ca4a.tar.gz gsoc2013-evolution-c91b4c129a05a17a3a4b9861630a9cb43589ca4a.tar.zst gsoc2013-evolution-c91b4c129a05a17a3a4b9861630a9cb43589ca4a.zip |
Handler for the "editor_closed" signal of the event editor; we just
2000-06-01 Federico Mena Quintero <federico@helixcode.com>
* gui/gnome-cal.c (editor_closed_cb): Handler for the
"editor_closed" signal of the event editor; we just destroy it
then.
* gui/event-editor.c (app_delete_event_cb): Callback used when the
dialog is closed. Release the iCalObject here instead of the
event editor's destroy handler, and emit the new "editor_closed"
signal.
svn path=/trunk/; revision=3376
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); } |