aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-page.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-09-26 17:08:46 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-26 18:56:07 +0800
commit8a0ae7db0077177d3e34c9ae00dcd54f2f882bd1 (patch)
treea25a21fc06208ccce9c3162be203c8d79df24aa3 /calendar/gui/dialogs/task-page.c
parent981d3d17680fd8592c8593732b2640f17ad6d572 (diff)
downloadgsoc2013-evolution-8a0ae7db0077177d3e34c9ae00dcd54f2f882bd1.tar
gsoc2013-evolution-8a0ae7db0077177d3e34c9ae00dcd54f2f882bd1.tar.gz
gsoc2013-evolution-8a0ae7db0077177d3e34c9ae00dcd54f2f882bd1.tar.bz2
gsoc2013-evolution-8a0ae7db0077177d3e34c9ae00dcd54f2f882bd1.tar.lz
gsoc2013-evolution-8a0ae7db0077177d3e34c9ae00dcd54f2f882bd1.tar.xz
gsoc2013-evolution-8a0ae7db0077177d3e34c9ae00dcd54f2f882bd1.tar.zst
gsoc2013-evolution-8a0ae7db0077177d3e34c9ae00dcd54f2f882bd1.zip
Bug #657170 - Disallow creating assigned tasks when not supported
Diffstat (limited to 'calendar/gui/dialogs/task-page.c')
-rw-r--r--calendar/gui/dialogs/task-page.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index d88976be75..e0aa030358 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -290,6 +290,12 @@ sensitize_widgets (TaskPage *tpage)
gchar *tmp = g_strconcat ("<b>", _("Task cannot be fully edited, because you are not the organizer"), "</b>", NULL);
task_page_set_info_string (tpage, GTK_STOCK_DIALOG_INFO, tmp);
g_free (tmp);
+ } else if ((flags & COMP_EDITOR_IS_ASSIGNED) != 0 && e_client_check_capability (E_CLIENT (client), CAL_STATIC_CAPABILITY_NO_TASK_ASSIGNMENT)) {
+ gchar *tmp = g_strconcat ("<b>", _("Task cannot be edited, because the selected task list does not support assigned tasks"), "</b>", NULL);
+ task_page_set_info_string (tpage, GTK_STOCK_DIALOG_INFO, tmp);
+ g_free (tmp);
+ sens = FALSE;
+ read_only = TRUE;
} else if (!check_starts_in_the_past (tpage)) {
task_page_set_info_string (tpage, priv->subscriber_info_text ? GTK_STOCK_DIALOG_INFO : NULL, priv->subscriber_info_text);
}