Gtk.Entry CreateEntry() { Gtk.Entry e = new Gtk.Entry (text); e.Changed += delegate (object s, EventArgs a) { text = e.Text; if (Changed != null) Changed (this, a); }; e.Activated += delegate (object s, EventArgs a) { EndEditing (); }; return e; }