1. 24 Jun, 2000 1 commit
    • Tim Janik's avatar
      make the current version number 1.3.1 (binary age 0, interface age 0). · 100c9594
      Tim Janik authored
      Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
      
              * configure.in: make the current version number 1.3.1 (binary age 0,
              interface age 0).
      
              * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
              gtkcompat.h is all we want.
      
              * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
              GLib primitive types. fixed g_type_register_fundamental() argument
              ordering.
      
              * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
              compiles.
      
              * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
              object code cleanup, comment trigraph fixes, etc...
      100c9594
  2. 22 Jun, 2000 1 commit
    • Havoc Pennington's avatar
      Convert GdkPixbuf to GObject, leaving it opaque (i.e. derivation is not · 3a422541
      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
      3a422541
  3. 21 Jun, 2000 1 commit
    • Owen Taylor's avatar
      Welcome aboard, gdk-pixbuf. · 11056f56
      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.
      11056f56
  4. 11 Jun, 2000 1 commit
    • Federico Mena Quintero's avatar
      It was cold and rainy this Saturday morning, so I needed something to warm · 9df3e653
      Federico Mena Quintero authored
      2000-06-10  Federico Mena Quintero  <federico@helixcode.com>
      
      	* demo/pixbuf-demo.c: It was cold and rainy this Saturday morning,
      	so I needed something to warm my thighs.  Running plain infinite
      	loops on your laptop to make it hot is not very much fun.  A demo
      	of the gdk-pixbuf scaling functions is way better, and looks
      	prettier, too.
      
      	* configure.in (AC_OUTPUT): Added the demo Makefile.
      
      	* Makefile.am (SUBDIRS): Added the demo directory.
      9df3e653
  5. 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
  6. 06 Jun, 2000 3 commits
  7. 31 May, 2000 1 commit
    • Not Zed's avatar
      Initialise the error handler exit routine to our own. Note this means that · 85e7a89b
      Not Zed authored
      2000-05-30  Not Zed  <NotZed@HelixCode.com>
      
      	* gdk-pixbuf/io-jpeg.c (gdk_pixbuf__jpeg_image_begin_load):
      	Initialise the error handler exit routine to our own.  Note this
      	means that every function that accesses the jpeg lib on this
      	object MUST do a setjmp.
      	(gdk_pixbuf__jpeg_image_stop_load): setjmp before accessing jpeg
      	lib for handling fatal error.
      	(gdk_pixbuf__jpeg_image_load_increment): And here too.  So now
      	your applications dont quit if there's a jpeg error!
      85e7a89b
  8. 30 May, 2000 1 commit
  9. 28 May, 2000 2 commits
  10. 27 May, 2000 1 commit
  11. 22 May, 2000 1 commit
  12. 09 May, 2000 1 commit
  13. 05 May, 2000 2 commits
  14. 04 May, 2000 1 commit
    • Darin Adler's avatar
      Added some tests of composite to highlight problems in the old · 24fa8a64
      Darin Adler authored
      	* gdk-pixbuf/.cvsignore:
      	* gdk-pixbuf/Makefile.am:
      	* gdk-pixbuf/test-gdk-pixbuf.c (store_pixel), (fill_with_pixel),
      	(load_pixel), (simple_composite_test_one),
      	(simple_composite_test_one_type), (simple_composite_test), (main):
      	Added some tests of composite to highlight problems in the old
      	implementation. These tests run without any user interaction.
      	Just do "make check".
      
      	* gdk-pixbuf/pixops/pixops.c (pixops_composite_nearest),
      	(composite_pixel), (composite_line): Fix composite to do a textbook
      	"A over B" composite. This was clearly the intent, and it was easy
      	to fix the code to do it. (Note to those that read my earlier tries
      	at a patch; this version fixes typos that were present in all
      	my patch attempts. I checked the final version by adding more tests.)
      24fa8a64
  15. 24 Apr, 2000 1 commit
    • Owen Taylor's avatar
      Properly offset y coordinate accordining to render_y0. · a77a3d13
      Owen Taylor authored
      2000-04-22 05:27:43 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk-pixbuf/pixops/pixops.c (pixops_scale_nearest): Properly
      	offset y coordinate accordining to render_y0.
      
      	* gdk-pixbuf/gdk-pixbuf-scale.c: Properly handle nonzero
      	dest_x, dest_y.
      a77a3d13
  16. 22 Apr, 2000 1 commit
  17. 17 Apr, 2000 1 commit
    • Karl Eichwalder's avatar
      Add . · 9f4c9470
      Karl Eichwalder authored
      * gdk-pixbuf/Makefile.am (INCLUDES): Add .
      9f4c9470
  18. 14 Apr, 2000 1 commit
  19. 13 Apr, 2000 2 commits
    • James Henstridge's avatar
      when performing the configure check to see if gmodule works, set CFLAGS to · cf1a251f
      James Henstridge authored
      2000-04-13  James Henstridge  <james@daa.com.au>
      
      	* configure.in: when performing the configure check to see if
      	gmodule works, set CFLAGS to GLIB_CFLAGS and LIBS to GLIB_LIBS,
      	rather than the other way round.  Also, call AC_MSG_RESULT in the
      	even that dynamic modules were not supported.
      cf1a251f
    • Federico Mena Quintero's avatar
      Your eyes are bloodshot. · 37ac7d59
      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.
      37ac7d59
  20. 12 Apr, 2000 1 commit
    • Paolo Molaro's avatar
      shut up cvs. · a106984b
      Paolo Molaro authored
      
      2000-04-12  Paolo Molaro <lupus@debian.org>
      
      	* .cvsignore, src/.cvsignore: shut up cvs.
      a106984b
  21. 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
  22. 06 Apr, 2000 1 commit
  23. 04 Apr, 2000 2 commits
  24. 03 Apr, 2000 1 commit
    • Radek Doulik's avatar
      same as below · 133ab961
      Radek Doulik authored
      2000-03-29  Radek Doulik  <rodo@helixcode.com>
      
      	* gdk-pixbuf/gdk-pixbuf-animation.c
      	(gdk_pixbuf_animation_new_from_file): same as below
      
      	* gdk-pixbuf/io-gif.c (gif_get_lzw): added update of width and
      	height in GdkPixbufAnimation
      
      2000-03-28  Radek Doulik  <rodo@helixcode.com>
      
      	* gdk-pixbuf/io-gif.c (gif_get_lzw): test also for
      	context->frame_done_func and context->anim_done_func to make
      	progressive animation loading work
      
      	* gdk-pixbuf/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
      	added priv->pixbuf = NULL as pixbuf is now in frame (and to make
      	gdk_pixbuf_loader_prepare happy)
      	(gdk_pixbuf_loader_frame_done): update animation bbox
      
      	* gdk-pixbuf/gdk-pixbuf.h: added bbox size (width, height) to
      	_GdkPixbufAnimation
      
      2000-03-27  Radek Doulik  <rodo@helixcode.com>
      
      	* gdk-pixbuf/io-gif.c (gif_get_lzw): use frame_len and frame_width
      	instead of width and height
      133ab961
  25. 02 Apr, 2000 1 commit
  26. 01 Apr, 2000 1 commit
    • Mark Crichton's avatar
      Added 2 more convience functions. · f77b679f
      Mark Crichton authored
      
      
      Added 2 more convience functions.
      
      gdk_pixbuf_get_refcount for the current refcount of the pixbuf (per someone
      at Eazel's request)
      
      gdk_pixbuf_get_artpixbuf: returns the artpixbuf of the pixbuf.  Is this
      a good idea?  I'm using it to help make->panel->do->the->right->thing.
      f77b679f
  27. 29 Mar, 2000 1 commit
  28. 28 Mar, 2000 1 commit
  29. 09 Mar, 2000 1 commit
  30. 06 Mar, 2000 1 commit
  31. 03 Mar, 2000 1 commit
    • Mark Crichton's avatar
      Merged in changes. · 2468916b
      Mark Crichton authored
      
      
      Merged in changes.
      
      If this doesn't work, I blame the NWO conspiracy.
      
      I need to go put my tin foil hat back on now, and keep a lookout for the
      black helicopters.
      2468916b
  32. 29 Feb, 2000 1 commit
  33. 27 Feb, 2000 1 commit
  34. 25 Feb, 2000 1 commit