Author: mkestner
Date: 2005-05-10 12:01:58 -0400 (Tue, 10 May 2005)
New Revision: 44331
Modified:
branches/gtk-sharp-1-0-branch/gtk-sharp/ChangeLog
branches/gtk-sharp-1-0-branch/gtk-sharp/doc/en/Gdk/PixbufLoader.xml
branches/gtk-sharp-1-0-branch/gtk-sharp/gdk/Pixbuf.custom
branches/gtk-sharp-1-0-branch/gtk-sharp/gdk/PixbufLoader.custom
branches/gtk-sharp-1-0-branch/gtk-sharp/sample/GtkDemo/DemoImages.cs
Log:
2005-05-10 Mike Kestner <[EMAIL PROTECTED]>
* gdk/Pixbuf.custom : use non-obsolete PixbufLoader.Write overload.
* gdk/PixbufLoader.custom : add obsolete PixbufLoader.Write overload
for the uint case for backcompat. Update other uses to the new ulong
overload.
* sample/GtkDemo/DemoImage.cs : use PixbufLoader.Write (byte[])
overload.
Modified: branches/gtk-sharp-1-0-branch/gtk-sharp/ChangeLog
===================================================================
--- branches/gtk-sharp-1-0-branch/gtk-sharp/ChangeLog 2005-05-10 15:54:34 UTC
(rev 44330)
+++ branches/gtk-sharp-1-0-branch/gtk-sharp/ChangeLog 2005-05-10 16:01:58 UTC
(rev 44331)
@@ -1,3 +1,12 @@
+2005-05-10 Mike Kestner <[EMAIL PROTECTED]>
+
+ * gdk/Pixbuf.custom : use non-obsolete PixbufLoader.Write overload.
+ * gdk/PixbufLoader.custom : add obsolete PixbufLoader.Write overload
+ for the uint case for backcompat. Update other uses to the new ulong
+ overload.
+ * sample/GtkDemo/DemoImage.cs : use PixbufLoader.Write (byte[])
+ overload.
+
2005-05-03 Ben Maurer <[EMAIL PROTECTED]>
* configure.in: 1.0.9
Modified: branches/gtk-sharp-1-0-branch/gtk-sharp/doc/en/Gdk/PixbufLoader.xml
===================================================================
--- branches/gtk-sharp-1-0-branch/gtk-sharp/doc/en/Gdk/PixbufLoader.xml
2005-05-10 15:54:34 UTC (rev 44330)
+++ branches/gtk-sharp-1-0-branch/gtk-sharp/doc/en/Gdk/PixbufLoader.xml
2005-05-10 16:01:58 UTC (rev 44331)
@@ -434,5 +434,23 @@
</remarks>
</Docs>
</Member>
+ <Member MemberName="Write">
+ <MemberSignature Language="C#" Value="public bool Write (byte [] bytes,
uint count);" />
+ <MemberType>Method</MemberType>
+ <ReturnValue>
+ <ReturnType>System.Boolean</ReturnType>
+ </ReturnValue>
+ <Parameters>
+ <Parameter Name="bytes" Type="System.Byte[]" />
+ <Parameter Name="count" Type="System.UInt32" />
+ </Parameters>
+ <Docs>
+ <summary>To be added</summary>
+ <param name="bytes">a <see cref="T:System.Byte" /></param>
+ <param name="count">a <see cref="T:System.UInt32" /></param>
+ <returns>a <see cref="T:System.Boolean" /></returns>
+ <remarks>To be added</remarks>
+ </Docs>
+ </Member>
</Members>
-</Type>
+</Type>
\ No newline at end of file
Modified: branches/gtk-sharp-1-0-branch/gtk-sharp/gdk/Pixbuf.custom
===================================================================
--- branches/gtk-sharp-1-0-branch/gtk-sharp/gdk/Pixbuf.custom 2005-05-10
15:54:34 UTC (rev 44330)
+++ branches/gtk-sharp-1-0-branch/gtk-sharp/gdk/Pixbuf.custom 2005-05-10
16:01:58 UTC (rev 44331)
@@ -41,7 +41,7 @@
int n;
while ((n = input.Read (buffer, 0, 8192)) != 0)
- loader.Write (buffer, (uint) n);
+ loader.Write (buffer, (ulong) n);
loader.Close ();
Raw = loader.PixbufHandle;
Modified: branches/gtk-sharp-1-0-branch/gtk-sharp/gdk/PixbufLoader.custom
===================================================================
--- branches/gtk-sharp-1-0-branch/gtk-sharp/gdk/PixbufLoader.custom
2005-05-10 15:54:34 UTC (rev 44330)
+++ branches/gtk-sharp-1-0-branch/gtk-sharp/gdk/PixbufLoader.custom
2005-05-10 16:01:58 UTC (rev 44331)
@@ -29,6 +29,12 @@
public bool Write (byte[] bytes)
{
- return this.Write (bytes, (uint) bytes.Length);
+ return this.Write (bytes, (ulong) bytes.Length);
}
+ [Obsolete ("Replaced by Write (byte[], ulong) for 64 bit
portability")]
+ public bool Write (byte[] bytes, uint count)
+ {
+ return this.Write (bytes, (ulong) count);
+ }
+
Modified: branches/gtk-sharp-1-0-branch/gtk-sharp/sample/GtkDemo/DemoImages.cs
===================================================================
--- branches/gtk-sharp-1-0-branch/gtk-sharp/sample/GtkDemo/DemoImages.cs
2005-05-10 15:54:34 UTC (rev 44330)
+++ branches/gtk-sharp-1-0-branch/gtk-sharp/sample/GtkDemo/DemoImages.cs
2005-05-10 16:01:58 UTC (rev 44331)
@@ -153,7 +153,7 @@
if (imageStream.PeekChar () != -1) {
byte[] bytes = imageStream.ReadBytes (256);
- pixbufLoader.Write (bytes, (uint) bytes.Length);
+ pixbufLoader.Write (bytes);
return true; // leave the timeout active
}
else {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches