1. 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
      	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.
      03376d79
    • 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
  2. 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
  3. 19 Sep, 2002 1 commit
  4. 17 Sep, 2002 1 commit
  5. 22 Aug, 2002 1 commit
    • Matthias Clasen's avatar
      gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): No longer static, thus · c22b6145
      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)
      c22b6145
  6. 06 Jul, 2002 1 commit
  7. 24 Apr, 2002 1 commit
  8. 06 Apr, 2002 1 commit
  9. 29 Mar, 2002 1 commit
  10. 27 Mar, 2002 1 commit
    • Matthias Clasen's avatar
      Don't leak info_ptr. · ec35e811
      Matthias Clasen authored
      	* io-png.c (gdk_pixbuf__png_image_stop_load): Don't leak info_ptr.
      
      	* io-png.c (gdk_pixbuf__png_image_load): Get rid of unused
      	end_info. Also call png_read_end to check proper ending of the png
      	file and catch text chunks after the image data.
      ec35e811
  11. 26 Mar, 2002 1 commit
  12. 25 Mar, 2002 1 commit
  13. 20 Jan, 2002 1 commit
  14. 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
  15. 11 Dec, 2001 1 commit
  16. 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
      	feature.
      
      	* gdk-pixbuf/tmpl/gdk-pixbuf.sgml: adapt to changes in GDK_PIXBUF_ERROR
      	enum.
      40c29264
  17. 30 Aug, 2001 1 commit
  18. 18 Jul, 2001 1 commit
    • Darin Adler's avatar
      Add missing <stdlib.h> include. Add ifdef so we compile without warnings · b0bb5ac3
      Darin Adler authored
      	* gdk-pixbuf-csource.c: Add missing <stdlib.h> include.
      	* io-png.c: (setup_png_transformations): Add ifdef so we compile
      	without warnings with G_DISABLE_CHECKS on.
      	* io-pnm.c: (gdk_pixbuf__pnm_image_load_increment): Add a missing
      	const.
      	* io-wbmp.c: (getin), (get_mbi): Add a missing const.
      	* io-xbm.c: (gdk_pixbuf__xbm_image_load_real): Get rid of some
      	unused locals and add an initial value to quiet the compiler's
      	unintialized variable warning.
      	* pixops/pixops.c: Put an ifdef around some dead code.
      b0bb5ac3
  19. 01 Jun, 2001 1 commit
    • Jonathan Blandford's avatar
      Initial stab at getting the focus code to work. · 741c71eb
      Jonathan Blandford authored
      Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
      	getting the focus code to work.
      	(gtk_tree_view_class_init): Add a bunch of keybindings.
      
      	* gtk/gtktreeviewcolumn.c
      	(gtk_tree_view_column_set_cell_data_func):
      	s/GtkCellDataFunc/GtkTreeCellDataFunc.
      	(_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
      	of "properties_changed" to help justify the death of the latter
      	signal. (-:
      
      	* tests/testtreefocus.c (main): Let some columns be focussable to
      	test focus better.
      741c71eb
  20. 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
      	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.
      b4e4a0ed
  21. 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.
      ba46da61
  22. 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
      e0fee22e
  23. 14 Nov, 2000 1 commit
    • Havoc Pennington's avatar
      fix bug where GC didn't always get updated properly · 73a00eeb
      Havoc Pennington authored
      2000-11-13  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug
      	where GC didn't always get updated properly
      
      	* demos/gtk-demo/textview.c (create_tags): Use subattributes
      	of fonts instead of setting the entire font
      
      	* gtk/testtext.c (fill_example_buffer): Use "size" instead of
      	setting entire font
      
      	* gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
      
      	* gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into
      	a bunch of individually-settable font attributes. You can still
      	use the "font" and "font_desc" args, they just set all the font
      	attributes at once.
      73a00eeb
  24. 18 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      Some updates · 7a4c6893
      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.
      7a4c6893
  25. 06 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      Pixbuf saving, patch from David Welton. · 6b9f9072
      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
      6b9f9072
  26. 05 Oct, 2000 1 commit
  27. 26 Jul, 2000 1 commit
  28. 09 Jun, 2000 1 commit
    • Larry Ewing's avatar
      setjmp for the png error handler. It seems setting the error handling · b166924b
      Larry Ewing authored
      2000-06-09  Larry Ewing  <lewing@helixcode.com>
      
      	* gdk-pixbuf/io-png.c (gdk_pixbuf__png_image_load_increment):
      	setjmp for the png error handler.  It seems setting the error
      	handling functions does not avoid the jump, and so not calling
      	setjmp was causing the incremental loader to jump into lala land.
      	(gdk_pixbuf__png_image_begin_load): setjmp for error handling, I'm
      	not sure this one is actually required but the docs say it must be
      	set for every call to a png_* function.
      	Also changed the comment to reflect the fact that setting the
      	error handlers does _not_ avoid the longjmp.
      b166924b
  29. 11 Apr, 2000 1 commit
    • Federico Mena Quintero's avatar
      Most of this patch is based on a patch by Havoc Pennington (hp@redhat.com) · 829ed024
      Federico Mena Quintero authored
      2000-04-11  Federico Mena Quintero  <federico@helixcode.com>
      
      	Most of this patch is based on a patch by Havoc Pennington
      	(hp@redhat.com) to make GdkPixbuf's structures opaque and to
      	remove the libart dependency.
      
      	* gdk-pixbuf/gdk-pixbuf.h: Removed the public structures.
      	(GdkColorspace): New enum that for now only contains
      	GDK_COLORSPACE_RGB.
      	(GdkPixbufDestroyNotify): New type for the pixbuf's pixels destroy
      	notification function.
      	(GdkInterpType): New num with interpolation types.
      
      	* *.[ch]: Replace the libart stuff with our own stuff.
      
      	* pixops/*.[ch]: Likewise.
      
      	* gdk-pixbuf/gdk-pixbuf-private.h: New file with the private
      	declarations of the GdkPixbuf structures.
      
      	* gdk-pixbuf/gdk-pixbuf.c (gdk_pixbuf_new_from_art_pixbuf):
      	Removed function.
      	(gdk_pixbuf_get_format): Constify.
      	(gdk_pixbuf_get_n_channels): Constify.
      	(gdk_pixbuf_get_has_alpha): Constify.
      	(gdk_pixbuf_get_bits_per_sample): Constify.
      	(gdk_pixbuf_get_pixels): Constify.
      	(gdk_pixbuf_get_width): Constify.
      	(gdk_pixbuf_get_height): Constify.
      	(gdk_pixbuf_get_rowstride): Constify.
      
      	* gdk-pixbuf/gdk-pixbuf.c (gdk_pixbuf_copy): New function to copy
      	a pixbuf.
      
      	* gdk-pixbuf/gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Added a
      	bits_per_sample argument; currently only 8 bits per sample are
      	supported.
      
      	* gdk-pixbuf/gdk-pixbuf-animation.c (gdk_pixbuf_frame_get_pixbuf):
      	New accessor.
      	(gdk_pixbuf_frame_get_x_offset): New accessor.
      	(gdk_pixbuf_frame_get_y_offset): New accessor.
      	(gdk_pixbuf_frame_get_delay_time): New accessor.
      	(gdk_pixbuf_frame_get_action): New accessor.
      
      	* gdk-pixbuf/gdk-pixbuf-render.c
      	(gdk_pixbuf_render_pixmap_and_mask): Instead of returning a solid
      	mask rectangle for pixbufs without an alpha channel, set the
      	*mask_return to NULL.
      
      	* gdk-pixbuf/gdk-pixbuf-util.c (gdk_pixbuf_add_alpha): Constify.
      
      	* gdk-pixbuf/gdk-pixbuf-scale.c: Fix includes.
      
      	* gdk-pixbuf/gdk-pixbuf-scale.c (gdk_pixbuf_scale): Added some
      	preconditions.  Maybe we should also check for the colorspace,
      	bits per pixel, and such.
      	(gdk_pixbuf_composite): Likewise.
      	(gdk_pixbuf_composite_color): Likewise.
      	(gdk_pixbuf_scale_simple): Likewise, and fail gracefully if we
      	cannot allocate the new pixbuf.
      	(gdk_pixbuf_composite_color_simple): Likewise.
      
      	* gdk-pixbuf/gnome-canvas-pixbuf.c (gnome_canvas_pixbuf_render):
      	Use art_rgb_rgba_affine() or art_rgb_affine() since we no longer
      	have an ArtPixBuf.
      
      	* gdk-pixbuf/io-bmp.c: Fix includes.
      
      	* gdk-pixbuf/pixops/pixops.c (pixops_scale_nearest): Fixed cast in
      	an lvalue.
      
      	* TODO: Populated.
      
      	* configure.in: Removed checks for libart.
      
      	* gdk-pixbuf/Makefile.am: Removed references to libart.
      	(noinst_HEADERS): Added gdk-pixbuf-private.h.
      
      	* gdk-pixbuf/Makefile.am (libgdk_pixbuf_la_LDFLAGS): Incremented
      	the version number of the libtool library to indicate that this
      	definitely is not compatible with the old usage.  I know you love
      	me.  I know you do.
      
      	* configure.in: Bumped version number to 0.7.0.
      
      	* README: Updated.
      
      	* gdk-pixbuf-config.in (--libs): We no longer require libart.
      
      	* DEPENDS.libgdk_pixbuf: We no longer depend on libart.
      
      	* gdk-pixbuf.spec.in: Updated, but I don't guarantee anything.
      829ed024
  30. 22 Feb, 2000 1 commit
  31. 05 Jan, 2000 1 commit
    • Jonathan Blandford's avatar
      Change the order of the update func to make it more compatible with the · 8f48c4b3
      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
      8f48c4b3
  32. 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
  33. 22 Nov, 1999 2 commits
  34. 04 Nov, 1999 1 commit
    • Jonathan Blandford's avatar
      handle the actual update. add a update_func callback. add a update_func · d0ed72ee
      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.
      d0ed72ee
  35. 27 Oct, 1999 3 commits
    • Federico Mena Quintero's avatar
      New function to threshold a pixbuf's alpha channel into a bitmap. · 0eb09633
      Federico Mena Quintero authored
      1999-10-27  Federico Mena Quintero  <federico@redhat.com>
      
      	* src/gdk-pixbuf-render.c (gdk_pixbuf_render_threshold_alpha): New
      	function to threshold a pixbuf's alpha channel into a bitmap.
      
      	* src/gdk-pixbuf.c (gdk_pixbuf_new): Fixed so that it will
      	contemplate future extensions to ArtPixBuf's formats.
      
      	* src/io-png.c (png_info_callback): Use the new API of gdk_pixbuf_new().
      
      	* src/gdk-pixbuf.h (gdk_pixbuf_get_height): Added some convenience
      	macros to fetch the ArtPixBuf's fields.
      0eb09633
    • Havoc Pennington's avatar
      Display the progressive load · be374ad5
      Havoc Pennington authored
      1999-10-27  Havoc Pennington  <hp@pobox.com>
      
      * src/testpixbuf.c (main): Display the progressive load
      
      * src/io-png.c (setup_png_transformations): Break transformation
      code into separate function
      (png_info_callback): Use setup_png_transformations
      be374ad5
    • Havoc Pennington's avatar
      Check properly whether the XPM module has already been loaded · 54f01717
      Havoc Pennington authored
      1999-10-27  Havoc Pennington  <hp@pobox.com>
      
      * src/gdk-pixbuf-io.c (gdk_pixbuf_new_from_xpm_data): Check
      properly whether the XPM module has already been loaded
      (gdk_pixbuf_new_from_file): Check properly if loader module
      was already loaded (was checking if load symbol was present
      in order to decide whether to re-load; should check module !=
      NULL, then load != NULL)
      (image_handler_load): Check in present working directory,
      makes it easier to debug for now
      (file_formats): This array initializer was seriously on crack,
      was assigning a function pointer to a GModule*
      
      * src/testpixbuf.c (main): Change type of pixbuf_loader to GdkPixbufLoader*
      
      * src/io-png.c: Progressive loading stuff compiles, untested.
      54f01717
  36. 26 Oct, 1999 1 commit