platform/upstream/glib.git
15 years agoBug 550040 - Move GString, rand and printf tests to the unit test
Paolo Borelli [Mon, 1 Sep 2008 09:31:40 +0000 (09:31 +0000)]
Bug 550040 - Move GString, rand and printf tests to the unit test

2008-09-01  Paolo Borelli  <pborelli@katamail.com>

Bug 550040 - Move GString, rand and printf tests to the unit test
framework

* tests/printf-test.c:
* tests/rand-test.c:
* tests/string-test.c:
Removed

* glib/tests/printf.c:
* glib/tests/rand.c:
* glib/tests/string.c:
Added

* tests/Makefile.am:
* glib/tests/Makefile.am:
Updated for the above

svn path=/trunk/; revision=7419

15 years agoBug 550096 – GBookmarkFile parser is not forward compatible
Emmanuele Bassi [Sun, 31 Aug 2008 19:53:21 +0000 (19:53 +0000)]
Bug 550096 – GBookmarkFile parser is not forward compatible

2008-08-31  Emmanuele Bassi  <ebassi@gnome.org>

Bug 550096 – GBookmarkFile parser is not forward compatible

* glib/gbookmarkfile.c:
(parse_bookmark_element), (parse_application_element),
(parse_mime_type_element), (parse_icon_element): Relax the
attributes checking of the GBookmarkFile parser for the
attributes that the desktop bookmark file specification
defines and controls. This allows adding new attributes to
the existing elements in newer versions without breaking the
parser in older ones.

svn path=/trunk/; revision=7418

15 years agoUpdated Basque translation.
Inaki Larranaga Murgoitio [Sat, 30 Aug 2008 10:43:33 +0000 (10:43 +0000)]
Updated Basque translation.

2008-08-30  Inaki Larranaga Murgoitio  <dooteo@euskalgnu.org>

* eu.po: Updated Basque translation.

svn path=/trunk/; revision=7416

15 years agoFixup for test case in previous commit.
Ryan Lortie [Fri, 29 Aug 2008 06:02:47 +0000 (06:02 +0000)]
Fixup for test case in previous commit.

