1. 06 Mar, 2004 1 commit
  2. 13 Oct, 2003 1 commit
  3. 11 Oct, 2003 1 commit
  4. 02 Oct, 2002 1 commit
    • Owen Taylor's avatar
      Export _gdk_draw_pixbuf as gdk_draw_pixbuf(), rename the _draw_pixbuf · 6cb79658
      Owen Taylor authored
      Wed Oct  2 17:46:53 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
              gdk/gdkwindow.c gdk/gdkdrawable.c: Export _gdk_draw_pixbuf
              as gdk_draw_pixbuf(), rename the _draw_pixbuf virtual
              function to draw_pixbuf. (#60582)
      
              * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable[_alpha]):
              Note that these functions are obsolete in the docs.
      
              * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
              Remove all the sanity checks now we make it clear
              that it is obsolete name for gdk_draw_pixbuf().
      
              * gdk/gdkpixmap.c gtk/gtkcellrendererpixbuf.c gtk/gtkimage.c
                gtk/gtkpixmap.c demos/testpixbuf-scale.c demos/testpixbuf.c
                tests/testrgb.c: Use gdk_draw_pixbuf() everywhere.
      
              * gtk/gtklabel.c (gtk_label_set_mnemonic_widget): Fix
              some warnings.
      
              * gdk/gdkinternals.h (struct _GdkEventPrivate): Fix missed
              bit from last gdk_event_get_screen() change.
      
              * gdk/gdkevents.c: Couple of small fixes.i
      6cb79658
  5. 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
  6. 20 Oct, 2001 1 commit
  7. 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
  8. 23 Aug, 2001 1 commit
    • Owen Taylor's avatar
      [ Patch from Sebastian Wilhelmi, 52790 ] · a2d60d44
      Owen Taylor authored
      Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
      
      	[ Patch from Sebastian Wilhelmi, 52790 ]
      
      	* gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
      
      	* gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h:
      	Move compatibility macros from g[dt]kcompat.h to within
      	#ifndef G[DT]K_DISABLE_DEPRECATED in each file.
      
      	* gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
      
      	* demos/Makefile.am demos/gtk-demo/Makefile.am
                docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
                tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
      
      	* demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
                       testpixbuf.c}: Fix usages of deprecated functions.
      a2d60d44
  9. 18 Jul, 2001 1 commit
    • Darin Adler's avatar
      Ignore the sgml directory made by gtkdoc. Use gtk_window_set_resizable · 03496763
      Darin Adler authored
      	* .cvsignore: Ignore the sgml directory made by gtkdoc.
      	* demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
      	instead of the deprecated gtk_window_set_policy.
      	* demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
      	* gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
      	function to get rid of warning and some code too.
      	* gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
      	missing const.
      	* gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
      	unused local.
      	* gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
      	const.
      	* gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
      	(gdk_utf8_to_compound_text): Add missing const.
      	* gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
      	* gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
      	cast and get rid of an unnecessary one.
      	* gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
      	* gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
      	local.
      	* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
      	Remove unused local.
      	* modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
      	missing const.
      	* tests/testsocket.c: (add_child): Add cast so the printf format
      	doesn't make us implicitly depend on what integer type
      	gtk_socket_get_id returns.
      	* tests/testtextbuffer.c: Add missing const.
      	* tests/testtreefocus.c: (main): Remove unused local.
      	* tests/treestoretest.c: (iter_remove): Remove unused local.
      	(uppercase_value): Remove unused function.
      	(make_window): Add statement to quiet the compiler's uninitialized
      	variable warning.
      03496763
  10. 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
  11. 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
  12. 21 Jun, 2000 2 commits
    • 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
    • Owen Taylor's avatar
      Revert accidental changes from Federico's last commit. · f5341257
      Owen Taylor authored
      2000-06-21  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk-pixbuf/testpixbuf-scale.c: Revert accidental changes
      	from Federico's last commit.
      f5341257
  13. 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
  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) · 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
  15. 06 Jan, 2000 1 commit
    • Owen Taylor's avatar
      Added scaling functions into gtk-doc framework. · 65de04cd
      Owen Taylor authored
      2000-01-05  Owen Taylor  <otaylor@redhat.com>
      
      	* doc/Makefile.am doc/gdk-pixbuf-sections.txt
      	  doc/gdk-pixbuf.sgml doc/tmpl/scaling.sgml:
      	Added scaling functions into gtk-doc framework.
      
      	* gdk-pixbuf/gdk-pixbuf-scale.c: Documentation fixes.
      
      	* gdk-pixbuf/testpixbuf-scale.c (expose_cb): Simplify a bit.
      
      	* gdk-pixbuf/pixops/pixops.c (pixops_composite_color): Return
      	immediately if scale_x or scale_y is 0.
      65de04cd
  16. 05 Jan, 2000 2 commits
    • Owen Taylor's avatar
      Added a README with a TODO and some explainations of the algorithms. · cc76a598
      Owen Taylor authored
      2000-01-05  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk-pixbuf/pixops/README: Added a README with a TODO
      	and some explainations of the algorithms.
      
      	* gdk-pixbuf/testpixbuf-scale.c: Set a background pixmap of None
      	to reduce flashing when resizing.
      cc76a598
    • Owen Taylor's avatar
      Directory full of pixel data scaling code that will eventually migrate · 33e963e7
      Owen Taylor authored
      2000-01-05  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk-pixbuf/pixops/: Directory full of pixel data scaling
      	code that will eventually migrate into libart.
      
      	* configure.in acconfig.h: Add checks for MMX compiler support
      
      	* gdk-pixbuf/gdk-pixbuf.h gdk-pixbuf/gdk-pixbuf-scale.c:
      	Nice wrapper routines for the code in pixops that operate
      	on pixbufs instead of raw data.
      
      	* gdk-pixbuf/testpixbuf-scale: Test program for scaling
      	routines.
      33e963e7