Commit Graph

1026 Commits

Author SHA1 Message Date
Matthias Clasen
be22a62160 Cleanups
This commit removes dead code, mostly pointed out by clang.
2009-09-10 13:53:28 -04:00
Matthias Clasen
079cc21956 Avoid a segfault if license is NULL
The license field was introduced later on, so some out-of-tree loaders
may not set it. And Solaris printf() doesn't take NULL for a string...
Bug 594178.
2009-09-04 18:22:30 -04:00
Christian Dywan
c91cb2f71a Bug 592901 - Crash in JPEG pixbuf loader instead of error
Initialize the error structure early enough to ensure that it
propagates properly in the case of an error. Patch by Nokia.
2009-08-25 12:01:54 +02:00
Christian Persch
e8dcf330cc Preserve errno, and always use g_strerror()
Bug #592461.
2009-08-24 15:30:00 +02:00
Shixin Zeng
89a8fade6f Don't use stream before it is created 2009-08-20 23:53:57 +03:00
Shixin Zeng
e10db38f0d Put variable definitions at start of block 2009-08-20 23:51:38 +03:00
Sam Thursfield
ad3be19251 Make gdk-pixbuf-csource work on Windows also in the build tree.
Patch from bug #590448.
2009-08-02 10:40:13 +03:00
Hans Breuer
fbf73aada9 Updated msvc build 2009-07-04 12:19:05 +02:00
Benjamin Otte
1a385c50f0 fix compile warnings
Fallout from running make CFLAGS="-Werror"; mostly missing casts and
constness issues.
2009-06-17 10:28:03 +02:00
Matthias Clasen
de3cc27706 Cleanup some translation handling
Use g_*gettext functions in gdk-pixbuf instead direct gettext
calls to benefit from the maybe-dont-translate functionality
in GLib. Also, replace a hand-rolled version by g_dpgettext2
in gtkbuilderparser.c. Fixes bug 585791.
2009-06-15 18:25:04 -04:00
Behdad Esfahbod
a398c840be Add git.mk to generate .gitignore files
Add four new doc templates that were not in repository.
2009-05-04 14:29:21 -04:00
Brian Cameron
33f4ead506 Minor fix for GTK+ mediaLib code.
After doing some performance analysis, it was found that the GTK+ mediaLib code
triggers unnecessary lazy loading of dependent libraries.  The current code
uses RTLD_DEFAULT, RTLD_PROBE, RTLD_NEXT, and RTLD_SELF.  However, RTLD_PROBE
is all that is necessary, and avoids triggering the lazy loading.  So this
commit fixes the code to just use RTLD_PROBE.  (Bug 580678)
2009-04-29 18:52:32 -05:00
Claudio Saavedra
3c9e7c73bf Allow GdkPixbufSimpleAnim to loop
Add a GdkPixbufSimpleAnim:loop boolean property and its accessors.
Based on a patch by Tim Evans. (#561139)
2009-04-18 15:16:22 +03:00
Michael J. Chudobiak
a15b14032e Fixed memory leak in jasper loader
Bug 578290. The "data" block was allocated but not used
and not freed.
2009-04-08 10:50:30 -04:00
Dr. Michael J. Chudobiak
ea866c635b Fixed minor memory leak on error
Bug 578290. Fixed a minor memory leak that occurs after a
memory allocation error. Found it using cppcheck.
2009-04-08 10:33:08 -04:00
Matthias Clasen
0dd7155f79 Update README files to refer to git
Update various README files to refer to git instead of svn.
Also discontinue ChangeLog files.
2009-03-31 18:49:48 -04:00
Matthias Clasen
ba150f5ecc 2.16.0
svn path=/trunk/; revision=22530
2009-03-13 15:06:47 +00:00
Matthias Clasen
fb5722ca96 2.15.5
svn path=/trunk/; revision=22448
2009-03-02 20:42:08 +00:00
Matthias Clasen
d5a09342c4 If pure sniffing yields uncertain results, try again with the filename.
* gdk-pixbuf-io.c (_gdk_pixbuf_get_module): If pure sniffing
        yields uncertain results, try again with the filename.
        Patch by Tyler Lawson


svn path=/trunk/; revision=22433
2009-03-01 07:39:03 +00:00
Matthias Clasen
a0f8f37c37 2.15.4
svn path=/trunk/; revision=22350
2009-02-17 22:25:41 +00:00
Cody Russell
98f9ba55e8 Bug 571576 – gdk_pixbuf_save_to_stream() broken
2009-02-12  Cody Russell  <bratsche@gnome.org>

        Bug 571576 – gdk_pixbuf_save_to_stream() broken

        * gdk-pixbuf/gdk-pixbuf-io.c: Fix gdk_pixbuf_save_to_stream() so that
        it does not always return FALSE (even when it succeeds), and also so
        that it does not set error to NULL when something goes wrong.


svn path=/trunk/; revision=22322
2009-02-13 01:25:36 +00:00
Matthias Clasen
ebb342a246 2.15.3
svn path=/trunk/; revision=22273
2009-02-03 01:55:28 +00:00
Matthias Clasen
b447ac1be4 2.15.2
svn path=/trunk/; revision=22231
2009-01-27 05:51:23 +00:00
Matthias Clasen
3bb7c153f8 2.15.1
svn path=/trunk/; revision=22202
2009-01-23 23:03:59 +00:00
Tor Lillqvist
834b19f46d Bug 568305 - gdk-pixbuf mishandles BI_BITFIELDS bmps
2009-01-19  Tor Lillqvist  <tml@iki.fi>

	Bug 568305 - gdk-pixbuf mishandles BI_BITFIELDS bmps

	* io-bmp.c (OneLine32): Use unsigned variables so that we can
	right-shift them without risk of sign extension. Don't "reverse"
	the alpha value, actually storing 0xFF-alpha, but use it as such.


svn path=/trunk/; revision=22172
2009-01-22 09:45:58 +00:00
Tor Lillqvist
c1e67e994c Bug 164002 - query scripts don't work uninstalled on windows
2009-01-12  Tor Lillqvist  <tml@iki.fi>

	Bug 164002 - query scripts don't work uninstalled on windows

	* queryloaders.c (main): Use the configure-time PIXBUF_LIBDIR if
	the exe is located in a .libs folder, i.e. run in the build
	directory through a libtool wrapper script or wrapper executable,
	or in the source folder itself. Otherwise continue to infer the
	runtime prefix from the exe's location.

2009-01-12  Tor Lillqvist  <tml@iki.fi>

	* queryloaders.c (main): Remove the Win9x code path. It had been
	left by mistake. Win9x code is gone from the rest of GTK+ since
	2.12.


svn path=/trunk/; revision=22106
2009-01-13 11:17:25 +00:00
Matthias Clasen
54000d0ede Bug 566862 – pixbuf_new_from_file does not autodetect format
2009-01-07  Matthias Clasen  <mclasen@redhat.com>

        Bug 566862 – pixbuf_new_from_file does not autodetect format

        * gdk-pixbuf-io.c (_gdk_pixbuf_get_module): Go back to sniffing
        without looking at the filename, to avoid breaking expected
        functionality.


svn path=/trunk/; revision=22073
2009-01-07 15:02:33 +00:00
Matthias Clasen
c885c8afd2 2.15.0
svn path=/trunk/; revision=22037
2009-01-01 22:24:56 +00:00
Christian Dywan
2dea920895 Bug 561186 – GdkPixbuf API type checking needs cleanup
2008-11-30  Christian Dywan  <christian@imendio.com>

	Bug 561186 – GdkPixbuf API type checking needs cleanup

	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_write),
	(gdk_pixbuf_loader_get_pixbuf), (gdk_pixbuf_loader_get_animation),
	(gdk_pixbuf_loader_close), (gdk_pixbuf_loader_get_format):
	* gdk-pixbuf-scale.c (gdk_pixbuf_scale), (gdk_pixbuf_composite),
	(gdk_pixbuf_composite_color), (gdk_pixbuf_scale_simple),
	(gdk_pixbuf_composite_color_simple):
	* gdk-pixbuf-simple-anim.c (gdk_pixbuf_simple_anim_add_frame):
	* gdk-pixbuf-util.c (gdk_pixbuf_add_alpha),
	(gdk_pixbuf_apply_embedded_orientation):
        Improve type checking in pixbuf API

