1. 26 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add gdk_pixbuf_new_from_file_at_scale(), which is just like · cd50f460
      Matthias Clasen authored
      Thu Aug 26 01:23:16 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk-pixbuf-core.h:
      	* gdk-pixbuf.symbols:
      	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_scale):
      	Add gdk_pixbuf_new_from_file_at_scale(), which is just
      	like gdk_pixbuf_new_from_file_at_size(), but optionally
      	ignores the aspect ratio.  (#136395, Dom  Lachowicz)
      cd50f460
  2. 11 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add hidden aliases for exported symbols which are used internally in order · f4437de1
      Matthias Clasen authored
      Tue Aug 10 23:53:59 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Add hidden aliases for exported symbols which are
      	used internally in order to get rid of many PLT
      	entries.  (#145519, Arjan van de Ven)
      
      	* gdk/Makefile.am: Add rules to generate gdk_pixbuf.def and
      	gdk-pixbuf-alias.h from gdk-pixbuf.symbols, and make make
      	check check the abi with abicheck.sh.
      
      	* gdk/gdk-pixbuf.symbols: New file. Definition of the gdk-pixbuf
      	ABI. The file can be processed by cpp to filter out certain
      	subsets of symbols.
      
      	* gdk/abicheck.sh: New file. Script to check the actually
      	symbols exported from libgdk_pibuf.2.0.so against the symbols
      	found in gdk-pixbuf.symbols.
      
      	* gdk/makegdkpixbufalias.pl: New file. Perl script to generate the
      	header containing the alias definitions for internally used
      	exported symbols from a list of symbols.
      
      	* *.c: Include gdk-pixbuf-alias.h
      f4437de1
  3. 15 Jul, 2004 1 commit
  4. 09 Jul, 2004 1 commit
    • Manish Singh's avatar
      function doesn't return a value, so don't use g_return_val_if_fail() · 2633a030
      Manish Singh authored
      Fri Jul  9 15:38:06 2004  Manish Singh  <yosh@gimp.org>
      
              * gdk-pixbuf-io.c (gdk_pixbuf_format_set_disabled): function doesn't
              return a value, so don't use g_return_val_if_fail()
      
              * gdk-pixbuf-scale.c (gdk_pixbuf_rotate_simple): initialize dest in
              the can't happen case, to quiet gcc.
      
              * io-tiff.c (tifflibversion): enclose in #if TIFFLIB_VERSION >=
              20031226.
      2633a030
  5. 08 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      New functions to disable/enable individual loaders and to obtain license · 2c08beaf
      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.
      2c08beaf
  6. 05 Jun, 2004 1 commit
  7. 06 May, 2004 1 commit
  8. 13 Apr, 2004 1 commit
    • Matthias Clasen's avatar
      When calling fread() in a loop, check for ferror() as well as for feof() · fe8c42b6
      Matthias Clasen authored
      2004-04-13  Matthias Clasen  <mclasen@redhat.com>
      
      	* io-ani.c (gdk_pixbuf__ani_image_load_animation):
      	* gdk-pixbuf-io.c (gdk_pixbuf_get_file_info)
      	(_gdk_pixbuf_generic_image_load)
      	(gdk_pixbuf_new_from_file_at_size): When calling fread()
      	in a loop, check for ferror() as well as for feof() to
      	avoid infinite loops on directories.  (#137804, Alex Converse)
      fe8c42b6
  9. 15 Mar, 2004 1 commit
    • Tor Lillqvist's avatar
      Merges from stable branch that had been left out. (#136282, J. Ali Harlow) · ba7a9517
      Tor Lillqvist authored
      2004-03-15  Tor Lillqvist  <tml@iki.fi>
      
      	Merges from stable branch that had been left out. (#136282, J. Ali
      	Harlow)
      
      	Changes for run-time lookup of installation location on Win32:
      
      	* Makefile.am (INCLUDES): Define GTK_PREFIX as $(prefix).
      
      	* gdk-pixbuf-io.c (get_sysconfdir): New function, look up
      	installation location at runtime and deduce GTK_SYSCONFDIR
      	from it.
      	(get_toplevel): Similar, for the top-level installation directory.
      	(correct_prefix): Replace compile-time prefix with run-time
      	prefix.
      	(get_libdir): Remove, not used any longer.
      	(gdk_pixbuf_io_init): Call correct_prefix() on Win32.
      
      	* queryloaders.c (query_module): [Win32] Change backslahses into
      	slashes in path.
      ba7a9517
  10. 06 Mar, 2004 1 commit
  11. 08 Feb, 2004 1 commit
    • Manish Singh's avatar
      removed unnecessary G_OBJECT() cast checks. · 4bd1fa5f
      Manish Singh authored
      Sun Feb  8 01:07:20 2004  Manish Singh  <yosh@gimp.org>
      
              * gdk-pixbuf-io.c: removed unnecessary G_OBJECT() cast checks.
      
              * io-jpeg.c: make the return type for to_callback_empty_output_buffer
              "boolean", which should be defined by the jpeg headers. The right
              return type for this function depends on how the jpeg library
              was built (one wonders what happens if different compilers are used).
      4bd1fa5f
  12. 09 Jan, 2004 1 commit
  13. 07 Jan, 2004 3 commits
    • Federico Mena Quintero's avatar
      Escape an ampersand in the documentation comment, and hack around an empty · b421cc48
      Federico Mena Quintero authored
      2004-01-06  Federico Mena Quintero  <federico@ximian.com>
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_save): Escape an ampersand in the
      	documentation comment, and hack around an empty line in the code
      	example so that gtk-doc won't put a <para> due to it.
      b421cc48
    • Matthias Clasen's avatar
      New public API to save pixbufs to non-file locations. (#82203, Tim Evans) · 03376d79
      Matthias Clasen authored
      Wed Jan  7 02:41:14 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_save_to_bufferv):
      	* gdk-pixbuf-io.c (gdk_pixbuf_save_to_buffer):
      	* gdk-pixbuf-io.c (gdk_pixbuf_save_to_callbackv):
      	* gdk-pixbuf-io.c (gdk_pixbuf_save_to_callback): New public API
      	to save pixbufs to non-file locations.  (#82203, Tim Evans)
      
      	* gdk-pixbuf.h:
      	* gdk_pixbuf.def: Declare the new public API.
      
      	* gdk-pixbuf-io.h: Add save_to_callback to the module interface.
      
      	* io-jpeg.c:
      	* io-png.c: Implement save_to_callback.
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_savev):
      	* gdk-pixbuf-io.c (gdk_pixbuf_save): Update documentation.
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_real_save): Support saving via
      	image_module->save_to_callback.
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_real_save_to_callback): New generic
      	save_to_callback function which falls back to image_module->save
      	on a temp file.
      03376d79
    • Matthias Clasen's avatar
      Make it possible to call gdk_pixbuf_loader_set_size (loader, 0, 0) by · 5b26e695
      Matthias Clasen authored
      Wed Jan  7 01:17:36 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_size_func):
      	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_set_size):
      	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_init): Make it possible
      	to call gdk_pixbuf_loader_set_size (loader, 0, 0) by changing
      	the initial values of priv->width/height to -1.
      
      	* io-tiff.c (tiff_image_parse):
      	* io-ras.c (RAS2State):
      	* io-pnm.c (gdk_pixbuf__pnm_image_load_increment):
      	* io-pcx.c (gdk_pixbuf__pcx_load_increment):
      	* io-jpeg.c (gdk_pixbuf__jpeg_image_load_increment):
      	* io-png.c (png_info_callback):
      	* io-ico.c (DecodeHeader):
      	* io-bmp.c (DecodeHeader): Call size_func once the size is known,
      	even if the module can't make use of the scaling information. If
      	size_func returns 0, don't allocate a pixbuf and return, if
      	necessary with an error.
      
      	* gdk-pixbuf.h:
      	* gdk-pixbuf-io.c (gdk_pixbuf_get_file_info): A new function
      	to determine the type and size of an image file without loading
      	it completely.  (#53725)
      5b26e695
  14. 09 Nov, 2003 1 commit
  15. 23 Jul, 2003 2 commits
  16. 13 Jul, 2003 1 commit
  17. 11 Jul, 2003 1 commit
    • Matthias Clasen's avatar
      Use g_strfreev() to free mime_types. (#117219, Steve Chaplin) · aa013939
      Matthias Clasen authored
      2003-07-11  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free mime_types.
      	(#117219, Steve Chaplin)
      
      	* queryloaders.c (query_module): Handle absolute filenames properly. (#117170, Jens Elkner)
      
      	* gdk-pixbuf-io.c: Mention that NULL-terminated arrays returned by
      	gdk_pixbuf_format_get_mime_types() and gdk_pixbuf_format_get_extensions() must be
      	freed with g_strfreev().
      aa013939
  18. 03 Jul, 2003 1 commit
  19. 21 May, 2003 1 commit
  20. 24 Apr, 2003 1 commit
  21. 02 Jan, 2003 1 commit
  22. 28 Nov, 2002 1 commit
  23. 03 Oct, 2002 1 commit
    • Matthias Clasen's avatar
      Support for separately installed loaders. (#77486) · 45f7541f
      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)
      45f7541f
  24. 06 Sep, 2002 1 commit
  25. 03 Sep, 2002 1 commit
    • Matthias Clasen's avatar
      Don't leak memory if g_try_realloc fails. · 8abdfd3d
      Matthias Clasen authored
      	* io-tga.c (io_buffer_append):
      	* io-ico.c (DecodeHeader):
      	* io-bmp.c (grow_buffer): Don't leak memory if g_try_realloc fails.
      
      	* gdk-pixbuf-io.c (pixbuf_check_ico): Fix loading of .CUR files.
      	(#91826)
      8abdfd3d
  26. 22 Aug, 2002 1 commit
    • Matthias Clasen's avatar
      gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): No longer static, thus · c22b6145
      Matthias Clasen authored
      	* gdk-pixbuf-io.h:
      	gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): No longer
      	static, thus _gdk_pixbuf-prefixed.
      
      	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file):
      	Keep this logic in sync with gdk_pixbuf_new_from_file().  (Based
      	on a patch by Anders Carlsson)
      
      	* io-png.c (gdk_pixbuf__png_image_save): Plug a memory
      	leak.  (#91422, Sven Neumann)
      c22b6145
  27. 07 Jul, 2002 1 commit
    • Matthias Clasen's avatar
      New function for loading an image from a file either via module->load or · 94218b8c
      Matthias Clasen authored
      	* gdk-pixbuf-io.c (generic_image_load): New function for loading
      	an image from a file either via module->load or incrementally.
      	(prepared_notify): ModulePreparedNotifyFunc for generic_image_load.
      	(gdk_pixbuf_new_from_file): Use generic_image_load.
      	* io-bmp.c, io-ico.c, io-ras.c, io-wbmp.c: Remove trivial
      	implementations of module->load.  (#71266)
      94218b8c
  28. 31 May, 2002 1 commit
    • Matthias Clasen's avatar
      Accept xbms starting with a C comment - those seem to be not uncommon, · 61857770
      Matthias Clasen authored
      	* gdk-pixbuf-io.c (pixbuf_check_xbm): Accept xbms starting
      	with a C comment - those seem to be not uncommon, e.g. the Gimp
      	produces them.  (#82706)
      
      	* io-xbm.c (read_bitmap_file_data): Don't leak memory on certain
      	invalid inputs.
      	(gdk_pixbuf__xbm_image_load_real): Don't leak memory on valid inputs.
      61857770
  29. 22 May, 2002 1 commit
  30. 24 Apr, 2002 1 commit
  31. 20 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Patch from Erwann Chenede, #73900 fixing a lot of warnings with Forte CC, · 8acfd1e9
      Owen Taylor authored
      Wed Mar 20 16:36:08 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/*.c: Patch from Erwann Chenede, #73900 fixing
              a lot of warnings with Forte CC, mostly implicit
              casts between void * and function pointers.
      
              * gdk/gdkevents.c (gdk_event_get_state): GdkEventVisibility's
              state field is not a GdkModifierType. (Also #73900)
      8acfd1e9
  32. 03 Mar, 2002 1 commit
    • Owen Taylor's avatar
      If we can't load the module using the g_module_build_path() filename, try · b3c0813b
      Owen Taylor authored
      Sat Mar  2 22:11:10 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk-pixbuf-io.c (_gdk_pixbuf_load_module): If we
              can't load the module using the g_module_build_path()
              filename, try loading it as a .la file.
      
              * test-loaders.c: Look for modules in current directory
              rather than .libs, so we find the right .la files.
      
              * test-loaders.c: Back out some accidental commits.
      b3c0813b
  33. 20 Dec, 2001 1 commit
    • Matthias Clasen's avatar
      More precise documentation about underscores and mnemonics. (#66380) · 3aabcd28
      Matthias Clasen authored
              * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
              gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
              documentation about underscores and mnemonics. (#66380)
      
              * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
              cyclic reference in docs.
      
              * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
              of default value. (#65402)
      
              * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale):
              Markup fixes.
      
              * gdk-pixbuf-io.c, gdk-pixbuf-animation.c, gdk-pixbuf-data.c,
              gdk-pixbuf-loader.c, gdk-pixbuf-scale.c, gdk-pixbuf-util.c,
              gdk-pixdata.c: Markup fixes.
      
              * gtk/text_widget.sgml: More precise wording. (#63388)
      
              * gtk/tmpl/gtksignal.sgml (GTK_SIGNAL_OFFSET): Add docs.
      
              * gtk/resources.sgml: Fix markup of mail URLs.
      
              * gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkobject.sgml: Markup fixes.
      
              * gtk/tmpl/gtktoolbar.sgml (gtk_toolbar_{prepend,append}_element):
              Expand documentation. (#60471)
      
              * gtk/tmpl/gtkmain.sgml: Remove misleading information about
              gtk_set_locale().  (#65758)
      3aabcd28
  34. 13 Dec, 2001 1 commit
    • Matthias Clasen's avatar
      Markup fixes. · fc4a6b95
      Matthias Clasen authored
      
              * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
      
              * gdk-pixbuf-io.c: Markup fixes.
      
              * gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
              gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
              gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
              gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
              gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
              gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
              gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
              gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
              gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
              gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
              gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
              gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
              gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
              gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
              gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
              gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
              gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
      fc4a6b95
  35. 29 Oct, 2001 1 commit
    • Tor Lillqvist's avatar
      Use -no-undefined on Win32. Make libgdk_pixbuf_1_3_la_OBJECTS depend on · 47dc8d4d
      Tor Lillqvist authored
      2001-10-29  Tor Lillqvist  <tml@iki.fi>
      
      	* Makefile.am: Use -no-undefined on Win32. Make
      	libgdk_pixbuf_1_3_la_OBJECTS depend on
      	gdk-pixbuf-marshal.c. Install import libraries.
      
      	* gdk_pixbuf.def: Update.
      
      	* gdk-pixbuf-io.c: (Win32) Use G_WIN32_DLLMAIN_FOR_DLL_NAME, saves
      	the actual DLL name of libgdk_pixbuf.
      	(get_libdir): Use it instead of guessing.
      
      	* io-xbm.c (gdk_pixbuf__xbm_image_begin_load): Use
      	g_file_open_tmp() insread of mkstemp().
      47dc8d4d
  36. 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
  37. 14 Sep, 2001 1 commit