dana/cg-glib.git
14 years agoDon't mark test files for translation
Matthias Clasen [Wed, 30 Sep 2009 00:57:45 +0000 (20:57 -0400)]
Don't mark test files for translation

As pointed out in bug 596064

14 years agoFix mime_info_cache_dir_add_desktop_entries
Matthias Clasen [Wed, 30 Sep 2009 00:52:26 +0000 (20:52 -0400)]
Fix mime_info_cache_dir_add_desktop_entries

This function tried to avoid adding duplicate entries, but failed
due to using the wrong search function. See bug 595972.

14 years agoAvoid a C99ism
Matthias Clasen [Wed, 30 Sep 2009 00:45:26 +0000 (20:45 -0400)]
Avoid a C99ism

Move a variable declaration to the beginning of the block; see
bug 596561. Also remove a pointless register declaration.

14 years agoImprove docs for g_utf16_to_utf8
Matthias Clasen [Wed, 30 Sep 2009 00:39:39 +0000 (20:39 -0400)]
Improve docs for g_utf16_to_utf8

Document that g_utf16_to_utf8 does not validate the resulting
UTF-8 string. See bug 596314.

14 years agoClarify docs of g_async_result_get_source_object
Matthias Clasen [Wed, 30 Sep 2009 00:33:39 +0000 (20:33 -0400)]
Clarify docs of g_async_result_get_source_object

It returns a new reference. Reported in bug 596748

14 years agoAvoid critical error in thread check if source is destroyed
Alexander Larsson [Tue, 29 Sep 2009 09:25:13 +0000 (11:25 +0200)]
Avoid critical error in thread check if source is destroyed

The source can be destroyed by the time we complete the result, and
then the g_source_get_context(current_source) call will cause
a critical error. We check for the source being destroyed and avoid
the check in that case.

This means we miss the right-thread check in this case, but thats
merely a helper, so this is not critical.

14 years agoUpdated Bengali translation
Jamil Ahmed [Mon, 28 Sep 2009 21:01:37 +0000 (04:01 +0700)]
Updated Bengali translation

14 years agoAlways report metadata on the path, not symlink target
Alexander Larsson [Mon, 28 Sep 2009 13:55:44 +0000 (15:55 +0200)]
Always report metadata on the path, not symlink target

Metadata are really part of the pathname, not the target file
(as they are stored by pathname, and for many metadata like icon position
etc make not sense using the target data). So, even if nofollow
is not specified we should not follow links for metadata.

Ideally this should be implemented in the metadata extension in gvfs,
but the extension API does not allow this, so we do it in gio.

See https://bugzilla.gnome.org/show_bug.cgi?id=593809

14 years agoFix up cast in gdb macros
Alexander Larsson [Fri, 25 Sep 2009 07:50:49 +0000 (09:50 +0200)]
Fix up cast in gdb macros

We need to actually assign the casted value somewhere.

14 years agoUse right soname for gdb autoloaded python files
Alexander Larsson [Fri, 25 Sep 2009 07:49:49 +0000 (09:49 +0200)]
Use right soname for gdb autoloaded python files

We need to look at LT_REVISION too to get the right filename.
This was just hardcoded to zero before which is obviously wrong.

14 years agoUpdated Hebrew translation
Yaron Shahrabani [Fri, 25 Sep 2009 07:39:58 +0000 (10:39 +0300)]
Updated Hebrew translation

14 years agoFix location of gdb macros
Matthias Clasen [Thu, 24 Sep 2009 14:26:46 +0000 (10:26 -0400)]
Fix location of gdb macros

These files need to be put in a location that corresponds to the
location of the libraries, so we need to take the runtime-libdir
path into account.

14 years agoBump version
Matthias Clasen [Tue, 22 Sep 2009 21:10:32 +0000 (17:10 -0400)]
Bump version

14 years agoFall back to inotify_init if inotify_init1 does not work
Josselin Mouette [Wed, 23 Sep 2009 16:39:45 +0000 (18:39 +0200)]
Fall back to inotify_init if inotify_init1 does not work

This fixes monitoring failing to work when glib is built on a 2.6.27+
kernel but run on an older one.

http://bugs.debian.org/544354
https://bugzilla.gnome.org/show_bug.cgi?id=593775

