From adb9f59db38a2ac24f93b74cff898399181464f5 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Mon, 14 Jun 2004 20:25:50 +0000 Subject: [PATCH] 2004-06-14 Mike Kestner * configure.in : another "really frozen this time" release. * gdk/Gdk.metadata : mark a couple array params on Pixbuf.Savev. * gdk/Pixbuf.custom : add a Save implementation. svn path=/trunk/gtk-sharp/; revision=29546 --- ChangeLog | 6 ++++++ configure.in | 2 +- gdk/Gdk.metadata | 1 + gdk/Pixbuf.custom | 10 ++++++++++ 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8f42d1db4..74db9e970 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-06-14 Mike Kestner + + * configure.in : another "really frozen this time" release. + * gdk/Gdk.metadata : mark a couple array params on Pixbuf.Savev. + * gdk/Pixbuf.custom : add a Save implementation. + 2004-06-14 Mike Kestner * configure.in : bump the version to 0.97, tag. diff --git a/configure.in b/configure.in index 225cfcd60..84a2ba1b8 100644 --- a/configure.in +++ b/configure.in @@ -2,7 +2,7 @@ AC_INIT(README) AC_CANONICAL_SYSTEM AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(gtk-sharp, 0.97.99) +AM_INIT_AUTOMAKE(gtk-sharp, 0.98) AM_MAINTAINER_MODE API_VERSION=1.0.0.0 diff --git a/gdk/Gdk.metadata b/gdk/Gdk.metadata index c90fbdad8..5184ab421 100644 --- a/gdk/Gdk.metadata +++ b/gdk/Gdk.metadata @@ -54,6 +54,7 @@ libgdk-win32-2.0-0.dll libgdk-win32-2.0-0.dll libgdk-win32-2.0-0.dll + 1 1 1 1 diff --git a/gdk/Pixbuf.custom b/gdk/Pixbuf.custom index 825ca9249..10a4222ee 100644 --- a/gdk/Pixbuf.custom +++ b/gdk/Pixbuf.custom @@ -167,3 +167,13 @@ } } + [DllImport("libgdk_pixbuf-2.0-0.dll")] + static extern unsafe bool gdk_pixbuf_save(IntPtr raw, string filename, string type, out IntPtr error, IntPtr dummy); + + public unsafe bool Save(string filename, string type) { + IntPtr error = IntPtr.Zero; + bool ret = gdk_pixbuf_save(Handle, filename, type, out error, IntPtr.Zero); + if (error != IntPtr.Zero) throw new GLib.GException (error); + return ret; + } +