diff options
author | Jonathan Blandford <jrb@redhat.com> | 1999-11-10 21:06:40 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 1999-11-10 21:06:40 +0000 |
commit | 19b42c342f9e227d09ae7a6a6706c5e3e141856e (patch) | |
tree | e1568599ea52661580137d7e1b3f89bd34efbbf9 /gdk-pixbuf/io-gif.c | |
parent | 16aa7c4316ef4b964c314a37dc0815d0a52db04f (diff) | |
download | gtk+-19b42c342f9e227d09ae7a6a6706c5e3e141856e.tar.gz |
emit the closed signal.
1999-11-10 Jonathan Blandford <jrb@redhat.com>
* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): emit the
closed signal.
Diffstat (limited to 'gdk-pixbuf/io-gif.c')
-rw-r--r-- | gdk-pixbuf/io-gif.c | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/gdk-pixbuf/io-gif.c b/gdk-pixbuf/io-gif.c index f1dcc6e902..005bb907f0 100644 --- a/gdk-pixbuf/io-gif.c +++ b/gdk-pixbuf/io-gif.c @@ -99,6 +99,9 @@ typedef struct _Gif89 Gif89; struct _Gif89 { int transparent; + int delay_time; + int input_flag; + int disposal; }; typedef struct _GifContext GifContext; @@ -108,6 +111,7 @@ struct _GifContext unsigned int width; unsigned int height; CMap color_map; + CMap frame_color_map; unsigned int bit_pixel; unsigned int color_resolution; unsigned int background; @@ -1002,6 +1006,26 @@ gif_main_loop (GifContext *context) return retval; } +static GifContext * +new_context (void) +{ + GifContext *context; + + context = g_new (GifContext, 1); + context->pixbuf = NULL; + context->file = NULL; + context->state = GIF_START; + context->prepare_func = NULL; + context->update_func = NULL; + context->user_data = NULL; + context->buf = NULL; + context->amount_needed = 0; + context->gif89.transparent = -1; + context->gif89.delay_time = -1; + context->gif89.input_flag = -1; + context->gif89.disposal = -1; + return context; +} /* Shared library entry point */ GdkPixbuf * image_load (FILE *file) @@ -1010,12 +1034,8 @@ image_load (FILE *file) g_return_val_if_fail (file != NULL, NULL); - context = g_new (GifContext, 1); + context = new_context (); context->file = file; - context->pixbuf = NULL; - context->state = GIF_START; - context->prepare_func = NULL; - context->update_func = NULL; gif_main_loop (context); @@ -1032,15 +1052,11 @@ image_begin_load (ModulePreparedNotifyFunc prepare_func, #ifdef IO_GIFDEBUG count = 0; #endif - context = g_new (GifContext, 1); + context = new_context (); context->prepare_func = prepare_func; context->update_func = update_func; context->user_data = user_data; - context->file = NULL; - context->pixbuf = NULL; - context->state = GIF_START; - context->buf = NULL; - context->amount_needed = 0; + return (gpointer) context; } |