Author: mkestner
Date: 2005-03-28 16:57:19 -0500 (Mon, 28 Mar 2005)
New Revision: 42319
Modified:
trunk/gtk-sharp/ChangeLog
trunk/gtk-sharp/doc/en/Gdk/Pixbuf.xml
trunk/gtk-sharp/gdk/Pixbuf.custom
Log:
2005-03-28 Mike Kestner <[EMAIL PROTECTED]>
* gdk/Pixbuf.custom : add FromNative static method and obsolete
CreateFromNative, which should've been static. [Fixes #74155]
Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog 2005-03-28 21:37:12 UTC (rev 42318)
+++ trunk/gtk-sharp/ChangeLog 2005-03-28 21:57:19 UTC (rev 42319)
@@ -1,5 +1,10 @@
2005-03-28 Mike Kestner <[EMAIL PROTECTED]>
+ * gdk/Pixbuf.custom : add FromNative static method and obsolete
+ CreateFromNative, which should've been static. [Fixes #74155]
+
+2005-03-28 Mike Kestner <[EMAIL PROTECTED]>
+
* generator/Signal.cs : Dispose the values passed to
g_signal_chain_from_overriden in base VM invocations. [Fixes #73522]
Modified: trunk/gtk-sharp/doc/en/Gdk/Pixbuf.xml
===================================================================
--- trunk/gtk-sharp/doc/en/Gdk/Pixbuf.xml 2005-03-28 21:37:12 UTC (rev
42318)
+++ trunk/gtk-sharp/doc/en/Gdk/Pixbuf.xml 2005-03-28 21:57:19 UTC (rev
42319)
@@ -1619,5 +1619,35 @@
<remarks>The <paramref name="option_keys" /> and <paramref
name="option_values" /> should contain key/value pairs. See <see
cref="M:Gdk.Pixbuf.Save" /> for more details. Throws a <see
cref="T:GLib.GException" /> if the save is not successful.</remarks>
</Docs>
</Member>
+ <Member MemberName="FromDrawable">
+ <MemberSignature Language="C#" Value="public static Gdk.Pixbuf
FromDrawable (Gdk.Drawable src, Gdk.Colormap cmap, int src_x, int src_y, int
dest_x, int dest_y, int width, int height);" />
+ <MemberType>Method</MemberType>
+ <ReturnValue>
+ <ReturnType>Gdk.Pixbuf</ReturnType>
+ </ReturnValue>
+ <Parameters>
+ <Parameter Name="src" Type="Gdk.Drawable" />
+ <Parameter Name="cmap" Type="Gdk.Colormap" />
+ <Parameter Name="src_x" Type="System.Int32" />
+ <Parameter Name="src_y" Type="System.Int32" />
+ <Parameter Name="dest_x" Type="System.Int32" />
+ <Parameter Name="dest_y" Type="System.Int32" />
+ <Parameter Name="width" Type="System.Int32" />
+ <Parameter Name="height" Type="System.Int32" />
+ </Parameters>
+ <Docs>
+ <summary>Creates a new Pixbuf object from a <see cref="T:Gdk.Drawable"
/>.</summary>
+ <param name="src">a <see cref="T:Gdk.Drawable" /></param>
+ <param name="cmap">a <see cref="T:Gdk.Colormap" /></param>
+ <param name="src_x">a <see cref="T:System.Int32" /></param>
+ <param name="src_y">a <see cref="T:System.Int32" /></param>
+ <param name="dest_x">a <see cref="T:System.Int32" /></param>
+ <param name="dest_y">a <see cref="T:System.Int32" /></param>
+ <param name="width">a <see cref="T:System.Int32" /></param>
+ <param name="height">a <see cref="T:System.Int32" /></param>
+ <returns>a <see cref="T:Gdk.Pixbuf" /></returns>
+ <remarks />
+ </Docs>
+ </Member>
</Members>
-</Type>
\ No newline at end of file
+</Type>
Modified: trunk/gtk-sharp/gdk/Pixbuf.custom
===================================================================
--- trunk/gtk-sharp/gdk/Pixbuf.custom 2005-03-28 21:37:12 UTC (rev 42318)
+++ trunk/gtk-sharp/gdk/Pixbuf.custom 2005-03-28 21:57:19 UTC (rev 42319)
@@ -208,6 +208,12 @@
// operation will create the Pixbuf instead of two
//
+ public static Gdk.Pixbuf FromDrawable (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.Zero, src.Handle, cmap.Handle, src_x,
src_y, dest_x, dest_y, width, height);
+ return new Pixbuf (raw_ret);
+ }
+
+ [Obsolete ("Replaced by static FromDrawable method")]
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);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches