aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog10
-rw-r--r--calendar/gui/calendar-component.c11
-rw-r--r--calendar/gui/tasks-component.c11
3 files changed, 10 insertions, 22 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 236bb25b16..ac02853885 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,15 @@
2004-06-18 Rodrigo Moya <rodrigo@novell.com>
+ Fixes #56323
+
+ * gui/calendar-component.c (create_new_event): removed read-only
+ check, just call the editor with the currently selected client and
+ let it do the job.
+
+ * gui/tasks-component.c (create_new_todo): ditto.
+
+2004-06-18 Rodrigo Moya <rodrigo@novell.com>
+
Fixes #60293
* gui/dialogs/recurrence-page.c (type_toggled_cb): make sure
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index 61f0aae690..3b84151b1f 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -955,17 +955,6 @@ create_new_event (CalendarComponent *calendar_component, CalendarComponentView *
if (!ecal)
return FALSE;
- if (!e_cal_is_read_only (ecal, &read_only, NULL) || read_only) {
- GtkWidget *dialog;
-
- dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
- GTK_MESSAGE_INFO, GTK_BUTTONS_OK,
- _("Selected calendar is read-only, events cannot be created. Please select a read-write calendar."));
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
- return TRUE;
- }
-
if (component_view && (view = E_CALENDAR_VIEW (gnome_calendar_get_current_view_widget (component_view->calendar)))) {
GnomeCalendarViewType view_type;
diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c
index 2f76ce0110..9f5edbcda0 100644
--- a/calendar/gui/tasks-component.c
+++ b/calendar/gui/tasks-component.c
@@ -791,17 +791,6 @@ create_new_todo (TasksComponent *task_component, TasksComponentView *component_v
if (!ecal)
return FALSE;
- if (!e_cal_is_read_only (ecal, &read_only, NULL) || read_only) {
- GtkWidget *dialog;
-
- dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
- GTK_MESSAGE_INFO, GTK_BUTTONS_OK,
- _("Selected task list is read-only, events cannot be created. Please select a read-write calendar."));
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
- return TRUE;
- }
-
editor = task_editor_new (ecal);
comp = cal_comp_task_new_with_defaults (ecal);