public void HandleEditingStarted(object o, Gtk.EditingStartedArgs args) { var handler = Handler; var item = handler.model.GetItemAtPath(args.Path); if (item != null) { var itemArgs = new TreeViewItemCancelEventArgs(item); handler.Callback.OnLabelEditing(handler.Widget, itemArgs); args.RetVal = itemArgs.Cancel; } }
private void CellEditingStarted(object o, Gtk.EditingStartedArgs args) { DebugOutput("!$!$!$!$ CellEditingStarted"); Renderer.Edited += CellEdited; Renderer.EditingCanceled += CellEditingCanceled; EditedElement = args.Editable as Gtk.Entry; Editor.MaxLength = MaxLength; Editor.TextInserted += HandleTextInserted; if (EditingObject != null) { EditingObject = new TextCellInPlaceEditorObjectData(new Gtk.TreePath(args.Path), EditingObject.Column, Editor.Text); } }
void OnPersonRenameEditingStarted(object o, Gtk.EditingStartedArgs e) { Trace.Call(o, e); // only allow editing once from the context menu IdentityNameCellRenderer.Editable = false; Gtk.TreeIter iter; if (!PersonTreeView.Model.GetIterFromString(out iter, e.Path)) { return; } var person = (PersonModel)PersonTreeView.Model.GetValue(iter, 0); var entry = (Gtk.Entry)e.Editable; entry.Text = person.IdentityName; }
public void HandleEditingStarted(object o, Gtk.EditingStartedArgs args) { Handler.Source.BeginCellEditing(new Gtk.TreePath(args.Path), Handler.ColumnIndex); }
void HandleTreecellrendererEditingStarted(object o, Gtk.EditingStartedArgs args) { }