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

Marko Tasic <[email protected]> Thu, 24 Mar 2011 23:38:41 +0100
Newsgroups gmane.comp.gnome.language-bindings
Message-ID <[email protected]>
--===============0484260005==
Content-Type: multipart/alternative; boundary=00151757711cd4f5eb049f42243c

--00151757711cd4f5eb049f42243c
Content-Type: text/plain; charset=UTF-8

Thanks,

I also found out that connect is not introspectable. I'll try to use
GObject.signal_connect_closure for this purpose.

I found gjs and seed very useful, too.

Regards,
Marko Tasic


On Thu, Mar 24, 2011 at 11:25 PM, Johan Dahlin <[email protected]> wrote:

> 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 girepository. Initial results are promising. pygir-ctypes parses all
> > GI*Info structs, and dynamically produces python classes, methods,
> > functions, etc. Have in mind that pygir-ctypes isn't trying to be
> compatible
> > with pygtk nor pyobject.
> > But, when I try to look for function "connect" in "GObject" typelib,
> > it's missing. However there are: 'signal_connect_closure',
> > 'signal_connect_closure_by_id', 'signal_handler_disconnect',
> > 'signal_handler_is_connected', '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
>

--00151757711cd4f5eb049f42243c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Thanks,<div><br></div><div>I also found out that connect is not=C2=A0intros=
pectable. I&#39;ll try to use</div><div>GObject.signal_connect_closure for =
this purpose.</div><div><br></div><div>I found gjs and seed very useful, to=
o.</div>

<div><br></div><div>Regards,<br clear=3D"all">Marko Tasic<br>
<br><br><div class=3D"gmail_quote">On Thu, Mar 24, 2011 at 11:25 PM, Johan =
Dahlin <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]">johan@gnome=
.org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class=3D"im">On Thu, Mar 24, 2011 at 6:31 PM, Marko Tasic &lt;<a href=
=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; I&#39;ve started new project called pygir-ctypes. It&#39;s pure python=
 binding<br>
&gt; of=C2=A0girepository. Initial results are=C2=A0promising. pygir-ctypes=
 parses all<br>
&gt; GI*Info structs, and=C2=A0dynamically=C2=A0produces python classes, me=
thods,<br>
&gt; functions, etc. Have in mind that pygir-ctypes isn&#39;t trying to be =
compatible<br>
&gt; with=C2=A0pygtk nor pyobject.<br>
&gt; But, when I try to look for function &quot;connect&quot; in &quot;GObj=
ect&quot; typelib,<br>
&gt; it&#39;s=C2=A0missing. However there are:=C2=A0&#39;signal_connect_clo=
sure&#39;,<br>
&gt; &#39;signal_connect_closure_by_id&#39;,=C2=A0&#39;signal_handler_disco=
nnect&#39;,<br>
&gt; &#39;signal_handler_is_connected&#39;,=C2=A0&#39;signal_handlers_disco=
nnect_matched&#39;.<br>
<br>
</div>There is no connect function which usable by introspection since g-i<=
br>
doesn&#39;t support varargs.<br>
You&#39;d need to wrap that manually, look at the pygobject sources to see<=
br>
how it&#39;s done and convert that to ctypes.<br>
<br>
--<br>
<font color=3D"#888888">Johan Dahlin<br>
</font></blockquote></div><br></div>

--00151757711cd4f5eb049f42243c--

--===============0484260005==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--===============0484260005==--