2008-08-28  Ryan Lortie  <desrt@desrt.ca>

        Fixup for test case in previous commit.

        * glib/tests/strfuncs.c: don't fail if we can't open the test data.
        This happens if $(builddir) != $(srcdir) (like when doing 'make
        distcheck').  Quick workaround for now until #549783 can be fixed.

svn path=/trunk/; revision=7415

15 years ago[REVERT] Bug 548612 – g_strstr_len() should use memmem when available
Ryan Lortie [Thu, 28 Aug 2008 23:03:24 +0000 (23:03 +0000)]
[REVERT] Bug 548612 – g_strstr_len() should use memmem when available

2008-08-28  Ryan Lortie  <desrt@desrt.ca>

        [REVERT] Bug 548612 – g_strstr_len() should use memmem when available

        * glib/gstrfuncs.c (g_strstr_len): fix off-by-one memory access error
        * glib/tests/strfuncs.c (test_bounds): add some new test cases that
        would catch problems like this
        * glib/tests/4096-random-bytes: test data for the previous
        * glib/tests/Makefile.am: add previous to EXTRA_DIST

svn path=/trunk/; revision=7414

15 years ago[REVERT] Bug 548612 – g_strstr_len() should use memmem when available
Ryan Lortie [Thu, 28 Aug 2008 22:55:36 +0000 (22:55 +0000)]
[REVERT] Bug 548612 – g_strstr_len() should use memmem when available

2008-08-28  Ryan Lortie  <desrt@desrt.ca>

        [REVERT] Bug 548612 – g_strstr_len() should use memmem when available

        * configure.in:
        * glib/gstrfuncs.c (g_strstr_len): revert use of memmem (see bug)

svn path=/trunk/; revision=7413

15 years agoFix selinux linking
Matthias Clasen [Thu, 28 Aug 2008 19:45:58 +0000 (19:45 +0000)]
Fix selinux linking

svn path=/trunk/; revision=7412

15 years agoTranslation updated.
Gabor Kelemen [Thu, 28 Aug 2008 18:31:45 +0000 (18:31 +0000)]
Translation updated.

2008-08-28  Gabor Kelemen  <kelemeng@gnome.hu>

* hu.po: Translation updated.

svn path=/trunk/; revision=7411

15 years agomake "endptr" const since it's always a pointer into the const string
Michael Natterer [Thu, 28 Aug 2008 14:47:56 +0000 (14:47 +0000)]
make "endptr" const since it's always a pointer into the const string

2008-08-28  Michael Natterer  <mitch@imendio.com>

* glib/gstrfuncs.c (g_parse_long_long): make "endptr" const since
it's always a pointer into the const string passed. Remove some
casting to (gchar*) in this function.

(g_ascii_strtoull)
(g_ascii_strtoll): cast "endptr" to (const gchar**) here when
passing it to above function.

svn path=/trunk/; revision=7410

15 years agoBug 548612 – g_strstr_len() should use memmem when available
Bastien Nocera [Thu, 28 Aug 2008 12:53:59 +0000 (12:53 +0000)]
Bug 548612 – g_strstr_len() should use memmem when available

2008-08-28  Bastien Nocera  <hadess@hadess.net>

Bug 548612 – g_strstr_len() should use memmem when available

* glib/tests/strfuncs.c (test_strstr):
* tests/string-test.c (main): Patch by Paolo Borelli
<pborelli@katamail.com> to move the tests to the right place,
and add more tests

* glib/gstrfuncs.c (g_strstr_len): Fix problem with memmem ignoring
nul-terminators in strings, and using the haystack_len instead

svn path=/trunk/; revision=7409

15 years agoUpdated German translation.
Hendrik Richter [Thu, 28 Aug 2008 04:58:40 +0000 (04:58 +0000)]
Updated German translation.

2008-08-28  Hendrik Richter  <hendrikr@gnome.org>

* de.po: Updated German translation.

svn path=/trunk/; revision=7408

15 years agoBug 548612 – g_strstr_len() should use memmem when available
Bastien Nocera [Wed, 27 Aug 2008 23:23:23 +0000 (23:23 +0000)]
Bug 548612 – g_strstr_len() should use memmem when available

2008-08-28  Bastien Nocera  <hadess@hadess.net>

Bug 548612 – g_strstr_len() should use memmem when available

* configure.in: detect whether memmem is available in the C library
* glib/gstrfuncs.c (g_strstr_len): use memmem for g_strstr_len() if
available in it's available, as it could be optimised by the C library
* tests/string-test.c (main): Add a few tests for g_strstr_len()

svn path=/trunk/; revision=7407

15 years agosmall addition
Matthias Clasen [Wed, 27 Aug 2008 20:13:58 +0000 (20:13 +0000)]
small addition

svn path=/trunk/; revision=7406

15 years agoStylistic changes. Plug an unlikely memory leak that occurred in
Tor Lillqvist [Wed, 27 Aug 2008 16:49:17 +0000 (16:49 +0000)]
Stylistic changes. Plug an unlikely memory leak that occurred in

2008-08-27  Tor Lillqvist  <tml@novell.com>

* glib/giowin32.c: Stylistic changes. Plug an unlikely memory leak
that occurred in create_thread() if closing the thread handle
failed. Add more error messages to g_io_win32_free() that are
printed only when debugging. Plug handle leak, a socket channel's
event was never closed.

svn path=/trunk/; revision=7405

15 years agoAdd "win32" directory level to the references to the dependencies folder
Tor Lillqvist [Wed, 27 Aug 2008 13:20:28 +0000 (13:20 +0000)]
Add "win32" directory level to the references to the dependencies folder

2008-08-27  Tor Lillqvist  <tml@novell.com>

* win32/vs8/*.vcproj: Add "win32" directory level to the
references to the dependencies folder (which each actual user of
the project file probably needs to edit anyway depending on their
directory structure). Add missing files, remove nonexistent files.

svn path=/trunk/; revision=7404

15 years agoShould not define HAVE_DIRENT_H when compiling with MSVC, as the only file
Tor Lillqvist [Wed, 27 Aug 2008 12:48:57 +0000 (12:48 +0000)]
Should not define HAVE_DIRENT_H when compiling with MSVC, as the only file

2008-08-27  Tor Lillqvist  <tml@novell.com>

* config.h.win32.in: Should not define HAVE_DIRENT_H when
compiling with MSVC, as the only file which checks HAVE_DIRENT_H
is gdir.c, and that includes the dirent.h and wdirent.c from
build/win32/dirent explicitly anyway when being compiled with
MSVC.

svn path=/trunk/; revision=7403

15 years agoHandle also G_GNUC_FORMAT in the custom build step for glib.symbols.
Tor Lillqvist [Wed, 27 Aug 2008 12:44:34 +0000 (12:44 +0000)]
Handle also G_GNUC_FORMAT in the custom build step for glib.symbols.

2008-08-27  Tor Lillqvist  <tml@novell.com>

* win32/vs8/glib.vcproj: Handle also G_GNUC_FORMAT in the
custom build step for glib.symbols.

svn path=/trunk/; revision=7402

15 years agoDon't needlessly copy localcharset.c, but compile it where it is in
Tor Lillqvist [Wed, 27 Aug 2008 12:38:42 +0000 (12:38 +0000)]
Don't needlessly copy localcharset.c, but compile it where it is in

2008-08-27  Tor Lillqvist  <tml@novell.com>

* win32/vs8/glib.vcproj: Don't needlessly copy localcharset.c, but
compile it where it is in libcharset. Add "win32" directory level
to the references to the dependencies folder (which each actual
user of the project file probably needs to edit anyway depending
on their directory structure). Drop the nonexistent gi18n.c
file. Drop dirent as gdir.c includes dirent.h and wdirent.c
directly.

svn path=/trunk/; revision=7401

15 years agoadded by Rajesh Ranjan for Maithili
Rajesh Ranjan [Wed, 27 Aug 2008 08:43:58 +0000 (08:43 +0000)]
added by Rajesh Ranjan for Maithili

svn path=/trunk/; revision=7400

15 years agoUpdated Czech translation.
Petr Kovar [Tue, 26 Aug 2008 23:26:09 +0000 (23:26 +0000)]
Updated Czech translation.

2008-08-27  Petr Kovar  <pknbe@volny.cz>

* cs.po: Updated Czech translation.

svn path=/trunk/; revision=7399

15 years agoUpdated Arabic Translation by Khaled Hosny.
Djihed Afifi [Tue, 26 Aug 2008 14:16:48 +0000 (14:16 +0000)]
Updated Arabic Translation by Khaled Hosny.

* Updated Arabic Translation by Khaled Hosny.

svn path=/trunk/; revision=7398

15 years agosv.po: Updated Swedish translation
Daniel Nylander [Mon, 25 Aug 2008 18:48:25 +0000 (18:48 +0000)]
sv.po: Updated Swedish translation

svn path=/trunk/; revision=7397

15 years agoConversion from sr@Latn to sr@latin
Goran Rakic [Mon, 25 Aug 2008 14:52:09 +0000 (14:52 +0000)]
Conversion from sr@Latn to sr@latin

svn path=/trunk/; revision=7396

15 years agoUpdated Lithuanian translation.
Gintautas Miliauskas [Mon, 25 Aug 2008 00:36:26 +0000 (00:36 +0000)]
Updated Lithuanian translation.

2008-08-24  Gintautas Miliauskas  <gintas@akl.lt>

* lt.po: Updated Lithuanian translation.

svn path=/trunk/; revision=7395

15 years agoUpdated Lithuanian translation.
Gintautas Miliauskas [Mon, 25 Aug 2008 00:30:24 +0000 (00:30 +0000)]
Updated Lithuanian translation.

2008-08-24  Gintautas Miliauskas  <gintas@akl.lt>

* lt.po: Updated Lithuanian translation.

svn path=/trunk/; revision=7394

15 years agoUpdate Ukrainian translation.
Maxim Dziumanenko [Sun, 24 Aug 2008 04:35:39 +0000 (04:35 +0000)]
Update Ukrainian translation.

2008-08-24 Maxim Dziumanenko <dziumanenko@gmail.com>

* Update Ukrainian translation.

svn path=/trunk/; revision=7393

15 years agoTranslation updated by Ivar Smolin
Priit Laes [Sat, 23 Aug 2008 12:10:35 +0000 (12:10 +0000)]
Translation updated by Ivar Smolin

2008-08-23  Priit Laes  <plaes at svn dot gnome dot org>

* et.po: Translation updated by Ivar Smolin

svn path=/trunk/; revision=7392

15 years agoUpdated Thai translation.
Theppitak Karoonboonyanan [Sat, 23 Aug 2008 11:00:13 +0000 (11:00 +0000)]
Updated Thai translation.

2008-08-23  Theppitak Karoonboonyanan  <thep@linux.thai.net>

* th.po: Updated Thai translation.

svn path=/trunk/; revision=7391

15 years agoUpdated Japanese translation.
Takeshi AIHANA [Sat, 23 Aug 2008 04:53:19 +0000 (04:53 +0000)]
Updated Japanese translation.

2008-08-23  Takeshi AIHANA <takeshi.aihana@gmail.com>

        * ja.po: Updated Japanese translation.

svn path=/trunk/; revision=7390

15 years agoClarification.
Tor Lillqvist [Sat, 23 Aug 2008 01:10:03 +0000 (01:10 +0000)]
Clarification.

svn path=/trunk/; revision=7389

15 years agoBug 548988 - g_file_replace fails on Windows when the target file exists
Tor Lillqvist [Sat, 23 Aug 2008 01:09:08 +0000 (01:09 +0000)]
Bug 548988 - g_file_replace fails on Windows when the target file exists

2008-08-23  Tor Lillqvist  <tml@novell.com>

Bug 548988 - g_file_replace fails on Windows when the target file
exists already

* glocalfileoutputstream.c (g_local_file_output_stream_close): On
Windows, close the file before renaming it (in case we have been
writing to a file with a temporary name).

(g_local_file_output_stream_close, handle_overwrite_open): Use
GLocalFileStat instead of plain struct stat, for passing to
_g_local_file_info_create_etag(). Thus also use _fstati64()
instead of plain fstat() on Windows.

svn path=/trunk/; revision=7388

15 years agoBug 523939 – Example program for GValue
Björn Lindqvist [Fri, 22 Aug 2008 18:23:05 +0000 (18:23 +0000)]
Bug 523939 – Example program for GValue

2008-08-22  Björn Lindqvist  <bjourne@gmail.com>

Bug 523939 – Example program for GValue

* gobject/gvalue.c: Add code example that demonstrates GValue's
features.

svn path=/trunk/; revision=7387

15 years agoUpdated Vietnamese translation
Nguyễn Thái Ngọc Duy [Fri, 22 Aug 2008 04:54:48 +0000 (04:54 +0000)]
Updated Vietnamese translation

2008-08-22  Nguyễn Thái Ngọc Duy <pclouds@gmail.com>

* vi.po: Updated Vietnamese translation

svn path=/trunk/; revision=7386

15 years agoDrop #if 0 code.
Tor Lillqvist [Thu, 21 Aug 2008 13:42:35 +0000 (13:42 +0000)]
Drop #if 0 code.

2008-08-21  Tor Lillqvist  <tml@novell.com>

* glib/giowin32.c: Drop #if 0 code.

svn path=/trunk/; revision=7385

15 years agoDon't bother compiling the binary compatibility
Tor Lillqvist [Thu, 21 Aug 2008 11:47:04 +0000 (11:47 +0000)]
Don't bother compiling the binary compatibility

2008-08-21  Tor Lillqvist  <tml@novell.com>

* glib/giowin32.c: Don't bother compiling the binary
compatibility g_io_channel_win32_new_stream_socket()
function that has not been mentioned in any header since 2.0 on
Win64.

* glib/glib.symbols: Mark it, too, private, and don't export it on
Win64.

svn path=/trunk/; revision=7384

15 years agoImprove run-time warning messages. Drop some #if 0 code.
Tor Lillqvist [Thu, 21 Aug 2008 11:35:51 +0000 (11:35 +0000)]
Improve run-time warning messages. Drop some #if 0 code.

2008-08-21  Tor Lillqvist  <tml@novell.com>

* glib/giowin32.c: Improve run-time warning messages. Drop
some #if 0 code.

svn path=/trunk/; revision=7383

15 years agoMinor comment improvements.
Tor Lillqvist [Thu, 21 Aug 2008 11:24:00 +0000 (11:24 +0000)]
Minor comment improvements.

2008-08-21  Tor Lillqvist  <tml@novell.com>

* glib/giowin32.c: Minor comment improvements.

svn path=/trunk/; revision=7382

15 years agoUpdated French translation
Robert-André Mauchin [Thu, 21 Aug 2008 11:16:14 +0000 (11:16 +0000)]
Updated French translation

svn path=/trunk/; revision=7381

15 years agoImprove last entry
Tor Lillqvist [Thu, 21 Aug 2008 10:29:36 +0000 (10:29 +0000)]
Improve last entry

svn path=/trunk/; revision=7380

15 years agoRevert fix for 548689
Johan Dahlin [Thu, 21 Aug 2008 09:45:07 +0000 (09:45 +0000)]
Revert fix for 548689

svn path=/trunk/; revision=7379

15 years agoMark g_object_get_type function as const, it's a fundamental type and can
Johan Dahlin [Thu, 21 Aug 2008 09:42:44 +0000 (09:42 +0000)]
Mark g_object_get_type function as const, it's a fundamental type and can

2008-08-21  Johan Dahlin  <johan@gnome.org>

    * gobject.h:
    Mark g_object_get_type function as const, it's
    a fundamental type and can safely marked as const,
    as opposed to traditionally *_get_type functions.

svn path=/trunk/; revision=7378

15 years agoBug 548800 – Missing a g_object_get_type function
Johan Dahlin [Thu, 21 Aug 2008 09:18:25 +0000 (09:18 +0000)]
Bug 548800 – Missing a g_object_get_type function

2008-08-21  Johan Dahlin  <johan@gnome.org>

    Bug 548800 – Missing a g_object_get_type function

    * gobject.c (g_object_get_type):
    * gobject.h:
    * gobject.symbols:
    Add g_object_get_type

svn path=/trunk/; revision=7377

15 years agoReverse the order, pointed out by Mitch 'hawkeye' Natter
Johan Dahlin [Thu, 21 Aug 2008 09:09:43 +0000 (09:09 +0000)]
Reverse the order, pointed out by Mitch 'hawkeye' Natter

svn path=/trunk/; revision=7376

15 years agoRework the g_poll() implementation on Windows to match poll() semantics
Tor Lillqvist [Thu, 21 Aug 2008 02:27:13 +0000 (02:27 +0000)]
Rework the g_poll() implementation on Windows to match poll() semantics

2008-08-21  Tor Lillqvist  <tml@novell.com>

* glib/gmain.c: Rework the g_poll() implementation on Windows to
match poll() semantics more closely. This makes the test program
in bug #468910 behave better and doesn't seem to break anything
else.

If polling several GPollFDs, i.e. messages and/or waitable
handles, first check if one or several of them are in the
signalled state right away, and return indication for all that are
in that case.

If not, then poll with timeout and indicate only the single one
that the Win32 wait function tells us as before.

Remove unnecessary ifdefs, as we always have G_MAIN_POLL_DEBUG
defined on Windows.

Initialise g_main_poll_debug in g_main_context_new() so we have it
before testing it in one case.

Don't add several copies of a handle in the array of handles to
wait for. The documentation says this is not allowed, although it
did seem to work fine in practise. But do as the documentations
says anyway.

svn path=/trunk/; revision=7375

15 years agoBug 548689 – The type name for GParamSpec is wrong
Johan Dahlin [Wed, 20 Aug 2008 15:51:53 +0000 (15:51 +0000)]
Bug 548689 – The type name for GParamSpec is wrong

2008-08-20  Johan Dahlin  <johan@gnome.org>

    Bug 548689 – The type name for GParamSpec is wrong

    * gparam.c (g_param_type_init):
    Register the type name as GParam instead of GParamSpec.

svn path=/trunk/; revision=7374

15 years agoBug 500246 - Bug fixes for giowin32
Tor Lillqvist [Wed, 20 Aug 2008 01:30:31 +0000 (01:30 +0000)]
Bug 500246 - Bug fixes for giowin32

2008-08-20  Tor Lillqvist  <tml@novell.com>

Bug 500246 - Bug fixes for giowin32

* glib/giowin32.c (read_thread) (write_thread): Change the nbytes
variables to signed.
(g_io_channel_win32_make_pollfd): Fix an obvious error in the file
descriptor case leftover after the patch from bug #333098 on
2006-03-02. Thanks to Marcus Brinkmann.

svn path=/trunk/; revision=7373

15 years agoBug 324234 - Using g_io_add_watch_full() to wait for connect() to return
Tor Lillqvist [Tue, 19 Aug 2008 23:48:16 +0000 (23:48 +0000)]
Bug 324234 - Using g_io_add_watch_full() to wait for connect() to return

2008-08-20  Tor Lillqvist  <tml@novell.com>

Bug 324234 - Using g_io_add_watch_full() to wait for connect() to
return on a non-blocking socket returns prematurely

Bug 548278 - Async GETs connections are always terminated
unexpectedly on Windows

* glib/giowin32.c: Add one more state variable to the
GIOWin32Channel struct, ever_writable. Initialise it to FALSE, set
to TRUE when the WSAEventSelect() indicates FD_WRITE, and never
reset to FALSE.

Don't do the WSASetEvent() in g_io_win32_prepare() unless
ever_writable is TRUE. Don't automatically indicate G_IO_OUT in
g_io_win32_check() unless ever_writable is TRUE.

This fixes the behaviour of the test case program in bug #548278,
and the "Testcase for the spurious OUT event bug" in bug
#324234. It also doesn't seem to break anything. Not that there is
any exhaustive test suite...

Add a comment with a list of bugs that are related to the code in
this file.

svn path=/trunk/; revision=7372

15 years agoUpdated Italian translation.
Luca Ferretti [Tue, 19 Aug 2008 01:13:34 +0000 (01:13 +0000)]
Updated Italian translation.

2008-08-19  Luca Ferretti  <elle.uca@libero.it>

* it.po: Updated Italian translation.

svn path=/trunk/; revision=7371

15 years agoupdated hebrew translation
Yair Hershkovitz [Mon, 18 Aug 2008 14:42:06 +0000 (14:42 +0000)]
updated hebrew translation

svn path=/trunk/; revision=7370

15 years agoBump version
Matthias Clasen [Mon, 18 Aug 2008 13:21:56 +0000 (13:21 +0000)]
Bump version

svn path=/trunk/; revision=7369

15 years ago2.17.7 GLIB_2_17_7
Matthias Clasen [Mon, 18 Aug 2008 13:17:39 +0000 (13:17 +0000)]
2.17.7

svn path=/trunk/; revision=7367

15 years agoUpdated Translation
Laurent Dhima [Mon, 18 Aug 2008 08:27:47 +0000 (08:27 +0000)]
Updated Translation

svn path=/trunk/; revision=7366

15 years agomention GWinHttpVfs.
Sven Neumann [Sun, 17 Aug 2008 10:39:59 +0000 (10:39 +0000)]
mention GWinHttpVfs.

2008-08-17  Sven Neumann  <sven@gimp.org>

* NEWS: mention GWinHttpVfs.

svn path=/trunk/; revision=7365

15 years ago Bug 460920 – build fix for --disable-threads
Matthias Clasen [Sun, 17 Aug 2008 01:36:16 +0000 (01:36 +0000)]
    Bug 460920 – build fix for --disable-threads

        * gthread-impl.c: Implement g_thread_init_with_errorcheck_mutexes
        in the !G_THREAD_ENABLED case. Pointed out by Jan Nieuwenhuizen

svn path=/trunk/; revision=7364

15 years agoFix a typo
Matthias Clasen [Sat, 16 Aug 2008 04:16:48 +0000 (04:16 +0000)]
Fix a typo

svn path=/trunk/; revision=7363

15 years agoUpdates
Matthias Clasen [Sat, 16 Aug 2008 04:01:57 +0000 (04:01 +0000)]
Updates

svn path=/trunk/; revision=7362

15 years agoAdd an exception: g_mem_set_vtable() may be called before g_thread_init().
Tor Lillqvist [Fri, 15 Aug 2008 13:15:22 +0000 (13:15 +0000)]
Add an exception: g_mem_set_vtable() may be called before g_thread_init().

2008-08-15  Tor Lillqvist  <tml@novell.com>

* glib/tmpl/threads.sgml: Add an exception: g_mem_set_vtable() may
be called before g_thread_init().

svn path=/trunk/; revision=7361

15 years agoAdd missing file. Update.
Kjartan Maraas [Fri, 15 Aug 2008 11:16:55 +0000 (11:16 +0000)]
Add missing file. Update.

2008-08-15  Kjartan Maraas  <kmaraas@gnome.org>

* POTFILES.in: Add missing file.
* nb.po: Update.

svn path=/trunk/; revision=7360

15 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Fri, 15 Aug 2008 11:02:09 +0000 (11:02 +0000)]
Updated Norwegian bokmål translation.

2008-08-15  Kjartan Maraas  <kmaraas@gnome.org>

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

svn path=/trunk/; revision=7359

15 years agochanged assertion messages, so older emacsen can also detect failing
12:41:26 Tim Janik [Fri, 15 Aug 2008 10:44:57 +0000 (10:44 +0000)]
changed assertion messages, so older emacsen can also detect failing

2008-08-15 12:41:26  Tim Janik  <timj@imendio.com>

* glib/gtestutils.c: changed assertion messages, so older emacsen
can also detect failing source file and line, fixes:
Bug 502498 – Test framework assertion failures should follow gcc error format

svn path=/trunk/; revision=7358

15 years agoAdd zfs to ignore_fs array in guess_system_internal: Fix for #542156.
Padraig O'Briain [Fri, 15 Aug 2008 08:27:55 +0000 (08:27 +0000)]
Add zfs to ignore_fs array in guess_system_internal: Fix for #542156.

2008-08-15  Padraig O'Briain  <padraig.obriain@sun.com>

* gunixmounts.c: Add zfs to ignore_fs array in guess_system_internal:
Fix for #542156.

svn path=/trunk/; revision=7357

15 years agoAccept lesser mmaps
Matthias Clasen [Fri, 15 Aug 2008 03:41:14 +0000 (03:41 +0000)]
Accept lesser mmaps

svn path=/trunk/; revision=7356

15 years agoWarn about the consequences of not calling g_thread_init() first, if it
Tor Lillqvist [Thu, 14 Aug 2008 21:46:56 +0000 (21:46 +0000)]
Warn about the consequences of not calling g_thread_init() first, if it

2008-08-15  Tor Lillqvist  <tml@novell.com>

* glib/tmpl/threads.sgml: Warn about the consequences of not
calling g_thread_init() first, if it will be called at all. Advice
calling it if using random GLib-based libraries.

svn path=/trunk/; revision=7355

15 years agoUpdated Finnish translation
Ilkka Tuohela [Thu, 14 Aug 2008 12:41:10 +0000 (12:41 +0000)]
Updated Finnish translation

svn path=/trunk/; revision=7354

15 years agoBug 547337 – G_DISABLE_DEPRECATED breaks tests build
Matthias Clasen [Thu, 14 Aug 2008 03:05:17 +0000 (03:05 +0000)]
Bug 547337 – G_DISABLE_DEPRECATED breaks tests build

2008-08-13  Matthias Clasen  <mclasen@redhat.com>

        Bug 547337 – G_DISABLE_DEPRECATED breaks tests build

        * tests/testglib.c: Protect deprecated API by ifdefs.
        Patch by Kalle Vahlman

svn path=/trunk/; revision=7353

15 years agoBug 547637 – unconditional #include of sys/statfs.h in configure impedes
Matthias Clasen [Thu, 14 Aug 2008 03:01:23 +0000 (03:01 +0000)]
Bug 547637 – unconditional #include of sys/statfs.h in configure impedes

2008-08-13  Matthias Clasen  <mclasen@redhat.com>

        Bug 547637 – unconditional #include of sys/statfs.h in configure
        impedes detection of statfs things if non-existant

        * configure.in: Protect the statfs.h include by guards.

svn path=/trunk/; revision=7352

15 years agoBrazilian Portuguese translation updated by Henrique P. Machado and
Leonardo Ferreira Fontenelle [Thu, 14 Aug 2008 02:24:26 +0000 (02:24 +0000)]
Brazilian Portuguese translation updated by Henrique P. Machado and

2008-08-13  Leonardo Ferreira Fontenelle  <leonardof@gnome.org>

* pt_BR.po: Brazilian Portuguese translation updated by Henrique P.
Machado and Leonardo F. Fontenelle.

svn path=/trunk/; revision=7351

15 years agowin32/gwinhttpvfs.c win32/gwinhttpvfs.h win32/gwinhttpfile.c
Tor Lillqvist [Wed, 13 Aug 2008 19:39:49 +0000 (19:39 +0000)]
win32/gwinhttpvfs.c win32/gwinhttpvfs.h win32/gwinhttpfile.c

2008-08-13  Tor Lillqvist  <tml@novell.com>

* win32/gwinhttpvfs.c
* win32/gwinhttpvfs.h
* win32/gwinhttpfile.c
* win32/gwinhttpfileinputstream.c
* win32/gwinhttpfileoutputstream.c: Refactor some common code
snippets into helper functions. Check HTTP response status
codes. Implement g_winhttp_file_query_info(), looking at
Content-Length, Content-Type and Last-Modified.

* win32/winhttp.h: Add some symbolic constants that are not
publicly documented. Just a handful, so it should be OK to use
information from the Windows SDK's headers.

svn path=/trunk/; revision=7350

15 years agoUpdated Marathi Translations
Sandeep Shedmake [Wed, 13 Aug 2008 14:23:22 +0000 (14:23 +0000)]
Updated Marathi Translations

svn path=/trunk/; revision=7349

15 years agoAdded Marathi Translations
Sandeep Shedmake [Wed, 13 Aug 2008 14:22:40 +0000 (14:22 +0000)]
Added Marathi Translations

svn path=/trunk/; revision=7348

15 years agoBug 546582 - Callbacks from GFileMonitor present a GFile in the wrong
Tor Lillqvist [Wed, 13 Aug 2008 06:56:31 +0000 (06:56 +0000)]
Bug 546582 - Callbacks from GFileMonitor present a GFile in the wrong

2008-08-13  Tor Lillqvist  <tml@novell.com>

Bug 546582 - Callbacks from GFileMonitor present a GFile in the
wrong folder

* win32/gwin32directorymonitor.c
(g_win32_directory_monitor_callback): Patch by Erik van Pienbroek.

svn path=/trunk/; revision=7347

15 years agoAdd docs
Matthias Clasen [Wed, 13 Aug 2008 05:35:10 +0000 (05:35 +0000)]
Add docs

svn path=/trunk/; revision=7346

15 years agoDon't write the Content-Length header ourselves, WinHttpSendRequest()
Tor Lillqvist [Tue, 12 Aug 2008 23:40:39 +0000 (23:40 +0000)]
Don't write the Content-Length header ourselves, WinHttpSendRequest()

2008-08-13  Tor Lillqvist  <tml@novell.com>

* win32/gwinhttpfileoutputstream.c
(g_winhttp_file_output_stream_write): Don't write the
Content-Length header ourselves, WinHttpSendRequest() takes care
of that when the dwTotalLength parameter is non-zero. Increment
offset by the number of actual bytes sent, although I wonder if
such a scenario is possible where less than requested would be
sent and accepted by the server without errors.

svn path=/trunk/; revision=7345

15 years agowin32/gwinhttpvfs.c win32/gwinhttpvfs.h win32/gwinhttpfile.c
Tor Lillqvist [Tue, 12 Aug 2008 23:09:04 +0000 (23:09 +0000)]
win32/gwinhttpvfs.c win32/gwinhttpvfs.h win32/gwinhttpfile.c

2008-08-13  Tor Lillqvist  <tml@novell.com>

* win32/gwinhttpvfs.c
* win32/gwinhttpvfs.h
* win32/gwinhttpfile.c
* win32/gwinhttpfile.h
* win32/gwinhttpfileinputstream.c
* win32/gwinhttpfileinputstream.h
* win32/gwinhttpfileoutputstream.c
* win32/gwinhttpfileoutputstream.h: New files implementing
GWinHttpVfs and related classes, a GVfs for HTTP and HTTPS URIs on
Windows. The implementation uses the WinHttp API. Both reading and
writing are supported, i.e. GET and PUT requests. When writing,
each write call is done using a separate PUT request with a
Content-Range header. Requests for file URIs and plain pathnames
are forwarded to GLocalVfs.

* win32/winhttp.h: Reverse engineered <winhttp.h>, borrowed from
WINE. Used as there is no <winhttp.h> bundled with mingw, and
requiring people to download the Windows SDK just for this one
header is not reasonable.

* win32/Makefile.am: Add above files.

* giomodule.c: Call _g_winhttp_vfs_get_type() on Windows to set up
the plumbing for the above.

svn path=/trunk/; revision=7344

15 years agoHint about having to include config.h
Federico Mena Quintero [Tue, 12 Aug 2008 19:01:46 +0000 (19:01 +0000)]
Hint about having to include config.h
2008-08-12  Federico Mena Quintero  <federico@novell.com>

* glib/gi18n-lib.h: In the #error about having to define
GETTEXT_PACKAGE, add a hint about a possibly-missing config.h.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=7343

15 years agoupdated hebrew translation
Yair Hershkovitz [Tue, 12 Aug 2008 12:54:05 +0000 (12:54 +0000)]
updated hebrew translation

svn path=/trunk/; revision=7342

15 years agoUpdated Thai translation.
Theppitak Karoonboonyanan [Tue, 12 Aug 2008 11:42:31 +0000 (11:42 +0000)]
Updated Thai translation.

2008-08-12  Theppitak Karoonboonyanan  <thep@linux.thai.net>

* th.po: Updated Thai translation.

svn path=/trunk/; revision=7341

15 years agoUpdated Basque translation.
Inaki Larranaga Murgoitio [Tue, 12 Aug 2008 08:37:52 +0000 (08:37 +0000)]
Updated Basque translation.

2008-08-12  Inaki Larranaga Murgoitio  <dooteo@euskalgnu.org>

* eu.po: Updated Basque translation.

svn path=/trunk/; revision=7340

15 years agogfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c
Sven Neumann [Mon, 11 Aug 2008 19:45:08 +0000 (19:45 +0000)]
gfilenamecompleter.c glocaldirectorymonitor.c gmountoperation.c

2008-08-11  Sven Neumann  <sven@gimp.org>

* gfilenamecompleter.c
* glocaldirectorymonitor.c
* gmountoperation.c
* gunionvolumemonitor.c
* gunixmount.c
* gunixmounts.c
* gunixvolume.c
* gunixvolumemonitor.c
* gvolumemonitor.c
* gwin32mount.c
* gwin32volumemonitor.c: use canonical signal names.

svn path=/trunk/; revision=7339

15 years agoFix a reference
Matthias Clasen [Mon, 11 Aug 2008 19:31:54 +0000 (19:31 +0000)]
Fix a reference

svn path=/trunk/; revision=7338

15 years agoBug 547200 – g_utf8_find_next_char() issues
Behdad Esfahbod [Mon, 11 Aug 2008 19:03:04 +0000 (19:03 +0000)]
Bug 547200 – g_utf8_find_next_char() issues

2008-08-11  Behdad Esfahbod  <behdad@gnome.org>

        Bug 547200 – g_utf8_find_next_char() issues

        * glib/gutf8.c: Improve wording about @end arguments in str funcs.

svn path=/trunk/; revision=7337

15 years agoPut a list of the platform-dependent .la files in the subdirectories in
Tor Lillqvist [Mon, 11 Aug 2008 12:35:09 +0000 (12:35 +0000)]
Put a list of the platform-dependent .la files in the subdirectories in

2008-08-11  Tor Lillqvist  <tml@novell.com>

* Makefile.am: Put a list of the platform-dependent .la files in
the subdirectories in the platform_deps Make variable, and make
libgio-2.0.la depend on that, so that it gets relinked if one of
the dependent libraries has changed.

svn path=/trunk/; revision=7336

15 years agoRemove -lwininet which had been added by mistake. We will probably
Tor Lillqvist [Sun, 10 Aug 2008 22:01:36 +0000 (22:01 +0000)]
Remove -lwininet which had been added by mistake. We will probably

2008-08-11  Tor Lillqvist  <tml@novell.com>

* Makefile.am (platform_libadd): Remove -lwininet which had been
added by mistake. We will probably eventually be using WinHTTP,
not the older WinInet anyway. (Actually I am working on it.)

svn path=/trunk/; revision=7335

15 years agoFix docs to use "nul-terminated" consistently.
Behdad Esfahbod [Sun, 10 Aug 2008 20:24:32 +0000 (20:24 +0000)]
Fix docs to use "nul-terminated" consistently.

2008-08-10  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gutf8.c: Fix docs to use "nul-terminated" consistently.

svn path=/trunk/; revision=7334

15 years agoUpdated Spanish translation
Jorge Gonzalez Gonzalez [Sun, 10 Aug 2008 14:18:06 +0000 (14:18 +0000)]
Updated Spanish translation

svn path=/trunk/; revision=7333

15 years agoUpdated Catalan translation
Gil Forcada Codinachs [Sun, 10 Aug 2008 11:18:19 +0000 (11:18 +0000)]
Updated Catalan translation

svn path=/trunk/; revision=7332

15 years agoBug 547080 – g_file_copy leaks expected errors
Felix Riemann [Sun, 10 Aug 2008 10:55:57 +0000 (10:55 +0000)]
Bug 547080 – g_file_copy leaks expected errors

2008-08-10  Felix Riemann  <friemann@svn.gnome.org>

Bug 547080 – g_file_copy leaks expected errors

* gfile.c: (g_file_copy): Clear G_IO_ERROR_NOT_SUPPORTED errors
before trying the next fallback routine.

svn path=/trunk/; revision=7331

15 years agoBug 535124 – umask 002 not being applied for new directories, new files
Loïc Minier [Sat, 9 Aug 2008 08:41:43 +0000 (08:41 +0000)]
Bug 535124 – umask 002 not being applied for new directories, new files

2008-08-09  Loïc Minier  <lool@dooz.org>

Bug 535124 – umask 002 not being applied for new directories, new
files get the correct umask

* gfile.c (g_file_make_directory)
(g_file_make_directory_with_parents): Document ownership and
permissions of newly created directories as being the default
ones of the process.

svn path=/trunk/; revision=7330

15 years agoUpdated Portuguese translation.
Duarte Loreto [Sat, 9 Aug 2008 08:21:39 +0000 (08:21 +0000)]
Updated Portuguese translation.

2008-08-09  Duarte Loreto <happyguy_pt@hotmail.com>

* pt.po: Updated Portuguese translation.

svn path=/trunk/; revision=7329

15 years agoFix 'fail' markup test cases to -not- be valid XML 1.1.
Ryan Lortie [Fri, 8 Aug 2008 18:35:19 +0000 (18:35 +0000)]
Fix 'fail' markup test cases to -not- be valid XML 1.1.

2008-08-08  Ryan Lortie  <desrt@desrt.ca>

        * tests/markups/fail-32.gmarkup: change &#x10; to &#x0; since the
        former is no longer a failure.

svn path=/trunk/; revision=7328

15 years agoBug 546876 -- also update documentation for escape_text
Ryan Lortie [Fri, 8 Aug 2008 16:53:26 +0000 (16:53 +0000)]
Bug 546876 -- also update documentation for escape_text

svn path=/trunk/; revision=7327

15 years agoBug 546876 - Modify GMarkup parser to accept &#x1; .. &#x1f;
Ryan Lortie [Fri, 8 Aug 2008 16:41:30 +0000 (16:41 +0000)]
Bug 546876 - Modify GMarkup parser to accept &#x1; .. &#x1f;

2008-08-08  Ryan Lortie  <desrt@desrt.ca>

        * glib/gmarkup.c: previously the parser only accepted character
        references for \t \n and \r (as per XML 1.0); now it accepts all
        of &#x1; .. &#x1f;.

svn path=/trunk/; revision=7326

15 years agoUpdated Galician translation
Ignacio Casal Quinteiro [Fri, 8 Aug 2008 13:05:03 +0000 (13:05 +0000)]
Updated Galician translation

svn path=/trunk/; revision=7325

15 years agoBug 535124 – umask 002 not being applied for new directories, new files
Loïc Minier [Fri, 8 Aug 2008 09:26:51 +0000 (09:26 +0000)]
Bug 535124 – umask 002 not being applied for new directories, new files

2008-08-08  Loïc Minier  <lool@dooz.org>

Bug 535124 – umask 002 not being applied for new directories, new
files get the correct umask

* glocalfile.c: (g_local_file_make_directory): Use 0777 instead of
0755 as umask

svn path=/trunk/; revision=7323

15 years agoRemove unused code. Whitespace cleanup.
Tor Lillqvist [Fri, 8 Aug 2008 06:38:05 +0000 (06:38 +0000)]
Remove unused code. Whitespace cleanup.

2008-08-08  Tor Lillqvist  <tml@novell.com>

* gwin32mount.c: Remove unused code. Whitespace cleanup.

svn path=/trunk/; revision=7322

15 years agoPut questionable code that didn't actually do anything inside #if 0, and
Tor Lillqvist [Fri, 8 Aug 2008 05:36:56 +0000 (05:36 +0000)]
Put questionable code that didn't actually do anything inside #if 0, and

2008-08-08  Tor Lillqvist  <tml@novell.com>

* gwin32volumemonitor.c (get_connected_drives): Put questionable
code that didn't actually do anything inside #if 0, and add a
comment wondering what the code was supposed to do. This also gets
rid of a leftover debugging printout.

svn path=/trunk/; revision=7321

15 years agoImprove comment.
Tor Lillqvist [Fri, 8 Aug 2008 04:56:22 +0000 (04:56 +0000)]
Improve comment.

svn path=/trunk/; revision=7320

15 years agoImprove comment.
Tor Lillqvist [Fri, 8 Aug 2008 04:55:41 +0000 (04:55 +0000)]
Improve comment.

svn path=/trunk/; revision=7319

15 years agoNew functions. (g_file_icon_class_init): Hook them up. Install
Paul Pogonyshev [Thu, 7 Aug 2008 19:44:53 +0000 (19:44 +0000)]
New functions. (g_file_icon_class_init): Hook them up. Install

2008-08-07  Paul Pogonyshev  <pogonyshev@gmx.net>

* gfileicon.c (g_file_icon_get_property)
(g_file_icon_set_property): New functions.
(g_file_icon_class_init): Hook them up.  Install `GFileIcon:file'
property.
(g_file_icon_new): Use the property (bug #546132).

svn path=/trunk/; revision=7318

15 years agoOutput comment clarifying GPid semantics to glibconfig.h.
Tor Lillqvist [Thu, 7 Aug 2008 15:40:03 +0000 (15:40 +0000)]
Output comment clarifying GPid semantics to glibconfig.h.

2008-08-07  Tor Lillqvist  <tml@novell.com>

* configure.in: Output comment clarifying GPid semantics to
glibconfig.h.

* glibconfig.h.win32.in: Ditto here.

svn path=/trunk/; revision=7317