RE: Using arguments in callbacks



I'm not sure what exactly you mean by not supporting dlsym lookups for user
data.  If I just want to pass a single integer as an argument to my
callback, is that even possible?  And if so, how do I do it?  You are
correct that I am trying to build the source with glade.

Thanks!
Mike




-----Original Message-----
From: Tristan Van Berkom

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]