Commit Graph

4498 Commits

Author SHA1 Message Date
Matthias Clasen
793da74d00 Move the compiler-dependency in the G_GNUC_INTERNAL definition from
2007-05-17  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Move the compiler-dependency in the G_GNUC_INTERNAL
        definition from configure-time to runtime (of the compiler).
        (#438869, Damien Carbery)

        * glib/gdebug.h:
        * glib/gmessages.h:
        * glib/gunicodeprivate.h:
        * glib/gthreadprivate.h: Move G_GNUC_INTERNAL before function
        declarations to fix compilation with sun studio.  (#438873,
        Damien Carbery)


svn path=/trunk/; revision=5497
2007-05-17 16:36:53 +00:00
Theppitak Karoonboonyanan
552ca1e23a Updated Thai translation.
* th.po: Updated Thai translation.


svn path=/trunk/; revision=5496
2007-05-17 10:23:07 +00:00
David Lodge
b812ce73ad Updated en_GB translation
svn path=/trunk/; revision=5494
2007-05-15 21:10:18 +00:00
Subhransu Behera
50dd8c4d06 Updated Translation
svn path=/trunk/; revision=5493
2007-05-15 09:04:36 +00:00
Matthias Clasen
a061009f52 Make g_slice_debug_tree_statistics() debug-only functionality again.
2007-05-14  Matthias Clasen  <mclasen@redhat.com>

        * glib/gslice.h:
        * glib/gslice.c:
        * glib/glib.symbols: Make g_slice_debug_tree_statistics()
        debug-only functionality again.


svn path=/trunk/; revision=5492
2007-05-15 03:32:29 +00:00
Christian Persch
15d995bc79 Improve g_strerror and g_strsignal docs. Bug #438293.
2007-05-14  Christian Persch  <chpe@gnome.org>

	* docs/reference/glib/tmpl/string_utils.sgml: Improve g_strerror and
	g_strsignal docs. Bug #438293.

svn path=/trunk/; revision=5491
2007-05-14 17:14:11 +00:00
Tor Lillqvist
20d47d6f9b Drop the pipe() macro. Defining macros outside of its namespace that look
2007-05-13  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.h: Drop the pipe() macro. Defining macros outside of
	its namespace that look like POSIX functions is not GLib's
	business in my opinion. This means pipe()-using code that has
	relied on this definition will need changing to call _pipe() on
	Windows, and make the decision itself on what size pipe buffer to
	use, and whether to use text or binary mode, and whether the pipe
	handles should be inheritable or not.

	* glib/gspawn-win32.c (make_pipe): Use _pipe() instead of pipe().


svn path=/trunk/; revision=5490
2007-05-13 20:46:59 +00:00
Yannig MARCHEGAY
441285045d Occitan translation update
svn path=/trunk/; revision=5489
2007-05-13 12:58:52 +00:00
Yannig MARCHEGAY
1f4c45c963 Occitan first translation
svn path=/trunk/; revision=5488
2007-05-13 12:53:51 +00:00
Matthias Clasen
8f88ba6ffa Allow G_OPTION_ARG_CALLBACK for G_OPTION_REMAINING. (#437297, Dave Benson)
2007-05-11  Matthias Clasen  <mclasen@redhat.com>

        * glib/goption.c: Allow G_OPTION_ARG_CALLBACK for
        G_OPTION_REMAINING.  (#437297, Dave Benson)

        * tests/option-test.c: Add a test for this.



svn path=/trunk/; revision=5487
2007-05-11 18:53:57 +00:00
Kjartan Maraas
ec11b71411 Updated Norwegian bokmål translation.
2007-05-06  Kjartan Maraas  <kmaraas@gnome.org>

	* nb.po: Updated Norwegian bokmål translation.

svn path=/trunk/; revision=5486
2007-05-06 18:04:10 +00:00
Ihar Hrachyshka
7b7d3014fa Updated Belarusian Latin translation.
svn path=/trunk/; revision=5485
2007-05-06 12:59:57 +00:00
Dan Winship
4b6a5ee2e0 Document the error return values rather than calling them undefined.
* glib/gkeyfile.c (g_key_file_get_boolean)
	(g_key_file_get_boolean_list, g_key_file_get_integer)
	(g_key_file_get_integer_list, g_key_file_get_double)
	(g_key_file_get_double_list): Document the error return values
	rather than calling them undefined. #435885.

svn path=/trunk/; revision=5484
2007-05-04 19:14:47 +00:00
Behdad Esfahbod
f2cfe19d15 Oops.
2007-05-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/glib.symbols:
        * glib/gunicode.h:
        * glib/guniprop.c (g_unichar_ismark):
        Add g_unichar_ismark(). Patch from Yevgen Muntyan. Fixes #339991.


svn path=/trunk/; revision=5483
2007-05-03 23:42:41 +00:00
Behdad Esfahbod
3ed6b66e8f svn path=/trunk/; revision=5482
2007-05-03  Behdad Esfahbod  <behdad@gnome.org>

        * configure.in:
        * glib/glib.symbols:
        * glib/gthread.h:
        * glib/gunicode.h:
        * glib/guniprop.c (g_unichar_ismark):


svn path=/trunk/; revision=5482
2007-05-03 23:42:05 +00:00
Jorge Gonzalez Gonzalez
e7d3db2209 Updated Spanish translation
svn path=/trunk/; revision=5481
2007-05-03 19:02:43 +00:00
Matthias Clasen
1650fd46c0 Bump version
svn path=/trunk/; revision=5480
2007-05-03 05:11:38 +00:00
Matthias Clasen
4d996274a3 2.13.1
svn path=/trunk/; revision=5478
2007-05-03 05:09:20 +00:00
Matthias Clasen
9d3c408fbe Stop unused threads before the last test, to make the test terminate
* tests/threadpool-test.c: Stop unused threads before
        the last test, to make the test terminate reliably.



svn path=/trunk/; revision=5477
2007-05-03 04:48:10 +00:00
Matthias Clasen
36917dbee3 Updates
svn path=/trunk/; revision=5476
2007-05-03 02:45:02 +00:00
Djihed Afifi
7735a605f1 Updated Arabic Translation by Djihed Afifi.
svn path=/trunk/; revision=5475
2007-05-02 15:46:41 +00:00
Marco Barisione
850ad7e494 Made more clear that the string passed to the match functions cannot be
2007-05-02  Marco Barisione <marco@barisione.org>

	* glib/gregex.c: Made more clear that the string passed to the match
	functions cannot be freed before using g_match_info_fetch() and
	similar functions, and fixed a typo.

svn path=/trunk/; revision=5474
2007-05-02 10:39:23 +00:00
Matthias Clasen
88651f758b Add g_regex_get_max_backref() and g_regex_get_capture_count(). (#419371,
2007-04-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/glib.symbols:
        * glib/gregex.[hc]: Add g_regex_get_max_backref() and
        g_regex_get_capture_count().  (#419371, Marco Barisione)


svn path=/trunk/; revision=5469
2007-04-30 16:37:38 +00:00
Matthias Clasen
a793051fda Split GRegex into GRegex and GMatchInfo. (#419368, Marco Barisione)
2007-04-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/glib.symbols:
        * glib/gregex.[hc]: Split GRegex into GRegex and GMatchInfo.
        (#419368, Marco Barisione)

        * tests/regex-test.c: Adapt.


svn path=/trunk/; revision=5468
2007-04-30 16:02:26 +00:00
Chris Wilson
3dd3293d87 Include the gshell.h header file (to define g_shell_[un]quote) and correct
2007-04-30  Chris Wilson  <chris@chris-wilson.co.uk>

    * glib/gbookmarkfile.c (g_bookmark_file_get_app_info):
    Include the gshell.h header file (to define g_shell_[un]quote)
    and correct the order of the arguments to g_propagate_error(), as
    spotted by gcc.


svn path=/trunk/; revision=5467
2007-04-30 11:30:47 +00:00
Emmanuele Bassi
788b109b39 Quote the passed command line...
2007-04-29  Emmanuele Bassi  <ebassi@gnome.org>

	* glib/gbookmarkfile.c:
	(g_bookmark_file_set_app_info): Quote the passed command line...
	
	(g_bookmark_file_get_app_info): ... and unquote it when giving it
	back. (#432274)

svn path=/trunk/; revision=5466
2007-04-29 11:48:40 +00:00
Matthias Clasen
94b419c3e0 small cleanup
svn path=/trunk/; revision=5465
2007-04-27 22:37:49 +00:00
Chris Wilson
7919d52cd6 Remove trailing comma at end of enumerator list.
2007-04-27  Chris Wilson  <chris@chris-wilson.co.uk>

    * glib/gregex.h: Remove trailing comma at end of enumerator list.


svn path=/trunk/; revision=5464
2007-04-27 17:43:01 +00:00
Tor Lillqvist
5153ea94b0 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=/trunk/; revision=5463
2007-04-26 23:24:06 +00:00
Paolo Borelli
b20bb4bb68 typo
svn path=/trunk/; revision=5461
2007-04-25 18:44:53 +00:00
Paolo Borellki
ab1a2d5d65 small cleanup. (#433387)
2007-04-25  Paolo Borellki  <pborelli@katamail.com>

	* glib/gstrfuncs.c (g_strsplit): small cleanup. (#433387)


svn path=/trunk/; revision=5460
2007-04-25 18:43:44 +00:00
Michael Natterer
a5aebabd2d also clear the NOCOPY_CONTENTS flag when replacing NULL with the empty
2007-04-25  Michael Natterer  <mitch@imendio.com>

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


svn path=/trunk/; revision=5458
2007-04-25 08:48:46 +00:00
Matthias Clasen
61fffe9624 Revert an accidental commit
svn path=/trunk/; revision=5457
2007-04-25 04:21:16 +00:00
Matthias Clasen
ba2dc0c2b2 New function to get the formatted help string. (#336089, Dom Lachowicz)
2007-04-24  Matthias Clasen  <mclasen@redhat.com>

        * glib/glib.symbols:
        * glib/goption.h:
        * glib/goption.c (g_option_context_get_help): New function to
        get the formatted help string.  (#336089, Dom Lachowicz)



svn path=/trunk/; revision=5456
2007-04-25 03:53:30 +00:00
Michael Natterer
325bd373d4 don't free or modify static strings, dup them when needed and clear the
2007-04-24  Michael Natterer  <mitch@imendio.com>

	* 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=/trunk/; revision=5454
2007-04-24 13:36:58 +00:00
William Jon McCann
fc161a7058 Add g_key_file_load_from_dirs for looking through a search path for a
2007-04-19  William Jon McCann  <mccann@jhu.edu>

	* glib/gkeyfile.[ch]: (find_file_in_data_dirs),
	(g_key_file_load_from_dirs), (g_key_file_load_from_data_dirs):
	Add g_key_file_load_from_dirs for looking through a search
	path for a key-file. (#355334)


svn path=/trunk/; revision=5453
2007-04-19 20:48:22 +00:00
Tor Lillqvist
420262f515 Makefile.am Add the references to build back.
2007-04-15  Tor Lillqvist  <tml@novell.com>

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


svn path=/trunk/; revision=5451
2007-04-15 11:44:41 +00:00
Tor Lillqvist
a227b85b73 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.


svn path=/trunk/; revision=5450
2007-04-15 11:30:43 +00:00
Funda Wang
af84ef6a41 Updated Simplified Chinese translation from Yang Zhang.
svn path=/trunk/; revision=5449
2007-04-15 09:42:59 +00:00
Matthias Clasen
613d81bcce Fix a doc typo. (#427285, Jochen Baier)
2007-04-11  Matthias Clasen  <mclasen@redhat.com>

        * glib/gspawn.c (g_spawn_async): Fix a doc typo.  (#427285,
        Jochen Baier)



svn path=/trunk/; revision=5446
2007-04-11 13:54:45 +00:00
Emmanuele Bassi
3b6c740849 Add new hash functions.
2007-04-11  Emmanuele Bassi  <ebassi@gnome.org>

	* glib/glib-sections.txt: Add new hash functions.

svn path=/trunk/; revision=5445
2007-04-11 13:09:55 +00:00
Emmanuele Bassi
db8642a56c Add g_hash_table_get_keys() and g_hash_table_get_values(), API to retrieve
2007-04-11  Emmanuele Bassi  <ebassi@gnome.org>

	* glib/ghash.[ch]: Add g_hash_table_get_keys() and
	g_hash_table_get_values(), API to retrieve the keys
	and values inside an hash table in list form. (#413133)

	* glib/glib.symbols: Update symbols.

	* tests/hash-test.c: Exercise newly added functions.

svn path=/trunk/; revision=5444
2007-04-11 13:09:38 +00:00
Matthias Clasen
e542f521ef Use CFLAGS/LDFLAGS in addition to PCRE_CFLAGS/PCRE_LIBS when checking
2007-04-11  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Use CFLAGS/LDFLAGS in addition to
        PCRE_CFLAGS/PCRE_LIBS when checking system PCRE.  (#421607,
        Paul Jarc)



svn path=/trunk/; revision=5443
2007-04-11 12:39:05 +00:00
Ryan Lortie
dac885cba5 invoke GObjectClass.constructed() only for newly constructed objects, and
Tue Apr  3 12:34:14 2007  Tim Janik  <timj@gtk.org>

        * gobject.[hc]: invoke GObjectClass.constructed() only for newly
        constructed objects, and invoke it while the notify queue is
        still being frozen, after all CONSTRUCT* properties have been
        set and before random other properties are being set.

        * applied modified patch from Ryan Lortie to implement
        GObjectClass.constructed() to fix #425324.

2007-04-02  Ryan Lortie  <desrt@desrt.ca>

        * gobject/gobject.h: Add 'constructed' vcall to GObjectClass.
        * gobject/gobject.c (g_object_newv): call ->constructed() as last
        step of object construction.



svn path=/trunk/; revision=5441
2007-04-03 10:44:30 +00:00
Ryan Lortie
e3562e543a Document ->constructed().
2007-04-02  Ryan Lortie  <desrt@desrt.ca>

        * gobject/tmpl/objects.sgml: Document ->constructed().



svn path=/trunk/; revision=5440
2007-04-03 10:44:14 +00:00
Emmanuele Bassi
9591e90b0a Remove old comment and forward declaration of struct tm: gdate.h includes
2007-03-27  Emmanuele Bassi  <ebassi@gnome.org>

	* glib/gdate.h: Remove old comment and forward declaration of
	struct tm: gdate.h includes time.h now.

svn path=/trunk/; revision=5438
2007-03-27 15:16:18 +00:00
Matthias Clasen
ab74710386 Handle missing $RANDOM
svn path=/trunk/; revision=5435
2007-03-23 06:27:58 +00:00
Matthias Clasen
7296a34571 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=/trunk/; revision=5433
2007-03-23 00:17:10 +00:00
Chris Wilson
033e54e8a4 Track whether the last key=value pair in a group is a blank line and
2007-03-22  Chris Wilson  <chris@chris-wilson.co.uk>

	* 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=/trunk/; revision=5431
2007-03-22 08:58:59 +00:00
Matthias Clasen
50abe4cb2e Fix #419900
svn path=/trunk/; revision=5430
2007-03-21 16:49:35 +00:00