Commit 35899862 authored by Havoc Pennington's avatar Havoc Pennington Committed by Havoc Pennington

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
parent bfd0c127
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
......
......@@ -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);
......@@ -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);
};
......
......@@ -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);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment