[Glade-users] Signal Bindings



On Wed, 2007-03-07 at 10:05 -0500, Tristan Van Berkom wrote:
On Wed, 2007-03-07 at 08:41 -0600, Alexey Kurochkin wrote:
On Wed, 2007-03-07 at 07:16 -0600, john judy wrote:
    //g_signal_connect(G_OBJECT (button),"clicked",G_CALLBACK 
(updateProgress),progressBar);

I think glade uses g_signal_connect_swapped() for such things.

libglade does do that when you specify the object field (which
is quite confusing), but it wont connect swapped if you dont
specify an "object" argument.

Cheers,
                -Tristan


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.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]