GNOME Bugzilla – Bug 313138
Need to update constructors to use properties
Last modified: 2006-07-02 15:43:20 UTC
See http://live.gnome.org/PyGTK_2fWhatsNew28#head-e93053687b057666c18d5db81686c4da30039bd5 Here's how to fix gst.Bin, for example: Index: gst/gst.defs =================================================================== RCS file: /cvs/gstreamer/gst-python/gst/gst.defs,v retrieving revision 1.25.2.5 diff -u -p -d -r1.25.2.5 gst.defs --- gst/gst.defs 3 Aug 2005 13:12:38 -0000 1.25.2.5 +++ gst/gst.defs 10 Aug 2005 17:00:27 -0000 @@ -70,8 +70,8 @@ (c-name "gst_bin_new") (is-constructor-of "GstBin") (return-type "GstElement*") - (parameters - '("const-gchar*" "name" (null-ok) (default "NULL")) + (properties + '("name" (optional)) ) )
Created attachment 50530 [details] upgrade advice I have a script, check-oldstyle-constructors.py, that tries to give advice on how to change the defs. Here's the output, it may be useful. Unfortunately, some objects are not bindings-friendly and do not offer enough properties to allow migration.. that's life :(
We discussed about this on IRC. There are three differents things happening why we can't, or don't need, to use this behaviour: _ Elements (GstBin, GstPipeline, GstQueue, ...) : Thoses are constructed with gst_element_factory_make() and don't work the same way as Standard GObject _ Objects where we already wrap the constructor _ Objects that don't take properties I'm therefore closing this bug.
Re-opening since we need this to solve the issues we're having in #329075
Conversion to new codegenerator is now in CVS. Closing again.