Tue, 07 Dec 2004 15:12:32 -0500
gdk_pixbuf_format_is_scalable is not in gtk2.4
Gtk# only wraps gtk2.4 so far.
The code you wrote yourself looks like it will work with gtk2.6 to me,
what error do you get when running it?
On Mon, 2004-12-06 at 23:13 -0800, Tamara wrote:
> Gdk.PixbufFormat appears to be not working all that well. As of 1.9.0,
> Gdk.PixbufFormat.Extensions and Gdk.PixbufFormat.MimeTypes (wrongly)
> return a string rather than an array of strings which renders them
> Several gdk_pixbuf_format_* functions are missing Gtk# hooks (at least
> that I can find). My attempt to add a hook in my own code caused
> problems. (let's hope this renders better than yesterday...)
> Running this against both a jpeg and svg (created with
> Gdk.PixbufLoader) returns false in both cases. It should report that
> the svg is scalable. However, I'm new to C#/Mono so I may have not
> done it right.
> compilable code: www.geocities.com/foxxygirltamara/scalable.tar.gz
> extract and compile with:
> $ mcs -pkg:gtk-sharp-2.0 -pkg:gnome-vfs-sharp-2.0 scalable.cs
> // code snippet
> static extern bool gdk_pixbuf_format_is_scalable (IntPtr raw);
> private static bool IsScalable (Gdk.PixbufFormat format)
> return gdk_pixbuf_format_is_scalable (format.Handle);
> Gtk-sharp-list maillist - Gtkfirstname.lastname@example.org