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
  2. 19 Jun, 2008 1 commit
  3. 27 May, 2008 1 commit
  4. 09 Dec, 2007 1 commit
  5. 11 Nov, 2007 1 commit
  6. 15 Jun, 2007 1 commit
    • Hans Breuer's avatar
      updated use g_snprintf · b2dea46b
      Hans Breuer authored
      2007-06-15  Hans Breuer  <hans@breuer.org>
      	* makefile.msc : updated
      	* io-jpeg.c : use g_snprintf
      svn path=/trunk/; revision=18139
  7. 30 May, 2007 1 commit
  8. 18 May, 2007 1 commit
    • Michael J. Chudobiak's avatar
      Bump libtiff requirement to 3.6.0, by requiring presence of · d1153503
      Michael J. Chudobiak authored
      2007-05-18  Michael J. Chudobiak  <mjc@cvs.gnome.org>
              * INSTALL.in:
              * README.in:
              * configure.in: Bump libtiff requirement to 3.6.0, by requiring
                presence of TIFFReadRGBAImageOriented.
              * gdk-pixbuf-scaled-anim.c: (get_scaled_pixbuf):
              Preserve pixbuf options when generating a new scaled pixbuf.
              * io-jpeg.c: (get_orientation), (gdk_pixbuf__jpeg_image_load),
              (gdk_pixbuf__jpeg_image_load_increment): Read the exif
              orientation tag and associate it with the "orientation" pixbuf
              option. Renders libexif unnecessary in some applications.
              * io-tiff.c: (tiff_image_parse): Read the tiff orientation tag,
              compensate for the partial rotations performed by libtiff,
              and generate an "orientation" option for the pixbuf.
      svn path=/trunk/; revision=17863
  9. 29 Apr, 2007 1 commit
  10. 28 Apr, 2007 1 commit
  11. 28 Mar, 2007 1 commit
    • Tim Janik's avatar
      applied JPEG loader fix from maemo. this fix makes sure stop_load() · 8a78c744
      Tim Janik authored
      Wed Mar 28 15:27:35 2007  Tim Janik  <timj@imendio.com>
              * io-jpeg.c: applied JPEG loader fix from maemo. this fix makes sure
              stop_load() doesn't forget about its return value, and it pulls the
              check for infinite looping out of an else branch in load_increment()
              so it runs unconditionally, fixes #397643.
      svn path=/trunk/; revision=17567
  12. 07 Feb, 2007 1 commit
    • Chris Wilson's avatar
      Set the GError if the image is zero length. (#405327) · 74747e38
      Chris Wilson authored
      2007-02-07  Chris Wilson  <chris@chris-wilson.co.uk>
      	* io-jpeg.c: (gdk_pixbuf__jpeg_image_load),
      	(gdk_pixbuf__jpeg_image_load_increment): Set the GError
      	if the image is zero length. (#405327)
      svn path=/trunk/; revision=17272
  13. 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.
  14. 08 Oct, 2006 1 commit
  15. 10 Feb, 2006 1 commit
  16. 14 Dec, 2005 2 commits
  17. 15 Aug, 2005 1 commit
  18. 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
      	* 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):
      	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file):
      	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_load_module):
      	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
  19. 13 Sep, 2004 1 commit
  20. 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
  21. 08 Feb, 2004 1 commit
    • Manish Singh's avatar
      removed unnecessary G_OBJECT() cast checks. · 4bd1fa5f
      Manish Singh authored
      Sun Feb  8 01:07:20 2004  Manish Singh  <yosh@gimp.org>
              * gdk-pixbuf-io.c: removed unnecessary G_OBJECT() cast checks.
              * io-jpeg.c: make the return type for to_callback_empty_output_buffer
              "boolean", which should be defined by the jpeg headers. The right
              return type for this function depends on how the jpeg library
              was built (one wonders what happens if different compilers are used).
  22. 07 Jan, 2004 2 commits
    • Matthias Clasen's avatar
      New public API to save pixbufs to non-file locations. (#82203, Tim Evans) · 03376d79
      Matthias Clasen authored
      Wed Jan  7 02:41:14 2004  Matthias Clasen  <maclas@gmx.de>
      	* gdk-pixbuf-io.c (gdk_pixbuf_save_to_bufferv):
      	* gdk-pixbuf-io.c (gdk_pixbuf_save_to_buffer):
      	* gdk-pixbuf-io.c (gdk_pixbuf_save_to_callbackv):
      	* gdk-pixbuf-io.c (gdk_pixbuf_save_to_callback): New public API
      	to save pixbufs to non-file locations.  (#82203, Tim Evans)
      	* gdk-pixbuf.h:
      	* gdk_pixbuf.def: Declare the new public API.
      	* gdk-pixbuf-io.h: Add save_to_callback to the module interface.
      	* io-jpeg.c:
      	* io-png.c: Implement save_to_callback.
      	* gdk-pixbuf-io.c (gdk_pixbuf_savev):
      	* gdk-pixbuf-io.c (gdk_pixbuf_save): Update documentation.
      	* gdk-pixbuf-io.c (gdk_pixbuf_real_save): Support saving via
      	* gdk-pixbuf-io.c (gdk_pixbuf_real_save_to_callback): New generic
      	save_to_callback function which falls back to image_module->save
      	on a temp file.
    • 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)
  23. 21 Mar, 2003 1 commit
  24. 03 Oct, 2002 2 commits
    • 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)
    • Owen Taylor's avatar
      Fix memory leak. (#94399) · 71277f40
      Owen Taylor authored
      Thu Oct  3 18:25:57 2002  Owen Taylor  <otaylor@redhat.com>
              * io-jpeg.c (gdk_pixbuf__jpeg_image_save):
              Fix memory leak. (#94399)
  25. 12 Sep, 2002 1 commit
  26. 06 Jul, 2002 1 commit
  27. 01 Jul, 2002 1 commit
  28. 13 Jun, 2002 1 commit
  29. 11 Apr, 2002 1 commit
    • Matthias Clasen's avatar
      More fixes for #77807: · 69395108
      Matthias Clasen authored
      	* io-tga.c (get_contiguous_pixbuf): Helper function to create
      	a pixbuf with a contiguous pixel array while being careful about
      	* io-tga.c (fill_in_context, get_image_pseudocolor,
      	get_image_truecolor, get_image_grayscale): Use
      	get_contiguous_pixbuf instead of manually allocating image
      	* io-xpm.c (pixbuf_create_from_xpm):
      	* io-pnm.c (gdk_pixbuf__pnm_image_load):
      	* io-jpeg.c (gdk_pixbuf__jpeg_image_load): Use gdk_pixbuf_new
      	instead of manually allocating image storage.
  30. 20 Jan, 2002 1 commit
  31. 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
      	* 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
      	* Makefile.am, pixops/Makefile.am: Compile everything with
      	* 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
  32. 05 Oct, 2001 1 commit
    • Sven Neumann's avatar
      gdk-pixbuf/gdk-pixbuf-io.c gdk-pixbuf/gdk-pixbuf-private.h · 40c29264
      Sven Neumann authored
      2001-10-05  Sven Neumann  <sven@gimp.org>
      	* gdk-pixbuf/gdk-pixbuf-io.c
      	* gdk-pixbuf/gdk-pixbuf-private.h
      	* gdk-pixbuf/gdk-pixbuf.c
      	* gdk-pixbuf/gdk-pixbuf.h
      	* gdk-pixbuf/io-jpeg.c
      	* gdk-pixbuf/io-png.c: changed GDK_PIXBUF_ERROR_BAD_OPTION_VALUE to
      	GDK_PIXBUF_ERROR_BAD_OPTION to we can use it for bad keys too. Added
      	new public API gdk_pixbuf_get_option() to retrieve key/value pairs
      	set by an image loader. Added support for saving and reading PNG tEXt
      	chunks in PNG images.
      	* demos/testpixbuf-save.c
      	* demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk
      	* gdk-pixbuf/tmpl/gdk-pixbuf.sgml: adapt to changes in GDK_PIXBUF_ERROR
  33. 14 Sep, 2001 1 commit
  34. 20 Aug, 2001 1 commit
  35. 07 May, 2001 1 commit
    • Havoc Pennington's avatar
      fix some shell typos · b4e4a0ed
      Havoc Pennington authored
      2001-05-04  Havoc Pennington  <hp@redhat.com>
      	* configure.in: fix some shell typos
      	* gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
      	* gtk/gtkimage.c: handle animations
      	* gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
      	border_width * 2, not just border_width
      	* gtk/gtkscale.c: add "format_value" signal to allow people
      	to override the way values are drawn.
      	(gtk_scale_get_value_size): fix width/height mistake,
      	and compute size from actual displayed text, not
      	from made-up text.
      	* gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in
      	signal registration
      	* tests/testtext.c: Add "Remove all tags" menu item for testing
      	* gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
      	* demos/gtk-demo/main.c (main): add hack so we can find modules
      	without installing gtk
      	* demos/gtk-demo/textview.c (insert_text): demo font scaling
      	* gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
      	(gtk_cell_renderer_text_set_property): remove some bogus
      	* gtk/gtktexttag.c: add "scale" property which is a font scaling
      	* gtk/gtktextlayout.c (add_text_attrs): add font scale attribute
      	to layout
      	* gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
      2001-05-04  Havoc Pennington  <hp@redhat.com>
      	* pixops/pixops.c (pixops_process): merge fix from stable: Patch
      	 from hoshem@mel.comcen.com.au to fix nonzero X offsets.  Fixes
      	 bug #50371.
              * gdk-pixbuf/pixops/pixops.c (pixops_composite_nearest): merge
      	from stable: Patch from OKADA Mitsuru <m-okada@fjb.co.jp> to fix
      	confusion of using "src" instead of "p".
              (pixops_composite_color_nearest): Use a more accurate (and
      	correct, to begin with) compositing method.  This cures checks
      	showing through on images with no alpha.
      	* gdk-pixbuf.c (gdk_pixbuf_fill): fix bug that left some trailing
      	bytes unfilled.
      	* gdk-pixbuf-io.h: fix UpdatedNotifyFunc to use signed ints
      	* gdk-pixbuf-loader.h (struct _GdkPixbufLoaderClass): Change
      	area_updated signal to use signed ints.  Removed animation-related
      	* io-gif.c, io-gif-animation.h, io-gif-animation.c: Massive
      	rewrite action
      	* gdk-pixbuf-animation.c: Add GdkPixbufAnimationIter to abstract
      	all the pesky details. Remove old frame-based API. Make
      	GdkPixbufAnimation an abstract base class, derived by the loaders.
  36. 19 Feb, 2001 1 commit
    • Alexander Larsson's avatar
      Copy data and free data with free(). · ba46da61
      Alexander Larsson authored
      2001-02-19 Alexander Larsson  <alexl@redhat.com>
      	* gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
      	Copy data and free data with free().
      	* gdk-pixbuf/gdk-pixbuf.c:
      	* gdk-pixbuf/io-jpeg.c:
      	* gdk-pixbuf/io-png.c:
      	Use g_try_malloc/g_free instead malloc/free.
      	* gdk-pixbuf/test-gdk-pixbuf.c:
      	Must... initialize... gobject...
      	* gdk-pixbuf/pixops/timescale.c:
      	* gtk/gtkcalendar.c:
      	Use g_malloc instead of malloc.
  37. 22 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      Add built marshaller files to support GdkPixbufLoader signals · e0fee22e
      Havoc Pennington authored
      2001-01-22  Havoc Pennington  <hp@redhat.com>
      	* Makefile.am: Add built marshaller files to support
      	GdkPixbufLoader signals
      	* gdk-pixbuf-io.c (gdk_pixbuf_load_module): have
      	GDK_PIXBUF_MODULEDIR unconditionally replace the compiled-in
      	module location, rather than acting as a fallback, because we are
      	using GDK_PIXBUF_MODULEDIR to use gdk-pixbuf before installing it.
      	* gdk-pixbuf.h: include gdk-pixbuf-loader.h
              * gdk-pixbuf-loader.h, gdk-pixbuf-loader.c: Move back over here
      	from gtk, and add error to close(), because stop_load may do
      	parsing of the image.
      	* pixops/have_mmx.S (_pixops_have_mmx): add newline at end of file
              * io-*.c: make individual operations static, and add fill_vtable
      	functions which are exported. Fix the collection of type warnings
      	that surfaced, including a number of functions that didn't
      	properly take a GError and some that weren't
      	const-correct. Involved adding error handling for a few loaders.
      	* gdk-pixbuf-io.h: Add error reporting to stop_load function
      	* gdk-pixbuf-io.c (gdk_pixbuf_load_module): change to just look up
      	a function that fills in the GdkPixbufModule vtable, instead of
      	looking up all the image functions individually; this means we
      	can get type safety within modules for the loader functions.
      	Also it means you don't have to keep the statically compiled and
      	GModule versions in sync.
      	* test-gdk-pixbuf.c (main): remove gdk_pixbuf_init()
      	* make-inline-pixbuf.c (main): remove call to gdk_pixbuf_init()
      	* gdk-pixbuf.h: nuke gdk_pixbuf_init()
      	* gdk-pixbuf-animation.c (gdk_pixbuf_frame_get_type): g_type_init
      	() here
      	* gdk-pixbuf.c (gdk_pixbuf_get_type): g_type_init () here
      	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_get_type):
      	g_type_init() here
      2001-01-22  Havoc Pennington  <hp@redhat.com>
      	* demos/testanimation.c: fix to reflect gdk-pixbuf changes
      	* demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
      	* gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h:
      	Remove, move back to gdk-pixbuf
      	* gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
      	to all the word functions
      	* gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
      	before doing anything on NULL layout or if we don't have the focus
      	* gtk/testtext.c (fill_example_buffer): "justification"
      	* gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
      	to be called "justification" not "justify"
      	* demos/gtk-demo/textview.c (create_tags): "justification"
      	* gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping