diff options
author | JP Rosevear <jpr@ximian.com> | 2002-05-27 01:10:48 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-05-27 01:10:48 +0800 |
commit | 08f9758626f41561d7420ece2e59489b24f29324 (patch) | |
tree | 1072718d789afb1ece51bf8098e227632eab842d /calendar/gui/dialogs | |
parent | a1d69a1b83b4a1de9f54fef9a4e0da7703de9a55 (diff) | |
download | gsoc2013-evolution-08f9758626f41561d7420ece2e59489b24f29324.tar gsoc2013-evolution-08f9758626f41561d7420ece2e59489b24f29324.tar.gz gsoc2013-evolution-08f9758626f41561d7420ece2e59489b24f29324.tar.bz2 gsoc2013-evolution-08f9758626f41561d7420ece2e59489b24f29324.tar.lz gsoc2013-evolution-08f9758626f41561d7420ece2e59489b24f29324.tar.xz gsoc2013-evolution-08f9758626f41561d7420ece2e59489b24f29324.tar.zst gsoc2013-evolution-08f9758626f41561d7420ece2e59489b24f29324.zip |
update proto
2002-05-26 JP Rosevear <jpr@ximian.com>
* gui/dialogs/comp-editor.h: update proto
* gui/dialogs/comp-editor.c (comp_editor_get_comp): new function
to get base comp
* gui/e-comp-editor-registry.c (e_comp_editor_registry_add): get
the base comp, not the current comp, don't unref it
(foreach_close_cb): block the signal, unblock it if the editor
could not be closed
(e_comp_editor_registry_close_all): fix preconditions
(editor_destroy_cb): get the base comp, not the current comp,
don't unref it
svn path=/trunk/; revision=17020
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 13 | ||||
-rw-r--r-- | calendar/gui/dialogs/comp-editor.h | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 18ca46af27..3e245a0c98 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -913,6 +913,19 @@ comp_editor_edit_comp (CompEditor *editor, CalComponent *comp) } CalComponent * +comp_editor_get_comp (CompEditor *editor) +{ + CompEditorPrivate *priv; + + g_return_val_if_fail (editor != NULL, NULL); + g_return_val_if_fail (IS_COMP_EDITOR (editor), NULL); + + priv = editor->priv; + + return priv->comp; +} + +CalComponent * comp_editor_get_current_comp (CompEditor *editor) { CompEditorPrivate *priv; diff --git a/calendar/gui/dialogs/comp-editor.h b/calendar/gui/dialogs/comp-editor.h index db4a407e25..6772f135e8 100644 --- a/calendar/gui/dialogs/comp-editor.h +++ b/calendar/gui/dialogs/comp-editor.h @@ -77,6 +77,7 @@ void comp_editor_set_cal_client (CompEditor *editor, CalClient *comp_editor_get_cal_client (CompEditor *editor); void comp_editor_edit_comp (CompEditor *ee, CalComponent *comp); +CalComponent *comp_editor_get_comp (CompEditor *editor); CalComponent *comp_editor_get_current_comp (CompEditor *editor); gboolean comp_editor_save_comp (CompEditor *editor, gboolean send); |