Ryan Lortie [Tue, 15 Jan 2013 20:22:35 +0000 (15:22 -0500)]
mainloop test: fix a small typo
This g_assert() could never possibly fail, as it was.
Ryan Lortie [Tue, 15 Jan 2013 04:05:31 +0000 (23:05 -0500)]
tests for the new MainContext/GSource API
Ryan Lortie [Mon, 14 Jan 2013 19:47:16 +0000 (14:47 -0500)]
Add a UNIX fd source
https://bugzilla.gnome.org/show_bug.cgi?id=658020
Ryan Lortie [Mon, 14 Jan 2013 21:53:06 +0000 (16:53 -0500)]
gsource: Add support for file descriptors on UNIX
Adding file descriptors to a GSource provides similar functionality to
the old g_source_add_poll() API with two main differences.
First: the list of handles is managed internally and therefore users are
prevented from randomly modifying the ->events field. This prepares us
for an epoll future where changing the event mask is a syscall.
Second: keeping the list internally allows us to check the ->revents for
events for ourselves, allowing the source to skip implementing
check/prepare. This also prepares us for the future by allowing an
implementation that doesn't need to iterate over all of the sources
every time.
https://bugzilla.gnome.org/show_bug.cgi?id=686853
Ryan Lortie [Tue, 30 Aug 2011 23:14:17 +0000 (19:14 -0400)]
GTimeoutSource: simplify
Take advantage of the new default handling of the 'prepare' and 'check'
functions.
https://bugzilla.gnome.org/show_bug.cgi?id=657729
Ryan Lortie [Mon, 14 Jan 2013 21:51:51 +0000 (16:51 -0500)]
GSource: new API g_source_set_ready_time()
Add an API to mark a GSource to automatically become ready at the
specified monotonic time.
https://bugzilla.gnome.org/show_bug.cgi?id=657729
Ryan Lortie [Mon, 29 Oct 2012 17:26:05 +0000 (18:26 +0100)]
gsource: allow NULL check and prepare functions
Allow for NULL GSourceFuncs.check() and .prepare().
For prepare() the source will be taken not to be ready and having an
infinite timeout. For check() the source will be taken not to be ready.
https://bugzilla.gnome.org/show_bug.cgi?id=686853
Ryan Lortie [Mon, 29 Oct 2012 15:33:18 +0000 (16:33 +0100)]
move GIOCondition to gmain.h from giochannel.h
GIOCondition has uses outside of GIOChannel, so move it to gmain.h.
https://bugzilla.gnome.org/show_bug.cgi?id=686853
Ryan Lortie [Mon, 29 Oct 2012 15:31:46 +0000 (16:31 +0100)]
gsource: Make GSource->source_funcs const
This is the vtable pointer for the source which is usually held in
static storage. For our internal sources it points at a vtable which
the user should really never be modifying.
Mark it const.
https://bugzilla.gnome.org/show_bug.cgi?id=686853
Yuri Sedunov [Tue, 15 Jan 2013 16:05:43 +0000 (11:05 -0500)]
gtester: Add #include config.h
Missed #include "config.h" so, in particular, large file support
(_FILE_OFFSET_BITS) ignored.
https://bugzilla.gnome.org/show_bug.cgi?id=691624
Chun-wei Fan [Tue, 15 Jan 2013 07:47:17 +0000 (15:47 +0800)]
Revert "Improvde #include order consistency"
This reverts commit
f2e00a07f49d6ad0e8d790396bcdea913592ce33.
Moving the block up would prevent G_OS_WIN32 being checked correctly as
it is a macro that is defined by including the GLib header(s), at least for
Visual C++ builds.
https://bugzilla.gnome.org/show_bug.cgi?id=691769
Chun-wei Fan [Tue, 15 Jan 2013 07:23:05 +0000 (15:23 +0800)]
Bug 688681: Stop using .def files in Visual Studio builds
Since we are now starting to use __declspec (dllexport) to export the
public functions during the build of the GLib DLLs (i.e. to generate the
.lib files), we don't want to generate the .def files from the .symbols
files as we did before for a long time.
This removes from the projects the custom build steps to generate the
various .def files
This will also update the pre-configured config.h(.win32.in) to define
_GLIB_EXTERN appropriately as __declspec (dllexport), as well as making its
entries reflect config.h.in more closely.
Matthias Clasen [Tue, 15 Jan 2013 05:24:27 +0000 (00:24 -0500)]
Bump version
Matthias Clasen [Tue, 15 Jan 2013 04:52:10 +0000 (23:52 -0500)]
2.35.4
Matthias Clasen [Tue, 15 Jan 2013 04:25:05 +0000 (23:25 -0500)]
Dist assert-msg-test.gdb
And refer to it in srcdir. Otherwise, the test fails mysteriously
in make distcheck.
Ryan Lortie [Tue, 15 Jan 2013 04:24:53 +0000 (23:24 -0500)]
visibility: Use a separate CFLAGS variable
We only want to control the default visibility for our five main
installable libraries: libglib, libgthread, libgmodule, libgobject,
libgio. We should therefore only set -fvisibility=hidden when building
those.
Use a separate substitution variable for this purpose.
Using CFLAGS directly leads to some modules built in testcases not
exporting their symbols (and then the tests fail). It also affects the
fam file monitoring module.
Colin had originally done it this way in his visibility patch series but
I failed to understand why so I didn't copy it. Now I do.
Also: revert changes made to two testcases in an attempt to work around
this issue.
https://bugzilla.gnome.org/show_bug.cgi?id=691756
Matthias Clasen [Tue, 15 Jan 2013 03:47:02 +0000 (22:47 -0500)]
Fix module-test in a better way
Avoid having visibility attribute directly in the code by
adding a _GLIB_EXTERN-decorated declaration for the exported
variables.
Matthias Clasen [Tue, 15 Jan 2013 03:22:41 +0000 (22:22 -0500)]
Fix distcheck
With gdbus-testserver now being a compiled program, it no longer
lives in SRCDIR.
Matthias Clasen [Tue, 15 Jan 2013 02:31:47 +0000 (21:31 -0500)]
Fix up visibility fallout in module-test
Matthias Clasen [Mon, 14 Jan 2013 22:21:52 +0000 (17:21 -0500)]
Fix the assert-msg test
gdb is playing games with us, by breaking -x /dev/stdin
Matthias Clasen [Mon, 14 Jan 2013 20:53:37 +0000 (15:53 -0500)]
Remove an unused function
Matthias Clasen [Mon, 14 Jan 2013 20:53:13 +0000 (15:53 -0500)]
Make the build more quiet
Ryan Lortie [Mon, 14 Jan 2013 16:17:52 +0000 (11:17 -0500)]
win32: hide g_win32_app_info_get_type()
This was in a private header file and was never part of the public ABI.
Hide it again.
Caught by Dieter Verfaillie.
Ryan Lortie [Mon, 14 Jan 2013 16:14:53 +0000 (11:14 -0500)]
glocal*monitor: export ABI only on UNIX
Add an #ifdef G_OS_UNIX around the GLIB_AVAILABLE_IN_ALL annotation on
the _get_type() functions for GLocal{File,Directory}Monitor.
These symbols are in private header files and are only exported so that
the in-tree file monitoring modules can subclass. This is only needed
on UNIX and was therefore never part of the public ABI on Windows.
Caught by Dieter Verfaillie.
Ryan Lortie [Mon, 14 Jan 2013 16:11:00 +0000 (11:11 -0500)]
win32: hide _glib_get_dll_directory again
This is not part of our public ABI and it's not used from the other
libraries in GLib, so we should not be exporting it.
Caught by Dieter Verfaillie.
Martin Pitt [Mon, 14 Jan 2013 10:26:30 +0000 (11:26 +0100)]
GParamSpec: Make constructors introspectable
Commit
282366c3262 unnecessarily (skip)ed all the GParamSpec constructors like
g_param_spec_bool(). Make those introspectable by dropping the (skip) and
adding proper transfer annotations.
Keep g_param_spec_value_array() skipped as GValueArray is deprecated.
Ryan Lortie [Mon, 14 Jan 2013 05:13:00 +0000 (00:13 -0500)]
tests: introduce a small hack for visibility
One of our testcases builds a small giomodule for testing the loading of
modules containing resources. Unfortunately, this module gets built
using the same CFLAGS as the rest of GLib, including the visibility
flags (defaulting to hidden).
Use "config.h" to get a declaration of _GLIB_EXTERN that will export
symbols properly and use it to annotate the necessary APIs.
Ryan Lortie [Mon, 14 Jan 2013 05:06:26 +0000 (00:06 -0500)]
gthread-impl.c: add missing #include "config.h"
One of the features of our new symbol exporting regime is that it forces
config.h to be included at the top of every .c file.
This was missed in gthread-impl.c.
The only reason this wasn't noticed is because nothing in this file is
being used anymore. We need those symbols to continue to be exported
for reasons of ABI backwards compatibility, however.
Ryan Lortie [Mon, 14 Jan 2013 04:43:44 +0000 (23:43 -0500)]
kqueue: Reduce G_GNUC_INTERNAL + G_LOCK abuse
The kqueue file monitoring backend was misusing G_GNUC_INTERNAL for want
of 'static' in a couple of places and also using it to declare a lock
that was never used at all.
Fix those up.
Ryan Lortie [Mon, 14 Jan 2013 04:30:49 +0000 (23:30 -0500)]
gio: remove export tags from two private headers
I got a little bit too excited and added GLIB_AVAILABLE_IN_ALL tags to
some internal API.
Ryan Lortie [Sun, 13 Jan 2013 20:41:03 +0000 (15:41 -0500)]
win32: build: stop using .def files
With visibility now under the control of __declspec(dllexport) we no
longer need to build .def files or use them for building our various
.dll files.
.def files used to be installed (even though it is only really useful
when creating the .dll or .lib file). Don't do that anymore either.
The Makefiles still contain rules to create a .lib file for use with
Visual Studio and these rules require .def files. There are special
requirements to using these rules (like having installed and setup
Microsoft tools for use during the build) and therefore the problem of
creating a .def file for use with them is left open to anyone willing to
make the effort. Many options are available depending on which
toolchain is in use (dlltool, pexport, gendef, dumpbin.exe, just to name
a few).
If we can find a free tool for creating .lib files in the future, we
should probably revisit this issue and add proper support back to our
build system.
Ryan Lortie [Thu, 6 Dec 2012 18:42:06 +0000 (13:42 -0500)]
configure.ac: change our visibility policy
Check for -fvisibility=hidden as a supported CFLAG.
If it is supported, use it and emit an AC_DEFINE to change the meaning
of _GLIB_EXTERN to include the GNU attribute for marking symbols as
public: __attribute((visibility("default"))).
This will override the public definition of _GLIB_EXTERN for any file
which does #include "config.h" (forcing all our .c files to do so, as a
side effect).
If we're on mingw, assume that -fvisibility will work and also throw in
a __declspec(dllexport) for good measure. This will allow us to move
away from using a .def file to create the the various DLLs.
It's possible that there may be compilers that accept
-fvisibility=hidden but don't accept the GNU attribute for making
symbols public again -- we will hopefully receive bugs if any of those
exist.
https://bugzilla.gnome.org/show_bug.cgi?id=688681
Ryan Lortie [Sun, 13 Jan 2013 20:34:27 +0000 (15:34 -0500)]
win32: visibility fixups
Add/remove visibility macros according to if symbols were previously
part of our public win32 API.
Ryan Lortie [Mon, 14 Jan 2013 03:57:27 +0000 (22:57 -0500)]
gio: hide another leaked symbol
guint g_menu_model_items_changed_signal leaked out. Tuck it back in.
Rico Tzschichholz [Sun, 13 Jan 2013 19:49:15 +0000 (20:49 +0100)]
gio: add some missing array annotations with their element-type
Rico Tzschichholz [Sun, 13 Jan 2013 19:05:17 +0000 (20:05 +0100)]
gio: add missing element-type annotation
Ryan Lortie [Thu, 6 Dec 2012 19:01:46 +0000 (14:01 -0500)]
gmarshal.h: replace "extern" with GLIB_AVAILABLE_IN_ALL
This was one of the few public header files that was properly declaring
functions as "extern". Switch it to use GLIB_AVAILABLE_IN_ALL instead.
https://bugzilla.gnome.org/show_bug.cgi?id=688681
Ryan Lortie [Thu, 6 Dec 2012 19:03:22 +0000 (14:03 -0500)]
gbacktrace.c: special treatment for a weird symbol
We have a public symbol 'glib_on_error_halt' that is exported from
gbacktrace.c without appearing in a header, presumably with the
intention that people will be able to hit it from their debugger.
Mark it as GLIB_AVAILABLE_IN_ALL from inside the .c file...
https://bugzilla.gnome.org/show_bug.cgi?id=688681
Ryan Lortie [Thu, 6 Dec 2012 18:37:45 +0000 (13:37 -0500)]
Add a new _GLIB_EXTERN macro for "extern"
This macro simply evaluates the "extern" unless it has been explicitly
defined to something else.
All of the version macros (including the unversioned deprecation markers
and GLIB_AVAILABLE_IN_ALL) now include _GLIB_EXTERN as part of their
definition.
G_INLINE has also been modified to use _GLIB_EXTERN where appropriate.
This macro should never be used outside of the gmacros.h/gversonmacros.h
headers.
The effect of this patch is that "extern" has now been added to all
functions declared in installed headers. Strictly speaking, this is
something we should have had all along...
GLIB_VAR and GOBJECT_VAR have also been modified to use _GLIB_EXTERN on
non-Windows, instead of "extern" which they were using before. The
eventual goal is to use the normal version/deprecation macros on
exported variables and drop GLIB_VAR but we need to see how this will
work on Windows before we go ahead with that.
https://bugzilla.gnome.org/show_bug.cgi?id=688681
Ryan Lortie [Sun, 13 Jan 2013 18:13:03 +0000 (13:13 -0500)]
add a missing AVAILABLE_IN_2_36 annotation
Ryan Lortie [Thu, 6 Dec 2012 19:04:59 +0000 (14:04 -0500)]
various: add GLIB_AVAILABLE_IN_ALL everywhere else
Add the GLIB_AVAILABLE_IN_ALL annotation to all old functions (that
haven't already been annotated with the GLIB_AVAILABLE_IN_* macros or a
deprecation macro).
If we discover in the future that we cannot use only one macro on
Windows, it will be an easy sed patch to fix that.
https://bugzilla.gnome.org/show_bug.cgi?id=688681
Ryan Lortie [Thu, 6 Dec 2012 18:59:35 +0000 (13:59 -0500)]
gioenumtypes.h.template: use GLIB_AVAILABLE_IN_ALL
glib-mkenums is not currently clever enough to know which version an
enum type was added in, so just mark all the _get_type() functions as
available in all versions.
https://bugzilla.gnome.org/show_bug.cgi?id=688681
Ryan Lortie [Thu, 6 Dec 2012 18:34:55 +0000 (13:34 -0500)]
gversionmacros.h: add GLIB_AVAILABLE_IN_ALL
Add a macro to declare that a particular symbol is available in all
versions of GLib.
All newly-added symbols should have proper version macros (like
GLIB_AVAILABLE_IN_2_36) and this macro is less likely to get used 'by
accident' for those than one with a name like GLIB_EXTERN or
GLIB_PUBLIC.
https://bugzilla.gnome.org/show_bug.cgi?id=688681
Henrique Dante de Almeida [Sun, 13 Jan 2013 16:05:14 +0000 (14:05 -0200)]
Add G_GNUC_PRINTF on all functions with format strings
This allows compilation with clang without errors, even when
-Wformat-nonliteral is active (as long as there are no real cases of
non literal formatting).
https://bugzilla.gnome.org/show_bug.cgi?id=691608
Benjamin Otte [Sun, 13 Jan 2013 17:14:11 +0000 (18:14 +0100)]
API: Constify g_get_prgname()
Found by Mike Gorse while via pygobject freeing the value.
Should have been const according to original commit message.
Fran Diéguez [Sun, 13 Jan 2013 16:39:08 +0000 (17:39 +0100)]
Updated Galician translations
Henrique Dante de Almeida [Sun, 13 Jan 2013 14:58:12 +0000 (12:58 -0200)]
build: Ensure user-set CFLAGS override defaults
For example, the user should be able disable our default -Werror
settings.
https://bugzilla.gnome.org/show_bug.cgi?id=691608
Dan Winship [Sat, 12 Jan 2013 22:39:37 +0000 (17:39 -0500)]
GInputStream: fix default g_input_stream_skip_async() logic
g_input_stream_real_skip_async() wants to use read_async() normally,
but will use skip() in a thread instead if it sees that read_async()
will end up using threads. Except that the test for "will read_async()
use threads" never got updated to know about the GPollableInputStream
support in read_async(), so it was doing the wrong thing in that case.
Fix.
Also remove a small bit of pre-GTask cruft noticed nearby.
https://bugzilla.gnome.org/show_bug.cgi?id=691489
Matej Urbančič [Sun, 13 Jan 2013 11:02:42 +0000 (12:02 +0100)]
Updated Slovenian translation
Alexander Shopov [Sat, 12 Jan 2013 18:18:05 +0000 (20:18 +0200)]
Updated Bulgarian translation
Matthias Clasen [Sat, 12 Jan 2013 18:02:31 +0000 (13:02 -0500)]
Expand g_type_init release notes
This is in the light of
https://bugzilla.gnome.org/show_bug.cgi?id=691077
Colin Walters [Fri, 11 Jan 2013 16:10:15 +0000 (11:10 -0500)]
glocalfile: Only check for .hidden files if standard::is-hidden is requested
For OSTree, I use Gio and also really care about performance. It's
disturbing to see open('.hidden') all over my straces and such. At
the moment I have an explicit set of things to query, as opposed to
"standard::*", since even before this that also implies an lstat() of
the parent directory.
This matches up with what we do for all the other attributes.
See https://bugzilla.gnome.org/show_bug.cgi?id=587806
https://bugzilla.gnome.org/show_bug.cgi?id=691558
Colin Walters [Thu, 10 Jan 2013 21:25:15 +0000 (16:25 -0500)]
gio-querymodules: Ensure we're linked to GObject
Since we're dynamically loading objects, after the g_type_init()
change, we now need to ensure people building with --as-needed don't
lose the DT_NEEDED on libgobject.
https://bugzilla.gnome.org/show_bug.cgi?id=691077
Will Thompson [Thu, 10 Jan 2013 11:16:47 +0000 (11:16 +0000)]
G_IO_ERROR_INVALID_DATA: fix docstring typo
Antoine Jacoutot [Wed, 9 Jan 2013 15:29:29 +0000 (16:29 +0100)]
ipv6_v4mapped: force pass even if we don't speak IPv4
Some OS (e.g. OpenBSD) do not implement IP v4-mapped addresses. When
this is the case, then we get a "Connection refused", so force the test
to pass to that further tests can run.
https://bugzilla.gnome.org/show_bug.cgi?id=686058
Dan Winship [Wed, 9 Jan 2013 15:06:53 +0000 (10:06 -0500)]
glib-compile-resources: avoid warnings with -Wmissing-field-initializers
Initialize all the fields of the generated GStaticResource, to avoid
warnings in packages that build with -Wmissing-field-initializers.
Daniel Mustieles [Tue, 8 Jan 2013 13:43:21 +0000 (14:43 +0100)]
Updated Spanish translation
Javier Jardón [Mon, 7 Jan 2013 15:41:19 +0000 (15:41 +0000)]
configure.ac: replace obsolete AC_CONFIG_HEADER with with AC_CONFIG_HEADERS
The former is an obsolete alias to the latter.
It may get removed in the future.
Nilamdyuti Goswami [Mon, 7 Jan 2013 12:14:23 +0000 (17:44 +0530)]
Assamese translation updated
Dan Winship [Sun, 6 Jan 2013 23:56:39 +0000 (18:56 -0500)]
tests/gdatetime: add a missing ; on windows
Dan Winship [Sun, 6 Jan 2013 22:12:15 +0000 (17:12 -0500)]
gio/tests: fix a few more gdbus-testserver.py references
that got missed in Matthias's earlier patch
Nirbheek Chauhan [Sat, 5 Jan 2013 07:22:31 +0000 (12:52 +0530)]
GFile: Add Btrfs clone ioctl support
The attached patch adds support for the btrfs "clone" ioctl which
makes Copy-on-Write reflinks, resulting in cheap O(1) copies when
source/destination are on the same filesystem. The ioctl itself is
quite straightforward, and GNU coreutils has had support since 7.5
(--reflink=auto --sparse=auto).
The ioctl only operates on regular files and symlinks, and always
follows symlinks; checks have been added accordingly.
This patch would be very useful for everyone who uses btrfs
filesystems (Meego folks for instance). On systems that don't have
btrfs, or if the the source is not on a btrfs filesystem, the ioctl
returns EINVAL, and the fallback code is triggered. Hence this will
cause no problems for non-btrfs users.
https://bugzilla.gnome.org/show_bug.cgi?id=626497
Dan Winship [Sat, 5 Jan 2013 18:26:23 +0000 (13:26 -0500)]
GMemoryInputStream: fix skip_async()
a5876e5f made GMemoryInputStream subclassable, but accidentally broke
read_async() and skip_async() in the process. The immediately
following
e7983495 fixed read_async() (and added a test for it), but
skip_async() accidentally got... skipped.
Fix it now and add a test for it.
Also, GMemoryInputStream's skip_async() was assuming that skip() could
never fail, which is true of its own implementation, but might not be
true of a subclass's, so do proper GError handling too.
Rico Tzschichholz [Fri, 4 Jan 2013 20:36:37 +0000 (21:36 +0100)]
gio/tests: Drop superfluous dbus-1 dependencies of gdbus-auth
Ryan Lortie [Mon, 5 Nov 2012 16:07:16 +0000 (11:07 -0500)]
gtype: disallow adding interfaces after the fact
Add a check to prevent adding an interface to a class that has already
had its class_init done.
This is an incompatible change but it is suspected that there are not
many users of this functionality. Two known exceptions are pygobject
(fixed in bug 686149) and our own testsuite (affected tests have been
temporarily disabled by this patch).
Once we confirm that nobody else is using this functionality we can
remove a rather large amount of code for dealing with this case.
https://bugzilla.gnome.org/show_bug.cgi?id=687659
Rico Tzschichholz [Fri, 4 Jan 2013 19:37:27 +0000 (20:37 +0100)]
gio/tests: Fix make dist
Missing bit of
32c925427785895ce156f4bb428082e1952d2407
Rico Tzschichholz [Fri, 4 Jan 2013 19:25:46 +0000 (20:25 +0100)]
Revert "gtype: disallow adding interfaces after the fact"
This reverts commit
d6a075b0d8dfe4e4a41f6624ad7032d2163d420c.
Matthias Clasen [Fri, 4 Jan 2013 13:27:00 +0000 (08:27 -0500)]
Improve g_cond_wait docs
Document that the mutex is locked upon return.
https://bugzilla.gnome.org/show_bug.cgi?id=691110
Marko Lindqvist [Fri, 4 Jan 2013 00:21:35 +0000 (19:21 -0500)]
Remove deprecated AM_PROG_CC_STDC
Fixes automake 1.13 build.
https://bugzilla.gnome.org/show_bug.cgi?id=691011
David Zeuthen [Thu, 3 Jan 2013 18:34:21 +0000 (13:34 -0500)]
In gdbus-auth test, use g_unsetenv(), not g_setenv() with a NULL value
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
Matthias Clasen [Thu, 3 Jan 2013 18:13:50 +0000 (13:13 -0500)]
Drop gdbus-testserver.py
The tests are using the C version of gdbus-testserver now.
This means we no longer rely on dbus-python for 'make check'.
https://bugzilla.gnome.org/show_bug.cgi?id=675856
Matthias Clasen [Thu, 3 Jan 2013 18:12:58 +0000 (13:12 -0500)]
Use the C gdbus-testserver in tests
Matthias Clasen [Thu, 3 Jan 2013 18:11:58 +0000 (13:11 -0500)]
Add a C version of gdbus-testserver.py
This will let us drop the dbus-python dependency.
The C version does not 100% reproduce all the hash table
and array manipulation of the python version, but the tests
do not rely on it anyway.
David Zeuthen [Thu, 3 Jan 2013 16:57:21 +0000 (11:57 -0500)]
GDBus: Avoid use of libdbus-1 in authentication tests
This greatly simplifies the test since everything is now in a single
process and possible bugs / quirks in libdbus-1 will not interfere
with the tests. On the other hand, we no longer test interoperability
with libdbus-1. This is somewhat moot, however, since other tests that
involve a message bus (e.g. GTestDBus users which include most of the
GDBus test suite itself) will test this.
Also ensure that we don't pollute existing D-Bus keyrings for the
DBUS_COOKIE_SHA1 authentication method (e.g. files in the
~/.dbus-keyrings directory) by setting the environment variables
G_DBUS_COOKIE_SHA1_KEYRING_DIR and
G_DBUS_COOKIE_SHA1_KEYRING_DIR_IGNORE_PERMISSION.
All in all, this change avoids some thorny issues where the GDBus and
libdbus-1 implementations disagree on whether an item in the D-Bus
keyring is still valid (items have an age etc.). In reality, since the
DBUS_COOKIE_SHA1 authentication method is never used in production,
this is never hit in production. This bug was, however, frequently hit
if you just ran the test suite repeatedly for 15 minutes or so.
Also add TODO items to mention that we currently don't test corner
cases involving
- DBUS_COOKIE_SHA1 timeouts
- libdbus-1 interoperability
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
Dan Winship [Wed, 2 Jan 2013 18:00:48 +0000 (13:00 -0500)]
GValueArray: clarify the deprecation warnings
GValueArray as a whole is deprecated in favor of GArray (with GValue
elements); warnings like "'g_value_array_get_nth' is deprecated: Use
'g_array_index' instead" are confusing because they suggest that the
GArray functions can be used with GValueArrays. Make them say "Use
'GArray' instead" instead.
https://bugzilla.gnome.org/show_bug.cgi?id=690970
Dieter Verfaillie [Wed, 2 Jan 2013 12:10:31 +0000 (13:10 +0100)]
Fix build with --enable-gtk-doc
https://bugzilla.gnome.org/show_bug.cgi?id=691001
Matthias Clasen [Tue, 1 Jan 2013 20:49:06 +0000 (15:49 -0500)]
Add a --with-python option
The effect is the same as specifying PYTHON=python3, but a
configure option works better in jhbuild.
https://bugzilla.gnome.org/show_bug.cgi?id=684103
Matthias Clasen [Tue, 1 Jan 2013 19:06:20 +0000 (14:06 -0500)]
Move testgobject to tests/
And fix it to actually check the right things.
Matthias Clasen [Tue, 1 Jan 2013 18:54:54 +0000 (13:54 -0500)]
Improvde #include order consistency
This was mostly fixed already, just re-fix a few details here.
https://bugzilla.gnome.org/show_bug.cgi?id=71704
Paolo Borelli [Thu, 27 Dec 2012 19:55:30 +0000 (20:55 +0100)]
Annotate GApplication::local_command_line
Also add some documentation.
https://bugzilla.gnome.org/show_bug.cgi?id=690670
Jasper St. Pierre [Tue, 3 Jul 2012 19:14:18 +0000 (15:14 -0400)]
gmarkup: Make GMarkupParseContext a boxed type
At the same time, add a refcount and public ref/unref methods.
This makes it usable from introspectable.
https://bugzilla.gnome.org/show_bug.cgi?id=690084
Matthias Clasen [Tue, 1 Jan 2013 15:25:07 +0000 (10:25 -0500)]
Drop a broken link
The GSettings migration docs had a link to the no-longer existing
gsettings-tutorial branch of gnome-utils. Remove it.
https://bugzilla.gnome.org/show_bug.cgi?id=690043
Michael Henning [Sun, 30 Dec 2012 04:57:23 +0000 (23:57 -0500)]
gutils: move G_END_DECLS to the end of gutils.h
Previously, some declarations near the bottom came after the
G_END_DECLS, causing linker errors for C++ users that called those
functions.
https://bugzilla.gnome.org/show_bug.cgi?id=690902
Daniel Mustieles [Mon, 31 Dec 2012 11:20:07 +0000 (12:20 +0100)]
Updated Spanish translation
Matthias Clasen [Sat, 29 Dec 2012 05:22:34 +0000 (00:22 -0500)]
Fix up the gschema.dtd
This DTD wasn't syntactically correct, and didn't actually
describe keys correctly. This change makes it a bit too lax,
but at least it can be used now.
https://bugzilla.gnome.org/show_bug.cgi?id=690538
Matthias Clasen [Sat, 29 Dec 2012 05:03:09 +0000 (00:03 -0500)]
Remove a failing test
Since we stripped g_credentials_set_pid(), the test for
g_credentials_get_pid() can't succeed anymore, so remove it.
Tristan Van Berkom [Thu, 20 Dec 2012 06:34:22 +0000 (15:34 +0900)]
Adding test coverage for GTestDBus activating in-tree services.
https://bugzilla.gnome.org/show_bug.cgi?id=690543
Matthias Clasen [Fri, 28 Dec 2012 04:43:14 +0000 (23:43 -0500)]
Move single-include guards inside include guards
gcc has optimizations for include guards that only work
if they are outermost in the the header.
https://bugzilla.gnome.org/show_bug.cgi?id=689810
Ryan Lortie [Wed, 18 Jan 2012 19:37:37 +0000 (14:37 -0500)]
Add g_application_command_line_get_stdin()
This returns a GInputStream corresponding to the stdin on the
commandline that caused this invocation.
The local case works on both UNIX (GUnixInputStream on stdin) and
Windows (GWin32InputStream on GetStdHandle(STD_INPUT_HANDLE)). The
remote case works only on UNIX (by fd passing over D-Bus).
https://bugzilla.gnome.org/show_bug.cgi?id=668210
Mattias Põldaru [Thu, 27 Dec 2012 14:37:24 +0000 (16:37 +0200)]
[l10n] Updated Estonian translation
Fran Diéguez [Mon, 24 Dec 2012 21:53:03 +0000 (22:53 +0100)]
Updated Galician translations
Dimitris Spingos [Mon, 24 Dec 2012 15:23:17 +0000 (17:23 +0200)]
Updated Greek translation
Kjartan Maraas [Sun, 23 Dec 2012 16:38:45 +0000 (17:38 +0100)]
Updated Norwegian bokmål translation
Peter Mráz [Sun, 23 Dec 2012 13:32:58 +0000 (14:32 +0100)]
Updated Slovak translation
Piotr Drąg [Sun, 23 Dec 2012 03:28:23 +0000 (04:28 +0100)]
Updated Polish translation
Yaron Shahrabani [Thu, 20 Dec 2012 12:24:17 +0000 (14:24 +0200)]
Updated Hebrew translation.
Daniel Mustieles [Thu, 20 Dec 2012 10:08:39 +0000 (11:08 +0100)]
Updated Spanish translation
Nilamdyuti Goswami [Thu, 20 Dec 2012 08:18:11 +0000 (13:48 +0530)]
Assamese translation updated
Matthias Clasen [Wed, 19 Dec 2012 20:20:45 +0000 (15:20 -0500)]
Revert "gtestutils: add g_test_trap_subprocess(), deprecate g_test_trap_fork()"
This reverts commit
e3a29184d56b3a65664eb8859e61afbc804497c8.
Matthias Clasen [Wed, 19 Dec 2012 20:20:37 +0000 (15:20 -0500)]
Revert "tests: port from g_test_trap_subprocess() to g_test_trap_fork()"
This reverts commit
ea06ec80634ff8f22882f3bc92effb10ac294e41.