diff options
author | Federico Mena Quintero <federico@redhat.com> | 1999-11-04 08:14:32 +0000 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-11-04 08:14:32 +0000 |
commit | 567305020d37f24e192ffcec008e857a0da32e19 (patch) | |
tree | 2308e701bf99bf29500e7272436653dc6e839f07 /gdk-pixbuf/gdk-pixbuf-io.c | |
parent | e9cebcd36a6c63591232c9d962278cdfb291d487 (diff) | |
download | gtk+-567305020d37f24e192ffcec008e857a0da32e19.tar.gz |
Populated.
1999-11-04 Federico Mena Quintero <federico@redhat.com>
* doc/tmpl/gdk-pixbuf.sgml: Populated.
* doc/tmpl/refcounting.sgml: Populated.
* doc/tmpl/file-loading.sgml: Populated.
* src/gdk-pixbuf.c: Added documentation comments.
* src/gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Added
documentation comments.
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-io.c')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-io.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index e2b692f6d9..64ddd1b563 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -221,6 +221,18 @@ gdk_pixbuf_get_module (gchar *buffer, gint size) return NULL; } +/** + * gdk_pixbuf_new_from_file: + * @filename: Name of file to load. + * + * Creates a new pixbuf by loading an image from a file. The file format is + * detected automatically. + * + * Return value: A newly-created pixbuf, or NULL if any of several error + * conditions occurred: the file could not be opened, there was no loader for + * the file's format, there was not enough memory to allocate the image buffer, + * or the image file contained invalid data. + **/ GdkPixbuf * gdk_pixbuf_new_from_file (const char *filename) { |