Re: paramspec value_validate

2009-01-18 Thread Torsten Schoenfeld
Kevin Ryde wrote: This is the paramspec->value_validate I posted before, cleaned up a bit. Committed as r1059. Thanks! ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: paramspec value_validate

2008-11-25 Thread Kevin Ryde
Torsten Schoenfeld <[EMAIL PROTECTED]> writes: > > There's one thing that still isn't clear to me: what about the > gunichar issue? Your wrapper of g_param_value_validate uses > gperl_value_from_sv, Yes, I basically followed g_object_set doing init_property_value() and gperl_value_from_sv() once I

Re: paramspec value_validate

2008-11-24 Thread Torsten Schoenfeld
Kevin Ryde wrote: This is the paramspec->value_validate I posted before, cleaned up a bit. There's one thing that still isn't clear to me: what about the gunichar issue? Your wrapper of g_param_value_validate uses gperl_value_from_sv, so it will not accept single-char string

paramspec value_validate

2008-11-03 Thread Kevin Ryde
This is the paramspec->value_validate I posted before, cleaned up a bit. The main advantage is that the underlying operation is a vfunc, so the pspec class can express strange sorts of restrictions on allowed values, which you might want to check or enforce when doing stuff to property values