GObject.Parameter

Yann Leboulanger asterix at lagaule.org
Sat Jan 12 12:36:25 PST 2013


On 01/12/2013 01:50 AM, Olivier Crête wrote:
> Hello,
>
> The whole GObject Introspection thing is a bit of a disaster.
>
> I added some APIs to try to make it work, but I can't properly test it
> because I can't get make install to work on pygobject, and yes, you need
> to patch it.
>
> So first, apply the patches to pygobject from these bugs:
> https://bugzilla.gnome.org/show_bug.cgi?id=684062
> https://bugzilla.gnome.org/show_bug.cgi?id=684060
> https://bugzilla.gnome.org/show_bug.cgi?id=684059
>
> Then, try the new API in this branch:
>
> http://cgit.collabora.com/git/user/tester/farstream.git/log/?h=gi-fixes
>
> The API is fs_stream_set_transmitter_ht() and it takes the transmitter
> parameters as a GHashTable, see the python example for how to use it...
>
> I'm eager to hear about your progress

Hi,

Thanks for your effort in solving that issue.

I rebuilt gobjects with those 3 patches, and rebuilt gir1.2-farstream 
with this patch, and here is what I get when I try to call:

stream.set_transmitter('nice', ('controlling-mode', 
self.session.weinitiate, 'debug', False))

Traceback (most recent call last):
[...]
   File "/home/asterix/gajim_gi/src/common/jingle_rtp.py", line 98, in 
setup_stream
     self.p2pstream.set_transmitter('nice', ('controlling-mode', 
self.session.weinitiate, 'debug', False))
   File "/usr/lib/python3/dist-packages/gi/types.py", line 47, in function
     return info.invoke(*args, **kwargs)
TypeError: Item 0: argument self: Expected GObject.Parameter, but got str

so no real progress ... if I built everything correctly.

-- 
Yann


More information about the Farstream-devel mailing list