14 years agoParse libtoolize --version more carefully
Tor Lillqvist [Wed, 23 Sep 2009 06:33:48 +0000 (09:33 +0300)]
Parse libtoolize --version more carefully

Some recent versions of libtoolize output a version blurb like:
  libtoolize (GNU libtool 1.3110 2009-07-01) 2.2.7a
Don't get confused by the numbers inside the parens.

14 years ago2.22.0
Matthias Clasen [Tue, 22 Sep 2009 20:57:08 +0000 (16:57 -0400)]
2.22.0

14 years agosome doc updates
Matthias Clasen [Tue, 22 Sep 2009 16:36:50 +0000 (12:36 -0400)]
some doc updates

14 years agoUpdates
Matthias Clasen [Tue, 22 Sep 2009 14:37:05 +0000 (10:37 -0400)]
Updates

14 years agoSet version to 2.22.0
Matthias Clasen [Tue, 22 Sep 2009 13:41:04 +0000 (09:41 -0400)]
Set version to 2.22.0

14 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 22 Sep 2009 10:21:02 +0000 (12:21 +0200)]
Updated Slovenian translation

14 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 22 Sep 2009 10:15:38 +0000 (12:15 +0200)]
Updated Slovenian translation

14 years agogio: Fix some typos in G*AppInfo documentation
Mart Raudsepp [Sun, 13 Sep 2009 01:42:33 +0000 (04:42 +0300)]
gio: Fix some typos in G*AppInfo documentation

14 years agoAccept -? for glib-mkenums.
Mart Raudsepp [Sat, 12 Sep 2009 21:20:01 +0000 (00:20 +0300)]
Accept -? for glib-mkenums.

Commit 789e260638d tried to add support for -?, but there is a typo
and instead -h was added when already present instead of -? for one
of the cases.
It works without this corrections, because all unrecognized options
trigger usage showing as well, but this is more correct.

This was bug 556706 originally.

14 years agogio: Fix a Since tag to actually show up in new API of 2.20 indeces
Mart Raudsepp [Sat, 12 Sep 2009 16:49:01 +0000 (19:49 +0300)]
gio: Fix a Since tag to actually show up in new API of 2.20 indeces

Typo made in e05426062

14 years agopo/vi.po: fix type "thoạt"
Nguyễn Thái Ngọc Duy [Tue, 22 Sep 2009 02:59:13 +0000 (09:59 +0700)]
po/vi.po: fix type "thoạt"

14 years agoDocument new gdb macros
Alexander Larsson [Mon, 21 Sep 2009 13:36:45 +0000 (15:36 +0200)]
Document new gdb macros

14 years agoAdd gforeach gdb command
Alexander Larsson [Mon, 21 Sep 2009 13:21:52 +0000 (15:21 +0200)]
Add gforeach gdb command

14 years agoAdd pretty printer for hashtables
Alexander Larsson [Mon, 21 Sep 2009 10:26:23 +0000 (12:26 +0200)]
Add pretty printer for hashtables

14 years agoAdd pretty printing for GList and GSList
Alexander Larsson [Mon, 21 Sep 2009 09:06:39 +0000 (11:06 +0200)]
Add pretty printing for GList and GSList

14 years agoInitial support for gdb python macros
Alexander Larsson [Fri, 18 Sep 2009 15:15:32 +0000 (17:15 +0200)]
Initial support for gdb python macros

This includes support for gobject pointer pretty printing and
signal frame compression in backtraces.

https://bugzilla.gnome.org/show_bug.cgi?id=595619

