After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 362972 - GtkCalendar allows for negative year
GtkCalendar allows for negative year
Status: RESOLVED DUPLICATE of bug 166465
Product: gtk+
Classification: Platform
Component: Widget: GtkCalendar
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 424587 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-10-17 21:12 UTC by Brad Taylor
Modified: 2010-08-11 04:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Brad Taylor 2006-10-17 21:12:41 UTC
This issue is tangentially related to #166465, but it seemed different enough to warrant a seperate issue.

GtkCalendar's UI allows for negative years to be entered by repeatedly mashing the left arrow until the year becomes < 0.

Theoretical time/space issues aside, this becomes pretty ugly when you call gtk_calendar_get_date(uint, uint, uint) as the year is returned as a uint, causing it to wrap around, and returning a nasty year like 4294967281.  Either GtkCalendar should desensitize the left arrow when the year becomes 0 (best), or return the year as a signed integer (passable).
Comment 1 Teppo Turtiainen 2007-05-11 15:22:53 UTC
*** Bug 424587 has been marked as a duplicate of this bug. ***
Comment 2 Matthias Clasen 2010-08-11 04:24:17 UTC

*** This bug has been marked as a duplicate of bug 166465 ***