Re: Missing GObject.connect function in typelib, but present in gir

Johan Dahlin <[email protected]> Thu, 24 Mar 2011 19:25:38 -0300
Newsgroups gmane.comp.gnome.language-bindings
Message-ID <[email protected]>
On Thu, Mar 24, 2011 at 6:31 PM, Marko Tasic <[email protected]> wrote:
> Hi,
> I've started new project called pygir-ctypes. It's pure python binding
> of=A0girepository. Initial results are=A0promising. pygir-ctypes parses a=
ll
> GI*Info structs, and=A0dynamically=A0produces python classes, methods,
> functions, etc. Have in mind that pygir-ctypes isn't trying to be compati=
ble
> with=A0pygtk nor pyobject.
> But, when I try to look for function "connect" in "GObject" typelib,
> it's=A0missing. However there are:=A0'signal_connect_closure',
> 'signal_connect_closure_by_id',=A0'signal_handler_disconnect',
> 'signal_handler_is_connected',=A0'signal_handlers_disconnect_matched'.

There is no connect function which usable by introspection since g-i
doesn't support varargs.
You'd need to wrap that manually, look at the pygobject sources to see
how it's done and convert that to ctypes.

-- =

Johan Dahlin
_______________________________________________
language-bindings mailing list  [email protected]
http://mail.gnome.org/mailman/listinfo/language-bindings