Issue of the Standard # D0013


The documentation for the interface "g_date_clamp" is incomplete

Detailed Description

There is no mention about the functionality of the interface g_date_clamp in case the value of the "date" parameter falls between the values of the parameters "min_date" and "max_date".

Problem location(s) in the standard

Linux Standard Base Desktop Specification 3.1, Chapter 12. Libraries, 12.2 Interfaces for libglib-2.0;

Possible solutions

Adding the sentence:

If date falls between min_date and max_date, the date is not changed.

after the sentence

If date falls after max_date, sets date equal to max_date.


Gnome Bugzilla 491970


Fixed in gtk-glib - 2.16