aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@novell.com>2005-01-24 20:58:44 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2005-01-24 20:58:44 +0800
commit41b8acd59d410521c8e98ccebcce2a72d3e6e1d9 (patch)
treeacd1ff5e7ff960821c2d6f6f4b95ff3832d68ad9 /calendar/gui
parent721fc61e13a8043d63f45a9b6a765a26b7c99505 (diff)
downloadgsoc2013-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/gui')
-rw-r--r--calendar/gui/dialogs/recurrence-page.c13
1 files changed, 13 insertions, 0 deletions
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)