From 534948c29846b3f3f507ad852e4680123335693d Mon Sep 17 00:00:00 2001 From: Todd Berman Date: Sat, 8 May 2004 02:27:26 +0000 Subject: [PATCH] 2004-05-07 Todd Berman * gnome/IconList.custom: subclassable ctor. * gnome/Gnome.metadata: hide IconList ctor. svn path=/trunk/gtk-sharp/; revision=26963 --- ChangeLog | 5 +++++ gnome/Gnome.metadata | 3 ++- gnome/IconList.custom | 12 ++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3f9b26986..2dfdb85bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-05-07 Todd Berman + + * gnome/IconList.custom: subclassable ctor. + * gnome/Gnome.metadata: hide IconList ctor. + 2004-05-07 Mike Kestner * gnome/Canvas.custom : PixelsPerUnit prop. diff --git a/gnome/Gnome.metadata b/gnome/Gnome.metadata index cc3dd6128..8a07e931d 100644 --- a/gnome/Gnome.metadata +++ b/gnome/Gnome.metadata @@ -85,7 +85,8 @@ 1 1 1 - 1 + 1 + 1 i 1 1 diff --git a/gnome/IconList.custom b/gnome/IconList.custom index 3b9c36891..b83ddba56 100644 --- a/gnome/IconList.custom +++ b/gnome/IconList.custom @@ -22,3 +22,15 @@ } } + [DllImport("gnomeui-2")] + static extern IntPtr gnome_icon_list_new(uint icon_width, IntPtr adj, int flags); + + public IconList (uint icon_width, Gtk.Adjustment adj, int flags) : base (IntPtr.Zero) + { + if (GetType () != typeof (IconList)) { + CreateNativeObject (new string[0], new GLib.Value[0]); + Construct (icon_width, adj, flags); + return; + } + Raw = gnome_icon_list_new(icon_width, (adj != null) ? adj.Handle : IntPtr.Zero, flags); + }