1. 31 Jan, 2014 1 commit
  2. 19 Dec, 2013 2 commits
  3. 10 Jul, 2010 1 commit
  4. 06 Jul, 2010 1 commit
  5. 25 Jun, 2010 1 commit
  6. 10 Sep, 2009 1 commit
    • Matthias Clasen's avatar
      Cleanups · b0d16751
      Matthias Clasen authored
      This commit removes dead code, mostly pointed out by clang.
      b0d16751
  7. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · 315f52d6
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
      
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      
      
      svn path=/trunk/; revision=20669
      315f52d6
  8. 19 Jun, 2008 1 commit
  9. 27 May, 2008 1 commit
  10. 11 Oct, 2006 1 commit
    • Tor Lillqvist's avatar
      Enable having some gdk-pixbuf loaders built-in even if loading the others · bedf0bc1
      Tor Lillqvist authored
      2006-10-11  Tor Lillqvist  <tml@novell.com>
      
      	* configure.in: Enable having some gdk-pixbuf loaders built-in
      	even if loading the others dynamically. Define Automake
      	conditional INCLUDE_FOO for each loader as TRUE if that loader is
      	built-in. See also gdk-pixbuf/ChangeLog.
      
      2006-10-11  Tor Lillqvist  <tml@novell.com>
      
      	Enable having some loaders built-in even if loading the others
      	dynamically. Have loaders in the same order as in configure.in in
      	all places where they are handled/listed.
      
      	* Makefile.am: Define the STATIC_FOO_LIB and FOO_LIB macros
      	conditionally depending on whether said loader is built-in or
      	not. Use the names libstatic-pixbufloader-foo.la instead of
      	libpixbufloader-static-foo.la for the built-in ones so that the
      	"echo libpixbufloader-*.la" won't match them.
      
      	* gdk-pixbuf-io.c: Reorganize code as to plumb the built-in
      	loaders also if USE_GMODULE. Don't warn about a missing
      	gdk-pixbuf.loaders file if we have at least one included loader.
      
      	* gdk-pixbuf-private.h
      	* io-*.c: Don't define a generic MODULE_ENTRY, as we can't use it
      	in the loaders anyway. Each loader needs to check if INCLUDE_foo
      	is defined.
      bedf0bc1
  11. 20 Mar, 2006 1 commit
  12. 10 Feb, 2006 1 commit
  13. 15 Nov, 2005 1 commit
  14. 08 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Use a generated table of offsets into a big const string to avoid · 46b4f167
      Matthias Clasen authored
      2005-03-07  Matthias Clasen  <mclasen@redhat.com>
      
      	* io-xpm.c: Use a generated table of offsets
      	into a big const string to avoid relocations
      	in the rgb color table. (#168901, Tommi Komulainen)
      
      	* gen-color-table.pl: Script to generate the table,
      	copied from Owen Taylors script by the same name
      	in Pango.
      
      	* xpm-color-table.h: The generated table.
      46b4f167
  15. 03 Mar, 2005 1 commit
  16. 05 Dec, 2004 1 commit
    • Tor Lillqvist's avatar
      gdk-pixbuf-animation.c gdk-pixbuf-io.c io-xbm.c io-xpm.c · 141506eb
      Tor Lillqvist authored
      2004-12-05  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk-pixbuf-animation.c
      	* gdk-pixbuf-io.c
      	* io-xbm.c
      	* io-xpm.c
      	* make-inline-pixbuf.c
      	* queryloaders.c: Use gstdio wrappers. Document that file names
      	are in the GLib file name encoding.
      
      	* gdk-pixbuf-csource.c
      	* queryloaders.c: On Windows, convert command line arguments and
      	environment variable values from locale encoding to UTF-8.
      
      	* queryloaders.c: On Windows, use wide character API when
      	available.
      
      	* Makefile.am
      	* gdk-pixbuf-core.h
      	* gdk-pixbuf-io.c
      	* gdk-pixbuf-animation.h
      	* gdk-pixbuf-animation.c: Like in GLib, for DLL ABI stability on
      	Windows, add binary compatibility versions of functions that take
      	file names as arguments. They use the system codepage, not GLib
      	file name encoding (which is UTF-8 on Windows). Use #defines to
      	make newly compiled code use the "real" functions that use the
      	GLib file name encoding scheme.
      141506eb
  17. 12 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Changes to make gdk-pixbuf threadsafe (#157310, #157306, Colin Walters): · c8c94422
      Matthias Clasen authored
      2004-11-12  Matthias Clasen  <mclasen@redhat.com>
      
      	Changes to make gdk-pixbuf threadsafe  (#157310, #157306,
      	Colin Walters):
      
      	* gdk-pixbuf-io.h (enum GdkPixbufFormatFlags): Add
      	GDK_PIXBUF_FORMAT_THREADSAFE to indicate that an image loader
      	is threadsafe.
      
      	* gdk-pixbuf-io.c (get_file_formats, _gdk_pixbuf_load_module):
      	Use a lock to make initialization of global data structures
      	threadsafe.
      	* gdk-pixbuf-private.h:
      	* gdk-pixbuf-io.c (_gdk_pixbuf_lock, _gdk_pixbuf_unlock):
      	Auxiliary functions which use another lock to protect
      	threadunsafe image loaders.
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_real_save):
      	(save_to_callback_with_tmp_file):
      	(gdk_pixbuf_real_save_to_callback):
      	(gdk_pixbuf_new_from_xpm_data):
      	(_gdk_pixbuf_generic_image_load):
      	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file):
      	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_load_module):
      	(gdk_pixbuf_loader_close):
      	(gdk_pixbuf_loader_finalize):
      	Use _gdk_pixbuf_lock() and _gdk_pixbuf_unlock().
      
      	* io-ani.c, io-bmp.c, io-gif.c, io-ico.c:
      	* io-jpeg.c, io-pcx.c, io-png.c, io-pnm.c:
      	* io-ras.c, io-tga.c, io-wbmp.c, io-xbm.c:
      	* io-xpm.c: Mark as threadsafe.
      
      	* io-tiff.c: Remove pointless locking, mark as
      	threadunsafe.
      c8c94422
  18. 15 Sep, 2004 1 commit
  19. 08 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      New functions to disable/enable individual loaders and to obtain license · 67e592db
      Matthias Clasen authored
      Wed Jul  7 23:53:58 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk-pixbuf-io.h:
      	* gdk-pixbuf-io.c (gdk_pixbuf_format_is_disabled):
      	* gdk-pixbuf-io.c (gdk_pixbuf_format_set_disabled):
      	* gdk-pixbuf-io.c (gdk_pixbuf_format_get_license):
      	New functions to disable/enable individual loaders and to
      	obtain license information about loaders.
      
      	* gdk-pixbuf-io.h (GdkPixbufFormat): Add disabled and
      	license fields.
      
      	* gdk-pixbuf-io.c (_gdk_pixbuf_get_module):
      	* gdk-pixbuf-io.c (_gdk_pixbuf_get_named_module): Skip
      	disabled loaders.
      
      	* io-*.c: Add license information in the fill_info
      	functions.
      67e592db
  20. 12 Jun, 2004 1 commit
  21. 08 Mar, 2003 1 commit
  22. 03 Oct, 2002 1 commit
    • Matthias Clasen's avatar
      Support for separately installed loaders. (#77486) · 47107959
      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)
      47107959
  23. 19 Sep, 2002 1 commit
  24. 17 Sep, 2002 1 commit
  25. 06 Sep, 2002 1 commit
  26. 06 Jul, 2002 1 commit
  27. 22 May, 2002 1 commit
    • Federico Mena Quintero's avatar
      Ahem, take the rowstride into account!!! Fixes #82515. · 8e177bb5
      Federico Mena Quintero authored
      2002-05-22  Federico Mena Quintero  <federico@ximian.com>
      
      	* io-xpm.c (pixbuf_create_from_xpm): Ahem, take the rowstride into
      	account!!!  Fixes #82515.
      
      	[This bug is not present in the GNOME 1.4 branch as its XPM loader
      	does not use gdk_pixbuf_new(); rather it malloc()s a buffer with
      	no row padding and then uses gdk_pixbuf_new_from_data() on it.]
      
      	[IMPORTANT: The comment above is to make my life easier when
      	merging stuff across branches.  If you make changes to gdk-pixbuf
      	in either branch, please include a comment in the ChangeLog that
      	indicates whether this should be merged into the other branch.
      	Thanks!]
      8e177bb5
  28. 11 Apr, 2002 1 commit
    • Matthias Clasen's avatar
      More fixes for #77807: · 76f2b8e1
      Matthias Clasen authored
      	* io-tga.c (get_contiguous_pixbuf): Helper function to create
      	a pixbuf with a contiguous pixel array while being careful about
      	overflow.
      
      	* io-tga.c (fill_in_context, get_image_pseudocolor,
      	get_image_truecolor, get_image_grayscale): Use
      	get_contiguous_pixbuf instead of manually allocating image
      	storage.
      
      	* io-xpm.c (pixbuf_create_from_xpm):
      	* io-pnm.c (gdk_pixbuf__pnm_image_load):
      	* io-jpeg.c (gdk_pixbuf__jpeg_image_load): Use gdk_pixbuf_new
      	instead of manually allocating image storage.
      76f2b8e1
  29. 14 Dec, 2001 1 commit
  30. 13 Dec, 2001 1 commit
    • Sebastian Wilhelmi's avatar
      Remove assorted G_OBJECT casts where unnecessary. · 0afc84ac
      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.
      0afc84ac
  31. 04 Dec, 2001 1 commit
  32. 18 Nov, 2001 1 commit
  33. 14 Nov, 2001 1 commit
    • Daniel Egger's avatar
      Remove unused static function. (xpm_skip_string): Dito. · bbabab80
      Daniel Egger authored
      2001-11-14  Daniel Egger  <degger@fhm.edu>
      
      	* gdk-pixbuf/io-xpm.c:
      	(xpm_skip_whitespaces): Remove unused static function.
      	(xpm_skip_string): Dito.
      	(xpm_extract_color): Declare const variable const to avoid warnings.
      
      	* gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
      
      	* gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
      
      	* gtk/gtksocket.c: Change type of mask to g_message to %ld for
      	a long.
      bbabab80
  34. 21 Sep, 2001 1 commit
  35. 14 Sep, 2001 1 commit
  36. 07 May, 2001 1 commit
    • Havoc Pennington's avatar
      fix some shell typos · 4607c8e9
      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.
      4607c8e9
  37. 07 Feb, 2001 1 commit
  38. 22 Jan, 2001 1 commit
    • 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
  39. 12 Nov, 2000 1 commit