Kevin Ryde <[email protected]> wrote:
> Matthew Braid <[email protected]> writes:
>> properties => [Glib::ParamSpec->uint('undo_stack',
>> 'Undo Stack Size',
>> ('The maximum size of the undo '.
>> 'stack. Zero implies no limit'),
>> 0, 0xFFFFFFFF, 0,
> POSIX::UINT_MAX() would be possible there instead of 0xFFF.
Or ~0, as Glib (quietly) truncates it to the maximum usable value. For
instance, on a 64b system:
$ perl -MGlib -MPOSIX -wle '$,=$/; print ~0, POSIX::UINT_MAX,
Glib::ParamSpec->uint(("a")x3, 0, ~0, 0, [])->get_maximum'
18446744073709551615
4294967295
4294967295
--altblue
_______________________________________________
gtk-perl-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-perl-list