From 1a679f235698b45ac6ce9297861388a409d8d2a9 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Wed, 4 Feb 2004 17:21:22 +0000 Subject: [PATCH] 2004-02-03 Mike Kestner * glib/List.cs : add a ctor overload to create empty lists with a specific element_type. * glib/SList.cs : ditto svn path=/trunk/gtk-sharp/; revision=22765 --- ChangeLog | 6 ++++++ glib/List.cs | 4 ++++ glib/SList.cs | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4f689e17b..1817cffd3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-02-03 Mike Kestner + + * glib/List.cs : add a ctor overload to create empty lists with + a specific element_type. + * glib/SList.cs : ditto + 2004-02-03 Mike Kestner * glib/Value.cs : remove double free of ManagedValues. Fixes the diff --git a/glib/List.cs b/glib/List.cs index 7067fb69b..de6329fcd 100644 --- a/glib/List.cs +++ b/glib/List.cs @@ -89,6 +89,10 @@ namespace GLib { { } + public List (System.Type element_type) : base (IntPtr.Zero, element_type) + { + } + public List (IntPtr raw, System.Type element_type) : base (raw, element_type) { } diff --git a/glib/SList.cs b/glib/SList.cs index d82f345b4..0a1616156 100644 --- a/glib/SList.cs +++ b/glib/SList.cs @@ -89,6 +89,10 @@ namespace GLib { { } + public SList (System.Type element_type) : base (IntPtr.Zero, element_type) + { + } + public SList (IntPtr raw, System.Type element_type) : base (raw, element_type) { }