diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-03-22 20:33:50 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-03-22 20:33:50 +0000 |
commit | 8f069d7bfcbf33ba1aef39d599ab159ba451f4f8 (patch) | |
tree | 09b7df36472234f46dc259e5923849dd7f67b46e /gdk-pixbuf | |
parent | fcc18115254024eb03309f0544ad225379745765 (diff) | |
download | gtk+-8f069d7bfcbf33ba1aef39d599ab159ba451f4f8.tar.gz |
Add some documentation about supported image formats, and how to find out
2006-03-22 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-loader.c: Add some documentation about
supported image formats, and how to find out about them.
(#335536, Murray Cumming)
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/ChangeLog | 6 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-loader.c | 13 |
2 files changed, 19 insertions, 0 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 1de3ab579a..4c4204e227 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,9 @@ +2006-03-22 Matthias Clasen <mclasen@redhat.com> + + * gdk-pixbuf-loader.c: Add some documentation about + supported image formats, and how to find out about them. + (#335536, Murray Cumming) + 2006-03-20 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-animation.c: diff --git a/gdk-pixbuf/gdk-pixbuf-loader.c b/gdk-pixbuf/gdk-pixbuf-loader.c index 90281b074b..460aea1f9b 100644 --- a/gdk-pixbuf/gdk-pixbuf-loader.c +++ b/gdk-pixbuf/gdk-pixbuf-loader.c @@ -547,6 +547,12 @@ gdk_pixbuf_loader_new (void) * that can't be reliably identified by looking at the data, or if * the user manually forces a specific type. * + * The list of supported image formats depends on what image loaders + * are installed, but typically "png", "jpeg", "gif", "tiff" and + * "xpm" are among the supported formats. To obtain the full list of + * supported image formats, call gdk_pixbuf_format_get_name() on each + * of the #GdkPixbufFormat structs returned by gdk_pixbuf_get_formats(). + * * Return value: A newly-created pixbuf loader. **/ GdkPixbufLoader * @@ -584,6 +590,13 @@ gdk_pixbuf_loader_new_with_type (const char *image_type, * that can't be reliably identified by looking at the data, or if * the user manually forces a specific mime type. * + * The list of supported mime types depends on what image loaders + * are installed, but typically "image/png", "image/jpeg", "image/gif", + * "image/tiff" and "image/x-xpixmap" are among the supported mime types. + * To obtain the full list of supported mime types, call + * gdk_pixbuf_format_get_mime_types() on each of the #GdkPixbufFormat + * structs returned by gdk_pixbuf_get_formats(). + * * Return value: A newly-created pixbuf loader. * Since: 2.4 **/ |