2005-01-25 Mike Kestner <mkestner@novell.com>

* 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
This commit is contained in:
Mike Kestner 2005-01-25 18:09:20 +00:00
parent ae84ad32ae
commit a9ecebce8f
5 changed files with 63 additions and 15 deletions

View file

@ -1,7 +1,15 @@
2005-01-25 Mike Kestner <mkestner@novell.com>
* 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 <mkestner@novell.com>
* gdk/Gdk.metadata : hide all the Pixbuf.SaveTo methods.
* gdk/Pixbuf.custom : implement the SaveTo methods.
[Fixes #71430]
2005-01-25 Mike Kestner <mkestner@novell.com>
@ -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 <jeroen@xs4all.nl>

View file

@ -103,7 +103,7 @@ class GnomeAboutSample
<Attributes />
<Members>
<Member MemberName="Construct">
<MemberSignature Language="C#" Value="public void Construct (string name, string version, string copyright, string comments, string authors, string documenters, string translator_credits, Gdk.Pixbuf logo_pixbuf);" />
<MemberSignature Language="C#" Value="public void Construct (string name, string version, string copyright, string comments, string [] authors, string [] documenters, string translator_credits, Gdk.Pixbuf logo_pixbuf);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
@ -113,21 +113,21 @@ class GnomeAboutSample
<Parameter Name="version" Type="System.String" />
<Parameter Name="copyright" Type="System.String" />
<Parameter Name="comments" Type="System.String" />
<Parameter Name="authors" Type="System.String" />
<Parameter Name="documenters" Type="System.String" />
<Parameter Name="authors" Type="System.String[]" />
<Parameter Name="documenters" Type="System.String[]" />
<Parameter Name="translator_credits" Type="System.String" />
<Parameter Name="logo_pixbuf" Type="Gdk.Pixbuf" />
</Parameters>
<Docs>
<summary>Construct a credits box for an <see cref="T:Gnome.Application" />.</summary>
<param name="name">an object of type <see cref="T:System.String" /></param>
<param name="version">an object of type <see cref="T:System.String" /></param>
<param name="copyright">an object of type <see cref="T:System.String" /></param>
<param name="comments">an object of type <see cref="T:System.String" /></param>
<param name="authors">an object of type <see cref="T:System.String" /></param>
<param name="documenters">an object of type <see cref="T:System.String" /></param>
<param name="translator_credits">an object of type <see cref="T:System.String" /></param>
<param name="logo_pixbuf">an object of type <see cref="T:Gdk.Pixbuf" /></param>
<param name="name">a <see cref="T:System.String" /></param>
<param name="version">a <see cref="T:System.String" /></param>
<param name="copyright">a <see cref="T:System.String" /></param>
<param name="comments">a <see cref="T:System.String" /></param>
<param name="authors">a <see cref="T:System.String" /></param>
<param name="documenters">a <see cref="T:System.String" /></param>
<param name="translator_credits">a <see cref="T:System.String" /></param>
<param name="logo_pixbuf">a <see cref="T:Gdk.Pixbuf" /></param>
<remarks>The <paramref name="authors" /> array cannot be empty.</remarks>
</Docs>
</Member>
@ -305,4 +305,4 @@ class GnomeAboutSample
</Docs>
</Member>
</Members>
</Type>
</Type>

37
gnome/About.custom Normal file
View file

@ -0,0 +1,37 @@
// Gnome.About.custom - Gnome About class customizations
//
// Author: Mike Kestner <mkestner@novell.com>
//
// 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);
}

View file

@ -21,9 +21,10 @@
<attr path="/api/namespace/class[@cname='GnomePrint_']/method/*/*[@name='data']" name="type">const-guchar</attr>
<attr path="/api/namespace/class[@cname='GnomePrint_']/method/*/*[@name='data']" name="array">1</attr>
<attr path="/api/namespace/class[@cname='GnomeThumbnail_']/method[@name='ScaleDownPixbuf']/return-type" name="owned">true</attr>
<attr path="/api/namespace/object[@cname='GnomeAbout']/constructor[@cname='gnome_about_new']/*/*[@type='const-gchar**']" name="array">1</attr>
<attr path="/api/namespace/object[@cname='GnomeAbout']/constructor[@cname='gnome_about_new']/*/*[@name='logo_pixbuf']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GnomeAbout']/constructor[@cname='gnome_about_new']/*/*[@name='logo_pixbuf']" name="property_name">logo</attr>
<attr path="/api/namespace/object[@cname='GnomeAbout']" name="disable_void_ctor">1</attr>
<attr path="/api/namespace/object[@cname='GnomeAbout']/constructor[@cname='gnome_about_new']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GnomeAbout']/method[@name='Construct']/*/*[@type='const-gchar**']" name="array">1</attr>
<attr path="/api/namespace/object[@cname='GnomeAbout']/method[@name='Construct']/*/*[@name='logo_pixbuf']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GnomeAppBar']/signal[@name='ClearPrompt']" name="name">PromptCleared</attr>
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='C2w']/*/*[@type='double*']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='GetButtPoints']/*/*[@type='double*']" name="pass_as">out</attr>

View file

@ -20,6 +20,7 @@ sources = \
PanelAppletFactory.cs
customs = \
About.custom \
App.custom \
DateEdit.custom \
CanvasBpath.custom \