galde & gtk question



Hi,
  most of my GUI code uses the Glade autogenerated code. Editing it
makes updates to the UI a pain. So I was playing with libglade and have
a questions:

In some of my callbacks I need to pass a string constant as the last
parameter to g_signal_connect() so that the callback will recieve it as
user_data. Using libglade's glade_xml_signal_autoconnect() to process
the UI file doesnt give me a chance to set this when the signal is
connected to the UI element. 

I know I could use glade_xml_signal_connect_data() and individually
connect signals to UI elements. But is there a way using Glade to
specify a value for the last parameter of g_signal_connect() - I thought
that maybe filling the object value in the Signals tab of the Glade
editor would work but instead it outputs g_signal_connect_swapped()
rather than g_signal_connect() and casts my string constant into a
G_OBJECT

Is there any easy way to add user data to a callback using Glade and
libglade (apart from setting individual callbacks by hand) ?

Thanks
-------------------------------------------------------------------
Rajarshi Guha <rajarshi presidency com> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
Absence is to love what wind is to fire. It extinguishes the small,
it enkindles the great.




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