Commit Graph

783 Commits

Author SHA1 Message Date
Matthias Clasen
7b5cf0dbd6 No need to expose the iter subclass at all in the headers.
2005-05-25  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf.symbols:
	* gdk-pixbuf-simple-anim.[hc]: No need to expose the iter
	subclass at all in the headers.
2005-05-25 19:39:35 +00:00
Matthias Clasen
734b31563b Add new files.
2005-05-25  Matthias Clasen  <mclasen@redhat.com>

	* Makefile.am: Add new files.

	* gdk-pixbuf.symbols: Add new api.

	* gdk-pixbuf.h: Include gdk-pixbuf-simple-anim.h here.

	* gdk-pixbuf-simple-anim.[hc]: Add a way to construct
	simple animations out of pixbufs.  (#135161, Dom Lachowicz)
2005-05-25 19:33:35 +00:00
Sven Neumann
3bc682d012 allow to specify the PNG compression level by passing a "compression"
2005-05-24  Sven Neumann  <sven@gimp.org>

	* io-png.c: allow to specify the PNG compression level by passing
	a "compression" parameter to the PNG save function (bug #305337).

	* gdk-pixbuf-io.c (gdk_pixbuf_save): document the new parameter.
2005-05-24 17:09:56 +00:00
Matthias Clasen
22344179a4 Forgotten Changelog 2005-05-02 13:54:58 +00:00
Matthias Clasen
b75a8a1512 Check for nm.
2005-04-29  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Check for nm.

	* gtk/Makefile.am: Use $(NM), not nm directly. (#301299,
	Nguyen Thai Ngoc Duy)
2005-04-29 17:59:07 +00:00
Matthias Clasen
a75e27c0a4 Don't display too many broken images. (#169870, Roman Kagan, patch by Ivan
2005-04-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
	Don't display too many broken images.  (#169870, Roman
	Kagan, patch by Ivan Wong)

	* gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
	output.  (#300013, Tommi Komulainen)

	* io-bmp.c (gdk_pixbuf__bmp_image_save_to_callback):
	Don't overflow the stack.  (Jakub Jelinek, Arjan van de Ven)
2005-04-09 21:57:04 +00:00
Matthias Clasen
7e832a73ce Make this work when called from gtk_combo_box_destroy(). (#172999,
2005-04-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcombobox.c (gtk_combo_box_popdown): Make this
	work when called from gtk_combo_box_destroy().  (#172999,
	Christian Persch)
2005-04-08 22:07:35 +00:00
Matthias Clasen
4df90d3150 No debugging output, please. 2005-04-08 20:37:51 +00:00
Matthias Clasen
ac0d780ce5 Commit the right ChangeLog 2005-04-07 05:45:35 +00:00
Matthias Clasen
43cdce02c7 Initialize the colormap to zero. (#171762, David Costanzo)
2005-04-07  Matthias Clasen  <mclasen@redhat.com>

	* io-bmp.c (DecodeColormap): Initialize the colormap to
	zero.  (#171762, David Costanzo)
2005-04-07 05:44:41 +00:00
Hans Breuer
0ba6aed77e [merged from gtk-2-6 branch] let dash_offset shift the start of the line
2005-04-03  Hans Breuer  <hans@breuer.org>

	[merged from gtk-2-6 branch]
	* gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
	the line pattern not the start of the line. Fixes bug #171641.

	* gtk/makefile.msc.in : follow .symbols changes

	* gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
	dynamically. (It is not available in _WIN_VER <= 0x0400)

	* gdk/win32/makefile.msc : removed gdkpango-win32.obj

	* gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI

	[also applied to gtk-2-6 branch]
	* gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def

	* gdk/makefile.msc.in : add gtkmnemonichash.obj

	* test/testgtk.c(set_parent_signal) : use g_message instead of
	g_print to keep the 'testgtk --bench=all' output clean
2005-04-03 21:03:08 +00:00
Matthias Clasen
2aeadf5e68 Avoid bus errors due to unaligned access. (#168173, Morten Welinder, Ivan
2005-03-30  Matthias Clasen  <mclasen@redhat.com>

	* io-bmp.c: Avoid bus errors due to unaligned access. (#168173,
	Morten Welinder, Ivan Wong)
2005-03-30 19:34:37 +00:00
Matthias Clasen
2aa05e973e Fix the update areas for incremental loading of compressed tgas. (#171883,
2005-03-29  Matthias Clasen  <mclasen@redhat.com>

	* io-tga.c (parse_rle_data): Fix the update areas for incremental
	loading of compressed tgas.  (#171883, David Costanzo)
2005-03-29 05:21:26 +00:00
Matthias Clasen
eb96e5c861 Use the correct update regions for compressed bmps. (#150664, Owen Taylor,
2005-03-27  Matthias Clasen  <mclasen@redhat.com>

	* io-bmp.c (DoCompressed): Use the correct update regions for
	compressed bmps.  (#150664, Owen Taylor, test images provided
	by David Costanzo)
2005-03-28 04:16:10 +00:00
Manish Singh
fcde8479cc reject 0-sized buffers as corrupt header data. Fixes bug #171707.
Sun Mar 27 19:59:52 2005  Manish Singh  <yosh@gimp.org>

        * io-bmp.c (grow_buffer): reject 0-sized buffers as corrupt header
        data. Fixes bug #171707.
2005-03-28 04:01:25 +00:00
Matthias Clasen
4c28ce0877 Use canonical names for g_object_notify() as well.
2005-03-26  Matthias Clasen  <mclasen@redhat.com>

	* gtk/*.c:
	* gdk/gdkdisplaymanager.c:
	Use canonical names for g_object_notify() as well.
2005-03-26 05:49:15 +00:00
Matthias Clasen
7e77ea9943 Mark param spec strings as static.
2005-03-21  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf.c (gdk_pixbuf_class_init): Mark param spec strings
	as static.
2005-03-21 05:07:20 +00:00
Manish Singh
f0ce2b12a2 Shut up CVS 2005-03-16 04:36:05 +00:00
Matthias Clasen
eef20f2c83 Make PLT-reduction work with gcc4, and don't include everything in
2005-03-14  Matthias Clasen  <mclasen@redhat.com>

	Make PLT-reduction work with gcc4, and don't include
	everything in gdk-pixbuf-alias.h:

	* gdk-pixbuf.symbols: Group symbols by header and source file.
	* /makegdkpixbufalias.pl: Protect definitions by the same
	preprocessor symbols used to guard the headers. Move
	the alias declarations to a separate file which is
	produced when calling makegdkpixbufalias.pl -def
	* Makefile.am (gdk-pixbuf-aliasdef.c): Add a rule to generate
	this file.
	* *.c: Include gdk-pixbuf-alias.h after the other headers,
	include gdk-pixbuf-aliasdef.c at the bottom.
2005-03-14 19:37:00 +00:00
Tor Lillqvist
f40bcdcfc5 gdk-pixbuf-core.h gdk-pixbuf-io.c Implement DLL ABI stablility for
2005-03-10  Tor Lillqvist  <tml@novell.com>

	* gdk-pixbuf-core.h
	* gdk-pixbuf-io.c
	* gdk-pixbuf.symbols: Implement DLL ABI stablility for
	gdk_pixbuf_save() and gdk_pixbuf_savev(). (#167973)
2005-03-10 19:13:19 +00:00
Matthias Clasen
60416c88e2 Fix a C99ism. (#169741, Morten Welinder)
2005-03-09  Matthias Clasen  <mclasen@redhat.com>

	* io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Fix
	a C99ism.  (#169741, Morten Welinder)
2005-03-09 18:20:04 +00:00
Matthias Clasen
c8ce95ab52 Use canonical form of the name when registering properties.
2005-03-08  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf.c (gdk_pixbuf_class_init): Use canonical
	form of the name when registering properties.
2005-03-09 02:49:27 +00:00
Matthias Clasen
7b0d4522ed Add the new attributes to the .symbols files. 2005-03-08 06:10:31 +00:00
Matthias Clasen
c8830f2504 Use G_GNUC_NULL_TERMINATED where appropriate. (#165682, Marc Meissner)
2005-03-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwidget.h:
	* gtk/gtktreeview.h:
	* gtk/gtktreeviewcolumn.h:
	* gtk/gtktextbuffer.h:
	* gtk/gtkobject.h:
	* gtk/gtkfilechooserdialog.h:
	* gtk/gtkdialog.h:
	* gtk/gtkcontainer.h:
	* gtk/gtkcelllayout.h:
	* gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
	appropriate.  (#165682, Marc Meissner)
2005-03-08 05:52:55 +00:00
Matthias Clasen
f0175e1ff6 Use a generated table of offsets into a big const string to avoid
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.
2005-03-08 03:59:45 +00:00
Matthias Clasen
f5869e6a87 Check the number of scanned items. (#168906, Morten Welinder)
2005-03-03  Matthias Clasen  <mclasen@redhat.com>

	* io-xpm.c (pixbuf_create_from_xpm): Check the number
	of scanned items.  (#168906, Morten Welinder)
2005-03-03 14:02:59 +00:00
Matthias Clasen
1f6a65d375 Make the gif loader handle oom when loading animations. (#168857, Tommi
2005-03-03  Matthias Clasen  <mclasen@redhat.com>

	Make the gif loader handle oom when loading
	animations.  (#168857, Tommi Komulainen)

	* io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite):
	Handle oom by returning NULL.

	* io-gif.c (gif_get_lzw): Return an error if composite
	returns NULL.
2005-03-03 13:29:01 +00:00
Matthias Clasen
6834bb9597 Revert the previous change, since it breaks bin compat.
2005-03-01  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf/gdk-pixbuf.c:
	* gdk-pixbuf/gdk-pixbuf-features.h.in:
	Revert the previous change, since it breaks
	bin compat.
2005-03-01 14:57:20 +00:00
Matthias Clasen
4fcaa4e1da Forgotten file 2005-03-01 06:43:55 +00:00
Matthias Clasen
6da29b43a6 gdk/gdkkeyuni.c gdk/gdkpixbuf-drawable.c gdk/gdkrgb.c gdk/x11/gdkdnd-x11.c
2005-03-01  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdkkeyuni.c
	* gdk/gdkpixbuf-drawable.c
	* gdk/gdkrgb.c
	* gdk/x11/gdkdnd-x11.c
	* gdk/x11/gdkevents-x11.c
	* gdk/x11/gdkproperty-x11.c
	* gdk/x11/gdkvisual-x11.c
	* gdk-pixbuf/gdk-pixbuf.c
	* gtk/gtkaction.c
	* gtk/gtkbindings.c
	* gtk/gtkcolorbutton.c
	* gtk/gtkcombo.c
	* gtk/gtkcontainer.c
	* gtk/gtkfilechooserdefault.c
	* gtk/gtkfilesel.c
	* gtk/gtkgamma.c
	* gtk/gtkiconview.c
	* gtk/gtkinputdialog.c
	* gtk/gtkitemfactory.c
	* gtk/gtkmenu.c
	* gtk/gtktextview.c
	* gtk/gtktooltips.c
	* gtk/gtktreedatalist.c
	* gtk/gtkuimanager.c
	* gtk/tree_minus.xpm
	* gtk/tree_plus.xpm
	* gtk/xdgmime/xdgmime.c
	* gtk/xdgmime/xdgmime.h:
	Move constant data to .rodata.
2005-03-01 06:25:55 +00:00
Matthias Clasen
d16ad30f40 Add necessary protection 2005-02-28 18:09:37 +00:00
Matthias Clasen
6a6b50c241 Add .note.GNU-stack sections to Mark these as not requiring an executable
2005-02-28  Matthias Clasen  <mclasen@redhat.com>

	* pixops/*.S: Add .note.GNU-stack sections to Mark these as not
	requiring an executable stack.
2005-02-28 18:01:53 +00:00
Matthias Clasen
534d584ba6 Document BMP saving support.
2005-02-23  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf-io.c: Document BMP saving support.

	* io-bmp.c: Support saving as BMP. (168173, Ivan Wong)
2005-02-24 04:41:35 +00:00
Matthias Clasen
c06df5a44c Fix a typo. (#168173, Ivan Wong)
2005-02-23  Matthias Clasen  <mclasen@redhat.com>

	* io-ico.c: Fix a typo.  (#168173, Ivan Wong)
2005-02-24 04:27:48 +00:00
Matthias Clasen
5fcc15abbe Don't read over the end of the buffer if '#' appears at the very end.
2005-02-15  Matthias Clasen  <mclasen@redhat.com>

	* io-pnm.c (pnm_skip_whitespace): Don't read over the end of
	the buffer if '#' appears at the very end.  (#167141, Doug Morgan)
2005-02-16 03:38:22 +00:00
Hans Breuer
c0454cf6db rule for gdk_pixbuf.def
2005-02-05  Hans Breuer  <hans@breuer.org>

	* makefile.msc : rule for gdk_pixbuf.def
2005-02-07 20:13:18 +00:00
Matthias Clasen
ae56d196eb Pass in the max number of bytes to read. (pnm_read_ascii_scanline): And
2005-02-07  Matthias Clasen  <mclasen@redhat.com>

	* io-pnm.c (pnm_read_next_value): Pass in the max number
	of bytes to read.
	(pnm_read_ascii_scanline): And use it here to enable
	parsing of pbm images without whitespace between the
	pixels.  (#165803, Samuel Hym)
2005-02-07 19:40:46 +00:00
Matthias Clasen
a66dd6b37d Close the loader before unreffing it in the error case. (#164915, Crispin
2005-01-22  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_new_with_type)
	(gdk_pixbuf_loader_new_with_mime_type): Close the loader
	before unreffing it in the error case.  (#164915, Crispin
	Flowerday)
2005-01-23 04:35:09 +00:00
Matthias Clasen
130b7826b5 Add an OS_LINUX conditional.
2005-01-13  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Add an OS_LINUX conditional.

	* gdk/Makefile.am (TESTS):
	* gdk-pixbuf/Makefile.am (TESTS):
	* gtk/Makefile.am (TESTS): Only run abicheck on Linux.  (#163917,
	Roger Leigh)
2005-01-13 15:19:27 +00:00
Owen Taylor
4fa381d14c Remove GLIB_DIVERT_BEFORE_HELP() on initialization of gdktarget, that was
2005-01-12  Owen Taylor <otaylor@redhat.com>

        * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
        initialization of gdktarget, that was causing it to be
        evaluated before host was set. Simplify --with-gdktarget help
        message.

        * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1
        which doesn't work with slightly older versions of GNU grep
        in install-libtool-import-lib rule.
2005-01-13 01:56:42 +00:00
Matthias Clasen
65d7ef8ff4 2.6.1 2005-01-08 07:50:46 +00:00
Matthias Clasen
ac713f2d07 Some more 2005-01-04 15:47:02 +00:00
Matthias Clasen
3835b82fba Remove leftover debug printf 2005-01-04 15:46:39 +00:00
Matthias Clasen
c30892971b Error on compressed images with negative height. Also make uncompressed
2005-01-04  Matthias Clasen  <mclasen@redhat.com>

	* io-bmp.c (DecodeHeader): Error on compressed images with
	negative height. Also make uncompressed images with data_offset
	!= header_size work.  (#150664, Owen Taylor)
2005-01-04 15:42:54 +00:00
Matthias Clasen
4911eef232 Really fix the math to make the vectors sum up to 1, making
2005-01-02  Matthias Clasen  <mclasen@redhat.com>

	* pixops/pixops.c (bilinear_box_make_weights): Really fix the
	math to make the vectors sum up to 1, making GDK_INTERP_HYPER
	work again. (#162703, Dennis Nezic)
2005-01-02 07:10:30 +00:00
Matthias Clasen
c0e9374d9c gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file) Avoid
2004-12-27  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file)
	Avoid deadlock. Pointed out by Callum McKenzie.
2004-12-27 22:50:45 +00:00
Jonathan Blandford
2b1e0dbaea print out the version and binary name in the header comment. Problem
Wed Dec 22 01:17:44 2004  Jonathan Blandford  <jrb@redhat.com>

        * queryloaders.c (main): print out the version and binary name in
        the header comment.  Problem reported by Seth Nickell.
2004-12-22 06:20:26 +00:00
Matthias Clasen
203e5edc6f 2.6.0 2004-12-16 18:21:44 +00:00
Manish Singh
19a02e673e filter out PRIVATE.
Fri Dec 10 13:57:44 2004  Manish Singh  <yosh@gimp.org>

        * abicheck.sh: filter out PRIVATE.
2004-12-10 21:58:05 +00:00
Tor Lillqvist
6ba75ff95b gdk-pixbuf-animation.c gdk-pixbuf-io.c io-xbm.c io-xpm.c
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.
2004-12-05 12:43:47 +00:00