platform/upstream/glib.git
14 years agoRemmove a dead assignment.
Matthias Clasen [Mon, 7 Sep 2009 07:07:22 +0000 (03:07 -0400)]
Remmove a dead assignment.

Spotted by clang.

14 years agoMove a assignment to the relevant #ifdef branch
Matthias Clasen [Mon, 7 Sep 2009 07:02:58 +0000 (03:02 -0400)]
Move a assignment to the relevant #ifdef branch

Dead code spotted by clang.

14 years agoRemove dead code
Matthias Clasen [Mon, 7 Sep 2009 07:01:02 +0000 (03:01 -0400)]
Remove dead code

14 years agoDon't evaluate an uninitialized value
Matthias Clasen [Mon, 7 Sep 2009 06:50:51 +0000 (02:50 -0400)]
Don't evaluate an uninitialized value

Bug found by clang.

14 years agoUpdated Polish translation
Tomasz Dominikowski [Sun, 6 Sep 2009 12:20:45 +0000 (14:20 +0200)]
Updated Polish translation

14 years agoUpdate Japanese translation
Takayuki KUSANO [Sat, 5 Sep 2009 13:34:58 +0000 (22:34 +0900)]
Update Japanese translation

14 years agoUpdated Spanish translation
Jorge González [Sat, 5 Sep 2009 11:47:41 +0000 (13:47 +0200)]
Updated Spanish translation

14 years agoBump version
Matthias Clasen [Sat, 5 Sep 2009 01:20:09 +0000 (21:20 -0400)]
Bump version

14 years ago2.21.6 2.21.6
Matthias Clasen [Sat, 5 Sep 2009 01:19:02 +0000 (21:19 -0400)]
2.21.6

14 years agoAdd a Since: tag
Matthias Clasen [Sat, 5 Sep 2009 00:41:25 +0000 (20:41 -0400)]
Add a Since: tag

14 years agoUpdates
Matthias Clasen [Sat, 5 Sep 2009 00:26:26 +0000 (20:26 -0400)]
Updates

14 years agoBug 594034 - Use g_mkstemp_full() when creating the replacement file
Benjamin Otte [Thu, 3 Sep 2009 13:39:57 +0000 (15:39 +0200)]
Bug 594034 - Use g_mkstemp_full() when creating the replacement file

Previous code used g_mkstemp(). But when using
G_FILE_CREATE_REPLACE_DESTINATION, no attempt was made to ensure proper
mode and flags of the created temporary file. The visible issue was that
the file was always created with mode 0600 as opposed to using 0666.
(The invisible issue was that O_RDWR was used instead of O_WRONLY.)

14 years agoBug 594034 - Add g_mkstemp_full()
Benjamin Otte [Thu, 3 Sep 2009 13:36:37 +0000 (15:36 +0200)]
Bug 594034 - Add g_mkstemp_full()

This function exposes more variables than g_mkstemp() and therefor
allows more flexibility when creating temporary files.
The intended use is gio's code for g_file_replace() (see next patch)

14 years agoUpdating Estonian translation
Ivar Smolin [Fri, 4 Sep 2009 15:58:00 +0000 (18:58 +0300)]
Updating Estonian translation

14 years agoUpdated German translation
Christian Kirbach [Fri, 4 Sep 2009 13:16:04 +0000 (15:16 +0200)]
Updated German translation

14 years agoUpdated Swedish translation
Daniel Nylander [Fri, 4 Sep 2009 04:31:34 +0000 (06:31 +0200)]
Updated Swedish translation

14 years agoUpdated French translation
Claude Paroz [Thu, 3 Sep 2009 22:07:40 +0000 (00:07 +0200)]
Updated French translation

14 years agoUpdated Brazilian Portuguese translation.
Fábio Nogueira [Wed, 2 Sep 2009 16:28:59 +0000 (12:28 -0400)]
Updated Brazilian Portuguese translation.

14 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Wed, 2 Sep 2009 16:19:27 +0000 (18:19 +0200)]
Updated Basque language

14 years agoHungarian translation updated
Gabor Kelemen [Wed, 2 Sep 2009 16:05:23 +0000 (18:05 +0200)]
Hungarian translation updated

14 years agoUpdated Portuguese translation
Duarte Loreto [Tue, 1 Sep 2009 22:34:41 +0000 (23:34 +0100)]
Updated Portuguese translation

14 years agoUpdated Italian translation
Luca Ferretti [Tue, 1 Sep 2009 21:47:14 +0000 (23:47 +0200)]
Updated Italian translation

