From c84756cf3874dba57d696b9b27d2b3e13af8cf1b Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Tue, 26 Oct 1999 16:26:00 +0000 Subject: [PATCH] New Class. Beginning of progrssive loading. 1999-10-26 Jonathan Blandford * src/gdk-pixbuf-loader.h: New Class. Beginning of progrssive loading. --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/gdk-pixbuf-loader.h | 7 ++++--- gdk-pixbuf/io-png.c | 6 ++++++ gtk/gdk-pixbuf-loader.h | 7 ++++--- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index d6eef083cb..f83c61cc2d 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +1999-10-26 Jonathan Blandford + + * src/gdk-pixbuf-loader.h: New Class. Beginning of progrssive + loading. + 1999-10-25 Federico Mena Quintero * configure.in (CFLAGS): Patch from Uwe Koloska diff --git a/gdk-pixbuf/gdk-pixbuf-loader.h b/gdk-pixbuf/gdk-pixbuf-loader.h index 81ba0f58b7..90b481fda9 100644 --- a/gdk-pixbuf/gdk-pixbuf-loader.h +++ b/gdk-pixbuf/gdk-pixbuf-loader.h @@ -56,11 +56,12 @@ struct _GdkPixbufLoader typedef struct _GdkPixbufLoaderClass GdkPixbufLoaderClass; struct _GdkPixbufLoaderClass { GtkObjectClass parent_class; -#if 0 - /* If it get's implemented */ + void (* area_updated) (GdkPixbufLoader *loader, int x, int y, int width, int height); -#endif + void (* area_prepared) (GdkPixbufLoader *loader, + GdkPixbuf *image, + int x, int y, int width, int height); }; diff --git a/gdk-pixbuf/io-png.c b/gdk-pixbuf/io-png.c index 5b07a4feed..b9caaf7db8 100644 --- a/gdk-pixbuf/io-png.c +++ b/gdk-pixbuf/io-png.c @@ -134,3 +134,9 @@ image_load (FILE *f) w, h, w * 3, free_buffer, NULL); } + +GdkImage * +image_load_by_data (void *data, size_t count) +{ + return NULL; +} diff --git a/gtk/gdk-pixbuf-loader.h b/gtk/gdk-pixbuf-loader.h index 81ba0f58b7..90b481fda9 100644 --- a/gtk/gdk-pixbuf-loader.h +++ b/gtk/gdk-pixbuf-loader.h @@ -56,11 +56,12 @@ struct _GdkPixbufLoader typedef struct _GdkPixbufLoaderClass GdkPixbufLoaderClass; struct _GdkPixbufLoaderClass { GtkObjectClass parent_class; -#if 0 - /* If it get's implemented */ + void (* area_updated) (GdkPixbufLoader *loader, int x, int y, int width, int height); -#endif + void (* area_prepared) (GdkPixbufLoader *loader, + GdkPixbuf *image, + int x, int y, int width, int height); };