diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-01-13 15:34:20 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-01-13 15:34:20 +0800 |
commit | 8496b2eafbed44f3730c5b8ccb98050fdd3e8206 (patch) | |
tree | b51b4c41dbbd0c4e677cc9a6cd17611d511d9053 /calendar/gui/e-calendar-view.c | |
parent | a3af03a8c5c84a67712c27ec03574b49ee5d1b3b (diff) | |
download | gsoc2013-evolution-8496b2eafbed44f3730c5b8ccb98050fdd3e8206.tar.gz gsoc2013-evolution-8496b2eafbed44f3730c5b8ccb98050fdd3e8206.tar.zst gsoc2013-evolution-8496b2eafbed44f3730c5b8ccb98050fdd3e8206.zip |
fixes #271541
svn path=/trunk/; revision=31155
Diffstat (limited to 'calendar/gui/e-calendar-view.c')
-rw-r--r-- | calendar/gui/e-calendar-view.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index 0f854b619b..9ebfa248d5 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -1680,6 +1680,7 @@ e_calendar_view_new_appointment_for (ECalendarView *cal_view, ECalComponentTransparency transparency; ECal *default_client = NULL; guint32 flags = 0; + gboolean readonly = FALSE; g_return_if_fail (E_IS_CALENDAR_VIEW (cal_view)); @@ -1692,6 +1693,17 @@ e_calendar_view_new_appointment_for (ECalendarView *cal_view, return; } + if (e_cal_is_read_only (default_client, &readonly, NULL) && readonly) { + GtkWidget *widget; + + widget = e_error_new (NULL, "calendar:prompt-read-only-cal", NULL); + + g_signal_connect ((GtkDialog *)widget, "response", G_CALLBACK (gtk_widget_destroy), + widget); + gtk_widget_show (widget); + return; + } + dt.value = &itt; if (all_day) dt.tzid = NULL; |