From b1386970516b0fc2da8548d14d2ab44a58bd1cee Mon Sep 17 00:00:00 2001 From: Todd Berman Date: Sat, 8 May 2004 01:44:21 +0000 Subject: [PATCH] 2004-05-07 Todd Berman * gnome/Gnome.metadat: Hide App ctor. * gnome/Makefile.am: add App.custom. * gnome/App.custom: New custom for subclassing. svn path=/trunk/gtk-sharp/; revision=26960 --- ChangeLog | 6 ++++++ gnome/App.custom | 12 ++++++++++++ gnome/Gnome.metadata | 1 + gnome/Makefile.am | 1 + 4 files changed, 20 insertions(+) create mode 100644 gnome/App.custom diff --git a/ChangeLog b/ChangeLog index 1b96c308c..9cc31196d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-05-07 Todd Berman + + * gnome/Gnome.metadat: Hide App ctor. + * gnome/Makefile.am: add App.custom. + * gnome/App.custom: New custom for subclassing. + 2004-05-07 Todd Berman * gnome/Gnome.metadata: Hide Scores ctor. diff --git a/gnome/App.custom b/gnome/App.custom new file mode 100644 index 000000000..bdab3b6e2 --- /dev/null +++ b/gnome/App.custom @@ -0,0 +1,12 @@ + [DllImport("gnomeui-2")] + static extern IntPtr gnome_app_new(string appname, string title); + + public App (string appname, string title) : base (IntPtr.Zero) + { + if (GetType () != typeof (App)) { + CreateNativeObject (new string[0], new GLib.Value[0]); + Construct (appname, title); + return; + } + Raw = gnome_app_new(appname, title); + } diff --git a/gnome/Gnome.metadata b/gnome/Gnome.metadata index 2031ec69d..38af65f48 100644 --- a/gnome/Gnome.metadata +++ b/gnome/Gnome.metadata @@ -1,5 +1,6 @@ + 1 1 const-gchar* const-gchar* diff --git a/gnome/Makefile.am b/gnome/Makefile.am index 0fd67b904..3d17dcd2b 100644 --- a/gnome/Makefile.am +++ b/gnome/Makefile.am @@ -40,6 +40,7 @@ sources = \ build_sources = $(addprefix $(srcdir)/, $(sources)) AssemblyInfo.cs customs = \ + App.custom \ CanvasBpath.custom \ CanvasClipgroup.custom \ Canvas.custom \