3322 Commits

Author SHA1 Message Date
Matthias Clasen
0175ecfd9a Bug 564210 – SUN Studio 12 has supported visibility attribute
* configure.in: Use visibility attribute for new enough sun cc.
        Patch by Chris Wang


svn path=/branches/glib-2-18/; revision=7785
2009-01-09 05:40:32 +00:00
Tor Lillqvist
b76458d893 Bug 566348 - g_file_open_tmp uses the wrong g_mkstemp on win32
2009-01-05  Tor Lillqvist  <tml@iki.fi>

	Bug 566348 - g_file_open_tmp uses the wrong g_mkstemp on win32

	* glib/gfileutils.c: Move the binary compatibility versions of
	g_file_test(), g_file_get_contents(), g_mkstemp() and
	g_file_open_tmp() last in the file. Remove the restriction that
	the XXXXXX is last in the template in the binary compatibility
	version of g_mkstemp(). Thanks to Morten Welinder and Jody
	Goldberg.


svn path=/branches/glib-2-18/; revision=7768
2009-01-05 09:54:36 +00:00
Matthias Clasen
a2e919f867 Fix the build
svn path=/branches/glib-2-18/; revision=7701
2008-11-28 19:15:55 +00:00
Matthias Clasen
60b8d04b57 Bug 559110 – Do not include libintl.h after glibintl.h
2008-11-28  Matthias Clasen  <mclasen@redhat.com>

        Bug 559110 – Do not include libintl.h after glibintl.h

        * glib/glibintl.h: Define bind_textdomain_codeset in the DISABLE_NLS
        branch. Patch by Peter Kjellerstedt.

        * glib/gutil.c: Don't include libintl.h directly.


svn path=/branches/glib-2-18/; revision=7689
2008-11-28 06:28:13 +00:00
Matthias Clasen
b242171ec3 Bug 562378 – callback return value not respected for callback option
2008-11-28  Matthias Clasen  <mclasen@redhat.com>

        Bug 562378 – callback return value not respected for callback option
        with no arg

        * glib/goption.c (parse_long_option): Return the parse_arg return
        value even for no-arg callbacks. Patch by Christian Persch

        * glib/tests/option-context.c: Add a test for a callback which
        returns FALSE.



svn path=/branches/glib-2-18/; revision=7685
2008-11-28 05:19:15 +00:00
Matthias Clasen
1596363fba Bump version
svn path=/branches/glib-2-18/; revision=7681
2008-11-24 07:31:27 +00:00
Matthias Clasen
96eb1ef8ab 2.18.3
svn path=/branches/glib-2-18/; revision=7679
2008-11-24 07:29:23 +00:00
Christian Persch
e6564be249 Bug 559413 – g_option_group_set_error_hook docs buglet
svn path=/branches/glib-2-18/; revision=7678
2008-11-23 21:17:35 +00:00
Christian Persch
962ed4f90c Bug 560568 – gkeyfile docs buglet
svn path=/branches/glib-2-18/; revision=7677
2008-11-23 21:17:31 +00:00
Christian Persch
adf8eed3cd Bug 560569 – gkeyfile doesn't use the set list_separator in some cases
svn path=/branches/glib-2-18/; revision=7676
2008-11-23 21:17:26 +00:00
Hans Breuer
6cf62991a6 updated
2008-11-23  Hans Breuer  <hans@breuer.org>

	* tests/makefile.msc : updated

	* glib/makefile.msc.in : filter out G_GNUC_FORMAT

svn path=/branches/glib-2-18/; revision=7671
2008-11-23 17:06:22 +00:00
Hans Breuer
a01a34112b unbroken
2008-11-23  Hans Breuer  <hans@breuer.org>

	* glib/pcre/makefile.msc : unbroken


svn path=/branches/glib-2-18/; revision=7669
2008-11-23 12:02:40 +00:00
Hans Breuer
76642c27a5 add -DG_DISABLE_DEPRECTAED; rule for localcharset.obj
2008-11-23  Hans Breuer  <hans@breuer.org>

	* glib/makefile.msc.in : add -DG_DISABLE_DEPRECTAED; rule for 
	localcharset.obj