14 years agoUse lchmod instead of stat + chown if available
Benjamin Otte [Tue, 1 Sep 2009 19:53:35 +0000 (21:53 +0200)]
Use lchmod instead of stat + chown if available

Fallout of the NOFLOOW_SYMLINKS fix from bug 593406

14 years agoBug 593406 - Permissions set to 777 after copying via Nautilus
Benjamin Otte [Tue, 1 Sep 2009 19:26:08 +0000 (21:26 +0200)]
Bug 593406 - Permissions set to 777 after copying via Nautilus

Only fail to set the permissions when the actual file is a symlink.
The previous fix failed for every file when NOFOLLOW_SYMLINKS was set.

14 years agoOnly do the chmod NOFOLLOW_SYMLINK checks with HAVE_SYMLINK
Benjamin Otte [Tue, 1 Sep 2009 18:36:31 +0000 (20:36 +0200)]
Only do the chmod NOFOLLOW_SYMLINK checks with HAVE_SYMLINK

14 years agog_time_val_from_iso8601: handle timezoneless dates
Dan Winship [Tue, 1 Sep 2009 13:37:48 +0000 (09:37 -0400)]
g_time_val_from_iso8601: handle timezoneless dates

per ISO 8601:2004 4.2.5.2

Based on a patch from Andy Shevchenko
http://bugzilla.gnome.org/show_bug.cgi?id=589491

14 years agoFix gtk-doc syntax
Benjamin Otte [Tue, 1 Sep 2009 10:48:55 +0000 (12:48 +0200)]
Fix gtk-doc syntax

14 years agoBug 593406 - Permissions set to 777 after copying via Nautilus
Benjamin Otte [Tue, 1 Sep 2009 09:54:48 +0000 (11:54 +0200)]
Bug 593406 - Permissions set to 777 after copying via Nautilus

When doing a g_file_copy() with nofollow-symlinks (to copy a link for
example), the later copying of the file attributes copies the source
links 777 attributes to the target's attributes. As chmod affects the
symlink target, this would cause such copies to always set the target to
777 mode.

This patch makes setting the mode with nofollow-symlinks fail with
NOT_SUPPORTED.

The aforementioned g_file_copy() will still succeed, because it ignores
errors of the attribute copy.

14 years agoUpdate Norwegian bokmål translation.
Kjartan Maraas [Tue, 1 Sep 2009 08:52:07 +0000 (10:52 +0200)]
Update Norwegian bokmål translation.

14 years agoUpdated Marathi Translations
Sandeep Shedmake [Mon, 31 Aug 2009 15:17:13 +0000 (20:47 +0530)]
Updated Marathi Translations

14 years agoUpdated Marathi Translations
Sandeep Shedmake [Mon, 31 Aug 2009 14:59:16 +0000 (20:29 +0530)]
Updated Marathi Translations

14 years agoUpdated Telugu Translations
krishnababu k [Mon, 31 Aug 2009 14:11:54 +0000 (19:41 +0530)]
Updated Telugu Translations

14 years agoUpdated Kannada(kn) translation
Shankar Prasad [Mon, 31 Aug 2009 08:04:44 +0000 (13:34 +0530)]
Updated Kannada(kn) translation

14 years agoUpdated Brazilian Portuguese mailing list address.
Rodrigo L. M. Flores [Sun, 30 Aug 2009 22:41:47 +0000 (19:41 -0300)]
Updated Brazilian Portuguese mailing list address.

14 years agoUpdated Czech translation
Petr Kovar [Sat, 29 Aug 2009 19:05:19 +0000 (21:05 +0200)]
Updated Czech translation

14 years agoRe-commit 30b8774f7f3f7f329af6b041b6c86bad14717534
Matthias Clasen [Fri, 28 Aug 2009 03:40:16 +0000 (23:40 -0400)]
Re-commit 30b8774f7f3f7f329af6b041b6c86bad14717534

Turns out Alex had agreed to this.

14 years agoUse the saved errno value
Matthias Clasen [Fri, 28 Aug 2009 03:02:08 +0000 (23:02 -0400)]
Use the saved errno value

Bug 591995

14 years agoRead /dev/urandom unbuffered
Matthias Clasen [Fri, 28 Aug 2009 02:59:05 +0000 (22:59 -0400)]
Read /dev/urandom unbuffered

To avoid wasting entropy. Bug 593232.

14 years agoRevert "add a "gsettings-backend" extension point to GIO"
Matthias Clasen [Fri, 28 Aug 2009 02:51:53 +0000 (22:51 -0400)]
Revert "add a "gsettings-backend" extension point to GIO"

This reverts commit 30b8774f7f3f7f329af6b041b6c86bad14717534.

