[gnome-calendar] edit-dialog: set minimum number of occurrence to 2
- From: Mohammed Sadiq <pksadiq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] edit-dialog: set minimum number of occurrence to 2
- Date: Tue, 12 Sep 2017 14:40:25 +0000 (UTC)
commit a5d1d9dc99419aab2d1fdfa8dcf6e2d0cfbff009
Author: Nidhi Gupta <nidhi98gupta gmail com>
Date: Tue Sep 12 19:38:20 2017 +0530
edit-dialog: set minimum number of occurrence to 2
An event should be considered as recurring only when it occurs
at least 2 times.
So to make sure the number of occurrences are at least 2,
set minimum value of recurrence spin button as 2.
https://bugzilla.gnome.org/show_bug.cgi?id=787054
src/gcal-edit-dialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index 5bc967f..31760b5 100644
--- a/src/gcal-edit-dialog.c
+++ b/src/gcal-edit-dialog.c
@@ -1261,7 +1261,7 @@ gcal_edit_dialog_set_event (GcalEditDialog *dialog,
dialog->setting_event = TRUE;
- count_adjustment = gtk_adjustment_new (0, 1, G_MAXDOUBLE, 1, 1, 10);
+ count_adjustment = gtk_adjustment_new (0, 2, G_MAXDOUBLE, 1, 1, 10);
gtk_spin_button_set_adjustment (GTK_SPIN_BUTTON (dialog->number_of_occurrences_spin), count_adjustment);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]