GObject signals

Will Thompson will at willthompson.co.uk
Wed Jun 25 20:26:50 EDT 2008


On 26/06/08 01:11, Sadrul Habib Chowdhury wrote:
> To keep things plain and simple, we can have g_signal_connect_type,
> which will have a very similar signature as g_signal_connect, the only
> difference being the first parameter, which will be a GType, instead of
> a GObject *.
>
> I tested the attached patch, which seems to work OK. Anyone has any
> comments/suggestions?

Sounds like a good idea to me, and the patch looks correct.  I'm kind of
surprised that something like this isn't already in glib given that
g_signal_add_emission_hook() exists and it's a relatively obvious thing
to want to do with it; maybe you chould submit it to glib?

-- 
Will

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://pidgin.im/pipermail/devel/attachments/20080626/3ef7604a/attachment.sig>


More information about the Devel mailing list