14 years agoadd a "gsettings-backend" extension point to GIO
Ryan Lortie [Thu, 27 Aug 2009 17:45:48 +0000 (13:45 -0400)]
add a "gsettings-backend" extension point to GIO

14 years agoUpdated Italian translation
Luca Ferretti [Wed, 26 Aug 2009 20:04:58 +0000 (22:04 +0200)]
Updated Italian translation

14 years agoUpdated Italian translation
Luca Ferretti [Wed, 26 Aug 2009 13:32:23 +0000 (15:32 +0200)]
Updated Italian translation

14 years agoUpdating Assamese translations
Amitakhya Phukan [Wed, 26 Aug 2009 12:04:17 +0000 (17:34 +0530)]
Updating Assamese translations

14 years agoUpdated Malayalam Translations
Ani [Wed, 26 Aug 2009 09:48:57 +0000 (15:18 +0530)]
Updated Malayalam Translations

14 years agoUpdated Tamil Translations
ifelix [Tue, 25 Aug 2009 08:40:56 +0000 (14:10 +0530)]
Updated Tamil Translations

14 years agoUpdated Oriya Translation
Manoj Kumar Giri [Tue, 25 Aug 2009 06:44:41 +0000 (12:14 +0530)]
Updated Oriya Translation

14 years agoUpdated Turkish translation.
Baris Cicek [Mon, 24 Aug 2009 21:38:34 +0000 (00:38 +0300)]
Updated Turkish translation.

14 years agoFix bump version
Luca Ferretti [Mon, 24 Aug 2009 19:28:11 +0000 (21:28 +0200)]
Fix bump version

14 years agoBump version
Matthias Clasen [Mon, 24 Aug 2009 18:15:13 +0000 (14:15 -0400)]
Bump version

14 years ago2.21.5 2.21.5
Matthias Clasen [Mon, 24 Aug 2009 18:13:49 +0000 (14:13 -0400)]
2.21.5

14 years agoDocumentation fixes
Matthias Clasen [Mon, 24 Aug 2009 17:34:06 +0000 (13:34 -0400)]
Documentation fixes

14 years agoUpdates
Matthias Clasen [Mon, 24 Aug 2009 16:21:08 +0000 (12:21 -0400)]
Updates

14 years agoMinor update to Catalan (Valencian) translation
Carles Ferrando [Mon, 24 Aug 2009 16:38:33 +0000 (18:38 +0200)]
Minor update to Catalan (Valencian) translation

14 years agohindi updated by Rajesh Ranjan
Rajesh Ranjan [Mon, 24 Aug 2009 11:22:25 +0000 (16:52 +0530)]
hindi updated by Rajesh Ranjan

14 years agoUpdated Gujarati Translations
Sweta Kothari [Mon, 24 Aug 2009 08:53:56 +0000 (14:23 +0530)]
Updated Gujarati Translations

14 years agoUpdated Portuguese translation
Duarte Loreto [Sun, 23 Aug 2009 13:59:14 +0000 (14:59 +0100)]
Updated Portuguese translation

14 years agoUpdate Korean translation
Changwoo Ryu [Sat, 22 Aug 2009 15:50:28 +0000 (00:50 +0900)]
Update Korean translation

14 years agoPreserve errno
Christian Persch [Thu, 20 Aug 2009 13:13:43 +0000 (15:13 +0200)]
Preserve errno

When using errno in g_set_error with _(), preserve errno. Bug #592457.

14 years agoUpdate Punjabi after Review
A S Alam [Sat, 22 Aug 2009 00:45:29 +0000 (06:15 +0530)]
Update Punjabi after Review

14 years agoUpdated Finnish translation
Tommi Vainikainen [Fri, 21 Aug 2009 20:43:53 +0000 (23:43 +0300)]
Updated Finnish translation

14 years agoUpdate Japanese translation.
Takayuki KUSANO [Thu, 20 Aug 2009 15:15:12 +0000 (00:15 +0900)]
Update Japanese translation.

14 years agoUpdated Polish translation
Tomasz Dominikowski [Thu, 20 Aug 2009 09:55:03 +0000 (11:55 +0200)]
Updated Polish translation

14 years agoUse MSG_NOSIGNAL in GSocket if it's available
Dan Winship [Wed, 19 Aug 2009 16:12:06 +0000 (12:12 -0400)]
Use MSG_NOSIGNAL in GSocket if it's available

Even though we ignore SIGPIPE, gdb will still stop when the process
receives one, which sometimes confuses people into thinking the app
has crashed (eg, bug 578984, bug 590420), and is annoying anyway. So
use MSG_NOSIGNAL if it's there.

