summaryrefslogtreecommitdiff
path: root/gtk/gtkcalendar.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2021-05-07 12:13:49 +0200
committerCarlos Garcia Campos <cgarcia@igalia.com>2021-05-07 12:13:49 +0200
commit7b2b8b86e1e9a6a383e33126ee5877a4d9850741 (patch)
tree045f7a58c5a039e5e41fd204c726580f9185118c /gtk/gtkcalendar.c
parent1f8985e47623421fa563e5449671c18f186cbc3a (diff)
downloadgtk+-7b2b8b86e1e9a6a383e33126ee5877a4d9850741.tar.gz
calendar: do not allow to set 0 as day
We no longer unselect the current day when 0 is set, so update the documentation and the property definition.
Diffstat (limited to 'gtk/gtkcalendar.c')
-rw-r--r--gtk/gtkcalendar.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index cda27021b8..93f1793078 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -397,16 +397,13 @@ gtk_calendar_class_init (GtkCalendarClass *class)
* GtkCalendar:day:
*
* The selected day (as a number between 1 and 31).
- *
- * This can be set to 0 to unselect the currently selected day.
- * This property gets initially set to the current day.
*/
g_object_class_install_property (gobject_class,
PROP_DAY,
g_param_spec_int ("day",
P_("Day"),
- P_("The selected day (as a number between 1 and 31, or 0 to unselect the currently selected day)"),
- 0, 31, 0,
+ P_("The selected day (as a number between 1 and 31)"),
+ 1, 31, 1,
G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**