aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/event-page.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-06-22 16:16:27 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-06-22 16:16:27 +0800
commita837b9e89989e1ddf2750099f8f06e807dd0f510 (patch)
tree8a5cae1f4aad278e9875c3d0cebaa4b92f11e4b4 /calendar/gui/dialogs/event-page.c
parent7145e440a5be056332cd1210eb45e746ba25e527 (diff)
downloadgsoc2013-evolution-a837b9e89989e1ddf2750099f8f06e807dd0f510.tar
gsoc2013-evolution-a837b9e89989e1ddf2750099f8f06e807dd0f510.tar.gz
gsoc2013-evolution-a837b9e89989e1ddf2750099f8f06e807dd0f510.tar.bz2
gsoc2013-evolution-a837b9e89989e1ddf2750099f8f06e807dd0f510.tar.lz
gsoc2013-evolution-a837b9e89989e1ddf2750099f8f06e807dd0f510.tar.xz
gsoc2013-evolution-a837b9e89989e1ddf2750099f8f06e807dd0f510.tar.zst
gsoc2013-evolution-a837b9e89989e1ddf2750099f8f06e807dd0f510.zip
Commiting the delegation support for recurrence events
svn path=/trunk/; revision=29564
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r--calendar/gui/dialogs/event-page.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index 3671e7267e..5c934f338f 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -638,6 +638,9 @@ sensitize_widgets (EventPage *epage)
gtk_widget_set_sensitive (priv->categories_btn, !read_only && sens);
gtk_widget_set_sensitive (priv->sendoptions_button, !read_only && sens);
gtk_entry_set_editable (GTK_ENTRY (priv->categories), !read_only && sens);
+
+ if (COMP_EDITOR_PAGE (epage)->flags & COMP_EDITOR_PAGE_DELEGATE)
+ gtk_widget_set_sensitive (priv->sendoptions_button, TRUE);
}
void
@@ -677,7 +680,7 @@ event_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
ECalComponentClassification cl;
ECalComponentTransparency transparency;
ECalComponentDateTime start_date, end_date;
- icalcomponent *icalcomp;
+ icalcomponent *icalcomp = NULL;
const char *location, *uid = NULL;
const char *categories;
ESource *source;
@@ -799,7 +802,7 @@ event_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
e_source_option_menu_select (E_SOURCE_OPTION_MENU (priv->source_selector), source);
e_cal_component_get_uid (comp, &uid);
- if (e_cal_get_object (COMP_EDITOR_PAGE (epage)->client, uid, NULL, &icalcomp, NULL)) {
+ if (!(COMP_EDITOR_PAGE (epage)->flags & COMP_EDITOR_PAGE_DELEGATE) && e_cal_get_object (COMP_EDITOR_PAGE (epage)->client, uid, NULL, &icalcomp, NULL)) {
icalcomponent_free (icalcomp);
event_page_hide_options (epage);
}