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?