2004-06-17 Larry Ewing <lewing@ximian.com>

* gdk/Makefile.am (sources): add Pixdata.custom

	* gdk/Pixdata.custom: add new file to fix Serialize.

	* gnome/CanvasItem.custom: remove the incorrect custom bindings.

	* gnome/Gnome.metadata: stop hiding the AffineRelative and
	AffineAbsolute the generator gets them right they are not out
	params.

	* gdk/Gdk.metadata: mark the Pixdata byte stream as and array hide
	the broken serialize method.

svn path=/trunk/gtk-sharp/; revision=29941
This commit is contained in:
Larry Ewing 2004-06-19 14:46:11 +00:00
parent a7a0bf8042
commit b39bc105e6
6 changed files with 34 additions and 18 deletions

View file

@ -1,3 +1,18 @@
2004-06-17 Larry Ewing <lewing@ximian.com>
* gdk/Makefile.am (sources): add Pixdata.custom
* gdk/Pixdata.custom: add new file to fix Serialize.
* gnome/CanvasItem.custom: remove the incorrect custom bindings.
* gnome/Gnome.metadata: stop hiding the AffineRelative and
AffineAbsolute the generator gets them right they are not out
params.
* gdk/Gdk.metadata: mark the Pixdata byte stream as and array hide
the broken serialize method.
2004-06-18 John Luke <jluke@cfl.rr.com> 2004-06-18 John Luke <jluke@cfl.rr.com>
* sample/rsvg/Makefile.am: do not reference gnome-sharp and art-sharp * sample/rsvg/Makefile.am: do not reference gnome-sharp and art-sharp

View file

@ -99,6 +99,8 @@
<attr path="/api/namespace/struct[@cname='GdkEventSetting']" name="hidden">1</attr> <attr path="/api/namespace/struct[@cname='GdkEventSetting']" name="hidden">1</attr>
<attr path="/api/namespace/struct[@cname='GdkEventVisibility']" name="hidden">1</attr> <attr path="/api/namespace/struct[@cname='GdkEventVisibility']" name="hidden">1</attr>
<attr path="/api/namespace/struct[@cname='GdkEventWindowState']" name="hidden">1</attr> <attr path="/api/namespace/struct[@cname='GdkEventWindowState']" name="hidden">1</attr>
<attr path="/api/namespace/struct[@cname='GdkPixdata']/method[@name='Deserialize']/*/*[@name='stream']" name="array">1</attr>
<attr path="/api/namespace/struct[@cname='GdkPixdata']/method[@name='Serialize']" name="hidden">1</attr>
<attr path="/api/namespace/struct[@cname='GdkPixmapObject']" name="hidden">1</attr> <attr path="/api/namespace/struct[@cname='GdkPixmapObject']" name="hidden">1</attr>
<attr path="/api/namespace/struct[@cname='GdkRegion']" name="opaque">1</attr> <attr path="/api/namespace/struct[@cname='GdkRegion']" name="opaque">1</attr>
<attr path="/api/namespace/struct[@cname='GdkRegion']/method[@name='GetRectangles']" name="hidden">1</attr> <attr path="/api/namespace/struct[@cname='GdkRegion']/method[@name='GetRectangles']" name="hidden">1</attr>

View file

@ -50,6 +50,7 @@ customs = \
Global.custom \ Global.custom \
Pixbuf.custom \ Pixbuf.custom \
PixbufLoader.custom \ PixbufLoader.custom \
Pixdata.custom \
Point.custom \ Point.custom \
Rectangle.custom \ Rectangle.custom \
Region.custom \ Region.custom \

16
gdk/Pixdata.custom Normal file
View file

@ -0,0 +1,16 @@
// Pixdata.Custom
//
// (C) 2004 Novell, Inc.
[DllImport("libgdk_pixbuf-2.0-0.dll")]
static extern IntPtr gdk_pixdata_serialize (ref Gdk.Pixdata raw, out uint len);
public byte [] Serialize () {
uint len;
IntPtr raw_ret = gdk_pixdata_serialize (ref this, out len);
byte [] data = new byte [len];
Marshal.Copy (raw_ret, data, 0, (int)len);
return data;
}

View file

@ -25,22 +25,6 @@
get { return GLib.Object.GetObject (gtksharp_gnome_canvas_item_get_canvas (this.Handle), false) as Canvas; } get { return GLib.Object.GetObject (gtksharp_gnome_canvas_item_get_canvas (this.Handle), false) as Canvas; }
} }
[DllImport("gnomecanvas-2")]
static extern void gnome_canvas_item_affine_relative(IntPtr raw, double[] affine);
public void AffineRelative (out double[] affine) {
affine = new double [6];
gnome_canvas_item_affine_relative(Handle, affine);
}
[DllImport("gnomecanvas-2")]
static extern void gnome_canvas_item_affine_absolute(IntPtr raw, double[] affine);
public void AffineAbsolute (out double[] affine) {
affine = new double [6];
gnome_canvas_item_affine_absolute(Handle, affine);
}
[DllImport("gnomecanvas-2")] [DllImport("gnomecanvas-2")]
static extern void gnome_canvas_item_i2c_affine(IntPtr raw, double[] affine); static extern void gnome_canvas_item_i2c_affine(IntPtr raw, double[] affine);

View file

@ -37,8 +37,6 @@
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='W2cAffine']" name="hidden">1</attr> <attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='W2cAffine']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GnomeCanvasClipgroup']/property[@name='Wind']" name="type">ArtWindRule</attr> <attr path="/api/namespace/object[@cname='GnomeCanvasClipgroup']/property[@name='Wind']" name="type">ArtWindRule</attr>
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/constructor[@cname='gnome_canvas_item_new']" name="hidden">1</attr> <attr path="/api/namespace/object[@cname='GnomeCanvasItem']/constructor[@cname='gnome_canvas_item_new']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='AffineAbsolute']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='AffineRelative']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='Construct']" name="hidden">1</attr> <attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='Construct']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='GetBounds']/*/*[@type='double*']" name="pass_as">out</attr> <attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='GetBounds']/*/*[@type='double*']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='I2cAffine']" name="hidden">1</attr> <attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='I2cAffine']" name="hidden">1</attr>