14 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Mon, 21 Sep 2009 12:54:02 +0000 (20:54 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

14 years agoUpdated Czech translation
Petr Kovar [Sun, 20 Sep 2009 20:26:17 +0000 (22:26 +0200)]
Updated Czech translation

14 years agoUpdated Malayalam Translations
Ani [Sun, 20 Sep 2009 15:34:45 +0000 (21:04 +0530)]
Updated Malayalam Translations

14 years agoUpdated Catalan translation
Gil Forcada [Sat, 19 Sep 2009 16:04:56 +0000 (18:04 +0200)]
Updated Catalan translation

14 years agoFix build with srcdir != builddir, bug #594597
Paolo Borelli [Sat, 19 Sep 2009 08:21:36 +0000 (10:21 +0200)]
Fix build with srcdir != builddir, bug #594597

14 years agoReduce false positives in static analysis
Matthias Clasen [Fri, 18 Sep 2009 23:16:11 +0000 (19:16 -0400)]
Reduce false positives in static analysis

Tools like clang fail to recognize that stanzas like
g_return_if_fail (GTK_IS_FOO (w)) guarantee w != NULL. By minimally
rewriting the type-checking macros, we can avoid these false positives.

14 years agoFix a lot of clang complaints
Matthias Clasen [Wed, 9 Sep 2009 04:18:23 +0000 (00:18 -0400)]
Fix a lot of clang complaints

Mostly dead assignments.

14 years agoUpdated Romanian translation
Dumitru Mișu Moldovan [Thu, 17 Sep 2009 21:17:32 +0000 (00:17 +0300)]
Updated Romanian translation

14 years agoUpdated Serbian translation
Miloš Popović [Thu, 17 Sep 2009 17:58:52 +0000 (17:58 +0000)]
Updated Serbian translation

14 years agoUpdated Telugu Translation
krishnababu k [Thu, 17 Sep 2009 15:48:57 +0000 (21:18 +0530)]
Updated Telugu Translation

14 years agoUpdated Tamil Translations
ifelix [Thu, 17 Sep 2009 10:20:19 +0000 (15:50 +0530)]
Updated Tamil Translations

14 years agoUPdated Galician Translation
Fran Diéguez [Wed, 16 Sep 2009 14:15:05 +0000 (16:15 +0200)]
UPdated Galician Translation

14 years agoUpdated Bengali India Translations
Runa Bhattacharjee [Tue, 15 Sep 2009 13:01:49 +0000 (18:31 +0530)]
Updated Bengali India Translations

14 years agoUpadted Oriya Translation
Manoj Kumar Giri [Tue, 15 Sep 2009 10:52:41 +0000 (16:22 +0530)]
Upadted Oriya Translation

14 years agoUpdated Thai translation.
Theppitak Karoonboonyanan [Tue, 15 Sep 2009 07:29:36 +0000 (14:29 +0700)]
Updated Thai translation.

14 years agoUpdating Assamese translations.
Amitakhya Phukan [Tue, 15 Sep 2009 07:18:50 +0000 (12:48 +0530)]
Updating Assamese translations.

14 years agoUpdate Norwegian bokmål translation.
Kjartan Maraas [Sun, 13 Sep 2009 22:16:51 +0000 (00:16 +0200)]
Update Norwegian bokmål translation.

14 years agoUpdated Simplified Chinese translation.
Aron Xu [Sun, 13 Sep 2009 07:09:29 +0000 (15:09 +0800)]
Updated Simplified Chinese translation.

14 years agoUpdating Translation for Punjabi
A S Alam [Sun, 13 Sep 2009 03:28:57 +0000 (08:58 +0530)]
Updating Translation for Punjabi

14 years agoUpdated Danish translation
Ask H. Larsen [Sun, 13 Sep 2009 01:16:47 +0000 (03:16 +0200)]
Updated Danish translation

14 years agoUpdated British English translation
Bruce Cowan [Sat, 12 Sep 2009 19:04:29 +0000 (20:04 +0100)]
Updated British English translation

14 years agoUpdated Finnish translation
Tommi Vainikainen [Sat, 12 Sep 2009 16:10:57 +0000 (19:10 +0300)]
Updated Finnish translation

14 years agoRemove old crap for fetching the "build" directory from svn
Tor Lillqvist [Fri, 11 Sep 2009 22:57:46 +0000 (01:57 +0300)]
Remove old crap for fetching the "build" directory from svn

14 years agoFix GNetworkAddress skipping addresses when enumerating
Sjoerd Simons [Wed, 2 Sep 2009 16:48:09 +0000 (17:48 +0100)]
Fix GNetworkAddress skipping addresses when enumerating

g_network_address_address_enumerator_next_finish takes the first item of the
address list and moves the pointer to the next one, so we shouldn't do the same
in g_network_address_address_enumerator_next_async function

Fixes bug #593941

14 years agoMake the error const for g_simple_async_result_set_from_error
Richard Hughes [Wed, 2 Sep 2009 18:15:38 +0000 (19:15 +0100)]
Make the error const for g_simple_async_result_set_from_error

14 years agog_socket_send_message() fails due to invalid sendmsg(2) params.
James Hunt [Thu, 10 Sep 2009 16:18:13 +0000 (17:18 +0100)]
g_socket_send_message() fails due to invalid sendmsg(2) params.

g_socket_send_message() and g_socket_send_to() fail with ENOBUFS or
EFAULT due to the fact that if no "address" argument is specified to
g_socket_send_message, when g_socket_send_message() calls sendmsg(2),
the 2nd parameter to sendmsg ("const struct msghdr *msg") contains
uninitialized values. The fix is simple - initialize msg.msg_name to
NULL and msg.msg_msg_namelen to 0.

https://bugzilla.gnome.org/show_bug.cgi?id=594759

14 years agohindi update by Rajesh Ranjan
Rajesh Ranjan [Fri, 11 Sep 2009 10:30:29 +0000 (16:00 +0530)]
hindi update by Rajesh Ranjan

14 years agoUpdated Malayalam Translations
Ani [Fri, 11 Sep 2009 06:48:50 +0000 (12:18 +0530)]
Updated Malayalam Translations

14 years agoUpdated Ukrainian translation
Maxim V. Dziumanenko [Thu, 10 Sep 2009 22:48:56 +0000 (01:48 +0300)]
Updated Ukrainian translation

14 years agoBug 579050 Allow making selected critical and warning messages non-fatal
Christian Dywan [Thu, 10 Sep 2009 14:40:11 +0000 (16:40 +0200)]
Bug 579050 Allow making selected critical and warning messages non-fatal

Implement g_test_log_set_fatal_handler which is a function similar to
g_log_set_default_handler but for use in unit tests where certain
errors have to be ignored because it is not possible to fix or avoid
them otherwise. A unit test is added.

14 years agoUpdated Kannada(kn) translation
Shankar Prasad [Thu, 10 Sep 2009 06:56:13 +0000 (12:26 +0530)]
Updated Kannada(kn) translation

14 years agoUpdated Greek translation.
Kostas Papadimas [Wed, 9 Sep 2009 15:38:12 +0000 (18:38 +0300)]
Updated Greek translation.

14 years agoUpdated Gujarati Translations
Sweta Kothari [Wed, 9 Sep 2009 11:24:43 +0000 (16:54 +0530)]
Updated Gujarati Translations

14 years agoClarify g_ptr_array_set_size() docs re: free_func
Dan Winship [Tue, 8 Sep 2009 15:19:13 +0000 (11:19 -0400)]
Clarify g_ptr_array_set_size() docs re: free_func

14 years agoUpdated Bulgarian translation
Alexander Shopov [Tue, 8 Sep 2009 04:41:28 +0000 (07:41 +0300)]
Updated Bulgarian translation

14 years agoCall element_free_func when shrinking array with g_ptr_array_set_size
Dan Winship [Sun, 6 Sep 2009 17:54:50 +0000 (13:54 -0400)]
Call element_free_func when shrinking array with g_ptr_array_set_size

14 years agoUpdated Marathi Translations
Sandeep Shedmake [Mon, 7 Sep 2009 13:44:52 +0000 (19:14 +0530)]
Updated Marathi Translations

14 years agoAvoid reading uninitialized memory
Alexander Larsson [Mon, 7 Sep 2009 10:50:58 +0000 (12:50 +0200)]
Avoid reading uninitialized memory

If the statfs call fails, don't look at the result.

14 years agoRemove warning in g_simple_async_result_complete
Alexander Larsson [Mon, 7 Sep 2009 08:25:14 +0000 (10:25 +0200)]
Remove warning in g_simple_async_result_complete

This warning hits code that uses GSimpleAsyncResult outside of a
mainloop as a helper object. For instance EggDBus does this.
Since the bugs this warning would fix are pretty easy to spot
and since EggDBus is deployed already we just remove the
"called from outside main loop" warning.

However, we need to keep the "called from wrong context" warning
as that is very helpful when debugging misuse of the new multiple
main context code.

14 years agoAnother dead assignment
Matthias Clasen [Mon, 7 Sep 2009 07:28:35 +0000 (03:28 -0400)]
Another dead assignment

14 years agoRemove a dead initialization
Matthias Clasen [Mon, 7 Sep 2009 07:14:15 +0000 (03:14 -0400)]
Remove a dead initialization

14 years agoRemove a dead increment
Matthias Clasen [Mon, 7 Sep 2009 07:12:06 +0000 (03:12 -0400)]
Remove a dead increment

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

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