Re: Gtk2::Ex::WYSIWYG
- From: Marius Feraru <altblue gmail com>
- To: Kevin Ryde <user42 zip com au>
- Cc: "gtk-perl-list gnome org List" <gtk-perl-list gnome org>
- Subject: Re: Gtk2::Ex::WYSIWYG
- Date: Thu, 20 May 2010 03:04:10 +0300
Kevin Ryde <user42 zip com au> wrote:
Matthew Braid <ptkperl mdb id au> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]