GNOME Bugzilla – Bug 169787
Gnome2DateEdit can't hold a NULL value
Last modified: 2009-02-22 22:12:41 UTC
The Gnome2DateEdit widget insists on only holding valid date values, and cannot hold a NULL ( or undef or whatever, I'm a Perl programmer ) value. This makes the widget unsuitable for applications where a NULL date is a valid occurance ... in my case in database apps, but clearly this functionality would be necessary to almost everyone. Gtk2Calendar partially allows what is required - you can set the day to zero, which I can then interpret as being a NULL date. Perhaps the same method could be used with Gnome2DateEdit? It doesn't currently work anyway. Also required would be a method of clearing out the selection - possibly with a CTRL-click or something like that. I have considered carefully the 'severity' I've assigned to this bug. I feel that since storing a NULL date value is such a common requirement, that this widget is broken to the point of being unusable. Appologies if others disagree.
gnome-dateedit.c is supposed to be replaced with a new widget which for now lives in libegg/libegg/datetime/egg-datetime.c. Maybe you could make suggestions to have this widget support what you need? We don't do much active development on libgnome/libgnomeui these days other than bugfixing.
WONTFIX as per last comment - feel free to file the request against the corresponding non-deprecated widget.