[evolution] Bug #449081 - Drop read-only calendar error message
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #449081 - Drop read-only calendar error message
- Date: Tue, 4 Dec 2012 15:20:25 +0000 (UTC)
commit 0178cb5aab44454ff40d1bf9d66b461feacfeca1
Author: Milan Crha <mcrha redhat com>
Date: Tue Dec 4 16:19:24 2012 +0100
Bug #449081 - Drop read-only calendar error message
calendar/calendar.error.xml | 6 ------
calendar/gui/e-calendar-view.c | 24 +-----------------------
2 files changed, 1 insertions(+), 29 deletions(-)
---
diff --git a/calendar/calendar.error.xml b/calendar/calendar.error.xml
index a99521e..98ca70b 100644
--- a/calendar/calendar.error.xml
+++ b/calendar/calendar.error.xml
@@ -267,12 +267,6 @@
<_secondary>The calendar is not marked for offline usage.</_secondary>
</error>
- <error id="prompt-read-only-cal" type="error" default="GTK_RESPONSE_YES">
- <_primary>Cannot create a new event</_primary>
- <!-- Translators: {0} is the name of the calendar source -->
- <_secondary>'{0}' is a read-only calendar and cannot be modified. Please select a different calendar from the side bar in the Calendar view.</_secondary>
- </error>
-
<error id="prompt-read-only-cal-editor" type="error" default="GTK_RESPONSE_YES">
<_primary>Cannot save event</_primary>
<!-- Translators: {0} is the name of the calendar source -->
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index bc3dc89..2801391 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -1526,29 +1526,7 @@ e_calendar_view_new_appointment_for (ECalendarView *cal_view,
priv = cal_view->priv;
default_client = e_cal_model_get_default_client (priv->model);
-
- if (!default_client || !e_client_is_opened (E_CLIENT (default_client))) {
- g_warning ("Default client not loaded \n");
- return;
- }
-
- if (e_client_is_readonly (E_CLIENT (default_client))) {
- GtkWidget *widget;
- ESource *source;
-
- source = e_client_get_source (E_CLIENT (default_client));
-
- widget = e_alert_dialog_new_for_args (
- parent, "calendar:prompt-read-only-cal",
- e_source_get_display_name (source),
- NULL);
-
- g_signal_connect (
- widget, "response",
- G_CALLBACK (gtk_widget_destroy), widget);
- gtk_widget_show (widget);
- return;
- }
+ g_return_if_fail (default_client != NULL);
dt.value = &itt;
if (all_day)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]