1. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
      
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      
      
      svn path=/trunk/; revision=20669
      d97cdbdf
  2. 19 Jun, 2008 1 commit
  3. 27 May, 2008 1 commit
  4. 11 Mar, 2008 2 commits
  5. 09 Mar, 2007 1 commit
  6. 04 Jan, 2007 1 commit
  7. 22 Dec, 2006 2 commits
  8. 11 Oct, 2006 1 commit
    • Tor Lillqvist's avatar
      Enable having some gdk-pixbuf loaders built-in even if loading the others · f6783c74
      Tor Lillqvist authored
      2006-10-11  Tor Lillqvist  <tml@novell.com>
      
      	* configure.in: Enable having some gdk-pixbuf loaders built-in
      	even if loading the others dynamically. Define Automake
      	conditional INCLUDE_FOO for each loader as TRUE if that loader is
      	built-in. See also gdk-pixbuf/ChangeLog.
      
      2006-10-11  Tor Lillqvist  <tml@novell.com>
      
      	Enable having some loaders built-in even if loading the others
      	dynamically. Have loaders in the same order as in configure.in in
      	all places where they are handled/listed.
      
      	* Makefile.am: Define the STATIC_FOO_LIB and FOO_LIB macros
      	conditionally depending on whether said loader is built-in or
      	not. Use the names libstatic-pixbufloader-foo.la instead of
      	libpixbufloader-static-foo.la for the built-in ones so that the
      	"echo libpixbufloader-*.la" won't match them.
      
      	* gdk-pixbuf-io.c: Reorganize code as to plumb the built-in
      	loaders also if USE_GMODULE. Don't warn about a missing
      	gdk-pixbuf.loaders file if we have at least one included loader.
      
      	* gdk-pixbuf-private.h
      	* io-*.c: Don't define a generic MODULE_ENTRY, as we can't use it
      	in the loaders anyway. Each loader needs to check if INCLUDE_foo
      	is defined.
      f6783c74
  9. 27 May, 2005 1 commit
  10. 09 Apr, 2005 1 commit
    • Matthias Clasen's avatar
      Don't display too many broken images. (#169870, Roman Kagan, patch by Ivan · a75e27c0
      Matthias Clasen authored
      2005-04-09  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
      	Don't display too many broken images.  (#169870, Roman
      	Kagan, patch by Ivan Wong)
      
      	* gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
      	output.  (#300013, Tommi Komulainen)
      
      	* io-bmp.c (gdk_pixbuf__bmp_image_save_to_callback):
      	Don't overflow the stack.  (Jakub Jelinek, Arjan van de Ven)
      a75e27c0
  11. 07 Apr, 2005 1 commit
  12. 30 Mar, 2005 1 commit
  13. 28 Mar, 2005 2 commits
  14. 24 Feb, 2005 1 commit
    • Matthias Clasen's avatar
      Document BMP saving support. · 534d584b
      Matthias Clasen authored
      2005-02-23  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk-pixbuf-io.c: Document BMP saving support.
      
      	* io-bmp.c: Support saving as BMP. (168173, Ivan Wong)
      534d584b
  15. 04 Jan, 2005 3 commits
  16. 12 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Changes to make gdk-pixbuf threadsafe (#157310, #157306, Colin Walters): · cb918cdb
      Matthias Clasen authored
      2004-11-12  Matthias Clasen  <mclasen@redhat.com>
      
      	Changes to make gdk-pixbuf threadsafe  (#157310, #157306,
      	Colin Walters):
      
      	* gdk-pixbuf-io.h (enum GdkPixbufFormatFlags): Add
      	GDK_PIXBUF_FORMAT_THREADSAFE to indicate that an image loader
      	is threadsafe.
      
      	* gdk-pixbuf-io.c (get_file_formats, _gdk_pixbuf_load_module):
      	Use a lock to make initialization of global data structures
      	threadsafe.
      	* gdk-pixbuf-private.h:
      	* gdk-pixbuf-io.c (_gdk_pixbuf_lock, _gdk_pixbuf_unlock):
      	Auxiliary functions which use another lock to protect
      	threadunsafe image loaders.
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_real_save):
      	(save_to_callback_with_tmp_file):
      	(gdk_pixbuf_real_save_to_callback):
      	(gdk_pixbuf_new_from_xpm_data):
      	(_gdk_pixbuf_generic_image_load):
      	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file):
      	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_load_module):
      	(gdk_pixbuf_loader_close):
      	(gdk_pixbuf_loader_finalize):
      	Use _gdk_pixbuf_lock() and _gdk_pixbuf_unlock().
      
      	* io-ani.c, io-bmp.c, io-gif.c, io-ico.c:
      	* io-jpeg.c, io-pcx.c, io-png.c, io-pnm.c:
      	* io-ras.c, io-tga.c, io-wbmp.c, io-xbm.c:
      	* io-xpm.c: Mark as threadsafe.
      
      	* io-tiff.c: Remove pointless locking, mark as
      	threadunsafe.
      cb918cdb
  17. 20 Aug, 2004 1 commit
  18. 13 Aug, 2004 1 commit
  19. 08 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      New functions to disable/enable individual loaders and to obtain license · 2c08beaf
      Matthias Clasen authored
      Wed Jul  7 23:53:58 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk-pixbuf-io.h:
      	* gdk-pixbuf-io.c (gdk_pixbuf_format_is_disabled):
      	* gdk-pixbuf-io.c (gdk_pixbuf_format_set_disabled):
      	* gdk-pixbuf-io.c (gdk_pixbuf_format_get_license):
      	New functions to disable/enable individual loaders and to
      	obtain license information about loaders.
      
      	* gdk-pixbuf-io.h (GdkPixbufFormat): Add disabled and
      	license fields.
      
      	* gdk-pixbuf-io.c (_gdk_pixbuf_get_module):
      	* gdk-pixbuf-io.c (_gdk_pixbuf_get_named_module): Skip
      	disabled loaders.
      
      	* io-*.c: Add license information in the fill_info
      	functions.
      2c08beaf
  20. 05 Mar, 2004 1 commit
  21. 22 Feb, 2004 1 commit
  22. 20 Feb, 2004 1 commit
    • Matthias Clasen's avatar
      Store and sanity-check the clrUsed field from the header for use in · 0f210699
      Matthias Clasen authored
      Fri Feb 20 22:25:32 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* io-bmp.c (DecodeHeader): Store and sanity-check the clrUsed field
      	from the header for use in DecodeColormap.
      	* io-bmp.c (DecodeColormap): Don't read more colormap entries than
      	the header says are there.  (#134235, Kazuho Okui)
      0f210699
  23. 07 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      Make it possible to call gdk_pixbuf_loader_set_size (loader, 0, 0) by · 5b26e695
      Matthias Clasen authored
      Wed Jan  7 01:17:36 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_size_func):
      	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_set_size):
      	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_init): Make it possible
      	to call gdk_pixbuf_loader_set_size (loader, 0, 0) by changing
      	the initial values of priv->width/height to -1.
      
      	* io-tiff.c (tiff_image_parse):
      	* io-ras.c (RAS2State):
      	* io-pnm.c (gdk_pixbuf__pnm_image_load_increment):
      	* io-pcx.c (gdk_pixbuf__pcx_load_increment):
      	* io-jpeg.c (gdk_pixbuf__jpeg_image_load_increment):
      	* io-png.c (png_info_callback):
      	* io-ico.c (DecodeHeader):
      	* io-bmp.c (DecodeHeader): Call size_func once the size is known,
      	even if the module can't make use of the scaling information. If
      	size_func returns 0, don't allocate a pixbuf and return, if
      	necessary with an error.
      
      	* gdk-pixbuf.h:
      	* gdk-pixbuf-io.c (gdk_pixbuf_get_file_info): A new function
      	to determine the type and size of an image file without loading
      	it completely.  (#53725)
      5b26e695
  24. 03 Oct, 2002 1 commit
    • Matthias Clasen's avatar
      Support for separately installed loaders. (#77486) · 45f7541f
      Matthias Clasen authored
      	* Makefile.am gdk-pixbuf-animation.c gdk-pixbuf-data.c
      	gdk-pixbuf-io.c gdk-pixbuf-io.h gdk-pixbuf-loader.c
      	gdk-pixbuf-loader.h gdk-pixbuf-private.h gdk-pixbuf.h
      	gdk-pixdata.c io-ani-animation.h io-ani.c io-bmp.c
      	io-gif-animation.c io-gif-animation.h io-gif.c io-ico.c
      	io-jpeg.c io-png.c io-pnm.c io-ras.c io-tga.c io-tiff.c
      	io-wbmp.c io-xbm.c io-xpm.c pixbufloader_ani.def
      	pixbufloader_bmp.def pixbufloader_gif.def pixbufloader_ico.def
      	pixbufloader_jpeg.def pixbufloader_png.def
      	pixbufloader_pnm.def pixbufloader_ras.def pixbufloader_tga.def
      	pixbufloader_tiff.def pixbufloader_wbmp.def
      	pixbufloader_xbm.def pixbufloader_xpm.def test-gdk-pixbuf.c
      	gdk-pixbuf-animation.h queryloaders.c: Support for separately
      	installed loaders.  (#77486)
      45f7541f
  25. 27 Sep, 2002 1 commit
  26. 03 Sep, 2002 1 commit
    • Matthias Clasen's avatar
      Don't leak memory if g_try_realloc fails. · 8abdfd3d
      Matthias Clasen authored
      	* io-tga.c (io_buffer_append):
      	* io-ico.c (DecodeHeader):
      	* io-bmp.c (grow_buffer): Don't leak memory if g_try_realloc fails.
      
      	* gdk-pixbuf-io.c (pixbuf_check_ico): Fix loading of .CUR files.
      	(#91826)
      8abdfd3d
  27. 07 Jul, 2002 1 commit
    • Matthias Clasen's avatar
      New function for loading an image from a file either via module->load or · 94218b8c
      Matthias Clasen authored
      	* gdk-pixbuf-io.c (generic_image_load): New function for loading
      	an image from a file either via module->load or incrementally.
      	(prepared_notify): ModulePreparedNotifyFunc for generic_image_load.
      	(gdk_pixbuf_new_from_file): Use generic_image_load.
      	* io-bmp.c, io-ico.c, io-ras.c, io-wbmp.c: Remove trivial
      	implementations of module->load.  (#71266)
      94218b8c
  28. 06 Jul, 2002 1 commit
  29. 02 Jul, 2002 1 commit
    • Matthias Clasen's avatar
      Miscellaneous bmp loader fixes (#85448, #86286, #86287): · 096e8ea2
      Matthias Clasen authored
      	* io-bmp.c (grow_buffer): New function to avoid crashes
      	on unchecked reallocs.
      	(DecodeHeader, DecodeColormap, decode_bitmasks,
      	DoCompressed): Use grow_buffer instead of g_realloc
      	throughout. Change signatures where necessary to pass the
      	errors up.
      	(OneLine16): Fix loading of 16bpp BI_RGB bmps.
      	(DoCompressed): Rewritten to properly support BI_RLE4 and
      	skips and jumps.
      096e8ea2
  30. 10 Jun, 2002 1 commit
    • Federico Mena Quintero's avatar
      New functions to fetch 32 or 16-bit little-endian values starting at a · ebeb676c
      Federico Mena Quintero authored
      2002-06-07  Federico Mena Quintero  <federico@ximian.com>
      
      	* io-bmp.c (lsb_32):
      	(lsb_16): New functions to fetch 32 or 16-bit little-endian values
      	starting at a specific memory location.  We do this instead of
      	GINT32_FROM_LE() as the latter is simply dereferences a cast,
      	which doesn't work on platforms with alignment requirements.
      	Fixes #84083.
      ebeb676c
  31. 12 Mar, 2002 1 commit
  32. 05 Mar, 2002 1 commit
    • Matthias Clasen's avatar
      Fix docs. · 981574a9
      Matthias Clasen authored
      	* gtk/gtktreemodel.c (gtk_tree_row_reference_deleted): Fix docs.
      
      	* gtk/gtkwindow.c (gtk_window_remove_mnemonic):
      	(gtk_window_add_mnemonic):
      	(gtk_window_mnemonic_activate): Add docs.
      
      	* gtk/gtktreeview.c (gtk_tree_view_get_search_equal_func): Fix
      	typo in docs.
      
      	* test-loaders.c, test-images.h: More random tests.
      
      	* io-bmp.c (DecodeHeader): Fail gracefully on OOM here.
      
      	* gtk/gtk-sections.txt: Remove gtk_win32_get_installation_directory.
      981574a9
  33. 13 Dec, 2001 1 commit
    • Sebastian Wilhelmi's avatar
      Remove assorted G_OBJECT casts where unnecessary. · d99bd97f
      Sebastian Wilhelmi authored
      
      2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gdk-pixbuf-animation.c, gdk-pixbuf-loader.c, gdk-pixpuf.c,
      	io-gif-animation.c, io-gif.c, io-tiff.c, test-loaders.c: Remove
      	assorted G_OBJECT casts where unnecessary.
      
      	* gdk-pixbuf-loader.c: Call g_object_ref and g_object_unref
      	instead of gdk_pixbuf_animation_ref and gdk_pixbuf_animation_unref
      	resp.
      
      	* gdk-pixbuf-csource.c, io-bmp.c, io-gif-animation.c, io-ico.c,
      	io-jpeg.c, io-png.c, io-pnm.c, io-ras.c, io-tga.c, io-wbmp.c,
      	io-xbm.c, io-xpm.c, test-gdk-pixbuf.c: Dito for gdk_pixbuf_ref and
      	gdk_pixbuf_unref.
      
      	* Makefile.am, pixops/Makefile.am: Compile everything with
      	-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED
      
      	* gdk-pixdata.c: Use g_ascii_strup() instead of g_strup().
      
      	* io-xpm.c: Use g_ascii_strcasecmp() instead of g_strcasecmp().
      
      	* demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
      	demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
      	and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
      	resp.
      d99bd97f
  34. 29 Nov, 2001 2 commits
    • Manish Singh's avatar
      Fill in missing error parameters to DecodeHeader and DecodeColormap. · a0dd3bc8
      Manish Singh authored
      2001-11-28  Manish Singh  <yosh@gimp.org>
      
              * gdk-pixbuf/io-bmp.c (gdk_pixbuf__bmp_image_load_increment): Fill
              in missing error parameters to DecodeHeader and DecodeColormap.
      a0dd3bc8
    • Federico Mena Quintero's avatar
      Fix Ximian bug #12125; merged from gdk-pixbuf stable. · ab13c880
      Federico Mena Quintero authored
      2001-11-21  Federico Mena Quintero  <federico@ximian.com>
      
      	Fix Ximian bug #12125; merged from gdk-pixbuf stable.
      
      	* gdk-pixbuf/io-bmp.c (gdk_pixbuf__bmp_image_load_increment): Use
      	a simple state machine instead of a scary if/else chain.
      	(DecodeHeader): Set the reading state.
      	(DecodeColormap): Set the reading state.
      	(decode_bitmasks): New function, decodes the bitmasks for
      	BI_BITFIELDS coding.
      	(OneLine32): Handle BI_BITFIELDS coding.
      	(OneLine16): Likewise.
      ab13c880