[Gtk-sharp-list] Userdata in signal handlers?

Jesper K. Pedersen jkp at solnet.homeip.net
Mon Feb 19 05:38:34 EST 2007


I am making a small application where I have a range of "short-cut"
buttons for opening a window with particular datasets.


All my shortcut buttons are going to the same event handler but as my
buttons are created with a label using markup language I cant seem to
read the label value of it.

Is it possible to attach a piece of userdata to each button with a
value that makes it easy to check which button was calling the event
handler?

Any hints are greatly appreciated.

Best regards
Jesper K. Pedersen

PS. Please note that I am using glade-2 gui editor for creating the
user interface.


More information about the Gtk-sharp-list mailing list