1. 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
  2. 26 Jul, 2000 1 commit
  3. 02 Jul, 2000 1 commit
    • Owen Taylor's avatar
      Add gdk_rgb_find_color() to get a pixel value using GdkRGB functionality · 4f1ccca5
      Owen Taylor authored
      Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
      	value using GdkRGB functionality given GdkColormap and GdkColor.
      	(name not final, waiting for inspiration.)
      
      	* gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
      	set the foreground/background of a GC using the GC's colormap
      	and GdkRGB. (name not final, waiting for inspiration.)
      
      	* gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from
      	gdk_rgb_get_cmap(), put #define in gdkcompat.h.
      
      	* gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
      	gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
      	purely a function of the corresponding colormap. Make
      	gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
      
      	* gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
      	gdk_pixbuf_*create_from_xpm_* in terms of
      	gdk_pixbuf_new_from_xpm_data(), move into platform independent
      	code.
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
      	advantage of the new draw_rgb_32_image_dithalign.
      
      	* gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
      
      	* gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
      	on each created GC.
      
      	* gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
      
      	* gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
      	which we initialize from the drawable when the GC is created,
      	if the drawable has a colormap.
      
      	* gdk/x11/gdkgc-x11.c: include string.h for memset.
      
      	* gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
      
      	* gtk/gtklayout.[ch]: Remove unsed configure serial member.
      4f1ccca5
  4. 22 Jun, 2000 1 commit
    • Raja R Harinath's avatar
      Work with srcdir != builddir. · 30bd71e2
      Raja R Harinath authored
      * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
      <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
      * demos/testpixbuf.c: Likewise.
      * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
      * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
      <gdk/x11/gdkx.h>.
      * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
      "gdk-pixbuf.h".
      * demos/Makefile.am (INCLUDES): Remove unneeded directories.
      30bd71e2
  5. 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
  6. 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
  7. 06 Apr, 2000 1 commit
  8. 17 Dec, 1999 1 commit
  9. 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
  10. 22 Nov, 1999 1 commit
  11. 10 Nov, 1999 4 commits
  12. 09 Nov, 1999 1 commit
  13. 04 Nov, 1999 2 commits
  14. 03 Nov, 1999 3 commits
  15. 02 Nov, 1999 2 commits
  16. 29 Oct, 1999 1 commit
  17. 27 Oct, 1999 4 commits
    • Havoc Pennington's avatar
      blank space cleanups · 3176b6b3
      Havoc Pennington authored
      3176b6b3
    • 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
    • Michael Fulbright's avatar
      gdk-pixbuf-loader.c: Fixed init function to properly initialize all · 14cb9e71
      Michael Fulbright authored
      structure members.
      
      testpixbuf.c: Added call to close and destroy pixbuf loader properly.
      14cb9e71
  18. 26 Oct, 1999 1 commit
  19. 22 Oct, 1999 1 commit
    • Havoc Pennington's avatar
      Clean up stupid increment-inside-array-dereference thing · c3c9c722
      Havoc Pennington authored
      1999-10-22  Havoc Pennington  <hp@pobox.com>
      
      * src/io-xpm.c (mem_buffer): Clean up stupid
      increment-inside-array-dereference thing
      
      * src/testpixbuf.c: Add XPM data tests.
      
      * src/io-xpm.c: Make the XPM data buffer const, fix const
      correctness throughout the code.
      c3c9c722
  20. 20 Oct, 1999 1 commit
    • Federico Mena Quintero's avatar
      Removed the unref_fn field. Now all memory management of the buffer is · 7ef5dec3
      Federico Mena Quintero authored
      1999-10-20  Federico Mena Quintero  <federico@redhat.com>
      
      	* src/gdk-pixbuf.h (GdkPixbuf): Removed the unref_fn field.  Now
      	all memory management of the buffer is done by libart.
      
      	* src/gdk-pixbuf.c (gdk_pixbuf_unref): Do destruction here.
      	Removed gdk_pixbuf_destroy, gdk_pixbuf_duplicate.
      
      	* src/gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Implemented in
      	terms of the libart functions.  Removed the old code.
      
      	* src/gdk-pixbuf-io.c (image_handler_load): Removed the save
      	symbols.  Saving will not be implemented in GdkPixbuf.
      
      	* src/io-gif.c: Removed the saving stub.
      	(image_load): Fixed memory management to fail gracefully if we run
      	out of memory while loading the image.  Close the gif file when we
      	are done.  This still needs more error handling for the DGif
      	functions.
      
      	* src/io-jpeg.c (image_load): Some robustness fixes.
      
      	* src/io-png.c: Removed the saving stuff.
      	(image_load): Some memory management fixes.
      
      	* src/io-tiff.c (image_load): Ditto.
      
      	* src/io-xpm.c (pixbuf_create_from_xpm): Ditto.
      7ef5dec3
  21. 18 Oct, 1999 1 commit
  22. 08 Oct, 1999 1 commit
  23. 20 Jul, 1999 1 commit
  24. 19 Jul, 1999 1 commit
    • Mark Crichton's avatar
      Ok minor changes. · 6423183a
      Mark Crichton authored
      
      
      Ok minor changes.
      
      No longer make a version.h, and cleaned up some code here and there, and added
      a quickie dirty-hack rotation function.  However, it rotates at the origin.
      Is this what we want?  Or do we want a rotate w.r.t. the center of the pixbuf?
      
      Anyone.
      
      Mark
      6423183a
  25. 17 Jul, 1999 1 commit
    • Larry Ewing's avatar
      reverted the expose everything changes, I'm not sure why these went in. · e9ed2c18
      Larry Ewing authored
      1999-07-16  Larry Ewing  <lewing@gimp.org>
      
      	* src/testpixbuf.c (expose_func): reverted the expose everything
      	changes, I'm not sure why these went in.
      	(config_func): bring this up to date with the new pixbuf_scale
      	semantics.
      
      	* src/gdk-pixbuf-io.c: added a couple of warnings to the module
      	loading code so that poeple can diagnose problems better.
      
      	* src/gdk-pixbuf.c (gdk_pixbux_scale): fix the borkedness, also it
      	no longer allocates a new pixbuf, which make things nicer for the
      	rest of the code.  Unfortunately there is still a problem with
      	scaling rgba images.
      e9ed2c18
  26. 16 Jul, 1999 1 commit
  27. 15 Jul, 1999 2 commits
  28. 08 Jul, 1999 1 commit
    • Mark Crichton's avatar
      Massive update... · 68f895bd
      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
      68f895bd