1. 02 May, 2010 1 commit
  2. 28 May, 2008 1 commit
    • Michael Natterer's avatar
      define GDK_PIXBUF_H_INSIDE around including all other headers. · d52fecba
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      
      	* gdk-pixbuf.h: define GDK_PIXBUF_H_INSIDE around including all
      	other headers.
      
      	* gdk-pixbuf-animation.h
      	* gdk-pixbuf-core.h
      	* gdk-pixbuf-enum-types.h.template
      	* gdk-pixbuf-features.h.in
      	* gdk-pixbuf-io.h
      	* gdk-pixbuf-loader.h
      	* gdk-pixbuf-simple-anim.h
      	* gdk-pixbuf-transform.h: add single-include guards that #error
      	out if GDK_PIXBUF_DISABLE_SINGLE_INCLUDES is defined and any of
      	these files is included individually.
      
      	* gdk-pixbuf-private.h: don't incude "gdk-pixbuf-io.h".
      
      	* gdk-pixbuf-csource.c: #define __GTK_H_INSIDE__ around including
      	"../gtk/gtkversion.h". Ugly but needed in this special case.
      
      
      svn path=/trunk/; revision=20214
      d52fecba
  3. 30 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Add a cast to avoid compiler warnings. · 0d94fcef
      Matthias Clasen authored
      2005-08-30  Matthias Clasen  <mclasen@redhat.com>
      
      	* io-png.c (png_save_to_callback_write_func): Add a cast
      	to avoid compiler warnings.
      
      	* pixops/timescale.c (main): Declare src_buf, dest_buf as
      	unsigned to avoid compiler warnings.
      
      	* gdk-pixbuf-io.h: Declare the prefix and mask members of
      	GdkPixbufModulePattern as char*, to avoid compiler warnings.
      
      	* io-ani.c (ani_load_chunk): Use g_try_new() in some places.
      0d94fcef
  4. 12 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Changes to make gdk-pixbuf threadsafe (#157310, #157306, Colin Walters): · c8c94422
      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.
      c8c94422
  5. 08 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      New functions to disable/enable individual loaders and to obtain license · 67e592db
      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.
      67e592db
  6. 20 Jun, 2004 1 commit
  7. 06 May, 2004 1 commit
  8. 07 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      New public API to save pixbufs to non-file locations. (#82203, Tim Evans) · e7b62f2a
      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
      	image_module->save_to_callback.
      
      	* 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.
      e7b62f2a
  9. 08 Dec, 2002 1 commit
  10. 11 Oct, 2002 1 commit
  11. 03 Oct, 2002 1 commit
    • Matthias Clasen's avatar
      Support for separately installed loaders. (#77486) · 47107959
      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)
      47107959
  12. 22 Aug, 2002 1 commit
    • Matthias Clasen's avatar
      gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): No longer static, thus · 00e2cde0
      Matthias Clasen authored
      	* gdk-pixbuf-io.h:
      	gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): No longer
      	static, thus _gdk_pixbuf-prefixed.
      
      	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file):
      	Keep this logic in sync with gdk_pixbuf_new_from_file().  (Based
      	on a patch by Anders Carlsson)
      
      	* io-png.c (gdk_pixbuf__png_image_save): Plug a memory
      	leak.  (#91422, Sven Neumann)
      00e2cde0
  13. 06 Jul, 2002 1 commit
  14. 09 Jan, 2002 1 commit
    • Owen Taylor's avatar
      Include glib-object.h, Add G_BEGIN_DECLS/END_DECLS to · b950f9ed
      Owen Taylor authored
      Wed Jan  9 11:29:44 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* Makefile.am (s-enum-types-h): Include glib-object.h,
      	Add G_BEGIN_DECLS/END_DECLS to gdk-pixbuf-enum-types.h. (#68325,
      	Mikael Hermansson)
      
      	* *.h: G_BEGIN_DECLS cleanups.
      b950f9ed
  15. 07 May, 2001 1 commit
    • Havoc Pennington's avatar
      fix some shell typos · 4607c8e9
      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
      	factor)
      	(gtk_cell_renderer_text_set_property): remove some bogus
      	g_object_notify
      
      	* gtk/gtktexttag.c: add "scale" property which is a font scaling
      	factor
      
      	* gtk/gtktextlayout.c (add_text_attrs): add font scale attribute
      	to layout
      
      	* gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
      	gtk_text_iter_is_first
      
      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
      	signals.
      
      	* 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.
      4607c8e9
  16. 20 Feb, 2001 1 commit
    • Havoc Pennington's avatar
      prepend underscore (gdk_pixbuf_get_named_module): prepend underscore · 70fb3c64
      Havoc Pennington authored
      2001-02-18  Havoc Pennington  <hp@pobox.com>
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_load_module): prepend underscore
      	(gdk_pixbuf_get_named_module): prepend underscore
      	(gdk_pixbuf_get_module): prepend underscore
      
      2001-02-18  Havoc Pennington  <hp@pobox.com>
      
      	* gdk-pixbuf/Makefile.am (IGNORE_HFILES): add gdk-pixbuf-marshal.h
      
      	* gdk-pixbuf/gdk-pixbuf-sections.txt: fixes
      70fb3c64
  17. 22 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      Add built marshaller files to support GdkPixbufLoader signals · 80d4bf2b
      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
      80d4bf2b
  18. 18 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      Some updates · 9fde4eb5
      Havoc Pennington authored
      2000-10-18  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtk-sections.txt: Some updates
      
      	* gdk/gdk-sections.txt: remove GdkPixbufAlphaMode
      
      	* gdk-pixbuf/gdk-pixbuf-sections.txt: Add new API, remove
      	GdkPixbufClass/GdkAnimationClass since those are private
      
      	* gdk-pixbuf/Makefile.am (IGNORE_HFILES): ignore more headers
      
      2000-10-18  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug
      	where any number of empty lines would get skipped
      
      	* gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
      	edge.
      
      	* gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
      	warning about invalid iterators (explain more thoroughly)
      	(gtk_text_iter_in_region): rename gtk_text_iter_in_range
      
      	* gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
      	big
      
      	* demos/*.c: Add error handling
      
      	* gtk/gtktextbuffer.c: don't modify const iterators
      
      	* gtk/gdk-pixbuf-loader.c: Add full error handling here
      
      	* gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
      	on file load
      
      	* gtk/gtkiconfactory.c: Update to reflect addition of error
      	handling to gdk-pixbuf loaders
      
      2000-10-16  Havoc Pennington  <hp@redhat.com>
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_get_module)
      	(gdk_pixbuf_get_named_module) (gdk_pixbuf_load_module):
      	add error reporting here also
      
      	* make-inline-pixbuf.c (main): use GError
      
      	* io-xpm.c: include unistd.h
      
      	* gdk-pixbuf-util.c: include string.h
      
      	* io-*.c: add error reporting
      
      	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): add
      	error reporting
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Add error reporting
      
      	* gdk-pixbuf-io.h: Add GError** to load_increment and load
      	methods
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_save) (gdk_pixbuf_savev): return
      	a G_FILE_ERROR if we fail to write or close the file.
      
      	* gdk-pixbuf.h: remove GDK_PIXBUF_ERROR_IO, instead we'll use
      	G_FILE_ERROR_*. Rename enum to GdkPixbufError, properly following
      	the GError naming rules. Add GError** to load functions.
      9fde4eb5
  19. 06 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      Pixbuf saving, patch from David Welton. · e2d006d7
      Havoc Pennington authored
      2000-10-05  Havoc Pennington  <hp@redhat.com>
      
              Pixbuf saving, patch from David Welton.
      
      	* Makefile.am (GDK_PIXBUF_LIBS): add INTLLIBS
      	(libgdk_pixbuf_1_3_la_SOURCES): add gdk-pixbuf-i18n.h
      
      	* gdk-pixbuf-i18n.h: Add _() to gdk-pixbuf
      
      	* io-png.c (gdk_pixbuf__png_image_save): PNG save routine.
      
      	* io-jpeg.c (gdk_pixbuf__jpeg_image_save): JPEG save routine.
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_save):
      	(gdk_pixbuf_savev): Implement pixbuf saving routines
      
      	* gdk-pixbuf.c (gdk_pixbuf_error_quark): pixbuf error quark
      	function
      
      	* gdk-pixbuf.h: Add public save routines; add pixbuf error
      	types
      
      	* gdk-pixbuf-io.h: Add save function to GdkPixbufModule
      
      2000-10-05  Havoc Pennington  <hp@redhat.com>
      
              * demos/testpixbuf-save.c: add pixbuf save test
      
      	* demos/Makefile.am: add testpixbuf-save.c
      e2d006d7
  20. 28 Jul, 2000 1 commit
    • Elliot Lee's avatar
      Add gdk_pixbuf_loader_new_with_type function, to allow handling image · 34d1da48
      Elliot Lee authored
      
      
      2000-07-27  Elliot Lee  <sopwith@redhat.com>
      
      	* gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
      	function, to allow handling image formats that cannot be detected
      	by looking at content alone.
      
      gdk-pixbuf/
      2000-07-27  Elliot Lee  <sopwith@redhat.com>
      	* gdk-pixbuf-io.h, gdk-pixbuf-io.c: Add gdk_pixbuf_get_named_module() function to facilitate above change
      	* io-bmp.c: Don't malloc a temporary buffer - use stack instead.
      	* io-wbmp.c, pixbufloader_wbmp.defs, gdk-pixbuf-io.c, Makefile: Implement loader for WBMP format.
      
      **NOTE: I haven't tested this yet, I need to sync it to another machine, but it if it is broken
      I'm already working on fixing it
      34d1da48
  21. 26 Jul, 2000 1 commit
  22. 07 Jan, 2000 1 commit
    • Jonathan Blandford's avatar
      Added progressive animation loading. Added progressive animation loading. · 959b45be
      Jonathan Blandford authored
      2000-01-07  Jonathan Blandford  <jrb@redhat.com>
      
      	* gdk-pixbuf/gdk-pixbuf-io.c: Added progressive animation loading.
      	* gdk-pixbuf/gdk-pixbuf-io.h: Added progressive animation loading.
      	* gdk-pixbuf/gdk-pixbuf-loader.c: Added progressive animation
      	loading.
      	* gdk-pixbuf/gdk-pixbuf-loader.h: Added progressive animation
      	loading.
      	* gdk-pixbuf/io-gif.c (image_load_increment): I think the
      	ref-counting mess is finally fixed.  Added progressive animation
      	loading.
      
      I think progressive animation loading all works now.  It's all
      documented too, if anyone wants to play with it.
      959b45be
  23. 05 Jan, 2000 1 commit
    • Jonathan Blandford's avatar
      Change the order of the update func to make it more compatible with the · 8b34aeb6
      Jonathan Blandford authored
      2000-01-05  Jonathan Blandford  <jrb@redhat.com>
      
      	* gdk-pixbuf/gdk-pixbuf-io.h: Change the order of the update func
      	to make it more compatible with the rest of GTK.  Added animation
      	framework for progressive loading.
      
      	* gdk-pixbuf/io-bmp.c (image_begin_load): Modified to handle new
      	system.
      	* gdk-pixbuf/io-ico.c (image_begin_load): ditto
      	* gdk-pixbuf/io-png.c (image_begin_load): ditto
      	* gdk-pixbuf/io-ras.c (image_begin_load): ditto
      	* gdk-pixbuf/io-jpeg.c (image_begin_load): ditto
      	* gdk-pixbuf/io-pnm.c (image_begin_load): ditto
      	* gdk-pixbuf/io-tiff.c (image_begin_load): ditto
      	* gdk-pixbuf/io-gif.c (image_begin_load): ditto
      8b34aeb6
  24. 02 Jan, 2000 1 commit
    • Federico Mena Quintero's avatar
      Added reference counting to animations. A web browser may want to share a · e55155f9
      Federico Mena Quintero authored
      2000-01-01  Federico Mena Quintero  <federico@helixcode.com>
      
      	* gdk-pixbuf/gdk-pixbuf.h (GdkPixbufAnimation): Added reference
      	counting to animations.  A web browser may want to share a single
      	copy of an animated GIF if it appears multiple times in a web
      	page, for example.
      
      	* gdk-pixbuf/gdk-pixbuf-animation.c: New file.  Moved the
      	animation functions here.
      	(gdk_pixbuf_animation_new_from_file): Prettified.  Return a NULL
      	animation if the loader does not support multiframe loading and
      	the single-frame load returned NULL.  Check that the filename is
      	not NULL.  Updated inline documentation.
      	(gdk_pixbuf_animation_ref): New function.
      	(gdk_pixbuf_animation_unref): New function.
      	Removed gdk_pixbuf_animation_destroy() in favor of reference
      	counting.
      
      	* gdk-pixbuf/gdk-pixbuf-io.c (gdk_pixbuf_new_from_file):
      	Prettified.  Made ref_count assertion more paranoid.  Check that
      	the filename is not NULL.
      	(gdk_pixbuf_get_module): Use guchar * and guint for buffer and
      	size, respectively.
      	(gdk_pixbuf_new_from_xpm_data): Changed the "data" argument to
      	const char **.
      
      	* gdk-pixbuf/io-gif.c (image_load_animation): Create the animation
      	with a reference count of 1.
      
      	* gdk-pixbuf/Makefile.am (libgdk_pixbuf_la_SOURCES): Added
      	gdk-pixbuf-animation.c.
      
      	* doc/tmpl/animation.sgml: Populated.  It is still missing a
      	description of the overlay modes.
      
      	* doc/gdk-pixbuf-sections.txt: Added the animation section.  Moved
      	the canvas item section to the end, as it will be moved later to
      	gnome-libs.
      
      	* doc/gdk-pixbuf.sgml: Added the animation section.
      
      	* doc/Makefile.am (tmpl_sources): Added tmpl/animation.sgml.
      e55155f9
  25. 11 Dec, 1999 1 commit
    • Jonathan Blandford's avatar
      thinking about the new loading API. · b5550663
      Jonathan Blandford authored
      1999-12-10  Jonathan Blandford  <jrb@redhat.com>
      
      	* gdk-pixbuf/gdk-pixbuf-io.h: thinking about the new loading API.
      
      	* gdk-pixbuf/gdk-pixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
      	make a warning go away.
      b5550663
  26. 02 Dec, 1999 1 commit
    • Federico Mena Quintero's avatar
      #include <config.h>, and fix includes. · 90ca9061
      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.
      90ca9061
  27. 23 Nov, 1999 1 commit
  28. 22 Nov, 1999 1 commit
  29. 04 Nov, 1999 1 commit
    • Jonathan Blandford's avatar
      handle the actual update. add a update_func callback. add a update_func · 09dd8450
      Jonathan Blandford authored
      1999-11-04  Jonathan Blandford  <jrb@redhat.com>
      
      	* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_update): handle the
      	actual update.
      	* src/io-png.c (image_begin_load): add a update_func callback.
      	* src/io-gif.c (image_begin_load): add a update_func callback.
      	* src/io-tiff.c (image_begin_load): add a update_func callback.
      09dd8450
  30. 02 Nov, 1999 2 commits
  31. 29 Oct, 1999 1 commit
    • Michael Fulbright's avatar
      Actually load the image handler when we determine the image type. · 2580cb68
      Michael Fulbright authored
      1999-10-29  Michael Fulbright  <drmike@redhat.com>
      
              * src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Actually
              load the image handler when we determine the image type.
      
              * src/gdk-pixbuf-io.[ch] (gdk_pixbuf_load_module): Changed the
              previously static function load_image_handler () to
              a public function gdk_pixbuf_load_module (). It is needed in
              gdk-pixbuf-loader.c to load image handler modules.  This function
              is different from gdk_pixbuf_get_module (), which only returns
              a reference to the required handler, because it actually loads
              the handler into memory. Both actions should possibly be combined
              in a convenience function since one w/o the other doesn't seem to
              make much sense.
      2580cb68
  32. 28 Oct, 1999 1 commit
    • Jonathan Blandford's avatar
      started work on the tiff non-incremental loader. · 0da5c74f
      Jonathan Blandford authored
      
      1999-10-28  Jonathan Blandford  <jrb@redhat.com>
      
      	* src/io-tiff.c (image_load_increment): started work on the tiff
      	non-incremental loader.
      
      	* src/io-gif.c (image_load_increment): started work on the gif
      	incremental loader.
      
      	* src/gdk-pixbuf-io.h: Changed ModuleType to GdkPixbufModule.
      0da5c74f
  33. 27 Oct, 1999 2 commits
    • Arturo Espinosa's avatar
      Make it build - Federico · 2c343c99
      Arturo Espinosa authored
      2c343c99
    • Federico Mena Quintero's avatar
      Return a GdkPixbufLoader, not a GtkObject. · e1e7523b
      Federico Mena Quintero authored
      1999-10-27  Federico Mena Quintero  <federico@redhat.com>
      
      	* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_new): Return a
      	GdkPixbufLoader, not a GtkObject.
      	(gtk_marshal_NONE__INT_INT_INT_INT): Made static.
      	(gdk_pixbuf_loader_get_type): Documented.
      	(gdk_pixbuf_loader_class_init): Initialize the parent class
      	correctly.
      	(gdk_pixbuf_loader_destroy): Added sanity checks. Call the parent
      	class destroy function.
      	(gdk_pixbuf_loader_new): Documented.
      	(gdk_pixbuf_loader_finalize): Call the parent class finalize
      	function.
      	(gdk_pixbuf_loader_write): Use size_t for count.
      e1e7523b
  34. 26 Oct, 1999 3 commits
  35. 08 Jul, 1999 1 commit
    • Mark Crichton's avatar
      Massive update... · 86003a8d
      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
      86003a8d