Results 1 to 1 of 1
Howdy all. So I'm working on this image-viewing program; some of you may have heard me mention it.
Anyway, I'm trying to load a file into a GtkImage. However, as ...
- 09-10-2007 #1
GTK+ Image Loading Error Handling
Howdy all. So I'm working on this image-viewing program; some of you may have heard me mention it.
Anyway, I'm trying to load a file into a GtkImage. However, as a part of this, I want to actually ensure that it is an image (that is, if the file is an AVI, I don't want to actually attempt to show it as an image). The Gtk+ documentation suggests using gdk_pixmap_new_from_file(), and then creating the GtkImage from the GdkPixmap, but unfortunately, there is no gdk_pixmap_new_from_file() function.
Does anyone know a way to check if a file is an actual image using Gtk?DISTRO=Arch
Registered Linux User #388732


Reply With Quote