diff options
author | Gary Ekker <gekker@novell.com> | 2004-04-13 21:55:32 +0800 |
---|---|---|
committer | Gary Ekker <gekker@src.gnome.org> | 2004-04-13 21:55:32 +0800 |
commit | 1e0c8d98513ae0a937c6bbca4090e66e7e9bcbd1 (patch) | |
tree | 144370194401551e88b7bb8d69c5f057d77b20c0 /calendar | |
parent | 00d9f591651c0666c108c6774d3619eaacf2fbd3 (diff) | |
download | gsoc2013-evolution-1e0c8d98513ae0a937c6bbca4090e66e7e9bcbd1.tar.gz gsoc2013-evolution-1e0c8d98513ae0a937c6bbca4090e66e7e9bcbd1.tar.zst gsoc2013-evolution-1e0c8d98513ae0a937c6bbca4090e66e7e9bcbd1.zip |
Fixes #56628
2004-04-12 Gary Ekker <gekker@novell.com>
Fixes #56628
* gui/calendar-component.c (create_new_event): Add informational dialog
when user attempts event creation in read-only calendar.
svn path=/trunk/; revision=25432
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 8 | ||||
-rw-r--r-- | calendar/gui/calendar-component.c | 12 |
2 files changed, 18 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index d5f0b23121..f85830fc8d 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2004-04-12 Gary Ekker <gekker@novell.com> + + Fixes #56628 + + * gui/calendar-component.c (create_new_event): Add informational dialog + when user attempts event creation in read-only calendar. + + 2004-04-09 Gary Ekker <gekker@novell.com> * gui/dialogs/url-editor-dialog.c: Fixed to use e-passwords. diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index ccc5f888e9..f4f5149eb4 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -1055,9 +1055,17 @@ create_new_event (CalendarComponent *calendar_component, gboolean is_allday, gbo bonobo_exception_set (ev, ex_GNOME_Evolution_Component_Failed); return; } - if (!e_cal_is_read_only (priv->create_ecal, &read_only, NULL) || read_only) + if (!e_cal_is_read_only (priv->create_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; - + } + if (priv->calendar && (view = E_CALENDAR_VIEW (gnome_calendar_get_current_view_widget (priv->calendar)))) e_calendar_view_new_appointment_full (view, is_allday, is_meeting); else { |