http://bugzilla.gnome.org/show_bug.cgi?id=591378

14 years agoRe-run res_init() when resolv.conf changes
Dan Winship [Wed, 19 Aug 2009 16:07:53 +0000 (12:07 -0400)]
Re-run res_init() when resolv.conf changes

libc caches the contents of resolv.conf, so if it changes (eg, because
the network state changed), we need re-run res_init().

http://bugzilla.gnome.org/show_bug.cgi?id=584246

14 years agoWhen creating a pipe for a cancelled cancellable, write to it
Benjamin Otte [Tue, 11 Aug 2009 16:50:28 +0000 (18:50 +0200)]
When creating a pipe for a cancelled cancellable, write to it

Includes (untested) fix for win32 that calls SetEvent() in that case.

14 years agoUse g_cancellable_release_fd()
Benjamin Otte [Tue, 11 Aug 2009 13:12:20 +0000 (15:12 +0200)]
Use g_cancellable_release_fd()

Part of: Bug 591388 - number of GCancellables available is too limited

14 years agoImplement g_cancellable_release_fd()
Benjamin Otte [Tue, 11 Aug 2009 13:04:43 +0000 (15:04 +0200)]
Implement g_cancellable_release_fd()

Part of: Bug 591388 - number of GCancellables available is too limited

14 years agoAdd g_cancellable_release_fd()
Benjamin Otte [Tue, 11 Aug 2009 12:52:56 +0000 (14:52 +0200)]
Add g_cancellable_release_fd()

This patch only adds the function. The function is a NOP.
See the API documentation for a rationale.

Part of: Bug 591388 - number of GCancellables available is too limited

14 years agoBug 591714 – Figure out failure handling for g_cancellable_make_pollfd()
Benjamin Otte [Thu, 13 Aug 2009 18:19:15 +0000 (20:19 +0200)]
Bug 591714 – Figure out failure handling for g_cancellable_make_pollfd()

Make g_cancellable_make_pollfd() return a gboolean that indicates its error
status. Update the code that calls this function accordingly.

14 years agoUpdated Brazilian Portuguese translation.
Og B. Maciel [Wed, 19 Aug 2009 03:09:12 +0000 (23:09 -0400)]
Updated Brazilian Portuguese translation.

14 years agoImprove documentation for g_error_matches()
Benjamin Otte [Thu, 6 Aug 2009 16:17:32 +0000 (18:17 +0200)]
Improve documentation for g_error_matches()

14 years agoFix multiple returns in gtk-doc comment
Benjamin Otte [Mon, 27 Jul 2009 16:48:11 +0000 (18:48 +0200)]
Fix multiple returns in gtk-doc comment

14 years agog_inet_socket_address_to_native: properly zero out sockaddr_in6
Dan Winship [Mon, 17 Aug 2009 17:20:49 +0000 (13:20 -0400)]
g_inet_socket_address_to_native: properly zero out sockaddr_in6

14 years agoUpdated Danish translation
Ask H. Larsen [Sun, 16 Aug 2009 17:10:50 +0000 (19:10 +0200)]
Updated Danish translation

14 years agoUpdating Estonian translation
Mattias Põldaru [Sat, 15 Aug 2009 05:21:01 +0000 (08:21 +0300)]
Updating Estonian translation

14 years ago[Win32] Avoid superfluous '/' from g_file_resolve_relative_path()
Shixin Zeng [Fri, 14 Aug 2009 20:21:12 +0000 (23:21 +0300)]
[Win32] Avoid superfluous '/' from g_file_resolve_relative_path()

Patch from bug #591532.

14 years agoAvoid gcc warning on Windows
Tor Lillqvist [Fri, 14 Aug 2009 19:59:47 +0000 (22:59 +0300)]
Avoid gcc warning on Windows

Avoid "function declaration isn't a prototype" warnings from gcc 4.4
in the Windows-specific code.

14 years agoUpdate GLIB_CHECK_COMPILE_WARNINGS macro to work with Autoconf 2.64
Frédéric Péters [Fri, 14 Aug 2009 19:00:41 +0000 (21:00 +0200)]
Update GLIB_CHECK_COMPILE_WARNINGS macro to work with Autoconf 2.64

Quoting its NEWS file: "The m4sh macros AS_IF and AS_CASE can now be
used in shell lists.  The responsibility for supplying a trailing
newline now belongs to the call site, but since most users did not add
dnl, this generally results in fewer empty lines in configure."

http://bugzilla.gnome.org/show_bug.cgi?id=591840

