Ryan Lortie
8b03077a44
GTimeZone: fix non-threadsafe refcounting
...
In the previous code, if the timezone was pulled out of the cache again
just as the last reference was being dropped, the cache code will
increase its refcount and return it while the unref code was freeing it.
Protect against that.
Closes #646435 .
2011-04-14 09:56:00 -04:00
David Zeuthen
e38ef14e8b
GDBus: If an authentication method fail, don't give up, just try the next one
...
This problem was reported in bug 647602.
https://bugzilla.gnome.org/show_bug.cgi?id=647602
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-13 18:40:47 -04:00
David Zeuthen
3b997d92c1
GDBus: Add test case for the ANONYMOUS authentication method
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-13 18:21:16 -04:00
David Zeuthen
befb60d826
GDBus: Nuke debug spew from the ANONYMOUS authentication method
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-13 18:20:34 -04:00
David Zeuthen
25c57d31c5
GDBus: Allow tcp: and nonce-tcp: addresses without any arguments
...
This was broken in this commit
http://git.gnome.org/browse/glib/commit/?id=0729260141bb585943ad1c6efa8ab7ee9058b0aa
The test case for catching this is unfortunately commented out (so it
didn't catch it) due to this bug
https://bugzilla.gnome.org/show_bug.cgi?id=631379
still being unresolved.
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-13 17:49:19 -04:00
Colin Walters
68b16deb1f
gdbusconnection: Avoid tripping assertion if we fail to authenticate twice
...
If g_bus_get_sync() fails in authentication (because e.g. the process
uid, doesn't match the expected in EXTERNAL), a secondary call to
g_bus_get_sync() would notice we aren't initialized, and try
to initialize.
The assertion here is just wrong; we now explicitly and clearly handle
both cases where we already have an error, or we already succeeded.
https://bugzilla.gnome.org/show_bug.cgi?id=635694
2011-04-13 15:01:28 -04:00
Ryan Lortie
4d15ba90c0
G_VARIANT_TYPE_VARDICT: Add 'Since:' tag
2011-04-13 11:46:33 -04:00
Matthias Clasen
76492d7741
Bump version
2011-04-13 08:48:10 -04:00
Matthias Clasen
0e55346420
Skip the writable test if the file is not writable
...
Since make distcheck operates on a readonly source tree.
2011-04-13 08:19:35 -04:00
Matthias Clasen
67b8c7ea8a
Fix non-srcdir builds
2011-04-13 01:31:19 -04:00
Matthias Clasen
5f90baafb5
More updates
2011-04-13 00:42:51 -04:00
Matthias Clasen
c1a7599568
Fix a typo in the GSettings docs
...
Pointed out by Thomas Andersen
https://bugzilla.gnome.org/show_bug.cgi?id=647600
2011-04-13 00:39:01 -04:00
Colin Walters
bf087aabbf
gsettings-tool fixes: Add missing _apply(), add unset-recursively to man page
2011-04-12 12:56:33 -04:00
Colin Walters
3fd9f2e8f9
gsettings: Implement reset-recursively
...
Motivation was the ability to:
$ gsettings reset-recursively org.gnome.gnome-panel
https://bugzilla.gnome.org/show_bug.cgi?id=647579
2011-04-12 12:13:43 -04:00
Matthias Clasen
3f7912f142
GLocalDirectoryMonitor: Improve struct packing
2011-04-12 10:02:31 -04:00
Matthias Clasen
a2094d5e56
GIOSchedulerJob: Improve struct packing
2011-04-12 10:02:12 -04:00
Matthias Clasen
bfe7548fe1
GFilenameCompleter: Improve struct packing
2011-04-12 10:01:37 -04:00
Matthias Clasen
3e4f3673d8
GFileAttributeMatcher: Improve struct packing
2011-04-12 10:01:05 -04:00
Matthias Clasen
8903ec808b
GDBusProxy: Improve struct packing
2011-04-12 10:00:37 -04:00
Matthias Clasen
53e3e111fd
GDBusWorker: Improve struct packing
2011-04-12 10:00:03 -04:00
Matthias Clasen
9890c03579
GMarkupParseContext: Improve struct packing
2011-04-12 09:58:13 -04:00
Matthias Clasen
f8b154f53a
GMatchInfo: improve struct packing
2011-04-12 09:55:59 -04:00
Matthias Clasen
ff6ecc61c9
Add forgotten apis
...
g_desktop_app_info_launch_uris_as_manager was not listed in
the docs.
2011-04-11 17:08:04 -04:00
Daniel Mustieles
5ec05ebfd4
Updated Spanish translation
2011-04-11 21:06:01 +02:00
Matthias Clasen
eaef2a8f3f
Add forgotten apis
...
g_desktop_app_info_launch_uris_as_manager was not listed in
the docs.
2011-04-11 13:26:40 -04:00
Matthias Clasen
c36aa59bf0
Fix duplicate private subsection
...
gtk-doc doesn't understand duplicate Private subsections in
the obvious way, it seems.
2011-04-11 13:21:12 -04:00
Matthias Clasen
1a6dd8c7fa
Fix a few parameter mismatches in the docs
2011-04-11 13:20:55 -04:00
Matthias Clasen
3c94299b0f
Don't include unistd.h unconditionally
...
It doesn't exist on all platforms. Partial fix for bug 647341.
2011-04-11 12:57:19 -04:00
Matthias Clasen
9d048615da
Add 2.30 index to GLib docs
2011-04-11 12:53:25 -04:00
Matthias Clasen
8f2a6d3e5a
Updates
2011-04-11 12:30:38 -04:00
Ryan Lortie
ff57ed5d6a
GApplication: g_settings_sync() on exit
...
Call g_settings_sync() just before g_applcation_run() returns. This is
really the correct thing to do in every case that you're using GSettings
and it prevents every single application from having to do it for
themselves.
Closes bug #647419 .
2011-04-11 03:41:10 -04:00
Ryan Lortie
68aef33404
GSettings: make _sync() a no-op if uninitialised
...
If GSettings is uninitialised then g_settings_sync() should very
obviously just return right away (rather than attempting to initialise
GSettings first).
2011-04-11 03:39:27 -04:00
Ryan Lortie
45377252db
Add test case for G_APPLICATION_NON_UNIQUE
2011-04-10 07:56:06 -04:00
Ryan Lortie
9d204338f3
GApplication: add G_APPLICATION_NON_UNIQUE
...
Add a flag to essentially short-circuit g_application_register(). The
application makes no attempt to acquire the bus name or check for
existing instances with that name. The application is never considered
as being 'remote' and all requests are handled locally.
Closes #646985 .
2011-04-10 07:55:33 -04:00
Ryan Lortie
53389d963d
GApplication: fix leaked object path
...
In the case that we fail to become the primary instance we should
unregister *both* object paths that we registered during our attempt.
2011-04-10 07:50:26 -04:00
Dan Winship
61704dbca5
GSocket: clarify g_socket_receive documentation
...
g_socket_receive* return 0 if the connection is closed.
https://bugzilla.gnome.org/show_bug.cgi?id=643074
2011-04-09 12:54:15 -04:00
Dan Winship
ea57feff96
gsettings-tool: warn if setting a value fails
...
eg, if the dconf backend cannot connect to dbus
https://bugzilla.gnome.org/show_bug.cgi?id=641768
2011-04-09 12:45:16 -04:00
Matthias Clasen
1a0424b7ff
Fix another faulty GApplicationCommandline example
...
Several flaws were pointed out by Shaun McCance. We were
leaking handled arguments, and we were mishandling the last
argument, and we were actually skipping arguments too.
https://bugzilla.gnome.org/show_bug.cgi?id=647031
2011-04-08 17:02:01 -04:00
David Zeuthen
0729260141
Silence a bunch of -Wunused-but-set-variable warnings
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-08 15:44:25 -04:00
Ryan Lortie
23818d1e61
GSettings: remove more asserts
...
Same logic as the last commit on this topic, applied to the other
functions too.
2011-04-08 09:15:19 -04:00
Matthias Clasen
edaf99be86
Avoid an interaction between GApplication and GOption
...
When using GOption to handle commandlines, we need to disable
the builtin help handling, since it calls exit(). Also mention
this particular pitfall in the docs.
2011-04-08 07:19:38 -04:00
Ryan Lortie
3498d58289
glib-compile-schemas: check for undefined refs
...
For child schemas, verify that the named schema actually exists and
issue a warning if not. This error in schema files will cause runtime
errors when iterating over the list of child schemas and attempting to
instantiate each one.
This will move from being merely a warning to a hard error in the
future.
Bug #646039 .
2011-04-08 01:47:52 -04:00
Ryan Lortie
4ece333afe
Don't assert on backend == settings->priv->backend
...
They could be different if a notification is queued for delivery and
someone calls g_settings_delay().
Bug #646843 .
2011-04-07 21:25:01 -04:00
Matthias Clasen
a2e3a4d150
Add a warning to the g_dbus_connection_set_exit_on_close docs
...
Tell people to not leak their apps out of the session.
2011-04-07 17:15:41 -04:00
Dan Winship
784619bc3a
Fix two leaks seen when using TLS connections
...
g_tls_certificate_list_new_from_file() was leaking the file contents,
and GSource was leaking the GSourcePrivate structure that got
created when using child sources.
2011-04-07 08:32:06 -04:00
Jordi Serratosa
9fdc8d976a
[l10n]Fixes on Catalan translation
2011-04-04 21:45:39 +02:00
OKANO Takayoshi
418358f452
Updated Japanese translation
2011-04-04 21:27:48 +09:00
Murray Cumming
3ac7e0a7fe
Docs: Change DBus to D-Bus
2011-04-04 09:22:06 +02:00
Petr Kovar
27a067a3c8
Update Czech translation
2011-04-04 04:11:17 +02:00
Gabor Kelemen
88a6723bf4
Updated Hungarian translation
2011-04-03 10:14:26 +02:00