commit 46894dcb8d6dad5291006bae33f52861c194fb67 Author: Alan McGovern <a...@slacker.site> Date: Wed Jun 9 16:04:27 2010 +0100
GPodList.Add should not directly add the item to the GLib.List It should call DoAdd just like Insert does. Signed-off-by: Nathaniel McCallum <nathan...@natemccallum.com> bindings/mono/libgpod-sharp/GPodList.cs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/bindings/mono/libgpod-sharp/GPodList.cs b/bindings/mono/libgpod-sharp/GPodList.cs index e91066d..e18fd1f 100644 --- a/bindings/mono/libgpod-sharp/GPodList.cs +++ b/bindings/mono/libgpod-sharp/GPodList.cs @@ -48,7 +48,7 @@ namespace GPod { public T this[int index] { get { return (T) list[index]; } set { RemoveAt(index); Insert(index, value); } } - public void Add(T item) { list.Append((object) item); if (owner) item.SetBorrowed(true); } + public void Add(T item) { DoAdd (-1, item); if (owner) item.SetBorrowed(true); } public void Clear() { list.Empty(); } public void CopyTo(T[] array, int arrayIndex) { list.CopyTo(array, arrayIndex); } public IEnumerator<T> GetEnumerator() { return new GPodListEnumerator(list.GetEnumerator()); } ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ gtkpod-cvs2 mailing list gtkpod-cvs2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2