Matthias Clasen [Fri, 15 Apr 2011 00:41:54 +0000 (20:41 -0400)]
Slight docs rewording
Proposed by Thomas Andersen,
https://bugzilla.gnome.org/show_bug.cgi?id=647700
David Zeuthen [Thu, 14 Apr 2011 15:27:57 +0000 (11:27 -0400)]
GResolver: Don't return duplicate addresses
... this was causing a GDBus test-case to fail so now that it is
fixed, also reenable the test case.
https://bugzilla.gnome.org/show_bug.cgi?id=631379
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Thu, 14 Apr 2011 15:27:57 +0000 (11:27 -0400)]
GInetAddress: add equal() method
This is needed in the fix for
https://bugzilla.gnome.org/show_bug.cgi?id=631379
Signed-off-by: David Zeuthen <davidz@redhat.com>
Ryan Lortie [Thu, 14 Apr 2011 13:54:17 +0000 (09:54 -0400)]
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.
David Zeuthen [Wed, 13 Apr 2011 22:40:47 +0000 (18:40 -0400)]
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>
David Zeuthen [Wed, 13 Apr 2011 22:21:16 +0000 (18:21 -0400)]
GDBus: Add test case for the ANONYMOUS authentication method
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Wed, 13 Apr 2011 22:19:57 +0000 (18:19 -0400)]
GDBus: Nuke debug spew from the ANONYMOUS authentication method
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Wed, 13 Apr 2011 21:49:19 +0000 (17:49 -0400)]
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>
Colin Walters [Wed, 13 Apr 2011 18:03:58 +0000 (14:03 -0400)]
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
Ryan Lortie [Wed, 13 Apr 2011 15:46:33 +0000 (11:46 -0400)]
G_VARIANT_TYPE_VARDICT: Add 'Since:' tag
Matthias Clasen [Wed, 13 Apr 2011 12:48:10 +0000 (08:48 -0400)]
Bump version
Matthias Clasen [Wed, 13 Apr 2011 12:19:35 +0000 (08:19 -0400)]
Skip the writable test if the file is not writable
Since make distcheck operates on a readonly source tree.
Matthias Clasen [Wed, 13 Apr 2011 05:31:19 +0000 (01:31 -0400)]
Fix non-srcdir builds
Matthias Clasen [Wed, 13 Apr 2011 04:42:51 +0000 (00:42 -0400)]
More updates
Matthias Clasen [Wed, 13 Apr 2011 04:39:01 +0000 (00:39 -0400)]
Fix a typo in the GSettings docs
Pointed out by Thomas Andersen
https://bugzilla.gnome.org/show_bug.cgi?id=647600
Colin Walters [Tue, 12 Apr 2011 16:56:33 +0000 (12:56 -0400)]
gsettings-tool fixes: Add missing _apply(), add unset-recursively to man page
Colin Walters [Tue, 12 Apr 2011 15:00:54 +0000 (11:00 -0400)]
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
Matthias Clasen [Tue, 12 Apr 2011 14:02:31 +0000 (10:02 -0400)]
GLocalDirectoryMonitor: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 14:02:12 +0000 (10:02 -0400)]
GIOSchedulerJob: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 14:01:37 +0000 (10:01 -0400)]
GFilenameCompleter: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 14:01:05 +0000 (10:01 -0400)]
GFileAttributeMatcher: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 14:00:37 +0000 (10:00 -0400)]
GDBusProxy: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 14:00:03 +0000 (10:00 -0400)]
GDBusWorker: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 13:58:13 +0000 (09:58 -0400)]
GMarkupParseContext: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 13:55:59 +0000 (09:55 -0400)]
GMatchInfo: improve struct packing
Matthias Clasen [Mon, 11 Apr 2011 17:26:40 +0000 (13:26 -0400)]
Add forgotten apis
g_desktop_app_info_launch_uris_as_manager was not listed in
the docs.
Daniel Mustieles [Mon, 11 Apr 2011 19:06:01 +0000 (21:06 +0200)]
Updated Spanish translation
Matthias Clasen [Mon, 11 Apr 2011 17:26:40 +0000 (13:26 -0400)]
Add forgotten apis
g_desktop_app_info_launch_uris_as_manager was not listed in
the docs.
Matthias Clasen [Mon, 11 Apr 2011 17:21:12 +0000 (13:21 -0400)]
Fix duplicate private subsection
gtk-doc doesn't understand duplicate Private subsections in
the obvious way, it seems.
Matthias Clasen [Mon, 11 Apr 2011 17:20:55 +0000 (13:20 -0400)]
Fix a few parameter mismatches in the docs
Matthias Clasen [Mon, 11 Apr 2011 16:57:19 +0000 (12:57 -0400)]
Don't include unistd.h unconditionally
It doesn't exist on all platforms. Partial fix for bug 647341.
Matthias Clasen [Mon, 11 Apr 2011 16:53:25 +0000 (12:53 -0400)]
Add 2.30 index to GLib docs
Matthias Clasen [Mon, 11 Apr 2011 16:26:15 +0000 (12:26 -0400)]
Updates
Ryan Lortie [Mon, 11 Apr 2011 07:30:24 +0000 (03:30 -0400)]
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.
Ryan Lortie [Mon, 11 Apr 2011 07:37:47 +0000 (03:37 -0400)]
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).
Ryan Lortie [Sun, 10 Apr 2011 11:55:03 +0000 (07:55 -0400)]
Add test case for G_APPLICATION_NON_UNIQUE
Ryan Lortie [Sun, 10 Apr 2011 11:51:55 +0000 (07:51 -0400)]
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.
Ryan Lortie [Sun, 10 Apr 2011 11:50:26 +0000 (07:50 -0400)]
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.
Dan Winship [Sat, 9 Apr 2011 16:47:32 +0000 (12:47 -0400)]
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
Dan Winship [Fri, 11 Mar 2011 03:09:31 +0000 (22:09 -0500)]
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
Matthias Clasen [Fri, 8 Apr 2011 21:02:01 +0000 (17:02 -0400)]
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
David Zeuthen [Fri, 8 Apr 2011 19:44:25 +0000 (15:44 -0400)]
Silence a bunch of -Wunused-but-set-variable warnings
Signed-off-by: David Zeuthen <davidz@redhat.com>
Ryan Lortie [Fri, 8 Apr 2011 13:14:50 +0000 (09:14 -0400)]
GSettings: remove more asserts
Same logic as the last commit on this topic, applied to the other
functions too.
Matthias Clasen [Fri, 8 Apr 2011 11:13:54 +0000 (07:13 -0400)]
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.
Ryan Lortie [Fri, 8 Apr 2011 05:47:52 +0000 (01:47 -0400)]
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.
Ryan Lortie [Fri, 8 Apr 2011 01:25:01 +0000 (21:25 -0400)]
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.
Matthias Clasen [Thu, 7 Apr 2011 21:14:36 +0000 (17:14 -0400)]
Add a warning to the g_dbus_connection_set_exit_on_close docs
Tell people to not leak their apps out of the session.
Dan Winship [Mon, 4 Apr 2011 15:10:50 +0000 (11:10 -0400)]
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.
Jordi Serratosa [Mon, 4 Apr 2011 19:16:35 +0000 (21:16 +0200)]
[l10n]Fixes on Catalan translation
OKANO Takayoshi [Mon, 4 Apr 2011 12:27:35 +0000 (21:27 +0900)]
Updated Japanese translation
Murray Cumming [Thu, 24 Mar 2011 08:37:21 +0000 (09:37 +0100)]
Docs: Change DBus to D-Bus
Petr Kovar [Mon, 4 Apr 2011 02:10:42 +0000 (04:10 +0200)]
Update Czech translation
Gabor Kelemen [Sun, 3 Apr 2011 08:13:57 +0000 (10:13 +0200)]
Updated Hungarian translation
Murray Cumming [Sat, 2 Apr 2011 13:42:11 +0000 (15:42 +0200)]
GDBusMethodInvocation: Improve get_parameters() documentation.
Note that the returned GVariant is always a tuple.
See bug #646420.
Colin Walters [Thu, 31 Mar 2011 21:07:07 +0000 (17:07 -0400)]
gqsort: Quiet a compiler warning for qsort_r
Colin Walters [Fri, 25 Mar 2011 15:59:33 +0000 (11:59 -0400)]
goption: [linux] Look in /proc/self/cmdline for argv0 if not specified
We really shouldn't use <unknown> when we can perfectly easily
get argv0 out of /proc. This avoids people having to pass argv
down into gtk_init/g_option_context_parse etc., which is important
because GTK+ uses it to initialize the WM_CLASS, which in turn
GNOME Shell consumes for application tracking.
https://bugzilla.gnome.org/show_bug.cgi?id=644309
Ryan Lortie [Thu, 31 Mar 2011 10:25:21 +0000 (15:55 +0530)]
gio.symbols updates
Ryan Lortie [Thu, 31 Mar 2011 10:21:01 +0000 (15:51 +0530)]
Improve .gitignore
Ryan Lortie [Thu, 31 Mar 2011 10:17:54 +0000 (15:47 +0530)]
glib.symbols: add some missing symbols
Ryan Lortie [Thu, 31 Mar 2011 09:42:34 +0000 (15:12 +0530)]
compile schemas test: open ranges for all types
We need to make sure that every value in the table actually parses with
GVariant.
Ryan Lortie [Thu, 31 Mar 2011 09:41:30 +0000 (15:11 +0530)]
gschema-test: invert expectation for min/max omit
It is now completely valid.
Fix up what is now a legitimate range error in the schema used in one of
the tests.
Ryan Lortie [Thu, 31 Mar 2011 09:40:25 +0000 (15:10 +0530)]
glib-compile-schemas: min and max are now optional
Will be taken to be the minimum and maximum value for the type of the
key if they are left out.
Bug #646310.
Ryan Lortie [Thu, 31 Mar 2011 09:39:55 +0000 (15:09 +0530)]
GVariant test: test parsing of "inf" and "nan"
Ryan Lortie [Thu, 31 Mar 2011 09:18:10 +0000 (14:48 +0530)]
GVariant parser: parse "inf", "-inf" and "nan"
Ryan Lortie [Thu, 31 Mar 2011 09:15:50 +0000 (14:45 +0530)]
GVariant parser: match strings without consuming
Add a new function that allows the parser to check that the current
token is equal to a given string without consuming the token.
Reimplement the 'consume' function in terms of the new function.
Ryan Lortie [Thu, 31 Mar 2011 08:37:59 +0000 (14:07 +0530)]
GVariant parser: fix memory error
In some cases it was possible for the GVariant parser to access past the
'limit' parameter. This should fix that.
Ryan Lortie [Thu, 31 Mar 2011 07:14:40 +0000 (12:44 +0530)]
Add 'uint' convenience functions for GSettings
Without getting into a debate about the reasons why you may or may not
want to use unsigned integers, it's sufficient to note that people have
been using them and requesting this functionality.
Bug #641755.
Ryan Lortie [Sat, 19 Mar 2011 02:00:14 +0000 (22:00 -0400)]
Add GTimeZoneMonitor
Monitors /etc/localtime for changes and instructs GTimeZone to drop its
cache. Also has a signal for interested 3rd parties.
Ryan Lortie [Sat, 19 Mar 2011 03:09:52 +0000 (23:09 -0400)]
g_time_zone_new_local: cache the result
Add a function to drop the cache.
Ryan Lortie [Sat, 19 Mar 2011 03:09:17 +0000 (23:09 -0400)]
GTimeZone: don't add /etc/localtime to the cache
It may change.
Miroslav Nikolić [Wed, 30 Mar 2011 22:47:41 +0000 (00:47 +0200)]
Updated Serbian translation
Gil Forcada [Wed, 30 Mar 2011 21:17:29 +0000 (23:17 +0200)]
[l10n]Updated Catalan translation
Martin Pitt [Wed, 30 Mar 2011 17:52:31 +0000 (19:52 +0200)]
[gi] Add missing allow-none annotations to Gio
Friedel Wolff [Wed, 30 Mar 2011 16:53:38 +0000 (18:53 +0200)]
Update translation for Afrikaans (af)
Bruce Cowan [Wed, 30 Mar 2011 14:22:38 +0000 (15:22 +0100)]
Updated British English translation
Chao-Hsiung Liao [Wed, 30 Mar 2011 13:17:26 +0000 (21:17 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Gintautas Miliauskas [Tue, 29 Mar 2011 12:12:25 +0000 (14:12 +0200)]
Updated Lithuanian translation.
Jonathan Matthew [Sun, 27 Mar 2011 00:44:31 +0000 (10:44 +1000)]
introspection: add annotations for g_file_load_contents and friends
https://bugzilla.gnome.org/show_bug.cgi?id=645789
Gil Forcada [Mon, 28 Mar 2011 22:58:25 +0000 (00:58 +0200)]
[l10n]Updated Catalan translation
David Zeuthen [Mon, 28 Mar 2011 17:04:34 +0000 (13:04 -0400)]
GDBusProxy: Also check signature when checking if signal is expected
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Mon, 28 Mar 2011 16:10:25 +0000 (12:10 -0400)]
GDBusProxy: Drop unexpected signals
If we have an expected interface and receive a signal not mentioned in
the interface, simply drop it. This way, the application won't have to
check for the signal itself.
This was pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=642724#c5
Signed-off-by: David Zeuthen <davidz@redhat.com>
Olivier Crête [Sat, 19 Feb 2011 01:34:06 +0000 (20:34 -0500)]
GDBusProxy: Validate properties received from service if possible
If the proxy has an GInterfaceInfo set, validate properties against it
so the application doesn't have to do it.
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Mon, 28 Mar 2011 15:35:14 +0000 (11:35 -0400)]
docs: Add a "Index of new symbols in 2.30" section
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Mon, 28 Mar 2011 15:34:48 +0000 (11:34 -0400)]
GDBusProxy: Make interface lookups O(1)
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Mon, 28 Mar 2011 15:33:36 +0000 (11:33 -0400)]
GDBusConnection: Make interface lookups O(1)
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Mon, 28 Mar 2011 15:31:05 +0000 (11:31 -0400)]
GDBus: Add mechanism to make lookup on interfaces constant-time
This is used both on the service- and client-side and is currently
O(n).
Signed-off-by: David Zeuthen <davidz@redhat.com>
Aron Xu [Mon, 28 Mar 2011 10:21:57 +0000 (10:21 +0000)]
Update Simplified Chinese translation.
Aron Xu [Mon, 28 Mar 2011 10:18:03 +0000 (10:18 +0000)]
Update Simplified Chinese translation.
Wouter Bolsterlee [Sun, 27 Mar 2011 21:49:55 +0000 (23:49 +0200)]
Updated Dutch translation by Wouter Bolsterlee
Abduxukur Abdurixit [Sun, 27 Mar 2011 17:38:45 +0000 (19:38 +0200)]
Added UG translation
Nguyễn Thái Ngọc Duy [Sat, 26 Mar 2011 17:38:07 +0000 (00:38 +0700)]
Updated Vietnamese translation
Nguyễn Thái Ngọc Duy [Sat, 26 Mar 2011 17:34:44 +0000 (00:34 +0700)]
po/vi.po: import from Damned Lies
Ask H. Larsen [Sat, 26 Mar 2011 13:17:39 +0000 (14:17 +0100)]
Updated Danish translation
David Zeuthen [Fri, 25 Mar 2011 21:56:59 +0000 (17:56 -0400)]
Fix test suite breakage caused by Murray's commit
See https://bugzilla.gnome.org/show_bug.cgi?id=645682
Signed-off-by: David Zeuthen <davidz@redhat.com>
Alexander Shopov [Fri, 25 Mar 2011 20:13:47 +0000 (22:13 +0200)]
Updated Bulgarian translation
Daniel Nylander [Fri, 25 Mar 2011 17:22:51 +0000 (18:22 +0100)]
Updated Swedish translation
Daniel Nylander [Fri, 25 Mar 2011 17:22:13 +0000 (18:22 +0100)]
Updated Swedish translation
Tristan Van Berkom [Thu, 24 Mar 2011 14:07:18 +0000 (10:07 -0400)]
GDBusServer: move business logic from _new() function to initable_init()
https://bugzilla.gnome.org/show_bug.cgi?id=639478
Signed-off-by: David Zeuthen <davidz@redhat.com>
Murray Cumming [Thu, 24 Mar 2011 08:33:55 +0000 (09:33 +0100)]
Docs: Changed can not to cannot.
Daniel Nylander [Tue, 22 Mar 2011 14:12:41 +0000 (15:12 +0100)]
Updated Swedish translation