public void Remove(TreePath[] paths) { foreach (TreePath path in paths) { TreeIter iter; model.GetIter(out iter, path); model.Remove(ref iter); collection.Remove(Util.PathToInt(path)); } }
/// <summary>The currently focused subtitle, or 0 if none is.</summary> private int GetFocusedSubtitle() { TreePath focus = Base.Ui.View.Selection.Focus; if (focus != null) { return(Util.PathToInt(focus)); } else { return(0); } }