[gnome-calendar] edit-dialog: set proper limits for number of occurrences



commit b7de0f3e1f78baa661d41acd1def1e8d74a0085d
Author: Yash Singh <yashdev10p gmail com>
Date:   Tue Aug 1 16:11:01 2017 +0530

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index 68b1558..e5e3db4 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]