Banshee.Sources.Gui.SourceView.UpdateRow C# (CSharp) Method

UpdateRow() private method

private UpdateRow ( Gtk.TreePath path, string text ) : void
path Gtk.TreePath
text string
return void
        internal void UpdateRow (TreePath path, string text)
        {
            TreeIter iter;

            if (!store.GetIter (out iter, path)) {
                return;
            }

            Source source = store.GetValue (iter, (int)SourceModel.Columns.Source) as Source;
            source.Rename (text);
        }

Usage Example

Beispiel #1
0
        private void OnEditDone (object o, EventArgs args)
        {
            CellEditEntry edit = (CellEditEntry)o;
            if (view == null) {
                return;
            }

            view.EditingRow = false;
            view.UpdateRow (new TreePath (edit.path), edit.Text);
        }