[PATCH] glib bindings (g_proxy_add_signal)
Carlos Garcia Campos
carlosgc at gnome.org
Mon Jan 9 01:18:51 PST 2006
El dom, 08-01-2006 a las 20:17 -0500, Havoc Pennington escribió:
> On Sun, 2006-01-08 at 12:55 +0100, Carlos Garcia Campos wrote:
> > Hi,
> >
> > when you call twice to dbus_g_proxy_add_signal it returns with a
> > critical warning since the signal signature was already registered. The
> > problem is that, as far as I know, there is no way to know whether the
> > signature is already registered or not. So, I think we can simply return
> > silently in that case.
> >
>
> The idea is that you'd add_signal only on proxy creation... how are you
> doing things that results in calling this twice?
You are right Havoc, sometimes the solution is simpler than it seems :-P
I've simply moved add_signal just after proxy creation.
> Havoc
>
>
--
Carlos Garcia Campos (KaL)
elkalmail at yahoo.es
carlosgc at gnome.org
http://carlosgc.linups.org
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
digitalmente
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060109/010772aa/attachment.pgp
More information about the dbus
mailing list