Re: builder on scalar properties

Torsten Schoenfeld <kaffeetisch gmx de> writes:

actual values, and it only knows about the common value types.
I don't see any hooks to customize this process.

Ah yeah.  Could the docs have a cross reference for that, something like
the following?

diff --git a/GParamSpec.xs b/GParamSpec.xs
index 5a189a3..f543f4c 100644
--- a/GParamSpec.xs
+++ b/GParamSpec.xs
@@ -556,6 +556,12 @@ param_spec (class, name, nick, blurb, package, flags)
 =for apidoc
 ParamSpec to be used for any generic perl scalar, including references to
 complex objects.
+Currently C<Gtk2::Builder> cannot set object properties of this type
+(there's no hooks for property value parsing, as of Gtk 2.20), so
+prefer the builtin types if buildable support for an object matters.
+A C<boxed> of C<Glib::Strv> can give an array of strings.  A signal
+handler callback can do most of what a coderef might.
 scalar (class, name, nick, blurb, flags)

For lucky best wash, use Mr Sparkle.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]