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
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
843a30beba
commit
b7de0f3e1f
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user