Commit Graph

4259 Commits

Author SHA1 Message Date
Matthias Clasen
38b9221961 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=/trunk/; revision=5254
2007-01-12 20:25:57 +00:00
Matthias Clasen
edf06d642d fix stupid thinko
svn path=/trunk/; revision=5252
2007-01-12 19:23:27 +00:00
Matthias Clasen
8187230ab4 Improve docs
svn path=/trunk/; revision=5251
2007-01-12 17:54:13 +00:00
Matthias Clasen
6ac483bae4 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=/trunk/; revision=5249
2007-01-12 17:31:31 +00:00
Matthias Clasen
ef73c1c05f fix the build
svn path=/trunk/; revision=5247
2007-01-12 15:54:00 +00:00
Matthias Clasen
247997afed 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=/trunk/; revision=5245
2007-01-12 15:17:00 +00:00
Matthias Clasen
2c7dbe9c73 Fix errors in the recently moved time calculations. (#395203, Chris
2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * gthread/gthread-posix.c:
        * glib/gtimer.c:
        * glib/gthread.c: Fix errors in the recently moved
        time calculations.  (#395203, Chris Wilson)



svn path=/trunk/; revision=5244
2007-01-12 05:55:16 +00:00
Matthias Clasen
a0c1c3b14e Actually link gthread against librt. (#394641, Marco Pesenti Gritti)
2007-01-10  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Actually link gthread against librt.
        (#394641, Marco Pesenti Gritti)



svn path=/trunk/; revision=5241
2007-01-10 13:52:04 +00:00
Matthias Clasen
b021642caf Grr, allow '*' in keys, too. (#394262)
2007-01-10  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_is_key_name): Grr, allow '*' in keys,
        too.  (#394262)



svn path=/trunk/; revision=5239
2007-01-10 13:46:45 +00:00
Alexander Shopov
1c6da5c724 Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>
2007-01-10  Alexander Shopov  <ash@contact.bg>

        * bg.po: Updated Bulgarian translation by
        Alexander Shopov <ash@contact.bg>

svn path=/trunk/; revision=5237
2007-01-09 23:10:19 +00:00
Alexander Shopov
e2573e6f86 Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>
2007-01-10  Alexander Shopov  <ash@contact.bg>

        * bg.po: Updated Bulgarian translation by
        Alexander Shopov <ash@contact.bg>

svn path=/trunk/; revision=5235
2007-01-09 22:57:16 +00:00
Behdad Esfahbod
6b6fd9bac8 Use a more optimized g_bit_storage() when gcc is available. (#371670,
2007-01-09  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gutils.h: Use a more optimized g_bit_storage() when gcc is
        available.  (#371670, Daniel Elstner)


svn path=/trunk/; revision=5234
2007-01-09 19:05:36 +00:00
David Lodge
4e4967a305 Updated English (British) translation
svn path=/trunk/; revision=5233
2007-01-09 07:19:05 +00:00
Matthias Clasen
cf7dcc4f38 Don't use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is defined.
2007-01-08  Matthias Clasen  <mclasen@redhat.com>

        * gthread/gthread-posix.c (g_thread_impl_init): Don't
        use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is
        defined.  (#394150)



svn path=/trunk/; revision=5230
2007-01-08 12:59:05 +00:00
Luca Ferretti
06f1459ff2 Updated Italian translation.
2007-01-08  Luca Ferretti  <elle.uca@libero.it>

	* it.po: Updated Italian translation.


svn path=/trunk/; revision=5229
2007-01-08 11:19:37 +00:00
Matthias Clasen
541462ab1e Don't link glib against libpthread. (#393812)
2007-01-07  Matthias Clasen  <mclasen@redhat.com>

	Don't link glib against libpthread.  (#393812)
	
	* configure.in: Link gthread against librt, not glib itself.

	* glib/gthread.h:
	* glib/gthread.c: Add a new thread function, gettime.

	* glib/gtimer.c: Use gettime instead of directly working with
	the various system interfaces.

	* gthread/gthread-impl.c:
	* gthread/gthread-posix.c:
	* gthread/gthread-win32.c: Implement gettime.
	

svn path=/trunk/; revision=5227
2007-01-08 05:13:15 +00:00
Matthias Clasen
8a688f12f0 Use PKG_PROG_PKG_CONFIG. (#392636, Yevgen Muntyan)
2007-01-07  Matthias Clasen  <mclasen@redhat.com>

        * m4macros/glib-2.0.m4: Use PKG_PROG_PKG_CONFIG.  (#392636,
        Yevgen Muntyan)



svn path=/trunk/; revision=5225
2007-01-08 04:42:31 +00:00
Priit Laes
bb551b0cd9 Estonian translation update by Ivar Smolin.
2007-01-07  Priit Laes  <plaes@svn.gnome.org>
	* et.po: Estonian translation update by Ivar Smolin.

svn path=/trunk/; revision=5223
2007-01-07 10:02:36 +00:00
Tor Lillqvist
e5ef75596e Handle GIOChannels for file descriptors connected to the console
2007-01-07  Tor Lillqvist  <tml@novell.com>

	* glib/giowin32.c: Handle GIOChannels for file descriptors
	connected to the console separately. This would typically be the
	fd 0, 1, or 2 (if not redirected) in a console application. For
	such fds we don't need a separate thread, as console HANDLEs are
	waitable objects. (#359202, Michiel de Hoon)


svn path=/trunk/; revision=5222
2007-01-07 03:02:28 +00:00
Jakub Friedl
0def1ee468 Updated Czech translation.
2007-01-05  Jakub Friedl  <jfriedl@suse.cz>

  * cs.po: Updated Czech translation.


svn path=/trunk/; revision=5219
2007-01-05 12:35:32 +00:00
Yair Hershkovitz
9a042b241b updated hebrew translaion
svn path=/trunk/; revision=5218
2007-01-05 11:09:07 +00:00
Behdad Esfahbod
46dae95f4a Fix tests on x86_64.
2007-01-04  Behdad Esfahbod  <behdad@gnome.org>

        * tests/bit-test.c (builtin_bit_nth_lsf1), (builtin_bit_nth_lsf2),
        (builtin_bit_nth_msf): Fix tests on x86_64.


svn path=/trunk/; revision=5216
2007-01-05 03:31:54 +00:00
Hendrik Richter
c7006f9ec5 Updated German translation.
2007-01-04  Hendrik Richter  <hendrikr@gnome.org>

	* de.po: Updated German translation.

svn path=/trunk/; revision=5212
2007-01-04 14:32:26 +00:00
Hendrik Richter
981749d443 Updated German translation.
2007-01-04  Hendrik Richter  <hendrikr@gnome.org>

	* de.po: Updated German translation.

svn path=/trunk/; revision=5210
2007-01-04 14:17:33 +00:00
Behdad Esfahbod
61b40ad765 Add bug number to ChangeLog
svn path=/trunk/; revision=5207
2007-01-03 23:17:52 +00:00
Behdad Esfahbod
9eeb9297d5 Remove unneeded strlen.
svn path=/trunk/; revision=5205
2007-01-03 23:09:12 +00:00
Behdad Esfahbod
d2a9b31e61 Take zerowidth and double-width chars into consideration when computing
2007-01-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/goption.c (_g_unichar_get_width), (_g_utf8_strwidth),
        (calculate_max_length), (print_entry), (print_help): Take zerowidth
        and double-width chars into consideration when computing width of a
        string.  Also fix another bug in width computation.

        * glib/guniprop.c (g_unichar_iszerowidth): Fix typo.  It was not
        working correctly.


svn path=/trunk/; revision=5204
2007-01-03 23:05:36 +00:00
Behdad Esfahbod
a0c60a62d6 Add g_unichar_iszerowidth(). (#347645)
2007-01-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/glib.symbols:
        * glib/gunicode.h:
        * glib/guniprop.c: Add g_unichar_iszerowidth(). (#347645)


svn path=/trunk/; revision=5202
2007-01-03 20:48:24 +00:00
Behdad Esfahbod
048efdfbd5 Fix bug in g_bit_nth_lsf (#371631) and use __builtin_clzl for
2007-01-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gutils.h: Fix bug in g_bit_nth_lsf (#371631) and use 
        __builtin_clzl for g_bit_storage if available (#371670).

        * tests/Makefile.am:
        * tests/bit-test.c: New test, to test g_bit_* operations against
        naive and builtin implementations.


svn path=/trunk/; revision=5200
2007-01-03 20:08:53 +00:00
Behdad Esfahbod
bf1b1d2711 Avoid more warnings from running libtool --config. (#391364)
2007-01-02  Behdad Esfahbod  <behdad@gnome.org>

        * configure.in: Avoid more warnings from running libtool --config.
        (#391364)


svn path=/trunk/; revision=5199
2007-01-03 18:32:04 +00:00
Michael Natterer
feb07512f0 removed all .cvsignore files. SVN doesn't need them.
2007-01-03  Michael Natterer  <mitch@imendio.com>

	* removed all .cvsignore files. SVN doesn't need them.


svn path=/trunk/; revision=5198
2007-01-03 11:22:36 +00:00
Emmanuele Bassi
029d43222f Add support for expanding the desktop entry spec variables %U (list of
2007-01-02  Emmanuele Bassi  <ebassi@gnome.org>

	* glib/gbookmarkfile.c (expand_exec_line): Add support for
	expanding the desktop entry spec variables %U (list of URIs)
	and %F (list of filenames), so that using the command line
	from the Exec and TryExec key of a desktop entry file works
	as intended.

svn path=/trunk/; revision=5196
2007-01-02 16:20:48 +00:00
Matthias Clasen
7eab26d13b Avoid warnings from running libtool --config. (#391364, Loïc Minier)
2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Avoid warnings from running libtool --config.
        (#391364, Loïc Minier)



svn path=/trunk/; revision=5194
2007-01-02 13:58:54 +00:00
Matthias Clasen
01c3535fe6 Return an error if the uri is bad. (#391370, Maciej Piechotka)
2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbookmarkfile.c (g_bookmark_file_get_app_info):
        Return an error if the uri is bad. (#391370, Maciej Piechotka)



svn path=/trunk/; revision=5192
2007-01-02 13:53:15 +00:00
Matthias Clasen
db9c08d08b Guard g_slice_debug_tree_statistics by G_ENABLE_DEBUG. (#390940, Kazuki
2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        * glib/glib.symbols: Guard g_slice_debug_tree_statistics
        by G_ENABLE_DEBUG.  (#390940, Kazuki Iwamoto)



svn path=/trunk/; revision=5190
2007-01-02 13:09:03 +00:00
Michael Natterer
99b531f425 configure.in remove references to build/ until a proper decision has been
2007-01-02  Michael Natterer  <mitch@imendio.com>

	* configure.in
	* Makefile.am: remove references to build/ until a proper decision
	has been made what to do with it.


svn path=/trunk/; revision=5189
2007-01-02 10:40:27 +00:00
Matthias Clasen
4dd6d0fd22 Silence autoconf warnings about datarootdir. (#391367, Loïc Minier)
2007-01-01  Matthias Clasen  <mclasen@redhat.com>

        * glib-gettextize.in: Silence autoconf warnings about
        datarootdir.  (#391367, Loïc Minier)



svn path=/trunk/; revision=5186
2007-01-02 05:26:14 +00:00
Tor Lillqvist
5ff1e1d80b Handle "/dev/stdin" by dup()ing fd 0 so that it works on Win32, too.
2007-01-02  Tor Lillqvist  <tml@novell.com>

	* glib-genmarshal.c (main): Handle "/dev/stdin" by dup()ing fd 0
	so that it works on Win32, too.


svn path=/trunk/; revision=5185
2007-01-01 22:31:18 +00:00
Matthias Clasen
470152f268 Fix whitespace
svn path=/trunk/; revision=5184
2006-12-31 16:33:32 +00:00
Matthias Clasen
e319147a9e Fix some C99isms. (#390913, Kazuki Iwamoto)
2006-12-31  Matthias Clasen  <mclasen@redhat.com>

        * glib/gslice.c: Fix some C99isms.  (#390913, Kazuki Iwamoto)



svn path=/trunk/; revision=5183
2006-12-31 16:27:45 +00:00
Matthias Clasen
2c79668714 fix include order
svn path=/trunk/; revision=5182
2006-12-31 15:53:44 +00:00
Tim Janik
0f9cf7898b turned detection of too late g_thread_init() calls into a warning. this is
Fri Dec 29 13:28:07 2006  Tim Janik  <timj@imendio.com>

        * glib/gslice.c: turned detection of too late g_thread_init() calls
        into a warning. this is a temporary work-around for some head-room
        to fix affected programs, memory corruption still occours regardless.
2006-12-29 12:29:55 +00:00
Matthias Clasen
d7b7c44e40 Define G_DEFINE_DYNAMIC_TYPE and and _EXTENDED variant. (#334437)
2006-12-29 Matthias Clasen  <mclasen@redhat.com>

        * gtypemodule.h: Define G_DEFINE_DYNAMIC_TYPE and
        and _EXTENDED variant.  (#334437)
2006-12-29 06:12:11 +00:00
Matthias Clasen
b1e4310d6f Clarify a detail about g_object_set_data_full. (#343750, Christian
2006-12-28  Matthias Clasen  <mclasen@redhat.com>

        * gobject/tmpl/objects.sgml: Clarify a detail about
        g_object_set_data_full.  (#343750, Christian Neumair)
2006-12-29 05:10:50 +00:00
Tim Janik
5fef9365d8 removed pthread-dependant debugging bits, the code was already converted
Thu Dec 28 21:14:45 2006  Tim Janik  <timj@imendio.com>

        * glib/gslice.c: removed pthread-dependant debugging bits, the code
        was already converted to GMutex. this obsoletes Tor's recent fixups.
2006-12-28 20:15:35 +00:00
David Lodge
070208fb80 Updated English (British) translation
2006-12-28  David Lodge <dave@cirt.net>

	* en_GB.po: Updated English (British) translation
2006-12-28 17:59:12 +00:00
Tor Lillqvist
b5e5d38ce7 Call InitializeCriticalSection() on the sdt_mutex in
2006-12-28  Tor Lillqvist  <tml@novell.com>

	* glib/gslice.c: Call InitializeCriticalSection() on the
	sdt_mutex in g_slice_init_nomessage() and not in
	_g_slice_thread_init_nomessage(), which is called only through
	g_thread_init(). Not all programs call g_thread_init().
2006-12-28 17:55:06 +00:00
Tor Lillqvist
98d5dea18a : Use only the wide character API here, too.
2006-12-28  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (get_windows_directory_root): : Use only the wide
	character API here, too.
2006-12-28 15:47:42 +00:00
Tor Lillqvist
a45be29beb Use only the wide character API here, too.
2006-12-28  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.h (G_WIN32_DLLMAIN_FOR_DLL_NAME): Use only the wide
	character API here, too.
2006-12-28 15:41:28 +00:00
Tor Lillqvist
b713fbc11a Make it compile on Win32 without pthreads: Use a Win32 critical section
2006-12-28  Tor Lillqvist  <tml@novell.com>

	* glib/gslice.c: Make it compile on Win32 without pthreads: Use a
	Win32 critical section instead.
2006-12-28 15:39:47 +00:00