[Gtk-sharp-list] Glade# signal/handler pass object

Alejandro Sánchez alejasanch@yahoo.es
Mon, 24 Nov 2003 01:16:59 +0100


I have a glade object

<widget class="GtkButton" id="button">
  <property name="width_request">15</property>
  <property name="height_request">15</property>
  <property name="visible">True</property>
  <property name="relief">GTK_RELIEF_NONE</property>
  <signal name="clicked" handler="OnButtonClicked" object="widget"
last_modification_time="Sat, 22 Nov 2003 15:56:35 GMT"/>

How would be OnButtonClicked declaration in C#? How to retrieve object
"widget" in the function?

And with all in C# code?

Button button = new Button;
button.Clicked += new EventHandler(OnButtonClicked);

Thanks