From a9ecebce8f35786cba01b55ac23226229b6f8e74 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Tue, 25 Jan 2005 18:09:20 +0000 Subject: [PATCH] 2005-01-25 Mike Kestner * gnome/About.custom : implement a subclassable ctor. * gnome/Gnome.metadata : hide About ctor, fix About.Construct parms. * gnome/Makefile.am : add the new custom. [Fixes #71271] svn path=/trunk/gtk-sharp/; revision=39521 --- ChangeLog | 9 +++++++++ doc/en/Gnome/About.xml | 24 ++++++++++++------------ gnome/About.custom | 37 +++++++++++++++++++++++++++++++++++++ gnome/Gnome.metadata | 7 ++++--- gnome/Makefile.am | 1 + 5 files changed, 63 insertions(+), 15 deletions(-) create mode 100644 gnome/About.custom diff --git a/ChangeLog b/ChangeLog index dbc3d677d..c1647af88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,15 @@ +2005-01-25 Mike Kestner + + * gnome/About.custom : implement a subclassable ctor. + * gnome/Gnome.metadata : hide About ctor, fix About.Construct parms. + * gnome/Makefile.am : add the new custom. + [Fixes #71271] + 2005-01-25 Mike Kestner * gdk/Gdk.metadata : hide all the Pixbuf.SaveTo methods. * gdk/Pixbuf.custom : implement the SaveTo methods. + [Fixes #71430] 2005-01-25 Mike Kestner @@ -9,6 +17,7 @@ * gtk/Makefile.am : add the new custom. * gtk/Toolbar.custom : implement the SignalFunc methods. Deal with null for Widget params in *Element. + [Fixes #71428] 2005-01-24 Jeroen Zwartepoorte diff --git a/doc/en/Gnome/About.xml b/doc/en/Gnome/About.xml index 6a0968763..4c2cde546 100644 --- a/doc/en/Gnome/About.xml +++ b/doc/en/Gnome/About.xml @@ -103,7 +103,7 @@ class GnomeAboutSample - + Method System.Void @@ -113,21 +113,21 @@ class GnomeAboutSample - - + + Construct a credits box for an . - an object of type - an object of type - an object of type - an object of type - an object of type - an object of type - an object of type - an object of type + a + a + a + a + a + a + a + a The array cannot be empty. @@ -305,4 +305,4 @@ class GnomeAboutSample - \ No newline at end of file + diff --git a/gnome/About.custom b/gnome/About.custom new file mode 100644 index 000000000..b3c0a2ff4 --- /dev/null +++ b/gnome/About.custom @@ -0,0 +1,37 @@ +// Gnome.About.custom - Gnome About class customizations +// +// Author: Mike Kestner +// +// Copyright (C) 2005 Novell, Inc. +// +// This code is inserted after the automatically generated code. +// +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2 of the Lesser GNU General +// Public License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. + + + [DllImport("gnomeui-2")] + static extern IntPtr gnome_about_new(string name, string version, string copyright, string comments, string[] authors, string[] documenters, string translator_credits, IntPtr logo_pixbuf); + + public About (string name, string version, string copyright, string comments, string[] authors, string[] documenters, string translator_credits, Gdk.Pixbuf logo_pixbuf) : base (IntPtr.Zero) + { + if (GetType () != typeof (About)) { + CreateNativeObject (new string[0], new GLib.Value[0]); + Construct (name, version, copyright, comments, authors, documenters,translator_credits, logo_pixbuf); + return; + } + Raw = gnome_about_new (name, version, copyright, comments, authors, documenters, translator_credits, (logo_pixbuf != null) ? logo_pixbuf.Handle : IntPtr.Zero); + } + diff --git a/gnome/Gnome.metadata b/gnome/Gnome.metadata index 946495566..9d42e97dd 100644 --- a/gnome/Gnome.metadata +++ b/gnome/Gnome.metadata @@ -21,9 +21,10 @@ const-guchar 1 true - 1 - 1 - logo + 1 + 1 + 1 + 1 PromptCleared out out diff --git a/gnome/Makefile.am b/gnome/Makefile.am index 54c395d30..6a447cbea 100644 --- a/gnome/Makefile.am +++ b/gnome/Makefile.am @@ -20,6 +20,7 @@ sources = \ PanelAppletFactory.cs customs = \ + About.custom \ App.custom \ DateEdit.custom \ CanvasBpath.custom \