summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaszlo Pandy <lpandy@src.gnome.org>2011-02-22 23:04:17 +0100
committerLaszlo Pandy <lpandy@src.gnome.org>2011-02-22 23:04:17 +0100
commit56c7de18e344d36efa095f3ea24855d0d011b8c7 (patch)
tree9080a1c6efa647bd697fd1e40dd95f1a9d05eaa6
parent614811f653eb300b3d35a575214a2b72766c1aa6 (diff)
downloadgdk-pixbuf-56c7de18e344d36efa095f3ea24855d0d011b8c7.tar.gz
Add introspection annotations for gdk_pixbuf_save_to_callback().
-rw-r--r--gdk-pixbuf/gdk-pixbuf-core.h7
-rw-r--r--gdk-pixbuf/gdk-pixbuf-io.c6
2 files changed, 10 insertions, 3 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-core.h b/gdk-pixbuf/gdk-pixbuf-core.h
index 35d3f97c1..13cec1e63 100644
--- a/gdk-pixbuf/gdk-pixbuf-core.h
+++ b/gdk-pixbuf/gdk-pixbuf-core.h
@@ -182,6 +182,13 @@ gboolean gdk_pixbuf_savev (GdkPixbuf *pixbuf,
/* Saving to a callback function */
+/**
+ * GdkPixbufSaveFunc:
+ * @buf:
+ * @count:
+ * @error: (out):
+ * @data: (closure):
+ **/
typedef gboolean (*GdkPixbufSaveFunc) (const gchar *buf,
gsize count,
GError **error,
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c
index d01575c45..b6eb4eadf 100644
--- a/gdk-pixbuf/gdk-pixbuf-io.c
+++ b/gdk-pixbuf/gdk-pixbuf-io.c
@@ -2309,10 +2309,10 @@ gdk_pixbuf_save_to_callback (GdkPixbuf *pixbuf,
* @pixbuf: a #GdkPixbuf.
* @save_func: (scope call): a function that is called to save each block of data that
* the save routine generates.
- * @user_data: user data to pass to the save function.
+ * @user_data: (closure save_func): user data to pass to the save function.
* @type: name of file format.
- * @option_keys: name of options to set, %NULL-terminated
- * @option_values: values for named options
+ * @option_keys: (array zero-terminated=1) (element-type utf8): name of options to set, %NULL-terminated
+ * @option_values: (array zero-terminated=1) (element-type utf8): values for named options
* @error: (allow-none): return location for error, or %NULL
*
* Saves pixbuf to a callback in format @type, which is currently "jpeg",