From 9dc9b1d79e9966f66a4ba82e88884dc8d53e7286 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Tue, 19 Jun 2007 19:27:31 +0000 Subject: [PATCH] 2007-06-19 Mike Kestner * 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 --- ChangeLog | 6 ++++++ doc/en/Gdk/Property.xml | 27 +++++++++++++++++++++++++++ gdk/Gdk.metadata | 1 + gdk/Makefile.am | 1 + gdk/Property.custom | 31 +++++++++++++++++++++++++++++++ 5 files changed, 66 insertions(+) create mode 100644 gdk/Property.custom diff --git a/ChangeLog b/ChangeLog index cd6ecb455..639e8fd79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-06-19 Mike Kestner + + * 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 * bootstrap-2.10 : bump version and tag. diff --git a/doc/en/Gdk/Property.xml b/doc/en/Gdk/Property.xml index 882742bc3..563237d03 100644 --- a/doc/en/Gdk/Property.xml +++ b/doc/en/Gdk/Property.xml @@ -103,5 +103,32 @@ To be added + + + Method + + System.Void + + + + + + + + + + + + To be added. + To be added. + To be added. + To be added. + To be added. + To be added. + To be added. + To be added. + To be added. + + diff --git a/gdk/Gdk.metadata b/gdk/Gdk.metadata index 383e26d8a..e69cf0242 100644 --- a/gdk/Gdk.metadata +++ b/gdk/Gdk.metadata @@ -36,6 +36,7 @@ out out 1 + 1 1 ref 1 diff --git a/gdk/Makefile.am b/gdk/Makefile.am index 21bcae3eb..8974f8785 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -53,6 +53,7 @@ customs = \ PixbufLoader.custom \ Pixdata.custom \ Point.custom \ + Property.custom \ Rectangle.custom \ Region.custom \ RgbCmap.custom \ diff --git a/gdk/Property.custom b/gdk/Property.custom new file mode 100644 index 000000000..1dbaa8564 --- /dev/null +++ b/gdk/Property.custom @@ -0,0 +1,31 @@ +// Gdk.Property.custom - Custom implementation for Property class +// +// Authors: Mike Kestner +// +// 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; + } +