svn path=/trunk/; revision=21832
2008-11-30 05:22:03 +00:00
Matthias Clasen
e74968f8ef Bug 555791 – Natuilus Crashes when opening USB MP3 Player Contents
2008-10-13  Matthias Clasen  <mclasen@redhat.com>

        Bug 555791 – Natuilus Crashes when opening USB MP3 Player Contents

        * io-tga.c (gdk_pixbuf__tga_stop_load): Don't segfault on
        short files.
        Problem reported by Pedro Villavicencio


svn path=/trunk/; revision=21643
2008-10-13 14:18:40 +00:00
Tor Lillqvist
669baea0ff Don't #define _GNU_SOURCE on Windows as it confuses newest mingw headers.
2008-10-01  Tor Lillqvist  <tml@novell.com>

	* io-icns.c: Don't #define _GNU_SOURCE on Windows as it confuses
	newest mingw headers.


svn path=/trunk/; revision=21555
2008-10-01 10:43:02 +00:00
13:28:23 Tim Janik
69be45d1d4 prevent RLE encoding of 1x1 pixel images, since the encoder comparison
2008-09-23 13:28:23  Tim Janik  <timj@imendio.com>

        * gdk-pixdata.c: prevent RLE encoding of 1x1 pixel images, since the
        encoder comparison operator requires at least 2 pixels, fixes #553374:
        Bug 553374 - gdk_pixdata_from_pixbuf fails for some images with use_rle set to TRUE


