diff options
author | Rodrigo Moya <rodrigo@novell.com> | 2005-01-24 20:58:44 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2005-01-24 20:58:44 +0800 |
commit | 41b8acd59d410521c8e98ccebcce2a72d3e6e1d9 (patch) | |
tree | acd1ff5e7ff960821c2d6f6f4b95ff3832d68ad9 /calendar | |
parent | 721fc61e13a8043d63f45a9b6a765a26b7c99505 (diff) | |
download | gsoc2013-evolution-41b8acd59d410521c8e98ccebcce2a72d3e6e1d9.tar.gz gsoc2013-evolution-41b8acd59d410521c8e98ccebcce2a72d3e6e1d9.tar.zst gsoc2013-evolution-41b8acd59d410521c8e98ccebcce2a72d3e6e1d9.zip |
if there are detached instances, disable recurrence date widgets.
2005-01-24 Rodrigo Moya <rodrigo@novell.com>
* gui/dialogs/recurrence-page.c (sensitize_buttons): if there are
detached instances, disable recurrence date widgets.
svn path=/trunk/; revision=28525
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/gui/dialogs/recurrence-page.c | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 8e22595888..3c8b6d0869 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2005-01-24 Rodrigo Moya <rodrigo@novell.com> + + * gui/dialogs/recurrence-page.c (sensitize_buttons): if there are + detached instances, disable recurrence date widgets. + 2005-01-21 JP Rosevear <jpr@novell.com> Fixes #46404 diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c index 9d61469aac..44b0e2c555 100644 --- a/calendar/gui/dialogs/recurrence-page.c +++ b/calendar/gui/dialogs/recurrence-page.c @@ -531,6 +531,19 @@ sensitize_buttons (RecurrencePage *rpage) read_only = TRUE; icalcomponent_free (icalcomp); } + + if (!read_only) { + GList *list; + + /* see if we have detached instances */ + if (e_cal_get_objects_for_uid (COMP_EDITOR_PAGE (rpage)->client, uid, &list, NULL)) { + if (list && g_list_length (list) > 1) + read_only = TRUE; + + g_list_foreach (list, (GFunc) icalcomponent_free, NULL); + g_list_free (list); + } + } } if (!read_only) |