diff options
author | Milan Crha <mcrha@redhat.com> | 2008-03-27 18:38:33 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2008-03-27 18:38:33 +0800 |
commit | 2759c2e3a72c5c2e8a7b35eb1342221c3813380b (patch) | |
tree | 36a29a3adfb1f5ff938beda7a1dc22d6b3520351 /calendar | |
parent | eaca5de27a99671161919ef55ea10759828f2be5 (diff) | |
download | gsoc2013-evolution-2759c2e3a72c5c2e8a7b35eb1342221c3813380b.tar gsoc2013-evolution-2759c2e3a72c5c2e8a7b35eb1342221c3813380b.tar.gz gsoc2013-evolution-2759c2e3a72c5c2e8a7b35eb1342221c3813380b.tar.bz2 gsoc2013-evolution-2759c2e3a72c5c2e8a7b35eb1342221c3813380b.tar.lz gsoc2013-evolution-2759c2e3a72c5c2e8a7b35eb1342221c3813380b.tar.xz gsoc2013-evolution-2759c2e3a72c5c2e8a7b35eb1342221c3813380b.tar.zst gsoc2013-evolution-2759c2e3a72c5c2e8a7b35eb1342221c3813380b.zip |
** Fix for bug #438613
2008-03-27 Milan Crha <mcrha@redhat.com>
** Fix for bug #438613
* addressbook/addressbook.error.xml:
Improved "contact-delete-error-perm" secondary text.
* calendar/calendar.error.xml: New message "prompt-read-only-cal-editor".
* calendar/gui/dialogs/comp-editor.c: (prompt_and_save_changes),
(menu_file_save_cb): Use different read-only message when checking
from contact editor and from calendar UI.
svn path=/trunk/; revision=35260
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 9 | ||||
-rw-r--r-- | calendar/calendar.error.xml | 7 | ||||
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 4 |
3 files changed, 18 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 2c88ac569f..1753233db9 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,12 @@ +2008-03-27 Milan Crha <mcrha@redhat.com> + + ** Fix for bug #438613 + + * calendar.error.xml: New message "prompt-read-only-cal-editor". + * gui/dialogs/comp-editor.c: (prompt_and_save_changes), + (menu_file_save_cb): Use different read-only message when checking + from contact editor and from calendar UI. + 2008-03-13 Milan Crha <mcrha@redhat.com> ** Fix for bug #512543 diff --git a/calendar/calendar.error.xml b/calendar/calendar.error.xml index 6a51831d4f..bca6593eb9 100644 --- a/calendar/calendar.error.xml +++ b/calendar/calendar.error.xml @@ -235,6 +235,13 @@ <button stock ="gtk-ok" response="GTK_RESPONSE_YES"/> </error> + <error id="prompt-read-only-cal-editor" type="error" default="GTK_RESPONSE_YES"> + <_primary>Cannot save event</_primary> + <!-- For Translators: {0} is the name of the calendar source --> + <_secondary>'{0}' is a read-only calendar source. Change Calendar to one that can accept appointments.</_secondary> + <button stock ="gtk-ok" response="GTK_RESPONSE_YES"/> + </error> + <error id="prompt-no-contents-offline-tasks" type="error" default="GTK_RESPONSE_YES"> <_primary>Error loading task list</_primary> <_secondary>The task list is not marked for offline usage.</_secondary> diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 17b24091d8..a5b2232a0b 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -915,7 +915,7 @@ prompt_and_save_changes (CompEditor *editor, gboolean send) switch (save_component_dialog (GTK_WINDOW(editor), priv->comp)) { case GTK_RESPONSE_YES: /* Save */ if (!e_cal_is_read_only (priv->client, &read_only, NULL) || read_only) { - e_error_run ((GtkWindow *) gtk_widget_get_toplevel (GTK_WIDGET (editor)), "calendar:prompt-read-only-cal", e_source_peek_name (e_cal_get_source (priv->client)), NULL); + e_error_run ((GtkWindow *) gtk_widget_get_toplevel (GTK_WIDGET (editor)), "calendar:prompt-read-only-cal-editor", e_source_peek_name (e_cal_get_source (priv->client)), NULL); /* don't discard changes when selected readonly calendar */ return FALSE; } @@ -1290,7 +1290,7 @@ menu_file_save_cb (BonoboUIComponent *uic, } if (!e_cal_is_read_only (priv->client, &read_only, NULL) || read_only) { - e_error_run ((GtkWindow *) gtk_widget_get_toplevel (GTK_WIDGET (editor)), "calendar:prompt-read-only-cal", e_source_peek_name (e_cal_get_source (priv->client)), NULL); + e_error_run ((GtkWindow *) gtk_widget_get_toplevel (GTK_WIDGET (editor)), "calendar:prompt-read-only-cal-editor", e_source_peek_name (e_cal_get_source (priv->client)), NULL); return; } |