[Gtk-sharp-list] Reading Data beeing edited

Peter Johanson latexer at gentoo.org
Mon Sep 24 12:16:28 EDT 2007

On Mon, Sep 24, 2007 at 05:06:53PM +0200, Elmar Haneke wrote:
> How can I read the data currently beeing edited within an CellRendererText?

The best way is to hook up to Gtk.CellRenderer.EditingStarted event, and
then do something like:

void OnEditingStarted (object o, EditingStartedArgs e)
	Entry e = e.Editable as Entry;
	if (e == null) {

	e.Changed += new EventHandler (OnEditableChanged);

> Is there an Way to finish the edit-Process?

You can do either Gtk.CellRenderer.CancelEditing or
Gtk.CellRenderer.StopEditing (bool canceled).

Check out the docs here:



More information about the Gtk-sharp-list mailing list