From b7de0f3e1f78baa661d41acd1def1e8d74a0085d Mon Sep 17 00:00:00 2001 From: Yash Singh Date: Tue, 1 Aug 2017 16:11:01 +0530 Subject: [PATCH] edit-dialog: set proper limits for number of occurrences Set the lower value as 1 and upper value as G_MAXDOUBLE to make sure that any negative number, or a number greater than G_MAXDOUBLE is not accepted. https://bugzilla.gnome.org/show_bug.cgi?id=782755 --- src/gcal-edit-dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c index 68b1558b..e5e3db4f 100644 --- a/src/gcal-edit-dialog.c +++ b/src/gcal-edit-dialog.c @@ -1275,7 +1275,7 @@ gcal_edit_dialog_set_event (GcalEditDialog *dialog, dialog->setting_event = TRUE; - count_adjustment = gtk_adjustment_new (0, 0, 1000, 1, 1, 10); + count_adjustment = gtk_adjustment_new (0, 1, G_MAXDOUBLE, 1, 1, 10); gtk_spin_button_set_adjustment (GTK_SPIN_BUTTON (dialog->number_of_occurrences_spin), count_adjustment);