platform/upstream/glib.git
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

14 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.

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

14 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.

14 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.

14 years ago[gbsearcharray] Use malloc() instead of realloc(NULL,...)
Behdad Esfahbod [Sat, 6 Jun 2009 03:24:28 +0000 (23:24 -0400)]
[gbsearcharray] Use malloc() instead of realloc(NULL,...)

14 years agoPropagate the right error
Benjamin Otte [Mon, 20 Jul 2009 12:29:32 +0000 (14:29 +0200)]
Propagate the right error

14 years agoUpdated Spanish translation
Jorge González [Sun, 19 Jul 2009 11:15:06 +0000 (13:15 +0200)]
Updated Spanish translation

14 years agoUpdated Thai translation.
Theppitak Karoonboonyanan [Sun, 19 Jul 2009 09:33:06 +0000 (16:33 +0700)]
Updated Thai translation.

14 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Sat, 18 Jul 2009 13:09:14 +0000 (21:09 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

14 years ago2.21.4 2.21.4
Matthias Clasen [Sat, 18 Jul 2009 00:31:28 +0000 (20:31 -0400)]
2.21.4

14 years agoUpdates
Matthias Clasen [Fri, 17 Jul 2009 23:01:47 +0000 (19:01 -0400)]
Updates

14 years agoUpdated Hebrew translation
Yair Hershkovitz [Fri, 17 Jul 2009 19:53:56 +0000 (22:53 +0300)]
Updated Hebrew translation

14 years agoSupport silent build rules with automake 1.11
Martin Nordholts [Fri, 17 Jul 2009 14:49:53 +0000 (16:49 +0200)]
Support silent build rules with automake 1.11

Support silent build rules, requires at least automake-1.11. Enable by
either passing --enable-silent-rules to configure or passing V=0 to
make. Bug #588863.

14 years agoUpdated French translation
Claude Paroz [Tue, 14 Jul 2009 20:39:31 +0000 (22:39 +0200)]
Updated French translation

14 years agoAdd missing files in POTFILES.in
Claude Paroz [Tue, 14 Jul 2009 16:54:58 +0000 (18:54 +0200)]
Add missing files in POTFILES.in

15 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Mon, 13 Jul 2009 09:20:09 +0000 (11:20 +0200)]
Updated Norwegian bokmål translation.

