From: gnome-perl (bugzilla.gnome.org) <bug...@bu...> - 2009-08-07 16:16:01
|
If you have any questions why you received this email, please see the text at the end of this email. Replies to this email are NOT read, please see the text at the end of this email. You can add comments to this bug at: http://bugzilla.gnome.org/show_bug.cgi?id=591070 gnome-perl | Glib | Ver: unspecified Summary: no support for GType/GParamGType Product: gnome-perl Version: unspecified Platform: Other OS/Version: All Status: NEW Severity: normal Priority: Normal Component: Glib AssignedTo: gtk...@li... ReportedBy: eb...@gm... QAContact: gtk...@li... GNOME version: 2.27/2.28 GNOME milestone: Unspecified currently, Glib does not support values and GParamSpec dealing with GType, thus it's impossible to deal with object properties storing a GType. rationale: Clutter has a class which stores an interval between two values, ClutterInterval; it would be probably more Perl-ish to override the bindings completely and write intervals as arrayrefs, but one of the nice bits of the class is that it allows subclasses to override the interval progress using their own progress function, e.g.: interval('boolean') = [ false, true ] compute(interval, progress=0.0) = false compute(interval, progress=0.2) = false compute(interval, progress=0.4) = false compute(interval, progress=0.6) = true compute(interval, progress=0.8) = true compute(interval, progress=1.0) = true myinterval('boolean') = [ false, true ] myinterval.threshold = 0.7 compute(myinterval, progress=0.0) = false compute(myinterval, progress=0.2) = false compute(myinterval, progress=0.4) = false compute(myinterval, progress=0.6) = false compute(myinterval, progress=0.8) = true compute(myinterval, progress=1.0) = true the type of the value of the interval is stored as a :value-type property in the C class, declared with g_param_spec_gtype(), since we allow interpolating the progress even between boxed types (e.g. colors or geometries). if I try to subclass ClutterInterval from Perl, and pass any value to the :value-type property at construction time, Perl, Glib and GLib will get *very* angry at me. -- See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received this email, why you can't respond via email, how to stop receiving emails (or reduce the number you receive), and how to contact someone if you are having problems with the system. You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=591070. |