From 1ad72b61a3dde168853d78537b79285befac9431 Mon Sep 17 00:00:00 2001 From: Yash Singh Date: Tue, 1 Aug 2017 16:26:15 +0530 Subject: [PATCH] edit-dialog: make number of occurrences accept only numeric input Set the numeric property of number of occurrences spin button to TRUE so that it only accepts numeric input. https://bugzilla.gnome.org/show_bug.cgi?id=782755 --- src/gcal-edit-dialog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c index e5e3db4f..f64d37ed 100644 --- a/src/gcal-edit-dialog.c +++ b/src/gcal-edit-dialog.c @@ -1279,6 +1279,8 @@ gcal_edit_dialog_set_event (GcalEditDialog *dialog, gtk_spin_button_set_adjustment (GTK_SPIN_BUTTON (dialog->number_of_occurrences_spin), count_adjustment); + gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (dialog->number_of_occurrences_spin), TRUE); + /* If we just set the event to NULL, simply send a property notify */ if (!event) GCAL_GOTO (out);