1. 22 Jan, 2001 2 commits
    • 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
    • John Harper's avatar
      new pixbuf loader, for X bitmap files. Basically a collision between · 90a5f4ca
      John Harper authored
      2001-01-20  John Harper  <jsh@eazel.com>
      
      	* io-xbm.c: new pixbuf loader, for X bitmap files. Basically a
      	collision between Xlib's RdBitF.c and io-tiff.c
      
      	* gdk-pixbuf-io.c, Makefile.am, pixbufloader_xbm.def: added
      	io-xbm.c support
      
      	[ merged from stable gdk-pixbuf module. Untested, but it
      	compiles, and works fine in the stable module ]
      90a5f4ca
  2. 17 Jan, 2001 2 commits
    • Tor Lillqvist's avatar
      No need to include windows.h. · c7ccff12
      Tor Lillqvist authored
      2001-01-18  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk-pixbuf-io.c: (Win32) No need to include windows.h.
      c7ccff12
    • Tor Lillqvist's avatar
      gtk/gtkmain.c Use the new · aa38bdfe
      Tor Lillqvist authored
      2001-01-18  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk/gtkmain.c
      	* gtk/gtkrc.c: (Win32) Use the new
      	g_win32_get_package_installation_(sub)directory() functions.
      
      	* config.h.win32.in: New file.
      
      	* config.h.win32: Removed.
      
      	* configure.in: Output config.h.win32.
      
      	* Makefile.am: Add it to EXTRA_DIST.
      
      	* gtk/gtk.def: Update.
      
      2001-01-16  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
      	Eliminate redraws when input-only windows are shown or
      	hidden. Thanks to jpe@archaeopteryx.com.
      
      2001-01-18  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk-pixbuf-io.c (get_libdir): (Win32) Use the new
      	g_win32_get_package_installation_subdirectory() function.
      	(gtk_win32_get_installation_directory): Remove this then.
      aa38bdfe
  3. 09 Jan, 2001 1 commit
    • Alexander Larsson's avatar
      Added --with-included-loaders option · d53604be
      Alexander Larsson authored
      2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
      
      	* configure.in:
      	Added --with-included-loaders option
      
      	* gdk-pixbuf/Makefile.am:
      	* gdk-pixbuf/gdk-pixbuf-io.c:
      	Add support for including selected gdk-pixbuf loaders only.
      
      	* gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
      	gtk_window_set_has_frame):
      	Added inline documentation.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
      	* docs/reference/gdk/tmpl/windows.sgml:
      	Added inline documentation.
      d53604be
  4. 12 Nov, 2000 1 commit
  5. 22 Oct, 2000 1 commit
    • Tor Lillqvist's avatar
      gtk/makefile.mingw.in Updates. · 4fbc818c
      Tor Lillqvist authored
      2000-10-22  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk/makefile.mingw.in
      	* gtk/gtk.def: Updates.
      
      	* gtk/testgtk.c: sleep() is called _sleep in MS's C
      	library.
      
      	* gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
      
      	* gtk/makefile.msc: Remove
      
      	* gtk/makefile.msc.in: New file, like makefile.mingw.in.
      
      	* gtk/Makefile.am: Add it.
      
      	* configure.in: Generate it.
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
      	* gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
      	something even if not implemented, to satisfy picky MSVC.
      4fbc818c
  6. 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
  7. 06 Oct, 2000 2 commits
    • Havoc Pennington's avatar
      s/format/type/g to be consistent with gdk_pixbuf_loader_new_with_type(). · 0fde995c
      Havoc Pennington authored
      2000-10-06  Havoc Pennington  <hp@redhat.com>
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_save): s/format/type/g to be
      	consistent with gdk_pixbuf_loader_new_with_type().
      	Return runtime error if a module is missing.
      
      	* gdk-pixbuf.h: add GDK_PIXBUF_ERROR_UNKNOWN_TYPE
      0fde995c
    • 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
  8. 28 Jul, 2000 2 commits
    • Elliot Lee's avatar
      Part 2 of previous commit (aka "it compiles now, ma") · f2f464ea
      Elliot Lee authored
      
      
      Part 2 of previous commit (aka "it compiles now, ma")
      f2f464ea
    • 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
  9. 26 Jul, 2000 1 commit
  10. 22 Jul, 2000 1 commit
    • Tor Lillqvist's avatar
      Win32 build setup: · 67a4b0c3
      Tor Lillqvist authored
      2000-07-23  Tor Lillqvist  <tml@iki.fi>
      
      	Win32 build setup:
      
      	* makefile.mingw.in
      	* pixops/makefile.mingw.in
      	* pixbuf_*.def: New files.
      
      	* Makefile.am
      	* pixops/Makefile.am: Add them. Add rule to generate makefile.mingw.
      
      	* gdk-pixbuf-io.c (gtk_win32_get_installation_directory):
      	New function, to get the GTK+ installation directory from
      	the Windows Registry, where the installation program
      	for whatever software includes GTK+ has stored it.
      
      	Used to avoid having hardcoding the directory where to look for
      	loaders. This function is needed by gtk, too, so it should
      	really be just in one place. Maybe a small static library
      	one level up from here?
      
      	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file)
      	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file):
      	Open file in binary mode. This *is* standard C. (No-op on Unix,
      	of course.)
      
      	* io-jpeg.c: If we don't HAVE_SIGSETJMP, use normal setjmp().
      
      	* io-tiff.c: Use g_get_tmp_dir(). If we don't HAVE_MKSTEMP, use
      	mktemp() and open().
      	(gdk_pixbuf__tiff_image_stop_load): g_free() also the tempname.
      
      	* pixops/*.S: The Gas from mingw32 doesn't like the .type
      	pseudo-op. Conditionalise on __MINGW32__, but probably
      	should conditionalise on Gas version instead? Or could we
      	do without .type on all systems?
      
      	* pixops/timescale.c: Use g_get_current_time()
      	instead of gettimeofday().
      67a4b0c3
  11. 22 Jun, 2000 1 commit
    • Havoc Pennington's avatar
      Convert GdkPixbuf to GObject, leaving it opaque (i.e. derivation is not · 08f90167
      Havoc Pennington authored
      2000-06-21  Havoc Pennington  <hp@pobox.com>
      
      * gdk-pixbuf.c: Convert GdkPixbuf to GObject, leaving it opaque
      (i.e. derivation is not allowed, and there are no virtual methods
      anyway).
      (gdk_pixbuf_preinit): Call g_type_init() here.
      (gdk_pixbuf_init): Add a user-friendly init function, for users
      of standalone gdk-pixbuf
      
      * gdk-pixbuf-animation.c: Convert to GObject, in the same
      way GdkPixbufAnimation was done.
      
      * gdk-pixbuf.h: Remove gdk_pixbuf_set_unref_handler() and
      gdk_pixbuf_finalize() from API, since these are broken and don't
      make sense with new GObject stuff.
      
      2000-06-21  Havoc Pennington  <hp@pobox.com>
      
      * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
      we didn't check window->bg_pixmap != GDK_NO_BG.
      
      * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
      gdk-pixbuf
      08f90167
  12. 21 Jun, 2000 1 commit
    • Owen Taylor's avatar
      Welcome aboard, gdk-pixbuf. · 3977f42f
      Owen Taylor authored
      Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
      
              * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
      	gdk-pixbuf.
      
      	* gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
      	fixups for GObject.
      
      	* gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of
      	gdk-pixbuf with GDK dependencies moved into GDK.
      
      	* gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
      	move gdk-pixbuf-loader here until GObject has signals.
      
      	* demos/: New directory of demos. Move demos from
      	gdk-pixbuf here.
      
      	* demos/pixbuf-init.c: Small bit of code to check for
      	loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
      	set GDK_PIXBUF_MODULEDIR appropriately.
      
      	* gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
      	define which no longer makes sense.
      3977f42f
  13. 13 Apr, 2000 1 commit
    • Federico Mena Quintero's avatar
      Your eyes are bloodshot. · b44aeafd
      Federico Mena Quintero authored
      
      
      Your eyes are bloodshot.
      
      Your mouth starts to foam.
      
      Your hands are shaking.
      
      You know your need your fix.
      
      NEED MORE ABSTRACTION!
      
      2000-04-12  Federico Mena Quintero  <federico@helixcode.com>
      
      	This comes from an excellent idea by Tim Janik (timj@gtk.org) to
      	hook to the last unref operation.
      
      	* gdk-pixbuf/gdk-pixbuf.c (gdk_pixbuf_set_last_unref_handler): New
      	function to set the last unref handler for a pixbuf.
      	(gdk_pixbuf_finalize): New function to actually finalize a pixbuf.
      	It calls the pixbuf's destroy notification function and frees the
      	GdkPixbuf structure itself.
      	(gdk_pixbuf_unref): Use the last unref function of the pixbuf if
      	available.
      
      	* gdk-pixbuf/gdk-pixbuf-private.h (struct _GdkPixbuf): New fields
      	for the last unref handler and its user data.
      
      	* gdk-pixbuf/gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Use
      	g_new0() to allocate the pixbuf.
      
      	* gdk-pixbuf/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
      	Fixed the call to gtk_signal_new() for the "frame_done" signal; it
      	was not specifying the `frame' argument.
      
      	* gdk-pixbuf/gdk-pixbuf-animation.c
      	(gdk_pixbuf_animation_get_width): Fixed docstring.
      	(gdk_pixbuf_animation_get_height): Likewise.
      	(gdk_pixbuf_animation_get_num_frames): Likewise.
      	(gdk_pixbuf_animation_get_frames): Likewise.
      
      	* doc/gdk-pixbuf-sections.txt: Updated with the new functions and
      	types.
      
      	* doc/tmpl/gdk-pixbuf.sgml: Added the description for GdkColorspace.
      
      	* doc/tmpl/scaling.sgml: Added the description for GdkInterpType.
      
      	* doc/tmpl/refcounting.sgml: Updated with the information about
      	the last unref handler.
      
      	* doc/tmpl/*.sgml: Markup tweaks.
      
      	* gdk-pixbuf/Makefile.am (libgnomecanvaspixbuf_la_LDFLAGS): Sigh,
      	update the libtool version number for libgnomecanvaspixbuf as
      	well.
      	(libpixbufloader_*_la_LDFLAGS): The loaders need to be versioned
      	as well, or the old ones won't work with the new stuff.  Also,
      	renamed the modules as follows.
      
      	* gdk-pixbuf/gdk-pixbuf-io.c (gdk_pixbuf_load_module): Now the
      	modules are called "libpixbufloader-<format>.so" instead of
      	"libpixbuf-<format>.so".  They needed renaming so that the new
      	loaders won't overwrite the old ones; even with the versioning
      	stuff, the new .so symlink to the .so.1.0.0 would overwrite the
      	old real .so file.
      b44aeafd
  14. 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) · 41f3b98f
      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.
      41f3b98f
  15. 22 Feb, 2000 1 commit
  16. 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
  17. 20 Dec, 1999 1 commit
  18. 17 Dec, 1999 1 commit
  19. 06 Dec, 1999 1 commit
  20. 04 Dec, 1999 1 commit
    • Arjan van de Ven's avatar
      Major cleanup, added support for 32 bpp and 4 bpp (uncompressed) images, · 743b449a
      Arjan van de Ven authored
      1999-12-04  Arjan van de Ven <arjan@fenrus.demon.nl>
      
      	* gdk-pixbuf/io-bmp.c: Major cleanup, added support for
      	32 bpp and 4 bpp (uncompressed) images, fixed 1bpp.
      
      	* gdk-pixbuf/io-ras.c: Minor cleanup, ran through lclint
      
      	* gdk-pixbuf/io-ico.c: Minor cleanup, fixed 1bpp icons,
       	ran through lclint.
      
      	* gdk-pixbuf/gdk-pixbuf-io.c: Added detection of .CUR files
      	(Windows Cursor files). These are identical to .ICO files,
      	except for the signature and 2 extra fields for the hotspot.
      743b449a
  21. 29 Nov, 1999 1 commit
  22. 23 Nov, 1999 1 commit
  23. 22 Nov, 1999 1 commit
  24. 21 Nov, 1999 1 commit
  25. 10 Nov, 1999 3 commits
    • Federico Mena Quintero's avatar
      Populated. · e4b94a41
      Federico Mena Quintero authored
      1999-11-10  Federico Mena Quintero  <federico@redhat.com>
      
      	* doc/tmpl/gdk-pixbuf-loader.sgml: Populated.
      
      	* doc/gdk-pixbuf.signals: Put in the real names of signal
      	arguments.
      
      	* src/gdk-pixbuf-loader.c: Improved documentation comments.
      e4b94a41
    • Jonathan Blandford's avatar
      removed spurious print statements. · d9551732
      Jonathan Blandford authored
      1999-11-10  Jonathan Blandford  <jrb@redhat.com>
      
      	* src/gdk-pixbuf-io.c (gdk_pixbuf_load_module): removed spurious
      	print statements.
      d9551732
    • Federico Mena Quintero's avatar
      Added documentation. · 0e8062ba
      Federico Mena Quintero authored
      1999-11-10  Federico Mena Quintero  <federico@redhat.com>
      
      	* src/gdk-pixbuf-io.c (gdk_pixbuf_new_from_xpm_data): Added
      	documentation.
      0e8062ba
  26. 05 Nov, 1999 2 commits
  27. 04 Nov, 1999 1 commit
    • Federico Mena Quintero's avatar
      Populated. · 6c301cf5
      Federico Mena Quintero authored
      1999-11-04  Federico Mena Quintero  <federico@redhat.com>
      
      	* doc/tmpl/gdk-pixbuf.sgml: Populated.
      
      	* doc/tmpl/refcounting.sgml: Populated.
      
      	* doc/tmpl/file-loading.sgml: Populated.
      
      	* src/gdk-pixbuf.c: Added documentation comments.
      
      	* src/gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Added
      	documentation comments.
      6c301cf5
  28. 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
  29. 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
  30. 27 Oct, 1999 2 commits
    • Arturo Espinosa's avatar
      Make it build - Federico · 2c343c99
      Arturo Espinosa authored
      2c343c99
    • Havoc Pennington's avatar
      Check properly whether the XPM module has already been loaded · 0eaadbd0
      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.
      0eaadbd0
  31. 26 Oct, 1999 2 commits