Ihar Hrachyshka [Wed, 13 Jul 2011 20:36:37 +0000 (23:36 +0300)]
Updated Belarusian translation.
Ihar Hrachyshka [Wed, 13 Jul 2011 20:30:49 +0000 (23:30 +0300)]
Updated Belarusian translation.
Aurimas Černius [Tue, 12 Jul 2011 20:21:25 +0000 (23:21 +0300)]
Updated Lithuanian translation
Changwoo Ryu [Tue, 12 Jul 2011 17:51:03 +0000 (02:51 +0900)]
Updated Korean translation
Ryan Lortie [Tue, 12 Jul 2011 00:56:57 +0000 (02:56 +0200)]
GDBusInterfaceSkeleton: fix odd use of floating refs
The get_properties() function was documented as returning a floating
Switch it over to returning a normal reference and patch a couple of
uses.
https://bugzilla.gnome.org/show_bug.cgi?id=654394
Ryan Lortie [Mon, 11 Jul 2011 12:27:53 +0000 (14:27 +0200)]
GVariant: add g_variant_take_ref()
This function implements the following logic:
if (g_variant_is_floating (value))
g_variant_ref_sink (value);
which is used for consuming the return value of callbacks that may or
may not return floating references.
This patch also replaces a few instances of the above code with the new
function (GSettings, GDBus) and lifts a long-standing restriction on the
use of floating values as the return value for signal handlers by
improving g_value_take_variant().
https://bugzilla.gnome.org/show_bug.cgi?id=627974
Rudolfs Mazurs [Tue, 12 Jul 2011 13:29:33 +0000 (16:29 +0300)]
Updated Latvian translation.
Murray Cumming [Tue, 12 Jul 2011 10:09:31 +0000 (12:09 +0200)]
Docs: Fixed a typo.
Tim-Philipp Müller [Tue, 5 Jul 2011 13:30:31 +0000 (14:30 +0100)]
tests: fix glib_translations_work()
If setlocale() to our test locale fails, translations
won't work either.
https://bugzilla.gnome.org/show_bug.cgi?id=654017
Paolo Bonzini [Thu, 15 Apr 2010 06:23:00 +0000 (08:23 +0200)]
add g_regex_escape_nul
The function can be used to let regex compile non-NUL-terminated
strings without redesigning the way the pattern is stored in GRegex
objects and retrieved with g_regex_get_pattern.
https://bugzilla.gnome.org/show_bug.cgi?id=615895
Matthias Clasen [Mon, 11 Jul 2011 03:55:52 +0000 (23:55 -0400)]
Fix gtk-doc cross-linking among glib/gobject/gio
Patch by Daniel Macks, bug 644687.
Matthias Clasen [Mon, 11 Jul 2011 03:11:30 +0000 (23:11 -0400)]
Take out the timeout from the large-message test
This is an attempt to make the test not fail on build slaves,
which currently getting a timeout error here.
Matthias Clasen [Mon, 11 Jul 2011 01:57:45 +0000 (21:57 -0400)]
Don't test negative values in ulong conversions
This is failing on 32bit build slaves.
Martin Storsjo [Wed, 6 Jul 2011 13:41:44 +0000 (16:41 +0300)]
Don't needlessly use "echo -e"
The -e parameter to echo isn't recognized by echo in POSIX sh,
but isn't needed when no escaped characters need to be
interpreted.
This fixes building glib with a mingw cross compiler on Mac OS X.
https://bugzilla.gnome.org/show_bug.cgi?id=654085
Matthias Clasen [Mon, 11 Jul 2011 00:42:58 +0000 (20:42 -0400)]
Optimize g_[s]list_free_full a bit
No need to iterate the list twice.
Proposed by Luiz Augusto von Dentz,
http://bugzilla.gnome.org/show_bug.cgi?id=653935
Colin Walters [Sun, 10 Jul 2011 16:19:15 +0000 (12:19 -0400)]
GCancellable: Make eventfd() fall back to pipes on EINVAL too
https://bugzilla.gnome.org/show_bug.cgi?id=654232
Javier Jardón [Fri, 8 Jul 2011 15:15:52 +0000 (16:15 +0100)]
docs: G_GNUC_DEPRECATED_FOR was added in Glib 2.26
Muhammet Kara [Thu, 7 Jul 2011 22:09:03 +0000 (01:09 +0300)]
[l10n]Updated Turkish translation
Abduxukur Abdurixit [Thu, 7 Jul 2011 14:31:17 +0000 (16:31 +0200)]
Added UG translation
Javier Jardón [Wed, 6 Jul 2011 21:13:05 +0000 (22:13 +0100)]
Move documentation to inline comments: spawn
Javier Jardón [Wed, 6 Jul 2011 20:49:55 +0000 (21:49 +0100)]
Move documentation to inline comments: conversions
Dan Winship [Tue, 7 Jun 2011 21:15:17 +0000 (17:15 -0400)]
g_output_stream_splice: deal with overflow
On 32-bit machines in particular, bytes_written may overflow a gssize.
Notice when that happens and just return G_MAXSSIZE instead.
https://bugzilla.gnome.org/show_bug.cgi?id=649246
Chun-wei Fan [Wed, 6 Jul 2011 01:58:37 +0000 (09:58 +0800)]
Revert distribution of build/win32/setup.py
Revert commit on distribution of this file as it is meant to be used in
a GIT checkout only.
Chun-wei Fan [Wed, 6 Jul 2011 00:28:57 +0000 (08:28 +0800)]
Add build/win32/setup.py to distribution
Chun-wei Fan [Wed, 6 Jul 2011 00:25:41 +0000 (08:25 +0800)]
Bug 653841: Update README.win32 and VS README.txt's
This relates to my previous commit titled "add a script to generator
files for building" on behalf of Shixin Zeng.
Tell people about the availability of a python script to create the
necessary files for a Visual C++ build from a GIT checkout.
This is done with the courtesy of Shixin Zeng's python script which does
the job and eliminates the troubles of getting a suitable shell environment
to do the "make dist" job (which is especially not easy on Windows itself!)
Shixin Zeng [Wed, 29 Jun 2011 05:04:14 +0000 (00:04 -0500)]
add a script to generator files for building
Signed-off-by: Chun-wei Fan <fanchunwei@src.gnome.org>
Matthias Clasen [Tue, 5 Jul 2011 15:22:11 +0000 (11:22 -0400)]
Post-release version bump
Up to 2.29.11
Matthias Clasen [Tue, 5 Jul 2011 15:21:40 +0000 (11:21 -0400)]
2.29.10
Colin Walters [Tue, 5 Jul 2011 14:20:48 +0000 (10:20 -0400)]
build: Use --disable-maintainer-mode for distcheck
Otherwise due to weird things like gtk-doc.make copying files back
into the source directory, we may run into the maintainer mode
bits mistakenly attempting to rerun.
Colin Walters [Tue, 5 Jul 2011 13:42:39 +0000 (09:42 -0400)]
gio: Fix srcdir != builddir build for docs
Matthias Clasen [Tue, 5 Jul 2011 13:17:02 +0000 (09:17 -0400)]
Update NEWS for 2.29.10
Matthias Clasen [Mon, 4 Jul 2011 20:03:33 +0000 (16:03 -0400)]
Fix the build
When renaming a variable from _SCRIPTS to _DATA, it helps to
also rename all references.
Matthias Clasen [Mon, 4 Jul 2011 17:09:54 +0000 (13:09 -0400)]
Disable a failing test
Chun-wei Fan [Mon, 4 Jul 2011 14:21:05 +0000 (22:21 +0800)]
Update GIO VS 2010 project templates
Revert EOL of these files to Unix style as they are to be processed
during "make dist"
Chun-wei Fan [Mon, 4 Jul 2011 13:47:59 +0000 (21:47 +0800)]
Updated GIO Visual Studio Projects
-In gio/Makefile.am, the name for one of the filters for capturing the
sources for the GIO VS Project Files is corrected.
-Remove the GIO source file items in the VS project files templates as
a result for this change, and move the entry of the "new"
gregistrysettingsbackend.c into the filter in gio/Makefile.am
Murray Cumming [Mon, 4 Jul 2011 06:58:00 +0000 (08:58 +0200)]
G_STATIC_REC_MUTEX_INIT: Fix missing initialization.
Add the third struct field, zeroed, to avoid a compiler warning.
Ryan Lortie [Sun, 3 Jul 2011 15:37:35 +0000 (17:37 +0200)]
Install completion scripts as DATA, not SCRIPTS
They are sourced by the shell and don't include a #!/bin/sh, so they shouldn't
be marked as executable.
Dan Winship [Wed, 29 Jun 2011 12:29:16 +0000 (08:29 -0400)]
gasyncresult: document that NULL GAsyncReadyCallback is allowed
https://bugzilla.gnome.org/show_bug.cgi?id=653484
Dieter Verfaillie [Thu, 30 Jun 2011 13:32:32 +0000 (09:32 -0400)]
GCancellable: Fix build on Win32
https://bugzilla.gnome.org/show_bug.cgi?id=653522
Emmanuele Bassi [Wed, 29 Jun 2011 17:07:29 +0000 (18:07 +0100)]
gio: Some more build fixes
Emmanuele Bassi [Wed, 29 Jun 2011 17:00:53 +0000 (18:00 +0100)]
Fix build
The g_return_val_if_fail() macro takes a return value.
Ryan Lortie [Wed, 29 Jun 2011 16:19:38 +0000 (17:19 +0100)]
parameter guards for GSimpleAction constructors
Ryan Lortie [Wed, 29 Jun 2011 16:13:58 +0000 (17:13 +0100)]
GAction: make GObject properties read-only
GAction is a read-only interface (as is visible by the lack of _set() functions
on its API). The properties on the interface currently force implementors to
support writing of the properties at construct time, however.
Lift that restriction.
Take advantage of this from GSimpleAction by nuking the set_property
function and setting the fields directly in the constructor.
Ryan Lortie [Wed, 29 Jun 2011 15:10:38 +0000 (16:10 +0100)]
actions: merge testcases change_state and entries
Since we have support for change_state in GActionEntry now.
Ryan Lortie [Wed, 29 Jun 2011 15:04:09 +0000 (16:04 +0100)]
Add 'change_state' callback to GActionEntry
Ryan Lortie [Wed, 29 Jun 2011 13:53:24 +0000 (14:53 +0100)]
Add example for 'change-state' signal
Pulled from the testcase.
Ryan Lortie [Wed, 29 Jun 2011 13:44:58 +0000 (14:44 +0100)]
Add testcase for GSimpleAction::change-state
Ryan Lortie [Wed, 29 Jun 2011 13:35:12 +0000 (14:35 +0100)]
Add 'change-state' signal to GSimpleAction
If connected, allows the user to control the result of
g_action_change_state().
Ryan Lortie [Wed, 29 Jun 2011 12:55:59 +0000 (13:55 +0100)]
Add example to docs for using GActionEntry
Ryan Lortie [Wed, 29 Jun 2011 12:02:30 +0000 (13:02 +0100)]
Add a test case for GActionEntry
Ryan Lortie [Wed, 29 Jun 2011 12:00:30 +0000 (13:00 +0100)]
Add g_simple_action_group_add_entries()
A convenience API for creating lots of actions quickly.
Ryan Lortie [Wed, 29 Jun 2011 11:28:15 +0000 (12:28 +0100)]
allow NULL state in g_simple_action_new_stateful
as an undocumented feature
Ryan Lortie [Wed, 29 Jun 2011 09:11:59 +0000 (10:11 +0100)]
Make 4 incompatible changes to the GAction API
This commit represents an API break to GAction in the following ways:
- the 'set_state' entry in the GActionInterface vtable has been
renamed to 'change_state'. The number and order of vtable items has
not otherwise changed.
- g_action_set_state() has been renamed to g_action_change_state() to
match the updated vtable entry.
- the "state" property of the GAction interface has been changed to
read-only to reflect the fact that g_action_set_state() no longer
exists.
- GSimpleActionClass has been hidden. GSimpleAction can no longer be
subclassed.
>> Rationale
g_action_set_state() has never been a true setter in the sense that
calling it will update the value of the "state" property. It has always
been closer to "request 'state' to be changed to this value" with
semantics defined by the implementor of the interface. This is why the
equivalent method in GActionGroup had its name changed from 'set' to
'change'. This change makes the two interfaces more consistent and
removes any implication about the effect that calling set_state() should
have on the 'state' property.
>> Impact
This incompatible API break was undertaken only because I strongly
suspect that it will go entirely unnoticed. If the break actually
affects anybody, then we will accommodate them (possibly going as far as
to revert this commit entirely).
The virtual table change only impacts implementors of GAction. I
strongly suspect that this is nobody (except for GSimpleAction).
The hiding of GSimpleActionClass only impacts impacts subclasses of
GSimpleAction. I strongly suspect that none of these exist.
The changing of the property to be read-only only affects people who
were trying to change the state by using GObject properties. I strongly
suspect that this is nobody at all.
The removal of the g_action_set_state() call is the most dangerous, but
I still suspect that it will impact nobody outside of GLib. If anybody
is impacted by this change then, at their request, I will reintroduce
the API as a deprecated alias for g_action_change_state().
Chun-wei Fan [Wed, 29 Jun 2011 06:07:38 +0000 (14:07 +0800)]
Update Visual Studio README.txt's
-The VS2010 README.txt should have Windows CRLF EOL.
-Tell people about the added dependency on LibFFI
Chun-wei Fan [Wed, 29 Jun 2011 04:36:24 +0000 (12:36 +0800)]
Re-attempt to correct EOL on VS2010 solution
This time I realized that I needed to set autocrlf=false on my Windows side
... ugh...
This is one of those files that must have CRLF line endings to work
orrectly :|
Colin Walters [Tue, 28 Jun 2011 16:52:58 +0000 (12:52 -0400)]
GCancellable: Fix build on Win32
https://bugzilla.gnome.org/show_bug.cgi?id=653522
Colin Walters [Tue, 28 Jun 2011 14:03:15 +0000 (10:03 -0400)]
gmain: Fall back to pipes if kernel doesn't support EFD_CLOEXEC for eventfd()
Also remove the caching of checking for eventfd; just try it every time, it's
cheap enough to do so.
https://bugzilla.gnome.org/show_bug.cgi?id=653570
Ihar Hrachyshka [Mon, 27 Jun 2011 23:02:34 +0000 (02:02 +0300)]
Updated Belarusian translation.
Ihar Hrachyshka [Mon, 27 Jun 2011 22:27:27 +0000 (01:27 +0300)]
Updated Belarusian translation.
Ryan Lortie [Mon, 27 Jun 2011 10:28:55 +0000 (11:28 +0100)]
Change to AM_MAINTAINER_MODE([enable])
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=653429
Ihar Hrachyshka [Sat, 25 Jun 2011 16:14:09 +0000 (19:14 +0300)]
Updated Belarusian translation.
Claudio Saavedra [Fri, 24 Jun 2011 13:04:54 +0000 (16:04 +0300)]
GSimpleAction: fix typo
Krzesimir Nowak [Fri, 24 Jun 2011 11:20:06 +0000 (13:20 +0200)]
Typo fix.
Fixes jhbuilding gobject-introspection.
Chun-wei Fan [Fri, 24 Jun 2011 03:22:47 +0000 (11:22 +0800)]
Refine Visual Studio Projects
-Reinstate build/win32/vs10/glib.sln with the correct EOL (DOS/Windows) so
that the file can be correctly recognized by Windows, rather than having
the "Unrecognized Visual Studio Version".
-Update the main GLib projects to output the DLL/LIB file into <Release or
Debug>\<Win32 or x64>\bin for all configurations.
-Update/simplify the property sheets to copy all DLL and LIB files from
<Release or Debug>\<Win32 or x64>\bin for all configurations.
-Update the VS 2008 property sheet to seperate the intermediate directories
for all projects as well to avoid errors/warnings of being unable to
write/access the PDB files as they are in use.
Chun-wei Fan [Fri, 24 Jun 2011 03:13:33 +0000 (11:13 +0800)]
Temporarily remove build/win32/vs10/glib.sln
To fix up for the line endings (this needs to be in the DOS/Windows
format)
Matthias Clasen [Fri, 24 Jun 2011 01:31:40 +0000 (21:31 -0400)]
Unicode: add a g_utf8_substring convenience api
This function is useful in the GTK+ accessibility implementations,
and seems like a nice thing to have around in general.
Christian Persch [Thu, 23 Jun 2011 23:07:18 +0000 (01:07 +0200)]
Typo fix
Christian Persch [Thu, 23 Jun 2011 16:35:40 +0000 (18:35 +0200)]
Plug a mem leak in the regex test
Christian Persch [Thu, 23 Jun 2011 16:31:29 +0000 (18:31 +0200)]
Add boxed GType for GMatchInfo
Christian Persch [Thu, 23 Jun 2011 16:27:29 +0000 (18:27 +0200)]
Make GMatchInfo refcounted
Patrick Welche [Thu, 23 Jun 2011 14:08:46 +0000 (15:08 +0100)]
build: fix gtk-doc when srcdir != builddir
https://bugzilla.gnome.org/show_bug.cgi?id=653250
Sebastian Dröge [Thu, 23 Jun 2011 07:34:59 +0000 (09:34 +0200)]
Fix typo in GTime docs
deprected -> deprecated
Matthias Clasen [Tue, 21 Jun 2011 04:54:00 +0000 (00:54 -0400)]
Add tests for GValueArray
Matthias Clasen [Tue, 21 Jun 2011 04:52:43 +0000 (00:52 -0400)]
Improve test coverage for GValue transformations
Matthias Clasen [Tue, 21 Jun 2011 04:51:57 +0000 (00:51 -0400)]
Run some tests with errorcheck mutexes too
All in the name of better test coverage.
Yuri Kozlov [Wed, 22 Jun 2011 16:10:43 +0000 (20:10 +0400)]
Updated Russian translation
Chun-wei Fan [Wed, 22 Jun 2011 07:22:55 +0000 (15:22 +0800)]
Update config.h.win32(.in)
Make file contents more like the config.h(.in) contents
Colin Walters [Wed, 22 Jun 2011 03:24:07 +0000 (23:24 -0400)]
build: Cache check for futex() and eventfd()
Colin Walters [Wed, 22 Jun 2011 01:43:19 +0000 (21:43 -0400)]
GCancellable: Use Linux eventfd() instead of pipe
See commit
f626dd2b4311bd82137c5b208ab2de288c3e6fae for rationale;
basically it's cheaper than a pipe.
https://bugzilla.gnome.org/show_bug.cgi?id=653140
Colin Walters [Tue, 21 Jun 2011 23:01:10 +0000 (19:01 -0400)]
gmain: use Linux eventfd() for main context wake up
The Linux eventfd() call is basically tailor made for the main loop
wake up pipe - all we want is a threadsafe way to write to a file
descriptor, and wake up the context on the other end; we don't care
about the content at all.
The eventfd manual page basically explains the benefits:
Applications can use an eventfd file descriptor instead of a
pipe (see pipe(2)) in all cases where a pipe is used simply to
signal events. The kernel overhead of an eventfd file
descriptor is much lower than that of a pipe, and only one file
descriptor is required (versus the two required for a pipe).
When writing my multithreaded spawn test case I actually hit the 1024
file descriptor limit quickly, because we used 2 fds per main context.
This brings that down to 1.
https://bugzilla.gnome.org/show_bug.cgi?id=653140
Dan Winship [Tue, 21 Jun 2011 20:14:50 +0000 (16:14 -0400)]
gio/Makefile.am: Remove stray references to $(marshal_sources)
Colin Walters [Tue, 21 Jun 2011 14:26:58 +0000 (10:26 -0400)]
Fix a srcdir!=builddir issue, and export that we support it
Future jhbuild versions will consume the BUILD API and automatically
use a builddir, so mark us as supporting it.
Fran Diéguez [Tue, 21 Jun 2011 11:55:31 +0000 (13:55 +0200)]
Updated Galician translations
Philip Van Hoof [Sat, 18 Jun 2011 17:40:34 +0000 (19:40 +0200)]
Add iter_replace API to GHashTableIter
https://bugzilla.gnome.org/show_bug.cgi?id=652822
Matthias Clasen [Tue, 21 Jun 2011 02:49:34 +0000 (22:49 -0400)]
Make gmarshal.c actually compile standalone
It was lacking the necessary includes; in the past it has been
included towards the bottom of gsignal.c, and gained its includes
that way.
Colin Walters [Mon, 20 Jun 2011 13:06:07 +0000 (09:06 -0400)]
Stop using glib-genmarshal at build time
To help cross compilation, don't use glib-genmarshal in our
build. This is easy now that we have g_cclosure_marshal_generic().
In gobject/, add gmarshal.[ch] to git (making the existing entry
points stubs).
In gio/, simply switch to using g_cclosure_marshal_generic().
https://bugzilla.gnome.org/show_bug.cgi?id=652168
David Zeuthen [Mon, 20 Jun 2011 20:32:03 +0000 (16:32 -0400)]
GDBus: Unref worker from worker-thread to avoid race
... otherwise we might end up using the worker after it has been
freed. Reported by Dan Winship and Colin Walters.
This fix uncovered a bug in the /gdbus/nonce-tcp test case so "fix"
that as well to use a better way of having one thread wait for another
(using quotes for the word "fix" since it's pretty hackish to
busy-wait in one thread to wait for another).
Signed-off-by: David Zeuthen <davidz@redhat.com>
Colin Walters [Mon, 20 Jun 2011 18:09:31 +0000 (14:09 -0400)]
gthread tests: Remove spurious return;
Colin Walters [Mon, 20 Jun 2011 15:15:27 +0000 (11:15 -0400)]
gclosure: Add G_TYPE_ENUM and G_TYPE_PARAM for g_cclosure_marshal_generic()
These are fundamental types missed in the original commit.
Colin Walters [Mon, 20 Jun 2011 17:41:52 +0000 (13:41 -0400)]
gdbus-test-codegen: Allocate full integer space for uint16 properties
Because there is no G_TYPE_[U]INT16, we need to use integer types,
otherwise we'll end up overwriting memory (in this case on the stack).
Javier Jardón [Mon, 20 Jun 2011 10:48:25 +0000 (11:48 +0100)]
configure.ac: Generate xz tarballs by default
Chun-wei Fan [Mon, 20 Jun 2011 03:50:57 +0000 (11:50 +0800)]
Visual C++ 2010 project files update
Consolidate my previous commit into property file... should have realized
this sooner...
Chun-wei Fan [Mon, 20 Jun 2011 03:34:15 +0000 (11:34 +0800)]
Update Visual C++ 2010 Projects
-Seperate intermediate directories for each project to avoid intermittent
MSBuild errors that a build log cannot be written while in use, and
update the property sheet as necessary.
-Minor cleanups of uneeded tags in the projects/properties
Christian Persch [Sat, 18 Jun 2011 14:22:53 +0000 (16:22 +0200)]
Clarify nul-termination of g_utf8_to_ucs4[_fast] result
The docs for g_utf8_to_ucs4_fast didn't mention that the resulting
string is terminated by a 0 character.
Bug #652897.
Matthias Clasen [Sun, 19 Jun 2011 05:42:48 +0000 (01:42 -0400)]
Add tests for GCache
Matthias Clasen [Sun, 19 Jun 2011 05:05:26 +0000 (01:05 -0400)]
asyncqueue: improve test coverage
Matthias Clasen [Sun, 19 Jun 2011 05:05:05 +0000 (01:05 -0400)]
utils: silence tests unless verbose
Matthias Clasen [Sun, 19 Jun 2011 05:04:48 +0000 (01:04 -0400)]
logging: improve test coverage
Matthias Clasen [Sun, 19 Jun 2011 05:04:30 +0000 (01:04 -0400)]
hash: Improve test coverage
Chun-wei Fan [Sat, 18 Jun 2011 09:55:58 +0000 (17:55 +0800)]
Update gsettings/glib-compile-schemas VS Projects
These tools require the use of GModule headers also, so update the include
directories so that the correct gmodule.h will be included instead of the
system-installed version.