[gnome-calendar/date-selector] edit-dialog: fixed wrong setting of date selector sensitivity
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/date-selector] edit-dialog: fixed wrong setting of date selector sensitivity
- Date: Thu, 18 Dec 2014 17:31:55 +0000 (UTC)
commit a95057887be7e92b75fb095073bd7a7a39593ff5
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 00e0f28..2eb59e4 100644
--- a/src/gcal-edit-dialog.c
+++ b/src/gcal-edit-dialog.c
@@ -700,20 +700,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]