Re: Signal connection
- From: Roger Leigh <roger whinlatter uklinux net>
- To: Owen Taylor <otaylor redhat com>
- Cc: gtk-list gnome org
- Subject: Re: Signal connection
- Date: Sun, 10 Aug 2003 20:11:55 +0100
Owen Taylor <otaylor redhat com> writes:
>> Is there another way to achieve this effect? I looked at
>> GConnectFlags and the functions that use this, but I'm not sure these
>> functions are appropriate. g_signal_connect_data() looks promising,
>> but I'm not sure about using a GClosure (I don't need one, whatever
>> they are). What a GClosure actually /is/ isn't documented, at least
>> in my version of the docs, so I'm unsure what to do here. Any
>> suggestions would be kindly appreciated!
> g_signal_connect_data() will work.
> The GClosureNotify there has nothing to do with closures; it's
> just used because it has the right signature. It's a function
> to call when the signal is disconnected to free the callback data
> and you can pass NULL.
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848 available on public keyservers
] [Thread Prev