Alexander Larsson
fab641e629
win32: Support autolaunching dbus daemon
2012-04-18 17:09:37 +02:00
Alexander Larsson
033da30906
GDBusDaemon: Support timeout idle signal
2012-04-18 17:08:46 +02:00
Alexander Larsson
7c91ec68f0
Add _g_io_win32_get_module to get the gio HMODULE
2012-04-18 16:25:29 +02:00
Alexander Larsson
c9208a5d04
Remove ununsed include
2012-04-18 16:24:44 +02:00
Alexander Larsson
a222326f01
Fix compiler warning
2012-04-18 16:22:28 +02:00
Alexander Larsson
9d3edafa73
win32: Make gdbus-sessionbus.c build on win32
...
This is kinda hackish, but at least it runs
2012-04-17 16:28:46 +02:00
Alexander Larsson
5f6b763f28
tests: Put quotes around setenv print from gdbus-daemon
2012-04-17 15:52:29 +02:00
Alexander Larsson
57bdc0a16e
win32: Fix gdbusdaemon.c build
...
was using rmdir, not g_rmdir
2012-04-17 15:51:55 +02:00
Alexander Larsson
62c300ecd4
gdbus: Escape nonce files in dbus addressess
...
Otherwise the colon in c:\blah made for trouble
2012-04-17 15:50:53 +02:00
Alexander Larsson
193fee8b5d
Fix build on win32
...
Some errnos don't exist on win32
2012-04-17 15:50:01 +02:00
Alexander Larsson
bb7527d1ef
Flesh out the last TODO items
2012-04-17 11:02:24 +02:00
Alexander Larsson
96bdf37799
gdbusdaemon: Add UpdateActivationEnvironment
2012-04-17 11:01:57 +02:00
Alexander Larsson
befcee6f0b
gdbusdaemon: Fix NameHasOwner wrt unique names
...
Each client also owns its unique name
2012-04-17 10:44:21 +02:00
Alexander Larsson
bc2f7c1a06
GDbusDaemon: Handle Names with NULL owner
...
Generally Names should not exist with a NULL owner, but they can be around
temporarily, like when broadcasting the NameOwnerChanged message during
name release.
2012-04-16 22:40:22 +02:00
Alexander Larsson
bc2dcfd6ad
gdbusdaemon: Fix refcounting of connection
...
Don't leak refs via not unexporting on the skeleton.
Also clean up the code a bit
2012-04-16 21:37:10 +02:00
Alexander Larsson
94c0ef5504
GDbusDaemon: Minor cleanup
...
Use static functions for internal stuff
Fix indentation
2012-04-16 21:35:56 +02:00
Alexander Larsson
c72a205d18
tests: gdbus-daemon is a sample, not a test program
2012-04-16 21:35:06 +02:00
Alexander Larsson
063cde5901
gdbusdaemon: Handle GetNameOwner for unique ids
...
Without this gmenumodel fails
2012-04-16 21:04:38 +02:00
Alexander Larsson
ad77d7244f
Support using gdbus-daemon in testsuite by setting G_DBUS_DAEMON
2012-04-16 10:51:07 +02:00
Alexander Larsson
7c85b894db
gdbusserver: When listening to non-abstract unix socket, remove existing socket
...
This is what libdbus does in _dbus_listen_unix_socket, and without it we get
EADDRINUSE in the test suite when using gdbus-daemon.
2012-04-16 10:49:39 +02:00
Alexander Larsson
a5ddaf24e3
Fix race in gdbus-connection test
...
We need to flush the AddMatches before even connecting to the bus, or we
risk missing the NameOwnerChanged from the new connections.
2012-04-16 10:18:44 +02:00
Alexander Larsson
8341720897
Add gdbus-daemon test app
2012-04-16 10:16:47 +02:00
Alexander Larsson
d7ff9b25f9
Initial version of GDbusDaemon internal object
2012-04-16 10:16:04 +02:00
Alexander Larsson
e3f86a47b5
Support initial underscores in dbus codegen namespace
...
Before these were considered lowercase and thus got duplicated.
2012-04-16 09:55:59 +02:00
Yinghua Wang
b17085dcb9
update Simplified Chinese (zh_CN) translation
2012-04-16 14:06:56 +08:00
Rafał Mużyło
6d19f11c89
configure: Fix typo in ELF check
...
Signed-off-by: Colin Walters <walters@verbum.org >
2012-04-15 11:17:28 -04:00
Colin Walters
4b98c512df
build: When cross compiling, don't require host binaries if tests are not enabled
...
These binaries are now only used by the test suite. glib-genmarshal
*used* to be required to generate marshallers, but isn't anymore now
that we use libffi (via g_cclosure_marshal_generic).
https://bugzilla.gnome.org/show_bug.cgi?id=667806
2012-04-15 11:15:54 -04:00
Colin Walters
f084b60377
build: Add --disable-modular-tests build option
...
This patch solves two problems:
First, it allows builders to optionally cut the circular dependency
between dbus and glib by disabling the modular tests (just like how
the tests can be disabled in dbus).
Second, the tests are entirely pointless to build if cross-compiling.
It also moves us slightly closer to the long term future we want where
the tests are a separate ./configure invocation and run against the
INSTALLED glib, not the one in the source tree. This would allow us to
run the tests constantly, not just when glib is built.
https://bugzilla.gnome.org/show_bug.cgi?id=667806
2012-04-15 11:15:54 -04:00
Yuri Myasoedov
366c39b642
Updated Russian translation
2012-04-15 00:27:04 +04:00
Cosimo Cecchi
1e2ca76464
fileinfo: document the correct type for trash::orig-path
...
The correct type for this attribute, as set by GVfs, is
G_FILE_ATTRIBUTE_TYPE_BYTE_STRING (which is the correct type for file
paths anyway).
https://bugzilla.gnome.org/show_bug.cgi?id=674074
2012-04-14 13:09:33 -04:00
David Zeuthen
6a9341d851
GDBusAuth: Handle when no there is no auth observer present
...
I obviously fucked up when adding the ::allow-mechanism signal, sorry.
Signed-off-by: David Zeuthen <davidz@redhat.com >
2012-04-14 12:40:57 -04:00
David Zeuthen
b9d1fe7db2
Check that auth methods work and interoperate with libdbus-1
...
See https://bugzilla.gnome.org/show_bug.cgi?id=673943
Signed-off-by: David Zeuthen <davidz@redhat.com >
2012-04-14 12:33:14 -04:00
David Zeuthen
9496565a4c
GSocketControlMessage: Don't warn about unknown messages
...
If we do this, the tests added in bug 673943 will cause warnings.
Signed-off-by: David Zeuthen <davidz@redhat.com >
2012-04-14 12:32:23 -04:00
David Zeuthen
ce81bd87c5
GDBusAuthObserver: Add a way to control what authentication mechanisms to use
...
This is related to https://bugzilla.gnome.org/show_bug.cgi?id=673943
but also useful in a lot of other contexts.
2012-04-14 11:52:20 -04:00
Giovanni Campagna
bb7f3e0cbd
GDesktopAppInfo: add an accessor for StartupWMClass
...
Components using GIO to do window to application matching can
use that field to retrieve potential candidates.
https://bugzilla.gnome.org/show_bug.cgi?id=673659
2012-04-14 02:44:25 +02:00
Giovanni Campagna
79013634ab
Add version macros for 2.34
...
This marks the start of the new development cycle, and opens the
window for API additions.
https://bugzilla.gnome.org/show_bug.cgi?id=673659
2012-04-14 02:22:36 +02:00
Matthias Clasen
55bbb9fc69
Bump version
2012-04-13 19:54:42 -04:00
Matthias Clasen
2b6cf583d2
2.32.1
2.32.1
2012-04-13 19:53:42 -04:00
Matthias Clasen
c1a83a4ac8
Fix distcheck
...
I forgot to dist a test script, and forgot to look for it
in srcdir instead of builddir.
2012-04-13 19:53:07 -04:00
Christian Kirbach
9375212311
[l10n] Updated German translation
2012-04-13 19:39:19 +02:00
Dan Winship
baf0ebf7b2
tests/mainloop: fix a race condition
...
Rather than depending on the machine's speed/load, just interlock
between the two threads properly.
2012-04-13 12:15:15 -04:00
Dan Winship
e0aa0ae8a2
tests/mainloop: use g_assert_cmpint(), for better error messages
2012-04-13 12:15:11 -04:00
Matthias Clasen
50aed1cc8f
Make the markup-parse test independent of the locale
...
I added a setlocale call, because we need it for Unicode to
come out right; but I forgot to fix the locale, so we now
fail when comparing error messages to the expected (English)
result. Correct this by setting LANG explicitly to en_US.utf-8.
https://bugzilla.gnome.org/show_bug.cgi?id=669285
2012-04-13 09:39:48 -04:00
Bruce Cowan
5e0be9e9e2
Updated British English translation
2012-04-13 13:27:39 +01:00
Kalev Lember
e13fc58535
GResource docs: fix typo
2012-04-13 13:22:46 +03:00
Ryan Lortie
192892b52c
GSettings docs: clarify what is a good path
...
Add an explicit note to the docs about choosing paths based on domain
names, not ones like "/apps/", "/desktop/" or "/system/".
2012-04-12 20:04:32 -04:00
Ryan Lortie
6560b37450
glib-compile-schemas: warn about bad dconf paths
...
For quite some time the recommended usage of GSettings and dconf has
been to use paths like /org/gnome/example/. Use of /apps/ has spilled
over from GConf and is continuing to make its way into a number of
applications as they port.
glib-compile-schemas will now warn about these types of paths being
used. This generates a lot of noise, but hopefully it will reduce the
number of ported applications making this mistake.
2012-04-12 19:55:34 -04:00
Alexander Larsson
386f0f29fd
Fall back to SO_PEERCRED if credentials passing fails
...
Turns out libdbus doesn't send struct ucred credentials on linux, but
just relies on the SO_PEERCRED support. However, gdbus does send, and
expect to recieve a ucred credential. So, when libdbus talks to a
gdbus server the authentication fails to send the credentials.
We fix this by falling back to g_socket_get_credentials() if we don't
get any credential messages.
2012-04-12 16:50:20 +02:00
Alexander Larsson
ec91ed00f1
Detect "empty" socket credentials on Linux
...
Linux uses struct ucred to pass over socket credentials. Historically
this has always worked in recievemsg, if SO_PASSCRED was set on the socket,
even if the remote side didn't pass any credits. But this change broke that:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=16e5726269611b71c930054ffe9b858c1cea88eb;hp=a9e9fd7182332d0cf5f3e601df3e71dd431b70d7
However, it doesn't actually fail getting the credentials, it just returns
an "empty" one, as initialized by cred_to_ucred() at:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=net/core/sock.c;h=b29ab61b029cf7f76fda992ecfcb8dcaa06b0483;#l756
So, we detect this and fail the credentials reading.
This actually happened in real life with gdbus acting as a server, as
gdbus expected an ucred but libdbus didn't send one.
2012-04-12 16:43:49 +02:00
William Hua
69d929e67f
Be more precise about Carbon v. Cocoa.
2012-04-11 23:25:09 -04:00