Re: Using arguments in callbacks



Irwin Michael G DLVA wrote:
Thanks, but this doesn't seem to help.  I typed GINT_TO_POINTER(1) in the
object box, so that the .glade file looks like this:

...
<child>
  <widget class="GtkToggleButton" id="trajectoryTB">
    ...
    <signal name="toggled" handler="trajectoryCb" after="yes"
object="GINT_TO_POINTER(1)"/>
  </widget>
</child>
...

Current versions of libglade do *not* support dlsym lookups for user
data in signal callbacks; rather, when you call
glade_xml_signal_autoconnect(), the GladeXML object is searched for
an entry with the widget name specified by the "object" parameter.

I think you are not using libglade but are trying to build the source
with glade, either way the "object" parameter is meant as the name
of an object existing in the glade project (not a symbol in your code).

Cheers,
                                 -Tristan




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