[Gtk-sharp-list] Glade# signal/handler pass object
Leo Spalteholz
leo@thewoodpecker.ca
Mon, 24 Nov 2003 12:10:03 -0800
On November 24, 2003 10:35 am, Luciano Callero wrote:
> Try this:
>
> void OnButtonClicked(object obj, EventArgs args) {
> // get widget, in this case your button
> Widget wg = (Widget)(obj);
> }
He wants to get the other widget, not the originating button. In C/GTK+
you get the Button from which the event originated and you can also
include a pointer to any other widget of your choice (as I understand it).
I don't think this is possible in C#. You can't get anything out of the
EventArgs.
leo