From 23b0f15ee834bef11d3e5de3158a092d0b338cba Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 27 Oct 1999 17:31:07 +0000 Subject: Return a GdkPixbufLoader, not a GtkObject. 1999-10-27 Federico Mena Quintero * src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_new): Return a GdkPixbufLoader, not a GtkObject. (gtk_marshal_NONE__INT_INT_INT_INT): Made static. (gdk_pixbuf_loader_get_type): Documented. (gdk_pixbuf_loader_class_init): Initialize the parent class correctly. (gdk_pixbuf_loader_destroy): Added sanity checks. Call the parent class destroy function. (gdk_pixbuf_loader_new): Documented. (gdk_pixbuf_loader_finalize): Call the parent class finalize function. (gdk_pixbuf_loader_write): Use size_t for count. --- gdk-pixbuf/gdk-pixbuf-io.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdk-pixbuf/gdk-pixbuf-io.h') diff --git a/gdk-pixbuf/gdk-pixbuf-io.h b/gdk-pixbuf/gdk-pixbuf-io.h index e27c137a59..b3da91d645 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.h +++ b/gdk-pixbuf/gdk-pixbuf-io.h @@ -26,13 +26,15 @@ #include "gdk-pixbuf.h" #include + + typedef void (* ModulePreparedNotifyFunc) (GdkPixbuf *pixbuf, gpointer user_data); typedef struct _ModuleType ModuleType; struct _ModuleType { char *module_name; - gboolean (* format_check) (guchar *buffer, int size); GModule *module; + gboolean (* format_check) (guchar *buffer, int size); GdkPixbuf *(* load) (FILE *f); GdkPixbuf *(* load_xpm_data) (const gchar **data); -- cgit v1.2.1