2007-06-19 Mike Kestner <mkestner@novell.com>

* gdk/Property.custom : obsolete compat overload for Change().
	* gdk/Gdk.metadata : array attr for Property.Change ().
	* gdk/Makefile.am : add custom file.

svn path=/trunk/gtk-sharp/; revision=80245
This commit is contained in:
Mike Kestner 2007-06-19 19:27:31 +00:00
parent f481b7f288
commit 9dc9b1d79e
5 changed files with 66 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2007-06-19 Mike Kestner <mkestner@novell.com>
* gdk/Property.custom : obsolete compat overload for Change().
* gdk/Gdk.metadata : array attr for Property.Change ().
* gdk/Makefile.am : add custom file.
2007-06-18 Mike Kestner <mkestner@novell.com>
* bootstrap-2.10 : bump version and tag.

View file

@ -103,5 +103,32 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="Change">
<MemberSignature Language="C#" Value="public static void Change (Gdk.Window window, Gdk.Atom property, Gdk.Atom type, int format, Gdk.PropMode mode, byte[] data, int nelements);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="window" Type="Gdk.Window" />
<Parameter Name="property" Type="Gdk.Atom" />
<Parameter Name="type" Type="Gdk.Atom" />
<Parameter Name="format" Type="System.Int32" />
<Parameter Name="mode" Type="Gdk.PropMode" />
<Parameter Name="data" Type="System.Byte[]" />
<Parameter Name="nelements" Type="System.Int32" />
</Parameters>
<Docs>
<param name="window">To be added.</param>
<param name="property">To be added.</param>
<param name="type">To be added.</param>
<param name="format">To be added.</param>
<param name="mode">To be added.</param>
<param name="data">To be added.</param>
<param name="nelements">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -36,6 +36,7 @@
<attr path="/api/namespace/class[@cname='GdkProperty_']/method[@name='Get']/*/*[@name='actual_property_type']" name="pass_as">out</attr>
<attr path="/api/namespace/class[@cname='GdkProperty_']/method[@name='Get']/*/*[@name='data']" name="pass_as">out</attr>
<attr path="/api/namespace/class[@cname='GdkProperty_']/method[@name='Get']/*/*[@name='data']" name="array">1</attr>
<attr path="/api/namespace/class[@cname='GdkProperty_']/method[@name='Change']/*/*[@name='data']" name="array">1</attr>
<attr path="/api/namespace/class[@cname='GdkQuery_']" name="hidden">1</attr>
<attr path="/api/namespace/class[@cname='GdkRgb_']/method[@name='FindColor']/*/*[@name='color']" name="pass_as">ref</attr>
<attr path="/api/namespace/class[@cname='GdkSelection_']/method[@name='PropertyGet']" name="hidden">1</attr>

View file

@ -53,6 +53,7 @@ customs = \
PixbufLoader.custom \
Pixdata.custom \
Point.custom \
Property.custom \
Rectangle.custom \
Region.custom \
RgbCmap.custom \

31
gdk/Property.custom Normal file
View file

@ -0,0 +1,31 @@
// Gdk.Property.custom - Custom implementation for Property class
//
// Authors: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2007 Novell, Inc.
//
// 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("libgdk-win32-2.0-0.dll")]
static extern void gdk_property_change(IntPtr window, IntPtr property, IntPtr type, int format, int mode, out byte data, int nelements);
[Obsolete ("Replaced by corrected overload with data parameter")]
public static byte Change(Gdk.Window window, Gdk.Atom property, Gdk.Atom type, int format, Gdk.PropMode mode, int nelements) {
byte data;
gdk_property_change(window == null ? IntPtr.Zero : window.Handle, property == null ? IntPtr.Zero : property.Handle, type == null ? IntPtr.Zero : type.Handle, format, (int) mode, out data, nelements);
return data;
}