[gnome-calendar] edit-dialog: make number of occurrences accept only numeric input
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] edit-dialog: make number of occurrences accept only numeric input
- Date: Thu, 10 Aug 2017 10:12:30 +0000 (UTC)
commit 1ad72b61a3dde168853d78537b79285befac9431
Author: Yash Singh <yashdev10p gmail com>
Date: Tue Aug 1 16:26:15 2017 +0530
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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index e5e3db4..f64d37e 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]