aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/event-editor.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2005-04-01 16:44:56 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-04-01 16:44:56 +0800
commit113a8f574a582aecca3deb42ca97c95002a3a8a2 (patch)
treec4148ada18de41d4fa8417fd684b50880847d75b /calendar/gui/dialogs/event-editor.c
parentc43effa4ea33361f4aa573747036ab932270b9e4 (diff)
downloadgsoc2013-evolution-113a8f574a582aecca3deb42ca97c95002a3a8a2.tar
gsoc2013-evolution-113a8f574a582aecca3deb42ca97c95002a3a8a2.tar.gz
gsoc2013-evolution-113a8f574a582aecca3deb42ca97c95002a3a8a2.tar.bz2
gsoc2013-evolution-113a8f574a582aecca3deb42ca97c95002a3a8a2.tar.lz
gsoc2013-evolution-113a8f574a582aecca3deb42ca97c95002a3a8a2.tar.xz
gsoc2013-evolution-113a8f574a582aecca3deb42ca97c95002a3a8a2.tar.zst
gsoc2013-evolution-113a8f574a582aecca3deb42ca97c95002a3a8a2.zip
Fixes #73879 Added a function to sensitize/desensitize the attachment bar.
2005-03-31 Chenthill Palanisamy <pchenthill@novell.com> Fixes #73879 * gui/dialogs/comp-editor.[ch]: (comp_editor_sensitize_attachment_bar): Added a function to sensitize/desensitize the attachment bar. (comp_editor_notify_client_changed): When client changes sensitize the attachment bar. * gui/dialogs/event-editor.c: (event_editor_construct): * gui/dialogs/task-editor.c: (task_editor_construct): Sensitize the attachment bar. svn path=/trunk/; revision=29146
Diffstat (limited to 'calendar/gui/dialogs/event-editor.c')
-rw-r--r--calendar/gui/dialogs/event-editor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/event-editor.c b/calendar/gui/dialogs/event-editor.c
index 5f46bb1222..20ded07a6c 100644
--- a/calendar/gui/dialogs/event-editor.c
+++ b/calendar/gui/dialogs/event-editor.c
@@ -129,6 +129,7 @@ EventEditor *
event_editor_construct (EventEditor *ee, ECal *client)
{
EventEditorPrivate *priv;
+ gboolean read_only = FALSE;
priv = ee->priv;
@@ -147,6 +148,10 @@ event_editor_construct (EventEditor *ee, ECal *client)
comp_editor_append_page (COMP_EDITOR (ee),
COMP_EDITOR_PAGE (priv->recur_page),
_("Recurrence"));
+
+ if (!e_cal_is_read_only (client, &read_only, NULL))
+ read_only = TRUE;
+ comp_editor_sensitize_attachment_bar (COMP_EDITOR (ee), !read_only);
if (priv->is_meeting) {
if (e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_REQ_SEND_OPTIONS))