14 years agoUpdating Estonian translation
Priit Laes [Fri, 14 Aug 2009 19:09:18 +0000 (22:09 +0300)]
Updating Estonian translation

14 years agoUpdated Telugu Translations
krishnababu k [Fri, 14 Aug 2009 11:26:09 +0000 (16:56 +0530)]
Updated Telugu Translations

14 years agoUpdated Bulgarian translation
Alexander Shopov [Thu, 13 Aug 2009 04:12:29 +0000 (07:12 +0300)]
Updated Bulgarian translation

14 years agoUpdated Brazilian Portuguese translation.
Henrique P Machado [Wed, 12 Aug 2009 02:40:09 +0000 (23:40 -0300)]
Updated Brazilian Portuguese translation.

14 years agoOnly fsync if the existing file is > 0 bytes
Alexander Larsson [Tue, 11 Aug 2009 18:22:51 +0000 (20:22 +0200)]
Only fsync if the existing file is > 0 bytes

This means we don't sync in the case where we created an (empty)
temp file and now replace it with the data.

This fixes (among other things) the performance of trashing files.

14 years agoUpdated Italian translation
Luca Ferretti [Mon, 10 Aug 2009 23:27:08 +0000 (01:27 +0200)]
Updated Italian translation

14 years agoUpdated Galician translation
Antón Méixome [Mon, 10 Aug 2009 14:26:46 +0000 (16:26 +0200)]
Updated Galician translation

14 years agoMigrate gbase64 docs from SGML template to inline comments
Craig Loftus [Thu, 23 Jul 2009 19:24:22 +0000 (20:24 +0100)]
Migrate gbase64 docs from SGML template to inline comments

Fixes bug #589649.

Signed-off-by: David King <davidk@openismus.com>
14 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Mon, 10 Aug 2009 11:57:21 +0000 (13:57 +0200)]
Updated Basque language

14 years agoUpdated Galician Translation
Antón Méixome [Sun, 9 Aug 2009 14:35:09 +0000 (16:35 +0200)]
Updated Galician Translation

14 years agoBump version
Matthias Clasen [Sat, 18 Jul 2009 00:34:16 +0000 (20:34 -0400)]
Bump version

14 years agoUpdated Irish translation
Seán de Búrca [Sat, 8 Aug 2009 07:53:34 +0000 (01:53 -0600)]
Updated Irish translation

14 years agoAdded clarification to mutex free functions
Philip Withnall [Sat, 1 Aug 2009 15:46:02 +0000 (16:46 +0100)]
Added clarification to mutex free functions

Clarified that it is A Bad Idea to free a mutex when it's locked.

14 years agoUpdating Estonian translation
Ivar Smolin [Wed, 5 Aug 2009 10:29:26 +0000 (13:29 +0300)]
Updating Estonian translation

14 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Sun, 2 Aug 2009 22:16:54 +0000 (00:16 +0200)]
Updated Norwegian bokmål translation.

14 years agoFix a bad void return. #588901
Dan Winship [Thu, 30 Jul 2009 15:18:35 +0000 (11:18 -0400)]
Fix a bad void return. #588901

14 years agoConditionalize portability #includes in g-asyncns.h
Dan Winship [Thu, 30 Jul 2009 02:35:07 +0000 (22:35 -0400)]
Conditionalize portability #includes in g-asyncns.h

http://bugzilla.gnome.org/show_bug.cgi?id=589988

14 years agoUpdated Swedish translation
Daniel Nylander [Mon, 27 Jul 2009 23:59:05 +0000 (01:59 +0200)]
Updated Swedish translation

15 years agoFix leaks in GSocketClient and GThreadedResolver
Dan Winship [Thu, 23 Jul 2009 20:27:01 +0000 (16:27 -0400)]
Fix leaks in GSocketClient and GThreadedResolver

Also update gio/tests/send-data.c to test async connection, and free
more stuff in several tests to make leaks easier to see.

15 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Wed, 22 Jul 2009 16:58:57 +0000 (18:58 +0200)]
Updated Norwegian bokmål translation.

15 years agoAdded clarification to GArray->len documentation
Tristan Van Berkom [Tue, 21 Jul 2009 16:58:39 +0000 (12:58 -0400)]
Added clarification to GArray->len documentation

Clarify that GArray->len does not include the possible
terminating zero element.

15 years agoFixed a missing head which will cause crashes for 64bit applications
Lin Ma [Tue, 21 Jul 2009 02:45:25 +0000 (10:45 +0800)]
Fixed a missing head which will cause crashes for 64bit applications

Without that head, the returned pointer will be truncated to 32bit, then
causes crashes for 64bit applications.