James Henstridge <[EMAIL PROTECTED]> writes:

> On Sat, 11 Dec 1999, Miguel de Icaza wrote:
> 
> >     3. Then, to configure, modify, hook up, monitor (trough signals)
> >        or any other tweaking you might want to do, you use
> >        glade_xml_get_widget.
> > 
> >        For example, to connect to the "clicked" signal, you do:
> > 
> >             button = glade_xml_get_widget (gui, "ok-button");
> > 
> >             gtk_signal_connect (button, "clicked",
> >                                 GTK_SIGNAL_FUNC(ok_clicked),
> >                                 NULL);
> 
> In fact, if you give your signal handlers the same names as are used in
> the .glade file, and don't make them static, you can call
>   glade_xml_signal_autoconnect(gui);
> 
> Which will attempt to automatically connect the signals for you using some
> dynamic loader magic.  Of course, you can use either method.  It is your
> choice.

I am just a libglade novice.  But I think the signal connects with
glade_xml_signal_autoconnect() is not very flexible.

The problem was that I couldn't pass user data (the last arg of
gtk_signal_connect) to the handler.  I had to use things like
gtk_object_set_data() to store various values before firing up the
widget.

-- 
Changwoo Ryu

+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.

Reply via email to