Warning fixes - Federico

This commit is contained in:
Arturo Espinosa 1999-11-10 15:45:24 +00:00
parent b835084dfa
commit a3a4606eab
4 changed files with 14 additions and 5 deletions

View File

@ -478,7 +478,7 @@ progressive_updated_callback(GdkPixbufLoader* loader, guint x, guint y, guint wi
{
GtkWidget** window_loc = data;
/* g_print ("progressive_updated_callback:\n\t%d\t%d\t%d\t%d\n", x, y, width, height); */
/* g_print ("progressive_updated_callback:\n\t%d\t%d\t%d\t%d\n", x, y, width, height); */
if (*window_loc != NULL)
gtk_widget_queue_draw_area(*window_loc,

View File

@ -3,6 +3,12 @@
* src/gdk-pixbuf-io.c (gdk_pixbuf_new_from_xpm_data): Added
documentation.
1999-11-09 Federico Mena Quintero <federico@redhat.com>
* src/io-png.c: Fixed some incompatible pointer initializations.
* src/io-jpeg.c (image_load_increment): Remove unused variable.
1999-11-09 Michael Fulbright <drmike@redhat.com>
* src/testpixbuf.c: Fixed it to use timeout to read from file

View File

@ -481,7 +481,7 @@ image_load_increment (gpointer data, guchar *buf, guint size)
/* we're decompressing so feed jpeg lib scanlines */
guchar *lines[4];
guchar **lptr;
guchar *rowptr, *p;
guchar *rowptr;
gint nlines, i;
gint start_scanline;

View File

@ -586,11 +586,13 @@ image_load (FILE *f)
PnmIOBuffer *inbuf;
/* pretend to be doing progressive loading */
context.updated_func = context.prepared_func = NULL;
context.updated_func = NULL;
context.prepared_func = NULL;
context.user_data = NULL;
context.inbuf.bytes_left = 0;
context.inbuf.next_byte = NULL;
context.pixels = context.pixbuf = NULL;
context.pixels = NULL;
context.pixbuf = NULL;
context.got_header = context.did_prescan = FALSE;
inbuf = &context.inbuf;
@ -693,7 +695,8 @@ image_begin_load (ModulePreparedNotifyFunc prepared_func,
context->prepared_func = prepared_func;
context->updated_func = updated_func;
context->user_data = user_data;
context->pixbuf = context->pixels = NULL;
context->pixbuf = NULL;
context->pixels = NULL;
context->got_header = FALSE;
context->did_prescan = FALSE;