1. 14 Feb, 2000 1 commit
    • Mark Crichton's avatar
      Iain sent me a xpm that didn't load. It used "g" instead of "c" in it's · d0f73034
      Mark Crichton authored
      
      
      Iain sent me a xpm that didn't load.  It used "g" instead of "c" in it's
      color table.
      
      I thought that was borked until I saw Imlib, xv, and Gimp load it up w/o
      problem...
      
      So, fixed that (less than one line fix).  HOWEVER, if this is correct,
      then the gdk XPM loader in gtk+ also has the same problem.
      
      Owen, got an opinion on this?
      
      Mark
      d0f73034
  2. 22 Jan, 2000 1 commit
  3. 02 Dec, 1999 1 commit
    • Federico Mena Quintero's avatar
      #include <config.h>, and fix includes. · 25a81424
      Federico Mena Quintero authored
      1999-12-02  Federico Mena Quintero  <federico@redhat.com>
      
      	* src/testpixbuf.c: #include <config.h>, and fix includes.
      
      	* src/testpixbuf-drawable.c: #include <config.h>, and fix includes.
      
      	* src/io-xpm.c: Fix includes.
      
      	* src/io-tiff.c: Fix includes.
      
      	* src/io-ras.c: Fix includes, and do not include more stuff than needed.
      
      	* src/io-pnm.c: Fix inlcudes, and do not include more stuff than needed.
      
      	* src/io-png.c: Fix includes.
      
      	* src/io-ico.c: Fix includes, and do not include more stuff than needed.
      
      	* src/io-gif.c: Fix includes, and do not include more stuff than needed.
      
      	* src/io-bmp.c: Fix includes, and do not include more stuff than needed.
      
      	* src/gnome-canvas-pixbuf.c: Fix includes.
      
      	* src/gdk-pixbuf.c: Fix includes.
      
      	* src/gdk-pixbuf-util.c: Fix includes.
      
      	* src/gdk-pixbuf-render.c: Fix includes.
      
      	* src/gdk-pixbuf-io.h: Fix includes.
      
      	* src/gdk-pixbuf-drawable.c: Fix includes.
      
      	* src/gdk-pixbuf-drawable.h: Use angle brackets for the gdk-pixbuf
      	include files.
      
      	* src/gdk-pixbuf-data.c: Fix includes.
      
      	* src/gdk-pixbuf-loader.c: #include <config.h>
      
      	* src/gdk-pixbuf-loader.h: Use angle brackets for the gdk-pixbuf
      	include files.
      
      	* src/Makefile.am: Commented out the gdk-pixbuf-drawable stuff,
      	since it is not finished.
      25a81424
  4. 22 Nov, 1999 1 commit
  5. 22 Oct, 1999 2 commits
    • Havoc Pennington's avatar
      Clean up stupid increment-inside-array-dereference thing · c3c9c722
      Havoc Pennington authored
      1999-10-22  Havoc Pennington  <hp@pobox.com>
      
      * src/io-xpm.c (mem_buffer): Clean up stupid
      increment-inside-array-dereference thing
      
      * src/testpixbuf.c: Add XPM data tests.
      
      * src/io-xpm.c: Make the XPM data buffer const, fix const
      correctness throughout the code.
      c3c9c722
    • Havoc Pennington's avatar
      Export this symbol for loading an XPM from memory. · 5f3ae6ad
      Havoc Pennington authored
      1999-10-22  Havoc Pennington  <hp@pobox.com>
      
      * src/io-xpm.c (image_load_xpm_data): Export this symbol for
      loading an XPM from memory.
      
      * src/gdk-pixbuf-io.c (gdk_pixbuf_new_from_xpm_data): New
      function, loads pixbuf from xpm data
      (image_handler_load): Add g_return_if_fail() to ensure the same
      module isn't loaded twice. Add g_module_symbol() to scan for XPM
      loader function.
      5f3ae6ad
  6. 20 Oct, 1999 1 commit
    • Federico Mena Quintero's avatar
      Removed the unref_fn field. Now all memory management of the buffer is · 7ef5dec3
      Federico Mena Quintero authored
      1999-10-20  Federico Mena Quintero  <federico@redhat.com>
      
      	* src/gdk-pixbuf.h (GdkPixbuf): Removed the unref_fn field.  Now
      	all memory management of the buffer is done by libart.
      
      	* src/gdk-pixbuf.c (gdk_pixbuf_unref): Do destruction here.
      	Removed gdk_pixbuf_destroy, gdk_pixbuf_duplicate.
      
      	* src/gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Implemented in
      	terms of the libart functions.  Removed the old code.
      
      	* src/gdk-pixbuf-io.c (image_handler_load): Removed the save
      	symbols.  Saving will not be implemented in GdkPixbuf.
      
      	* src/io-gif.c: Removed the saving stub.
      	(image_load): Fixed memory management to fail gracefully if we run
      	out of memory while loading the image.  Close the gif file when we
      	are done.  This still needs more error handling for the DGif
      	functions.
      
      	* src/io-jpeg.c (image_load): Some robustness fixes.
      
      	* src/io-png.c: Removed the saving stuff.
      	(image_load): Some memory management fixes.
      
      	* src/io-tiff.c (image_load): Ditto.
      
      	* src/io-xpm.c (pixbuf_create_from_xpm): Ditto.
      7ef5dec3
  7. 18 Oct, 1999 1 commit
  8. 22 Sep, 1999 1 commit
  9. 17 Sep, 1999 1 commit
    • Federico Mena Quintero's avatar
      Set the initial ref_count to 1. · 66779b9b
      Federico Mena Quintero authored
      1999-09-17  Federico Mena Quintero  <federico@redhat.com>
      
      	* src/io-bmp.c (image_load): Set the initial ref_count to 1.
      
      	* src/io-gif.c (image_load): Likewise.
      
      	* src/io-jpeg.c (image_load): Likewise.
      
      	* src/io-png.c (image_load): Likewise.
      
      	* src/io-tiff.c (image_load): Likewise.
      
      	* src/io-xpm.c (_pixbuf_create_from_xpm): Likewise.
      
      	* src/gdk-pixbuf-io.c (gdk_pixbuf_load_image): Added an assertion
      	for the ref_count to be != 0.
      66779b9b
  10. 09 Aug, 1999 1 commit
    • Federico Mena Quintero's avatar
      Fixed compiler warnings. Fixed write to unallocated memory (row_ptr), and · 49ca2615
      Federico Mena Quintero authored
      1999-08-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
      
      	* src/io-png.c (image_save): Fixed compiler warnings.  Fixed write
      	to unallocated memory (row_ptr), and fixed its type as well.  Take
      	into account the ArtPixbuf's rowstride when assigning the row
      	pointers.
      
      	* src/gdk-pixbuf.c: Fixup includes.
      
      	* src/gdk-pixbuf-io.c: Likewise.
      49ca2615
  11. 19 Jul, 1999 1 commit
  12. 13 Jul, 1999 1 commit
    • Mark Crichton's avatar
      Ok, we'll try this again. · 6992607b
      Mark Crichton authored
      
      
      Ok, we'll try this again.
      
      io-xpm.c: Fixed.  Now actually loads XPMs instead of a big black blob.
      
      configure.in : yes, I know it was broken.  It wasn't finished quite yet (I
      always have larger fish to fry)
      
      Oh, and if anyone touches this module again without emailing the people in
      AUTHORS, I will go ballistic (after spending precious time figuring out why
      this commit never happened the 1st time I tried...)
      6992607b
  13. 08 Jul, 1999 1 commit
    • Mark Crichton's avatar
      Massive update... · 68f895bd
      Mark Crichton authored
      
      
      Massive update...
      
      gdk-pixbuf-io.c: Fixed to compile and run in a very crippled state.
      
      io-bpm.c: Rough start on a WIN/OS2 BMP loader
      
      testpixbuf.c: Really crude test program for gdk-pixbuf
      
      io-gif.c: Fixed some boneheaded uninitalized variables causing the
      loader to choke
      68f895bd
  14. 30 Jun, 1999 1 commit