[gnome-calendar] edit-dialog: fixed wrong setting of date selector sensitivity
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] edit-dialog: fixed wrong setting of date selector sensitivity
- Date: Tue, 23 Dec 2014 17:05:25 +0000 (UTC)
commit 63e473476b4bb5565780efc9d473d76f8d5918ee
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Dec 18 15:31:43 2014 -0200
edit-dialog: fixed wrong setting of date selector sensitivity
src/gcal-edit-dialog.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index efdd746..f43eddf 100644
--- a/src/gcal-edit-dialog.c
+++ b/src/gcal-edit-dialog.c
@@ -656,20 +656,18 @@ gcal_edit_dialog_set_writable (GcalEditDialog *dialog,
gtk_text_view_set_editable (GTK_TEXT_VIEW (priv->notes_text), writable);
gtk_widget_set_sensitive (priv->all_day_check, writable);
+ gtk_widget_set_sensitive (priv->end_date_selector, writable);
+ gtk_widget_set_sensitive (priv->start_date_selector, writable);
if (!writable || (writable && gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->all_day_check))))
{
gtk_widget_set_sensitive (priv->start_time_selector, FALSE);
gtk_widget_set_sensitive (priv->end_time_selector, FALSE);
- gtk_widget_set_sensitive (priv->start_date_selector, FALSE);
- gtk_widget_set_sensitive (priv->end_date_selector, FALSE);
}
else
{
gtk_widget_set_sensitive (priv->start_time_selector, TRUE);
gtk_widget_set_sensitive (priv->end_time_selector, TRUE);
- gtk_widget_set_sensitive (priv->start_date_selector, TRUE);
- gtk_widget_set_sensitive (priv->end_date_selector, TRUE);
}
gtk_button_set_label (GTK_BUTTON (priv->done_button),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]