svn path=/branches/glib-2-18/; revision=7668
2008-11-23 11:59:25 +00:00
Matthias Clasen
f86fde917d Updates
svn path=/branches/glib-2-18/; revision=7664
2008-11-21 06:12:53 +00:00
Matthias Clasen
52acb0af29 Updates
svn path=/branches/glib-2-18/; revision=7656
2008-11-15 00:13:17 +00:00
Matthias Clasen
c2dc7dd85e Small documentation fix.
svn path=/branches/glib-2-18/; revision=7652
2008-11-14 23:22:27 +00:00
Matthias Clasen
39705cc3e0 Bug 557210 – g_compute_checksum_for_* asserts with less than 2 bytes
* glib/gchecksum.c (g_compute_checksum_for_data): Accept
        lengths < 2. Patch by Tommi Komulainen


svn path=/branches/glib-2-18/; revision=7651
2008-11-14 23:20:49 +00:00
Grahame Bowland
4672b6f531 Bug 558185 – 'parent' variable in
2008-10-31  Grahame Bowland  <grahame@angrygoats.net>

	Bug 558185 – 'parent' variable in g_local_file_get_child_for_display_name() 
	hits g_object_unref(NULL) assertion

	* gio/glocalfile.c: 
	- remove unused variable. Patch by Matt Johnston <matt@ucc.asn.au>

svn path=/branches/glib-2-18/; revision=7635
2008-10-31 02:23:30 +00:00
Christian Persch
8098f0db68 Bug 557087 – mem leak in g_content_types_get_registered
svn path=/branches/glib-2-18/; revision=7617
2008-10-20 16:50:17 +00:00
Matthias Clasen
020c5d7e4b Bump version
svn path=/branches/glib-2-18/; revision=7610
2008-10-16 21:32:24 +00:00
Matthias Clasen
c1281a0375 2.18.2
svn path=/branches/glib-2-18/; revision=7608
2008-10-16 21:24:27 +00:00
Matthias Clasen
38d9412b51 Updates
svn path=/branches/glib-2-18/; revision=7605
2008-10-16 05:06:01 +00:00
Christian Persch
49ffecc6ba Bug 555314 – mem leak in gmarkup
svn path=/branches/glib-2-18/; revision=7581
2008-10-08 20:55:10 +00:00
Tor Lillqvist
48064c2032 Bug 554790 - g_convert() misbehaves with winiconv versions
2008-10-08  Tor Lillqvist  <tml@novell.com>

	Bug 554790 - g_convert() misbehaves with winiconv versions

	* glib/win_iconv.c (kernel_mbtowc): If converting from ASCII,
	explicitly check for and reject 8bit chars. MultiByteToWideChar()
	doesn't, at least not on XP.


svn path=/branches/glib-2-18/; revision=7577
2008-10-08 20:34:46 +00:00
Tor Lillqvist
3d6acd2e32 glib/gprintf.c Don't define _GNU_SOURCE on Windows, as _GNU_SOURCE has
2008-09-30  Tor Lillqvist  <tml@novell.com>

	* glib/gprintf.c
	* glib/gnulib/vasnprintf.c: Don't define _GNU_SOURCE on Windows,
	as _GNU_SOURCE has unintended side effects when compiling against
	newest mingw headers.


svn path=/branches/glib-2-18/; revision=7576
2008-10-08 20:27:52 +00:00
Matthias Clasen
8a5ae477f3 Bug 553857 – gbacktrace.h requires signal.h
2008-09-26  Matthias Clasen  <mclasen@redhat.com>

        Bug 553857 – gbacktrace.h requires signal.h

        * glib/gbacktrace.h: Include signal.h for raise().
        Pointed out by Sebastien Bacher


