From 65f3b21788b894c178af48ec038c1bfde6b30b80 Mon Sep 17 00:00:00 2001 From: Martin Willemoes Hansen Date: Thu, 28 Aug 2003 10:40:14 +0000 Subject: [PATCH] * gdk/Pixbuf.custom: Added missing DllImport statement and proper copyright header. svn path=/trunk/gtk-sharp/; revision=17686 --- ChangeLog | 5 +++++ gdk/Pixbuf.custom | 22 +++++++++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d87dbbaff..9e6d81933 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-08-28 Martin Willemoes Hansen + + * gdk/Pixbuf.custom: Added missing DllImport statement and + proper copyright header. + 2003-08-28 Alp Toker * glue/style.c: glue and corresponding .custom entries for diff --git a/gdk/Pixbuf.custom b/gdk/Pixbuf.custom index dd7cacfc9..a25194260 100644 --- a/gdk/Pixbuf.custom +++ b/gdk/Pixbuf.custom @@ -1,7 +1,19 @@ +// Pixbuf.custom - Gdk Pixbuf class customizations // -// Extensions to Pixbuf +// Authors: +// Vladimir Vukicevic +// Miguel de Icaza +// Duncan Mak +// Gonzalo Paniagua Javier +// Martin Willemoes Hansen // +// (C) 2002 Vladimir Vukicevic +// (C) 2003 Ximian, Inc. (Miguel de Icaza) +// (C) 2003 Ximian, Inc. (Duncan Mak) +// (C) 2003 Ximian, Inc. (Gonzalo Paniagua Javier) +// (C) 2003 Martin Willemoes Hansen // +// This code is inserted after the automatically generated code. IntPtr LoadFromStream (System.IO.Stream input) { @@ -115,8 +127,12 @@ // operation will create the Pixbuf instead of two // - /// GetFromDrawable Method - /// To be completed + [DllImport("libgdk_pixbuf-2.0-0.dll")] + static extern IntPtr gdk_pixbuf_get_from_drawable ( + IntPtr nullpointer, IntPtr src, IntPtr cmap, + int src_x, int src_y, int dest_x, int dest_y, + int width, int height); + public Gdk.Pixbuf CreateFromDrawable (Gdk.Drawable src, Gdk.Colormap cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height) { IntPtr raw_ret = gdk_pixbuf_get_from_drawable((IntPtr) 0, src.Handle, cmap.Handle, src_x, src_y, dest_x, dest_y, width, height); return new Pixbuf (raw_ret);