[gnome-calendar] edit-dialog: forbid editing times when source is readonly
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] edit-dialog: forbid editing times when source is readonly
- Date: Thu, 18 Feb 2016 03:05:09 +0000 (UTC)
commit 2bb5f42b66d97ecbc19de23ba46a22ee6f5fbc57
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Feb 18 03:34:48 2016 +0100
edit-dialog: forbid editing times when source is readonly
src/gcal-edit-dialog.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index 6ba3bdd..2d707ec 100644
--- a/src/gcal-edit-dialog.c
+++ b/src/gcal-edit-dialog.c
@@ -630,8 +630,8 @@ gcal_edit_dialog_set_event (GcalEditDialog *dialog,
/* all_day */
all_day = gcal_event_get_all_day (event);
- gtk_widget_set_sensitive (dialog->start_time_selector, !all_day);
- gtk_widget_set_sensitive (dialog->end_time_selector, !all_day);
+ gtk_widget_set_sensitive (dialog->start_time_selector, dialog->writable && !all_day);
+ gtk_widget_set_sensitive (dialog->end_time_selector, dialog->writable && !all_day);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->all_day_check), all_day);
/* location */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]