Kjartan Maraas [Wed, 11 Nov 2009 19:09:53 +0000 (20:09 +0100)]
Updated Norwegian bokmål translation.
Tor Lillqvist [Tue, 10 Nov 2009 12:19:59 +0000 (14:19 +0200)]
Include all of share/gtk-doc/html to get also the gio docs
Also add -D switches to not pointlessly include entries for directories
in the zip files.
Tor Lillqvist [Mon, 9 Nov 2009 23:37:13 +0000 (01:37 +0200)]
Avoid gcc warning about redeclaration of atexit() on MinGW
Daniel Nylander [Sun, 8 Nov 2009 21:04:51 +0000 (22:04 +0100)]
Updated Swedish translation
Fran Diéguez [Sat, 7 Nov 2009 13:40:58 +0000 (14:40 +0100)]
Updated Galician Translation
Jorge González [Fri, 6 Nov 2009 20:51:28 +0000 (21:51 +0100)]
Updated Spanish translation
Ivar Smolin [Fri, 6 Nov 2009 16:15:29 +0000 (18:15 +0200)]
Updating Estonian translation
Matej Urbančič [Fri, 6 Nov 2009 13:58:44 +0000 (14:58 +0100)]
Updated Slovenian translation
Stéphane Démurget [Sun, 25 Oct 2009 10:14:36 +0000 (11:14 +0100)]
Bug 324930 - Nicer message for EPERM on symlink
Introduced a more precise error message for EPERM when symlinking to
a local filesystem.
EPERM on symlink means symlinking is not supported by the underlying
fs so it is not the general meaning of EPERM which roughly translates
to 'Operation not permitted'.
Tor Lillqvist [Wed, 4 Nov 2009 21:59:18 +0000 (23:59 +0200)]
Don't call WSAEventSelect() on -1
If g_io_win32_sock_close() has been called on a socket channel, don't
later in g_io_win32_free() call WSAEventSelect() on its fd which has
been set to -1.
Paolo Bonzini [Tue, 3 Nov 2009 16:38:58 +0000 (18:38 +0200)]
Don't run system("touch conf.glibtest)" in the AM_PATH_GLIB_2_0 macro
Just use the C library instead to create the file. Helps building
using Wine. Not that I think we want to endorse that, but accepting
this minimal patch doesn't hurt. From bug #590016.
Signed-off-by: Tor Lillqvist <tml@iki.fi>
Tor Lillqvist [Tue, 3 Nov 2009 16:21:19 +0000 (18:21 +0200)]
Improve descriptive comment text
Hib Eris [Tue, 3 Nov 2009 13:06:29 +0000 (15:06 +0200)]
Fix check for C++ compiler when cross-compiling
Use AC_CHECK_TOOLS instead of AC_CHECK_PROGS. Patch from bug #577711.
Carlo Bramini [Tue, 3 Nov 2009 12:26:25 +0000 (14:26 +0200)]
Make g_file_test() behave on Windows more like as on POSIX
Patch from bug #572252.
Thomas Thurman [Sat, 31 Oct 2009 06:49:31 +0000 (02:49 -0400)]
Shavian translation
Benjamin Otte [Wed, 28 Oct 2009 18:18:20 +0000 (19:18 +0100)]
Properly nul-terminate return values from g_convert()
The patch ensures that multibyte character sets are properly
nul-terminated. This is an issue because the documentation claims to
return a "nul-terminated" string and users of the API assume that means
a proper nul-termination in the resulting character set.
I looked at Pidgin and GStreamer code and found at least 3 cases where
this was happening.
This patch also reverts the documentation change from
5a633f82dbbce067c56fba0ee372fd341b76368d as that is now no longer
necessary.
Benjamin Otte [Tue, 27 Oct 2009 20:07:13 +0000 (21:07 +0100)]
Clarify documentation about g_convert() nul-terminated returns
THere is effectively no nul-termination for multibyte characters.
Matthias Clasen [Sun, 25 Oct 2009 06:56:13 +0000 (02:56 -0400)]
Avoid a warning
Matthias Clasen [Sun, 25 Oct 2009 06:55:46 +0000 (02:55 -0400)]
Don't give up too early when collecting mime types
Since returning exactly one match has special significance, don't
give up matching before we've found at least 2 types. Also, make
sure that we don't return the same mime type more than once.
Bug 541236.
Sven Herzberg [Fri, 23 Oct 2009 12:49:38 +0000 (14:49 +0200)]
make sure g_set_prgname() gets called only once
* glib/gutils.c: copy the call-once statement from g_set_application_name();
Fixes Bug #563627: g_get_prgname() threadsafety
Tor Lillqvist [Thu, 22 Oct 2009 21:46:50 +0000 (00:46 +0300)]
Fix GWin32DirectoryMonitor
GWin32DirectoryMonitor was quite broken, but nobody had apparently
noticed, or at least not filed any bug. Only now with a bleeding edge
GTK+ file chooser does the code get exercised in common programs like
gtk-demo or GIMP, apparently. Bug #598899.
Cody Russell [Thu, 15 Oct 2009 02:24:30 +0000 (21:24 -0500)]
GTypeModule derived class unref does not unload plugin
Correctly unref the pclass. Patch by Chris Wilson and Tim Janik.
https://bugzilla.gnome.org/show_bug.cgi?id=350200
Tomas Bzatek [Tue, 13 Oct 2009 14:21:42 +0000 (16:21 +0200)]
Documentation fixes
Tor Lillqvist [Sun, 11 Oct 2009 21:18:48 +0000 (00:18 +0300)]
Construct the gio module directory pathname at run-time on Windows
Alexander Larsson [Thu, 8 Oct 2009 09:59:23 +0000 (11:59 +0200)]
xdgmime: sort glob hits with larger weight first
Higher weight is more important, so return these first meaning
they will be used as the default.
Ivar Smolin [Thu, 8 Oct 2009 06:56:25 +0000 (09:56 +0300)]
Updating Estonian translation
Matthias Clasen [Wed, 7 Oct 2009 14:31:19 +0000 (10:31 -0400)]
Bump version
Matthias Clasen [Wed, 7 Oct 2009 14:29:32 +0000 (10:29 -0400)]
2.22.2
Matthias Clasen [Wed, 7 Oct 2009 13:28:19 +0000 (09:28 -0400)]
Updates
Cody Russell [Tue, 6 Oct 2009 16:27:12 +0000 (12:27 -0400)]
g_object_unref racy condition can lead to crash
Store whether the object has a toggleref before decrementing the
refcount to prevent race condition when two threads simultaneously
try to unref an object with a refcount of 2.
Patch by Antoine Tremblay.
https://bugzilla.gnome.org/show_bug.cgi?id=551706
Leonid Kanter [Tue, 6 Oct 2009 08:52:48 +0000 (11:52 +0300)]
Updated Russian translation by <vicanis@gmail.com>
Edward Hervey [Sat, 3 Oct 2009 10:37:36 +0000 (12:37 +0200)]
gobject/gtype.h: Fix _G_TYPE_CVH macro. Fixes #597194
If __val doesn't exist, we shouldn't do any other checks.
Alexander Larsson [Wed, 19 Aug 2009 15:24:16 +0000 (17:24 +0200)]
Add fast path for construction with no params
This avoids a bunch of code and makes construction of simple objects
faster.
Object construction performance improvement:
Non-Threaded Threaded
Simple: 14% 5%
Complex: -1.1% -2.2%
Other tests stable.
https://bugzilla.gnome.org/show_bug.cgi?id=557100
Alexander Larsson [Wed, 19 Aug 2009 15:22:32 +0000 (17:22 +0200)]
Don't freeze/thaw notification during construction if no properties
If the class has no properties there could be no notification anyway.
This is an important optimization for construction of simple objects.
Object construction performance improvement:
Non-Threaded Threaded
Simple: 84% 91%
Complex: -1.4% -0.6%
Other tests stable.
https://bugzilla.gnome.org/show_bug.cgi?id=557100
Alexander Larsson [Fri, 2 Oct 2009 17:27:48 +0000 (19:27 +0200)]
Add a check that no properties are added after a class is derived
We can't support that, because that would cause the CLASS_HAS_PROPS_FLAG
class flag to not be correct.
Alexander Larsson [Wed, 19 Aug 2009 15:21:18 +0000 (17:21 +0200)]
Add GObjectClass flag CLASS_HAS_PROPS_FLAG
This is set if a class or any of its parents have installed any
properties.
https://bugzilla.gnome.org/show_bug.cgi?id=557100
Alexander Larsson [Wed, 19 Aug 2009 15:17:41 +0000 (17:17 +0200)]
Add flags member for GObjectClass
https://bugzilla.gnome.org/show_bug.cgi?id=557100
Alexander Larsson [Wed, 19 Aug 2009 13:48:19 +0000 (15:48 +0200)]
Allocate GObjectNotifyQueue with g_slice instead of abusing g_list
This is both cleaner and faster (it avoids function calls and
zeroing the memory twice).
Object construction performance improvement:
Non-Threaded Threaded
Simple: 11% 1.3%
Complex: 8% 6%
Other tests stable.
https://bugzilla.gnome.org/show_bug.cgi?id=557100
Alexander Larsson [Wed, 9 Sep 2009 15:08:57 +0000 (17:08 +0200)]
Add gobject performance tests for threaded code
This measures how much things like lock contention affects the gobject
code.
Alexander Larsson [Thu, 20 Aug 2009 12:34:51 +0000 (14:34 +0200)]
Add performance tests for GObject primitives
These are basic performance test for a couple of basic gobject
primitives:
* construction of simple objects. Simple is a bare gobject derived
class with no properties, signals or interfaces.
* construction of complex objects. Complex is a gobject subclass
with construct properties, normal properties, signals, and
implements an interface.
* run-time type check of complex objects
* signal emissions
Lots of care is taken to try to make the results reproducible. Each
test is run for multible "rounds", where we try to make each round be
"not too short" in order to be significant wrt timer accuracy, but
also "not to long" to make the probability of some other random event
happening on the system (interrupts, other process scheduled, etc)
during the round less likely.
The current target round time is 4 msecs, which was picked without
rigour, but seems small wrt e.g. scheduler time.
For each test we then run the calculated round size for 60 seconds,
and then report the performance based on the minimal time of one
round. The model here is that any random stuff that happens during a
round can only slow it down, there is nothing that can make it go
faster, so the minimal time is the best estimate of how fast one round
goes.
The result is not ideal, even on a "idle" system the results vary
from round to round, but the variation seems to be less than 1%.
So, any performance difference reported by this test over 1% is
probably statistically significant.
Additionally the tests can be run with or without threads being
initialized. The script tests/gobject/run-performance.sh makes
it easy to produce a performance report for the current checkout.
https://bugzilla.gnome.org/show_bug.cgi?id=557100
Alexander Larsson [Fri, 2 Oct 2009 10:54:18 +0000 (12:54 +0200)]
remove xdgmime test
This is getting diverged from the xdgmime copy and we don't need it here.
Alexander Larsson [Fri, 2 Oct 2009 10:06:25 +0000 (12:06 +0200)]
xdgmime - Correct the range checks for magic matching
Alexander Larsson [Fri, 2 Oct 2009 10:06:15 +0000 (12:06 +0200)]
Remove unnecessary includes
Alexander Larsson [Fri, 2 Oct 2009 07:49:51 +0000 (09:49 +0200)]
xdgmime - support the new case sensitive flag
Alexander Larsson [Fri, 2 Oct 2009 07:48:35 +0000 (09:48 +0200)]
xdgmime - support cache files with minor version 2
Alexander Larsson [Fri, 2 Oct 2009 07:46:33 +0000 (09:46 +0200)]
Read the new glob2 format with case sensitive flags
Tor Lillqvist [Fri, 2 Oct 2009 09:43:21 +0000 (12:43 +0300)]
Drop the VS8 project files from tarballs as they are unmaintained
Pierre A. Joye [Fri, 2 Oct 2009 09:34:44 +0000 (12:34 +0300)]
Update VS9 project files to fix build
From bug #596784
Matthias Clasen [Wed, 30 Sep 2009 03:06:45 +0000 (23:06 -0400)]
Fix --runtime-libdir option
For stable releases, it needs to take LT_REVISION into account, not
hardcode 0.
Matthias Clasen [Wed, 30 Sep 2009 02:07:04 +0000 (22:07 -0400)]
Bump version
Matthias Clasen [Wed, 30 Sep 2009 02:05:27 +0000 (22:05 -0400)]
2.22.1
Matthias Clasen [Wed, 30 Sep 2009 01:16:53 +0000 (21:16 -0400)]
Updates
Miloš Popović [Wed, 30 Sep 2009 03:05:31 +0000 (03:05 +0000)]
Updated Serbian translation
Miloš Popović [Wed, 30 Sep 2009 03:04:05 +0000 (03:04 +0000)]
Updated Serbian translation
Miloš Popović [Wed, 30 Sep 2009 03:02:15 +0000 (03:02 +0000)]
Updated Serbian 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
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.
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.
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.
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
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.
Jamil Ahmed [Mon, 28 Sep 2009 21:01:37 +0000 (04:01 +0700)]
Updated Bengali translation
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
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.
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.
Yaron Shahrabani [Fri, 25 Sep 2009 07:39:58 +0000 (10:39 +0300)]
Updated Hebrew translation
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.
Matthias Clasen [Tue, 22 Sep 2009 21:10:32 +0000 (17:10 -0400)]
Bump version
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
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.
Matthias Clasen [Tue, 22 Sep 2009 20:57:08 +0000 (16:57 -0400)]
2.22.0
Matthias Clasen [Tue, 22 Sep 2009 16:36:50 +0000 (12:36 -0400)]
some doc updates
Matthias Clasen [Tue, 22 Sep 2009 14:37:05 +0000 (10:37 -0400)]
Updates
Matthias Clasen [Tue, 22 Sep 2009 13:41:04 +0000 (09:41 -0400)]
Set version to 2.22.0
Matej Urbančič [Tue, 22 Sep 2009 10:21:02 +0000 (12:21 +0200)]
Updated Slovenian translation
Matej Urbančič [Tue, 22 Sep 2009 10:15:38 +0000 (12:15 +0200)]
Updated Slovenian translation
Mart Raudsepp [Sun, 13 Sep 2009 01:42:33 +0000 (04:42 +0300)]
gio: Fix some typos in G*AppInfo documentation
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.
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
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"
Alexander Larsson [Mon, 21 Sep 2009 13:36:45 +0000 (15:36 +0200)]
Document new gdb macros
Alexander Larsson [Mon, 21 Sep 2009 13:21:52 +0000 (15:21 +0200)]
Add gforeach gdb command
Alexander Larsson [Mon, 21 Sep 2009 10:26:23 +0000 (12:26 +0200)]
Add pretty printer for hashtables
Alexander Larsson [Mon, 21 Sep 2009 09:06:39 +0000 (11:06 +0200)]
Add pretty printing for GList and GSList
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
Chao-Hsiung Liao [Mon, 21 Sep 2009 12:54:02 +0000 (20:54 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Petr Kovar [Sun, 20 Sep 2009 20:26:17 +0000 (22:26 +0200)]
Updated Czech translation
Ani [Sun, 20 Sep 2009 15:34:45 +0000 (21:04 +0530)]
Updated Malayalam Translations
Gil Forcada [Sat, 19 Sep 2009 16:04:56 +0000 (18:04 +0200)]
Updated Catalan translation
Paolo Borelli [Sat, 19 Sep 2009 08:21:36 +0000 (10:21 +0200)]
Fix build with srcdir != builddir, bug #594597
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.
Matthias Clasen [Wed, 9 Sep 2009 04:18:23 +0000 (00:18 -0400)]
Fix a lot of clang complaints
Mostly dead assignments.
Dumitru Mișu Moldovan [Thu, 17 Sep 2009 21:17:32 +0000 (00:17 +0300)]
Updated Romanian translation
Miloš Popović [Thu, 17 Sep 2009 17:58:52 +0000 (17:58 +0000)]
Updated Serbian translation
krishnababu k [Thu, 17 Sep 2009 15:48:57 +0000 (21:18 +0530)]
Updated Telugu Translation
ifelix [Thu, 17 Sep 2009 10:20:19 +0000 (15:50 +0530)]
Updated Tamil Translations
Fran Diéguez [Wed, 16 Sep 2009 14:15:05 +0000 (16:15 +0200)]
UPdated Galician Translation
Runa Bhattacharjee [Tue, 15 Sep 2009 13:01:49 +0000 (18:31 +0530)]
Updated Bengali India Translations
Manoj Kumar Giri [Tue, 15 Sep 2009 10:52:41 +0000 (16:22 +0530)]
Upadted Oriya Translation
Theppitak Karoonboonyanan [Tue, 15 Sep 2009 07:29:36 +0000 (14:29 +0700)]
Updated Thai translation.