svn path=/trunk/; revision=21497
2008-09-23 11:30:35 +00:00
Matthias Clasen
661fbdfa26 Plug a small memory leak
svn path=/trunk/; revision=21451
2008-09-19 14:34:22 +00:00
Dominic Lachowicz
b559c7dacc Fix 2 cases where we leaked a GpImage (#552545)
2008-09-18  Dominic Lachowicz  <domlachowicz@gmail.com>

        * io-gdip-utils.c: Fix 2 cases where we leaked a GpImage (#552545)


svn path=/trunk/; revision=21426
2008-09-18 14:30:43 +00:00
Matthias Clasen
3a6b0693b9 2.14.2
svn path=/trunk/; revision=21420
2008-09-18 04:30:42 +00:00
Tor Lillqvist
4125df1d8e gdk-pixbuf/gdk-pixbuf-io.c Don't use the deprectated
2008-09-13  Tor Lillqvist  <tml@novell.com>

	* gdk-pixbuf/gdk-pixbuf-io.c
	* gtk/gtkmain.c: Don't use the deprectated
	g_win32_get_package_installation_directory() and
	g_win32_get_package_installation_subdirectory() functions. Use
	g_win32_get_package_installation_directory_of_module()
	instead. Also, don't use the deprecated silly
	G_WIN32_DLLMAIN_FOR_DLL_NAME macro, but an explicit minimal
	DllMain() that just saves the DLL handle.


svn path=/trunk/; revision=21381
2008-09-13 19:31:29 +00:00
Tor Lillqvist
b2dff511d3 gdk-pixbuf/gdk-pixbuf-io.c Do as the docs for
2008-09-13  Tor Lillqvist  <tml@novell.com>

	* gdk-pixbuf/gdk-pixbuf-io.c
	* gtk/gtkmain.c: Do as the docs for
	g_win32_get_package_installation_directory() say and pass NULL as
	the first parameter.


svn path=/trunk/; revision=21379
2008-09-13 09:19:03 +00:00
Matthias Clasen
ef5855feb1 Another small leak
svn path=/trunk/; revision=21316
2008-09-08 02:39:38 +00:00
Matthias Clasen
d8f4295267 Plug a small memory leak in an error path
svn path=/trunk/; revision=21313
2008-09-07 21:37:34 +00:00
Matthias Clasen
827b7e6f66 Bug 517233 – Calling gdk_pixbuf_loader_close causes "GError set over the
2008-09-06  Matthias Clasen  <mclasen@redhat.com>

        Bug 517233 – Calling gdk_pixbuf_loader_close causes "GError set over
        the top of a previous GError" warning

        * gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Don't overwrite
        errors. Reported by Andrey Tsyvarev


svn path=/trunk/; revision=21309
2008-09-07 05:19:29 +00:00
Sebastien Bacher
1e3251a26e bug 550969 - fix a typo which breaks the static build
2008-09-05  Sebastien Bacher  <seb128@ubuntu.com>

	* gdk-pixbuf-io.c: (gdk_pixbuf_load_module_unlocked):
	bug 550969 - fix a typo which breaks the static build

svn path=/trunk/; revision=21303
2008-09-05 20:52:40 +00:00
Matthias Clasen
21a153f172 2.14.1
svn path=/trunk/; revision=21296
2008-09-05 02:33:53 +00:00
Matthias Clasen
956f834939 Fix a deadlock in pixbuf loader initialization
svn path=/trunk/; revision=21295
2008-09-05 01:01:22 +00:00
Matthias Clasen
10b98d572c 2.14.0
svn path=/trunk/; revision=21290
2008-09-04 16:56:51 +00:00
Matthias Clasen
266e482286 Bug 549711 – Race condition when loading gdk-pixbuf image modules
2008-09-03  Matthias Clasen  <mclasen@redhat.com>

        Bug 549711 – Race condition when loading gdk-pixbuf image modules

        * gdk-pixbuf-io.c: Fix a race condition in module loading,
        spotted by Chris Lord.


svn path=/trunk/; revision=21268
2008-09-03 23:12:55 +00:00
Björn Lindqvist
0ba6028da4 Bug 437791 – Animation is played at the wrong speed
2008-08-29  Björn Lindqvist  <bjourne@gmail.com>

	Bug 437791 – Animation is played at the wrong speed

	* gdk-pixbuf/io-gif.c (gif_get_lzw): Better 100 ms timeout for
	broken GIFs with 0 frame timeout.

svn path=/trunk/; revision=21242
2008-08-29 22:21:32 +00:00
Matthias Clasen
e0d3046a7e Fix a typo
svn path=/trunk/; revision=21220
2008-08-28 03:49:25 +00:00
Matthias Clasen
783a4d99ed 2.13.7
svn path=/trunk/; revision=21151
2008-08-19 01:17:29 +00:00
Matthias Clasen
c10ff07d8c Exclude CR2 files in the tiff loader.
svn path=/trunk/; revision=21115
2008-08-14 05:32:58 +00:00
Michael Natterer
5c7030a1ba reorder marshalers for no reason apart from forcing a rebuild of the
2008-08-13  Michael Natterer  <mitch@imendio.com>

	* gdk-pixbuf-marshal.list: reorder marshalers for no reason apart
	from forcing a rebuild of the header after yesterday's Makefile.am
	change.


svn path=/trunk/; revision=21105
2008-08-13 08:26:39 +00:00