GNOME Bugzilla – Bug 696930
Incorrect allowed value for a property
Last modified: 2013-05-30 17:56:27 UTC
Under certain circumstances, the allowed value shown for properties in incorrect. https://developer.gnome.org/gtk3/3.8/GtkBox.html#GtkBox--c-position Take the "position" property for GtkBox as an example. "Allowed values: >= G_MAXULONG" That is not correct for a number of reasons. First, the type of that property is gint. Second, why say greater-that-or-equal-to, instead of just equal-to? Third, the default of 0 value wouldn't be allowed. The corresponding source code: https://git.gnome.org/browse/gtk+/tree/gtk/gtkbox.c?h=gtk-3-8#n310
commit a9aa6ca34a97a2e10e3747e8057bcd8bdb6d3ad3 Author: Stefan Sauer <ensonic@users.sf.net> Date: Thu May 30 19:54:33 2013 +0200 scangobj: fix description for int properties Don't try to apply unsigned MAX constants to signed properties. Fixes: #696930