svn path=/branches/glib-2-18/; revision=7549
2008-09-26 14:35:19 +00:00
Matthias Clasen
88235e0721 Bug 553724 – python interpretter path not patched in correctly
2008-09-26  Matthias Clasen  <mclasen@redhat.com>

        Bug 553724 – python interpretter path not patched in correctly

        * glib/Makefile.am: Fix the sed magic to replace python.



svn path=/branches/glib-2-18/; revision=7547
2008-09-26 14:31:01 +00:00
Tor Lillqvist
908a403550 Fix embarrassing bug: I was passing an incorrect third parameter to
2008-09-23  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.c (poll_rest) [Win32]: Fix embarrassing bug: I was
	passing an incorrect third parameter to memmove(), had forgotten
	to multiply by the size of the table entry. Just use a for loop
	instead, clearer. Odd I didn't notice when testing this code.


svn path=/branches/glib-2-18/; revision=7534
2008-09-23 15:37:36 +00:00
Tor Lillqvist
515ebdeb51 Look for man pages in share/man.
2008-09-19  Tor Lillqvist  <tml@novell.com>

	* glib-zip.in: Look for man pages in share/man.


svn path=/branches/glib-2-18/; revision=7513
2008-09-19 10:42:44 +00:00
Matthias Clasen
d369843405 Bump version
svn path=/trunk/; revision=7507
2008-09-17 23:58:48 +00:00
Matthias Clasen
ac516ab07e 2.18.1
svn path=/trunk/; revision=7505
2008-09-17 23:56:04 +00:00
Matthias Clasen
042345d59e Updates
svn path=/trunk/; revision=7504
2008-09-17 22:52:48 +00:00
Tor Lillqvist
6af6a8dab0 time_t is 64 bits in all the newer Microsoft C libraries, not just 64-bit
2008-09-16  Tor Lillqvist  <tml@novell.com>

	* glib/gtimer.c (g_time_val_to_iso8601): time_t is 64 bits in all
	the newer Microsoft C libraries, not just 64-bit ones. So to avoid
	crash if compiled with newer MSVSes, use a separate time_t
	variable in all cases on Windows.


svn path=/trunk/; revision=7496
2008-09-15 22:52:12 +00:00
Tor Lillqvist
d4ad716a05 Define G_BREAKPOINT() also for 64-bit MSVC, using the __debugbreak()
2008-09-16  Tor Lillqvist  <tml@novell.com>

	* glib/gbacktrace.h: Define G_BREAKPOINT() also for 64-bit MSVC,
	using the __debugbreak() intrinsic.


svn path=/trunk/; revision=7495
2008-09-15 22:19:38 +00:00
Behdad Esfahbod
bf6222e785 Fix description of module shared library suffix.
2008-09-15  Behdad Esfahbod  <behdad@gnome.org>

        * configure.in: Fix description of module shared library suffix.


svn path=/trunk/; revision=7494
2008-09-15 18:59:25 +00:00
Tor Lillqvist
b006f4832f Update to match what the configure script produces. Just for uniformity,
2008-09-15  Tor Lillqvist  <tml@novell.com>

	* config.h.win32.in: Update to match what the configure script
	produces. Just for uniformity, only commented out parts affected.


svn path=/trunk/; revision=7489
2008-09-15 15:14:00 +00:00
Tor Lillqvist
e55fca9533 glib/gutils.h Deprecate G_WIN32_DLLMAIN_FOR_DLL_NAME(),
2008-09-13  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.h
	* glib/gwin32.h: Deprecate G_WIN32_DLLMAIN_FOR_DLL_NAME(),
	g_win32_get_package_installation_directory() and
	g_win32_get_package_installation_subdirectory() as their
	documentation has warned for a while. Sorry that I forgot to do
	this before 2.18.0.

	* glib/gwin32.c (g_win32_get_package_installation_directory):
	Print a warning if a non-NULL package parameter is passed to this
	function, as that is deprecated usage, as the documentation says.


