diff options
author | JP Rosevear <jpr@ximian.com> | 2001-10-10 22:37:14 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-10-10 22:37:14 +0800 |
commit | 1359335208dd9260b6b0541b692e534fa70bed7b (patch) | |
tree | 8d707e092305448cb3194b5b0a853c706b661da9 /calendar/cal-util | |
parent | a46bcc8084af31a5cb86b0b5305298e94250c5f9 (diff) | |
download | gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.tar.gz gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.tar.zst gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.zip |
fix logic checks
2001-10-10 JP Rosevear <jpr@ximian.com>
* pcs/cal-factory.c (add_uri): fix logic checks
* gui/dialogs/event-editor.c (event_editor_init): init the
exisiting_org boolean
(set_menu_sens): base sensitivity on existing_org boolean
(event_editor_edit_comp): set exisiting_org boolean
* gui/dialogs/task-editor.c: same as above
* gui/calendar-offline-handler.c (add_connection): handle the
protocol or host being unknown
* cal-util/cal-component.c (cal_component_has_organizer):
implement
svn path=/trunk/; revision=13552
Diffstat (limited to 'calendar/cal-util')
-rw-r--r-- | calendar/cal-util/cal-component.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c index 0d58d41017..fd543debfe 100644 --- a/calendar/cal-util/cal-component.c +++ b/calendar/cal-util/cal-component.c @@ -2853,6 +2853,28 @@ cal_component_set_organizer (CalComponent *comp, CalComponentOrganizer *organize } + + +/** + * cal_component_has_organizer: + * @comp: + * + * + * + * Return value: + **/ +gboolean +cal_component_has_organizer (CalComponent *comp) +{ + CalComponentPrivate *priv; + + g_return_val_if_fail (comp != NULL, FALSE); + g_return_val_if_fail (IS_CAL_COMPONENT (comp), FALSE); + + priv = comp->priv; + + return priv->organizer.prop != NULL; +} /** * cal_component_get_percent: |