fix signals

1999-10-26  Havoc Pennington  <hp@pobox.com>

* src/gdk-pixbuf-loader.h: fix signals

* src/gdk-pixbuf-io.h: add new vtable fields
This commit is contained in:
Havoc Pennington 1999-10-26 22:04:29 +00:00 committed by Havoc Pennington
parent bfd0c12798
commit 3589986260
4 changed files with 24 additions and 10 deletions

View File

@ -1,3 +1,10 @@
1999-10-26 Havoc Pennington <hp@pobox.com>
* src/gdk-pixbuf-loader.h: fix signals
* src/gdk-pixbuf-io.h: add new vtable fields
1999-10-26 Jonathan Blandford <jrb@redhat.com>
* src/gdk-pixbuf-loader.h: New Class. Beginning of progrssive

View File

@ -26,6 +26,8 @@
#include "gdk-pixbuf.h"
#include <stdio.h>
typedef void (* ModulePreparedNotifyFunc) (GdkPixbuf *pixbuf, gpointer user_data);
typedef struct _ModuleType ModuleType;
struct _ModuleType {
char *module_name;
@ -33,7 +35,14 @@ struct _ModuleType {
GModule *module;
GdkPixbuf *(* load) (FILE *f);
GdkPixbuf *(* load_xpm_data) (const gchar **data);
/* Incremental loading */
gpointer (* begin_load) (ModulePreparedNotifyFunc func, gpointer user_data);
void (* stop_load) (gpointer context);
void (* load_increment)(gpointer context, guchar *buf, guint size);
GdkPixbuf *(* get_pixbuf) (gpointer context);
};
ModuleType *gdk_pixbuf_get_module (gchar *buffer, gint size);

View File

@ -56,11 +56,10 @@ typedef struct _GdkPixbufLoaderClass GdkPixbufLoaderClass;
struct _GdkPixbufLoaderClass {
GtkObjectClass parent_class;
void (* area_updated) (GdkPixbufLoader *loader,
int x, int y, int width, int height);
void (* area_prepared) (GdkPixbufLoader *loader,
GdkPixbuf *image,
int x, int y, int width, int height);
void (* area_prepared) (GdkPixbufLoader *loader);
void (* area_updated) (GdkPixbufLoader *loader,
int x, int y, int width, int height);
};

View File

@ -56,11 +56,10 @@ typedef struct _GdkPixbufLoaderClass GdkPixbufLoaderClass;
struct _GdkPixbufLoaderClass {
GtkObjectClass parent_class;
void (* area_updated) (GdkPixbufLoader *loader,
int x, int y, int width, int height);
void (* area_prepared) (GdkPixbufLoader *loader,
GdkPixbuf *image,
int x, int y, int width, int height);
void (* area_prepared) (GdkPixbufLoader *loader);
void (* area_updated) (GdkPixbufLoader *loader,
int x, int y, int width, int height);
};