svn path=/trunk/; revision=7480
2008-09-13 20:23:17 +00:00
Matthias Clasen
dc85674b57 Bug 548321 – <string.h> is not included in gi18n-lib.h
2008-09-11  Matthias Clasen  <mclasen@redhat.com>

        Bug 548321 – <string.h> is not included in gi18n-lib.h

        * glib/gi18n.h:
        * glib/gi18n-lib.h: Include string.h, since strlen is used in
        the macros. Pointed out by Ignacio Casal Quinteiro


svn path=/trunk/; revision=7455
2008-09-11 16:48:44 +00:00
Matthias Clasen
6848d2578d Documentation improvements
svn path=/trunk/; revision=7453
2008-09-11 04:21:17 +00:00
Matthias Clasen
8f85da0b5e Add required includes
svn path=/trunk/; revision=7452
2008-09-10 22:39:05 +00:00
Matthias Clasen
0b890c6298 Bug 551228 – G_STRFUNC on recent Sun compiler should be expanded to
2008-09-09  Matthias Clasen  <mclasen@redhat.com>

        Bug 551228 – G_STRFUNC on recent Sun compiler should be expanded to
        __func__ rather than '???'

        * glib/gmacros.h: Don't use glibconfig.h defines in gmacros.h,
        as the comment up top says. Instead look at __STDC_VERSION__.
        Problem reported by Lin Ma.


svn path=/trunk/; revision=7451
2008-09-10 03:21:42 +00:00
Matthias Clasen
b36ea0b1c7 Bug 523463 – Core dump in gmain.c:2482:IA__g_main_context_check()
2008-09-09  Matthias Clasen  <mclasen@redhat.com>

        Bug 523463 – Core dump in gmain.c:2482:IA__g_main_context_check()

        * glib/gmain.c (g_main_context_check): Be robust against setting
        event fields on the fly, as e.g. happens in linc. Tracked down
        by Paul Smith, fix proposed by Owen Taylor.

svn path=/trunk/; revision=7447
2008-09-09 06:04:21 +00:00
Christian Dywan
2201cae29a Bug 550433 – g_test_init doesn't recognize --help
* glib/gtestutils.c (parse_args): Add detailed --help output

svn path=/trunk/; revision=7442
2008-09-08 08:25:29 +00:00
Matthias Clasen
6905f5c524 Bump version
svn path=/trunk/; revision=7436
2008-09-02 20:20:04 +00:00
Matthias Clasen
e43de8e0e6 2.18.0
svn path=/trunk/; revision=7434
2008-09-02 20:09:55 +00:00
Ryan Lortie
920f3bffb3 Bug 549771 – improved .gitignore for glib
2007-09-02  Ryan Lortie  <desrt@desrt.ca>

        Bug 549771 – improved .gitignore for glib

        * docs/reference/.gitignore:
        * docs/reference/gio/.gitignore:
        * docs/reference/gobject/tmpl/.gitignore:
        * gio/.gitignore:
        * gio/tests/.gitignore:
        * glib/.gitignore:
        * glib/libcharset/.gitignore:
        * glib/tests/.gitignore:
        * gmodule/.gitignore:
        * gobject/.gitignore:
        * gobject/tests/.gitignore:
        * po/.gitignore:
        * tests/.gitignore: new files
        * .gitignore: remove 'build' (since it's part of glib now), add more
        useful things.


svn path=/trunk/; revision=7432
2008-09-02 18:40:39 +00:00
Matthias Clasen
8f5a2e0d31 Updates
svn path=/trunk/; revision=7431
2008-09-02 18:36:48 +00:00
Matthias Clasen
691c77e37d Bump version to 2.18.0
svn path=/trunk/; revision=7430
2008-09-02 17:47:54 +00:00
Matthias Clasen
11cc2e2aeb Fix up docs
svn path=/trunk/; revision=7424
2008-09-02 16:48:40 +00:00
Michael Natterer
ed2bbc43cc add g_return_if_fail (checksum != NULL)
2008-09-02  Michael Natterer  <mitch@imendio.com>

	* glib/gchecksum.c (g_checksum_reset): add
	g_return_if_fail (checksum != NULL)


svn path=/trunk/; revision=7423
2008-09-02 14:07:27 +00:00