15 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Sun, 12 Jul 2009 07:19:23 +0000 (15:19 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

15 years agoRemove outdated paragraph
Matthias Clasen [Sat, 11 Jul 2009 02:33:03 +0000 (22:33 -0400)]
Remove outdated paragraph

We no longer use PATCH or API keywords.

15 years agoAvoid some compiler warnings.
Matthias Clasen [Fri, 10 Jul 2009 17:13:18 +0000 (13:13 -0400)]
Avoid some compiler warnings.

15 years agoAnother possible error code clash, yay
Matthias Clasen [Fri, 10 Jul 2009 17:11:28 +0000 (13:11 -0400)]
Another possible error code clash, yay

15 years agoImprove g_str_equal docs
Matthias Clasen [Fri, 10 Jul 2009 15:18:31 +0000 (11:18 -0400)]
Improve g_str_equal docs

Add a reference to g_strcmp0(), cf. bug 587938.

15 years agoFix a typo in GRegex documentation
Benjamin Otte [Thu, 9 Jul 2009 13:34:00 +0000 (15:34 +0200)]
Fix a typo in GRegex documentation

15 years agoUpdated Ukrainian translation
Maxim V. Dziumanenko [Thu, 9 Jul 2009 07:51:15 +0000 (10:51 +0300)]
Updated Ukrainian translation

15 years agoUpdated Spanish translation
Jorge González [Tue, 7 Jul 2009 20:34:35 +0000 (22:34 +0200)]
Updated Spanish translation

15 years agoEnsure GTree is consistent after _destroy()
Ryan Lortie [Tue, 7 Jul 2009 20:29:46 +0000 (21:29 +0100)]
Ensure GTree is consistent after _destroy()

See comment #9 on bug 587773

15 years agoUpdated Swedish translation
Daniel Nylander [Tue, 7 Jul 2009 17:46:59 +0000 (19:46 +0200)]
Updated Swedish translation

15 years agoMake it compile on Windows.
Tor Lillqvist [Tue, 7 Jul 2009 11:37:45 +0000 (14:37 +0300)]
Make it compile on Windows.

Surround a symlink-related code snippet with ifdef S_ISLNK.

15 years agoMerge branch 'tree-refcount'
Ryan Lortie [Tue, 7 Jul 2009 08:45:31 +0000 (09:45 +0100)]
Merge branch 'tree-refcount'

15 years agoBump version
Matthias Clasen [Mon, 6 Jul 2009 04:33:49 +0000 (00:33 -0400)]
Bump version

15 years ago2.21.3 2.21.3
Matthias Clasen [Mon, 6 Jul 2009 04:31:47 +0000 (00:31 -0400)]
2.21.3

15 years agoDocument support_thread_contexts
Matthias Clasen [Mon, 6 Jul 2009 04:00:42 +0000 (00:00 -0400)]
Document support_thread_contexts

15 years agoMinor doc fix
Matthias Clasen [Mon, 6 Jul 2009 03:55:00 +0000 (23:55 -0400)]
Minor doc fix

15 years agoFix a segfault in g_cancellable_cancel
Matthias Clasen [Mon, 6 Jul 2009 03:38:09 +0000 (23:38 -0400)]
Fix a segfault in g_cancellable_cancel

15 years agoUpdates
Matthias Clasen [Mon, 6 Jul 2009 02:55:26 +0000 (22:55 -0400)]
Updates

15 years agoRevert "Move gio tests from gio/tests/ to tests/gio/"
Matthias Clasen [Mon, 6 Jul 2009 02:49:24 +0000 (22:49 -0400)]
Revert "Move gio tests from gio/tests/ to tests/gio/"

This reverts commit 2262d76b33094304ece0d0d9cd5920682599a49b.

Move GIO tests back to where they belong.

15 years agoMove comment to the right place
Matthias Clasen [Mon, 6 Jul 2009 02:35:55 +0000 (22:35 -0400)]
Move comment to the right place

15 years agoRegister ids for new file attributes
Matthias Clasen [Mon, 6 Jul 2009 02:26:11 +0000 (22:26 -0400)]
Register ids for new file attributes

15 years agoIgnore gfileinfo-priv.h
Matthias Clasen [Mon, 6 Jul 2009 02:24:14 +0000 (22:24 -0400)]
Ignore gfileinfo-priv.h

15 years agoAllow interaction when unmounting mounts
David Zeuthen [Mon, 6 Jul 2009 01:59:38 +0000 (21:59 -0400)]
Allow interaction when unmounting mounts

For details, see bug 587482. The new api:

 - Provide new _with_operation() variants of all unmount and eject methods

 - Add GMountOperation::show-processes signal
   - this can be used to show processes blocking an unmount operation

 - Deprecate all unmount and eject methods

 - Add g_drive_can_start_degraded() method
   - this is to avoid auto-starting degraded drives

 - Make g_drive_stop() resp. g_file_stop_mountable() take a GMountOperation
   - these ops were recently added and not yet public API so it's fine
     to change how they work

 - Provide a way to poll mountable files, e.g. g_file_poll_mountable()

 - Add some missing file attributes for mountable files
  - G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE
    - needed for the GDU Nautilus extensions to format a volume
  - G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED:
    - mimics g_drive_can_start_degraded()
  - G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL:
    - mimics g_drive_can_poll_for_media()
  - G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC
    - mimics g_drive_is_media_check_automatic()

15 years ago[gio] minor improvements to g_cancellable_cancel()
Benjamin Otte [Sun, 5 Jul 2009 19:34:39 +0000 (21:34 +0200)]
[gio] minor improvements to g_cancellable_cancel()

- make this function not crash when cancellable is NULL
- avoid locking when the cancellable has already been cancelled

15 years agoUpdated Hebrew translation
Yaron Shahrabani [Sun, 5 Jul 2009 15:06:57 +0000 (18:06 +0300)]
Updated Hebrew translation

15 years agoGTree: switch to GSlice, add refcounts (#587773)
Ryan Lortie [Sun, 5 Jul 2009 11:30:54 +0000 (12:30 +0100)]
GTree: switch to GSlice, add refcounts (#587773)

15 years agoAdd @basename@ substitution to glib-mkenums
Christian Persch [Fri, 3 Jul 2009 19:20:11 +0000 (21:20 +0200)]
Add @basename@ substitution to glib-mkenums

Move man page addition to the right place. Bug #587307.

15 years agoAdd @basename@ substitution to glib-mkenums
Christian Persch [Mon, 29 Jun 2009 13:28:22 +0000 (15:28 +0200)]
Add @basename@ substitution to glib-mkenums

Since @filename@ contains the full filename as given to the glib-mkenum
command, possibly including path elements (e.g. when using a non-srcdir
build), it is unsuitable to use in a #include statement in the generated
file if one wants to distribute it. This patch adds @basename@ which
expands to the base name of the input filename. Bug #587307.

15 years agoUpdating Estonian translation
Mattias Põldaru [Thu, 2 Jul 2009 02:23:26 +0000 (05:23 +0300)]
Updating Estonian translation

15 years agoTwo "make check" fixes for late changes to the thread-context patch
Dan Winship [Wed, 1 Jul 2009 17:52:49 +0000 (13:52 -0400)]
Two "make check" fixes for late changes to the thread-context patch

g_simple_async_result_complete() now checks that it's being run from
the correct main loop, so tests/gio/simple-async-result was failing,
because it called it from outside any main loop. (And gio's pltcheck
was failing because I hadn't added g_main_current_source() to it.)

15 years agoMove gio tests from gio/tests/ to tests/gio/
Benjamin Otte [Wed, 1 Jul 2009 17:03:19 +0000 (19:03 +0200)]
Move gio tests from gio/tests/ to tests/gio/

This avoids getting tests built every time when working on libgio and
running make in the gio/ directory.

15 years agoSupport g_main_context_push_thread_default() in gio
Dan Winship [Wed, 17 Jun 2009 00:22:58 +0000 (20:22 -0400)]
Support g_main_context_push_thread_default() in gio

GFile allows for the possibility that external implementations may not
support thread-default contexts yet, via
g_file_supports_thread_contexts(). GVolumeMonitor is not yet
thread-default-context aware.

Add a test program to verify that basic gio async ops work correctly
in non-default contexts.

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

15 years agoAdd g_main_context_push_thread_default() etc
Dan Winship [Fri, 5 Jun 2009 01:59:15 +0000 (21:59 -0400)]
Add g_main_context_push_thread_default() etc

This allows applications to use async methods from other threads, or
in multiple independent main loops.

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

15 years agoUse low-level GSource methods in a few more places
Dan Winship [Fri, 19 Jun 2009 14:30:14 +0000 (10:30 -0400)]
Use low-level GSource methods in a few more places

(in preparation for thread-default context support)

15 years agoRemove some unused code
Dan Winship [Wed, 17 Jun 2009 00:21:29 +0000 (20:21 -0400)]
Remove some unused code

15 years agoFix GResolver for g_simple_async_result_set_op_res_gpointer change
Dan Winship [Tue, 23 Jun 2009 16:01:34 +0000 (12:01 -0400)]
Fix GResolver for g_simple_async_result_set_op_res_gpointer change

Previously, re-setting the pointer value would cause the old
GDestroyNotify to be lost; now it causes it to be run.

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