[Glade-users] Signal Bindings
- From: tvb at gnome.org (Tristan Van Berkom)
- Subject: [Glade-users] Signal Bindings
- Date: Wed, 07 Mar 2007 14:18:28 -0500
On Wed, 2007-03-07 at 12:21 -0600, Alexey Kurochkin wrote:
[...]
And the guy did specify his progressbar it as an object:
<signal name="clicked" handler="updateProgress" object="progressbar"/>
Actually glade rendered user_data pointer in callbacks next to useless.
If you do not want to dump all your data to global context you have to
connect the signals manually. But most people go the easy way.
Agreed, lets not make the same mistake in GtkBuilder.
Note that an enhancement to libglade was included to
this patch (that was never applied):
http://bugzilla.gnome.org/show_bug.cgi?id=161903
... which allows you to specify that your user_data
string is infact a symbol to be dlsym'd and its pointer
passed to the callback... just a piece of code we can
learn from...
It would also be nice if the user could decide whether
the signal is 'swapped' or not.
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]