2526 Commits

Author SHA1 Message Date
Sebastian Wilhelmi
25d49e43cc Extended the comments on those functions, that are NOOPs, before
2007-06-15  Sebastian Wilhelmi  <wilhelmi@google.com>

	* docs/reference/glib/tmpl/threads.sgml: Extended the comments on
	those functions, that are NOOPs, before g_thread_init() has been
	called. (#447583)

	* glib/gthread.c (g_static_mutex_free): Clarified comment to
	remind myself, tha calling g_static_mutex_free() before
	g_thread_init() is safe.


svn path=/branches/glib-2-12/; revision=5568
2007-06-15 17:19:01 +00:00
Cody Russell
528be68c00 Merge from trunk:
2007-06-15  Cody Russell  <cody@jhu.edu>

	Merge from trunk:

	* gobject/gtype.c (g_type_class_add_private): Check for 0-sized
	private data. (#443869)


svn path=/branches/glib-2-12/; revision=5562
2007-06-15 06:33:14 +00:00
Tor Lillqvist
5acfdc7ca2 Update doc comments. Mention that it is not recommeded to use the Registry
2007-06-11  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.c (g_win32_get_package_installation_directory)
	(g_win32_get_package_installation_subdirectory): Update doc
	comments. Mention that it is not recommeded to use the Registry
	features.


svn path=/branches/glib-2-12/; revision=5548
2007-06-11 08:02:03 +00:00
Behdad Esfahbod
7cbbe5657a Update to Markus Kuhn's updated wcwidth for Unicode 5.0.
2007-05-25  Behdad Esfahbod  <behdad@gnome.org>

        * glib/guniprop.c (g_unichar_iswide), (g_unichar_iswide_cjk):
        Update to Markus Kuhn's updated wcwidth for Unicode 5.0.


svn path=/branches/glib-2-12/; revision=5516
2007-05-25 17:21:46 +00:00
Matthias Clasen
aef78e7a3b fix a merge accident
svn path=/branches/glib-2-12/; revision=5495
2007-05-16 12:29:34 +00:00
Matthias Clasen
9be12a023f Bump version
svn path=/branches/glib-2-12/; revision=5473
2007-05-01 23:49:07 +00:00
Matthias Clasen
0fc2f65aff 2.12.12
svn path=/branches/glib-2-12/; revision=5471
2007-05-01 23:46:30 +00:00
Matthias Clasen
790c3de422 Updates
svn path=/branches/glib-2-12/; revision=5470
2007-05-01 23:14:27 +00:00
Tor Lillqvist
c459ff8aa5 Document that the mode argument is ignored on Windows (g_stat): Document
2007-04-27  Tor Lillqvist  <tml@novell.com>

	* glib/gstdio.c (g_mkdir): Document that the mode argument is
	ignored on Windows
	(g_stat): Document that st_mode is mostly useless on Windows.


svn path=/branches/glib-2-12/; revision=5462
2007-04-26 23:22:14 +00:00
Michael Natterer
7c5686caba Merge from trunk:
2007-04-25  Michael Natterer  <mitch@imendio.com>

	Merge from trunk:

	* gparamspecs.c (param_string_validate): also clear the
	NOCOPY_CONTENTS flag when replacing NULL with the empty string.


svn path=/branches/glib-2-12/; revision=5459
2007-04-25 08:57:34 +00:00
Michael Natterer
0c2ffdd3c5 Merge from trunk:
2007-04-24  Michael Natterer  <mitch@imendio.com>

	Merge from trunk:

	* gobject/gparamspecs.c (param_string_validate): don't free or
	modify static strings, dup them when needed and clear the
	G_VALUE_NOCOPY_CONTENTS flag. Fixes bug #432895.

	* tests/gobject/paramspec-test.c: test all GParamSpecString
	validations with static and allocated strings.


svn path=/branches/glib-2-12/; revision=5455
2007-04-24 13:47:14 +00:00
Tor Lillqvist
efcb8a67c3 Include the build module using the svn:externals mechanism.
2007-04-15  Tor Lillqvist  <tml@novell.com>

	* build: Include the build module using the svn:externals
	mechanism.

	* Makefile.am
	* configure: Add the references to build back.


svn path=/branches/glib-2-12/; revision=5452
2007-04-15 12:10:31 +00:00
Matthias Clasen
e259ce948e Handle missing %RANDOM
svn path=/branches/glib-2-12/; revision=5436
2007-03-23 06:29:40 +00:00
Matthias Clasen
6ef011e5f7 Fix corner-cases of upper/lowercase conversion. (#418217, Denis Jacquerye)
2007-03-22  Matthias Clasen  <mclasen@redhat.com> 

        * glib/guniprop.c: Fix corner-cases of upper/lowercase conversion.
        (#418217, Denis Jacquerye)



svn path=/branches/glib-2-12/; revision=5434
2007-03-23 00:18:36 +00:00
Chris Wilson
e5454d95a6 Merge from trunk:
2007-03-22  Chris Wilson  <chris@chris-wilson.co.uk>

	Merge from trunk:

	* glib/gkeyfile.c: Track whether the last key=value pair in a group
	is a blank line and during to_data() only insert a new blank line
	betweens group in its absence. This allows the beautification of the
	GKeyFile and prevents newlines being inserted indefinitely. (#420686)

	* tests/keyfile-test.c (test_reload_idempotency): Test that after a 
	single beautification pass, g_key_file_to_data() does not alter its
	input data.


svn path=/branches/glib-2-12/; revision=5432
2007-03-22 09:11:27 +00:00
Matthias Clasen
d62b406c38 Warn if the input is too short. (#418862, Halton Huo)
2007-03-16  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbase64.c (g_base64_decode): Warn if the input
        is too short.  (#418862, Halton Huo)



svn path=/branches/glib-2-12/; revision=5418
2007-03-16 19:54:33 +00:00
Matthias Clasen
ee42914f9d 2.12.11
svn path=/branches/glib-2-12/; revision=5392
2007-03-09 04:41:21 +00:00
Matthias Clasen
438143ad94 Return negative values. (#416062)
2007-03-08  Matthias Clasen  <mclasen@redhat.com>

        * glib/gstrfuncs.c (g_strtoll): Return negative values.
        (#416062)

        * tests/strtoll-test.c: Add more testcases.



svn path=/branches/glib-2-12/; revision=5391
2007-03-09 03:43:30 +00:00
Matthias Clasen
39996df303 Remove leftover debug spew
svn path=/branches/glib-2-12/; revision=5389
2007-03-09 03:05:10 +00:00
Matthias Clasen
8cca639917 Bump version
svn path=/branches/glib-2-12/; revision=5386
2007-03-07 18:48:06 +00:00
Matthias Clasen
5d69810c49 2.12.10
svn path=/branches/glib-2-12/; revision=5384
2007-03-07 18:43:05 +00:00
Matthias Clasen
ba5e74dfee Updates
svn path=/branches/glib-2-12/; revision=5382
2007-03-07 04:43:47 +00:00
Matthias Clasen
dbec2bd1f6 Report more accurate position for invalid UTF-8. (#350802, Simon Budig)
2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmarkup.c (g_markup_parse_context_parse): Report
        more accurate position for invalid UTF-8.  (#350802,
        Simon Budig)



svn path=/branches/glib-2-12/; revision=5374
2007-03-06 07:14:10 +00:00
Matthias Clasen
1929e66919 Add NULL checks to the base64 functions that take pointers. (#399611,
2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbase64.c: Add NULL checks to the base64
        functions that take pointers.  (#399611, Martyn Russell)


svn path=/branches/glib-2-12/; revision=5372
2007-03-06 05:38:14 +00:00
Matthias Clasen
1fe808ccc0 Work with Solaris gettext (#341988, Laszlo Peter)
2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        Work with Solaris gettext (#341988, Laszlo Peter)

        * m4macros/glib-gettext.m4: Make GLIB_WITH_NLS define
        MSGFMT_OPTS if msgfmt supports -c.

        * po/Makefile.in.in: Use MSGFMT_OPTS when calling
        msgfmt.


svn path=/branches/glib-2-12/; revision=5370
2007-03-06 05:25:25 +00:00
Matthias Clasen
4f79c0b387 Apply a patch by Loïc Minier to fix building with -Wl,-z,defs. (#149144)
2007-03-06  Matthias Clasen  <mclasen@Redhat.com>

        * tests/Makefile.am: Apply a patch by Loïc Minier
        to fix building with -Wl,-z,defs.  (#149144)


svn path=/branches/glib-2-12/; revision=5368
2007-03-06 05:05:14 +00:00
Ihar Hrachyshka
b90c49f8d3 Added Belarusian Latin translation by Ales Navicki
svn path=/branches/glib-2-12/; revision=5356
2007-03-03 19:16:48 +00:00
Tor Lillqvist
6e15aa0535 New Win32-only function. Use the wide character Win32 API to do the work
2007-02-17  Tor Lillqvist  <tml@novell.com>

	* glib/gdate.c (win32_strftime_helper): New Win32-only
	function. Use the wide character Win32 API to do the work of
	strftime(): GetThreadLocale(), GetLocaleInfoW(), GetDateFormatW()
	and GetTimeFormatW().
	(g_date_strftime): On NT-based Windows use win32_strftime_helper()
	instead of strftime() to avoid codepage issues with strftime().
	Unfortunately using wcsftime() would not help either. (#404832)


svn path=/branches/glib-2-12/; revision=5338
2007-02-17 08:34:39 +00:00
Roozbeh Pournader
a9e685a49e Remove mention of no-longer-existing PATCH keyword in bugzilla. (#396899)
2007-01-24  Roozbeh Pournader  <roozbeh@farsiweb.info>

	* README: Remove mention of no-longer-existing PATCH
	keyword in bugzilla. (#396899)

svn path=/branches/glib-2-12/; revision=5314
2007-01-24 13:18:03 +00:00
Matthias Clasen
e174f461c6 Clarify the behaviour is max_len is zero. (#400044, Benjamin Dauvergne)
2007-01-23  Matthias Clasen  <mclasen@redhat.com>

        * glib/gutf8.c (g_utf8_get_char_validated): Clarify
        the behaviour is max_len is zero.  (#400044,
        Benjamin Dauvergne)


svn path=/branches/glib-2-12/; revision=5312
2007-01-24 04:43:23 +00:00
Matthias Clasen
072704a568 i2007-01-23 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (print_help): Use bitwise &
        when operating on flags.  (#399971, Jon Oberheide)



svn path=/branches/glib-2-12/; revision=5309
2007-01-24 04:09:02 +00:00
Matthias Clasen
5894841e70 Some file list updates (#398069, Owen Taylor)
2007-01-19  Matthias Clasen  <mclasen@redhat.com>

        Some file list updates (#398069, Owen Taylor)

        * docs/Changes-2.0.txt
        * docs/reference/README.cvs-commits
        * glib.spec.in: Remove obsolete files

        * tests/Makefile.am:
        * glib/libcharset/Makefile.am:
        * gobject/Makefile.am:
        * Makefile.am: Add some missing files to EXTRA_DIST

        * tests/timeloop-basic.c: Make it build
        * HACKING: Small updates



svn path=/branches/glib-2-12/; revision=5303
2007-01-19 15:53:07 +00:00
Matthias Clasen
653bb55d8f Fix a typo. (#398203, Owen Taylor)
2007-01-18  Matthias Clasen  <mclasen@redhat.com>

        * glib/gdate.c (g_date_set_time): Fix a typo.  (#398203,
        Owen Taylor)



svn path=/branches/glib-2-12/; revision=5298
2007-01-19 04:16:48 +00:00
Tor Lillqvist
761a1869ce config.h.win32.in glib/galloca.h glib/gbacktrace.h glib/gwin32.c
2007-01-17  Tor Lillqvist  <tml@novell.com>

	* config.h.win32.in
	* glib/galloca.h
	* glib/gbacktrace.h
	* glib/gwin32.c
	* glibconfig.h.win32.in
	* README.win32: More minor tweaks for Digital Mars
	compiler. (#346808, Serhat Sevki Dincer)


svn path=/branches/glib-2-12/; revision=5293
2007-01-18 19:04:08 +00:00
Tor Lillqvist
1fca3b7545 makefile.mingw Remove from SVN. (#398069)
2007-01-17  Tor Lillqvist  <tml@novell.com>

	* makefile.mingw
	* */makefile.mingw.in: Remove from SVN. (#398069)


svn path=/branches/glib-2-12/; revision=5292
2007-01-18 18:54:38 +00:00
Tor Lillqvist
f0de0fd9f4 DLLs are always installed in "bin" with current libtool, drop unnecessary
2007-01-17  Tor Lillqvist  <tml@novell.com>

	* glib-zip.in: DLLs are always installed in "bin" with current
	libtool, drop unnecessary logic to check where they are. Include
	also the COPYING file.


svn path=/branches/glib-2-12/; revision=5288
2007-01-17 13:31:09 +00:00
Tor Lillqvist
40e8bbb1b0 Use <malloc.h> also with Digital Mars compiler on Win32. (#346808, Serhat
2007-01-17  Tor Lillqvist  <tml@novell.com>

	* glib/galloca.h: Use <malloc.h> also with Digital Mars compiler
	on Win32. (#346808, Serhat Sevki Dincer)


svn path=/branches/glib-2-12/; revision=5286
2007-01-17 02:29:11 +00:00
Matthias Clasen
d841a9cc99 Bump version
svn path=/branches/glib-2-12/; revision=5284
2007-01-17 00:02:57 +00:00
Matthias Clasen
669f113cac 2.12.9
svn path=/branches/glib-2-12/; revision=5282
2007-01-16 23:55:51 +00:00
Matthias Clasen
c0a0e2f4eb Updates
svn path=/branches/glib-2-12/; revision=5281
2007-01-16 23:44:49 +00:00
Matthias Clasen
281d14029d Revert an accidental ABI break by moving gettime out of the
2007-01-16  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.h:
        * glib/gthread.c:
        * glib/glib.symbols: Revert an accidental ABI break by
        moving gettime out of the GThreadFunctions struct and making
        it a separate variable.  (#397139, Joe Marcus Clarke)

        * gthread/*.c: Adapt.



svn path=/branches/glib-2-12/; revision=5280
2007-01-16 21:27:49 +00:00
Tor Lillqvist
4c49bbeec1 glib/gthread.c (gettime) GetSystemTimeAsFileTime() returns 100s of
2007-01-16  Tor Lillqvist  <tml@novell.com>

	* glib/gthread.c (gettime)
	* gthread/gthread-win32.c (g_gettime_win32_impl):
	GetSystemTimeAsFileTime() returns 100s of nanoseconds since 1601,
	so offset to Unix epoch (1970) and multiply by 100 to get
	nanoseconds which is what we want.


svn path=/branches/glib-2-12/; revision=5278
2007-01-16 14:00:37 +00:00
Tor Lillqvist
10f16a7bdb glib/gthread.c (gettime) GetSystemTimeAsFileTime() returns 100s of
2007-01-16  Tor Lillqvist  <tml@novell.com>

	* glib/gthread.c (gettime)
	* gthread/gthread-win32.c (g_gettime_win32_impl):
	GetSystemTimeAsFileTime() returns 100s of nanoseconds, so multiply
	by 100 to get nanoseconds which is what we want.


svn path=/branches/glib-2-12/; revision=5273
2007-01-16 10:34:59 +00:00
Matthias Clasen
20c95ec82e Bump version
svn path=/branches/glib-2-12/; revision=5269
2007-01-15 04:46:47 +00:00
Matthias Clasen
ab1e585b56 2.12.8
svn path=/branches/glib-2-12/; revision=5267
2007-01-15 04:42:42 +00:00
Matthias Clasen
73a581c8ba Correct the gettime calculations once more. (#395203, Chris Wilson)
2005-01-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.c:
        * gthread/gthread-posix.c: Correct the gettime calculations
        once more.  (#395203, Chris Wilson)



svn path=/branches/glib-2-12/; revision=5263
2007-01-15 03:36:08 +00:00
Tor Lillqvist
b7899ae84a Simplify greatly. Instead of hardcoding a large switch statement, just ask
2007-01-15  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.c (g_win32_getlocale): Simplify greatly. Instead of
	hardcoding a large switch statement, just ask Windows for the
	ISO639 and ISO3166 codes. Tack on @Latn or @Cyrl for those
	languages which can alternatively be written in Latin or
	Cyrillic. Fixes #395419.


svn path=/branches/glib-2-12/; revision=5259
2007-01-15 02:15:12 +00:00
Matthias Clasen
0eeeed2800 Rework the handling of invalid keys/groups again. We are back to being
2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c: Rework the handling of invalid
        keys/groups again. We are back to being liberal about
        what we accept, and only reject things that would lead
        to non-rereadable keyfiles.

        * tests/keyfile-test.c: Adapt tests.



svn path=/branches/glib-2-12/; revision=5255
2007-01-12 20:55:47 +00:00
Matthias Clasen
f6d2369fd0 Include windows.h and fix include order. (#394258, Kazuki Iwamoto)
2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.c: Include windows.h and fix
        include order. (#394258, Kazuki Iwamoto)



svn path=/branches/glib-2-12/; revision=5250
2007-01-12 17:33:25 +00:00
Matthias Clasen
270190b698 Make G_GNUC_INTERNAL a no-op for gcc 2.95. (#329031, David Schleef, Marc
2007-01-12  Matthias Clasen  <mclasen@redhat.com>
          
        * configure.in: Make G_GNUC_INTERNAL a no-op for
        gcc 2.95.    (#329031, David Schleef, Marc Brockschmidt)
 

svn path=/branches/glib-2-12/; revision=5246
2007-01-12 15:32:38 +00:00