platform/upstream/glib.git
13 years agoUse G_GINT64_CONSTANT here
Christian Persch [Sun, 31 Oct 2010 01:40:28 +0000 (21:40 -0400)]
Use G_GINT64_CONSTANT here

Bug #631482.

13 years agogsettings-tool: Support completion for enum values
Matthias Clasen [Sat, 30 Oct 2010 05:13:42 +0000 (01:13 -0400)]
gsettings-tool: Support completion for enum values

https://bugzilla.gnome.org/show_bug.cgi?id=631264

13 years agoAdd a command to list keys and values recursively
Matthias Clasen [Sat, 30 Oct 2010 04:00:06 +0000 (00:00 -0400)]
Add a command to list keys and values recursively

This is similar to gconftool-2 -R, which is very handy
for collecting information for bug reports, etc. It is now
possible to say gsettings list-recursively org.foo.bar, and
this will produce a list of schemas, keys and values for
org.foo.bar and all its child and grandchild schemata,
recursively.

https://bugzilla.gnome.org/show_bug.cgi?id=632571

13 years agoMake gsettings-tool translatable again
Matthias Clasen [Sat, 30 Oct 2010 03:12:07 +0000 (23:12 -0400)]
Make gsettings-tool translatable again

This regression was caused by the recent rewrite.

13 years agoUse 'aay' instead of 'as' for environ
Ryan Lortie [Fri, 29 Oct 2010 20:33:47 +0000 (16:33 -0400)]
Use 'aay' instead of 'as' for environ

It might contain non-utf8 characters.

13 years agoGApplication: emit a signal when starting up
Ryan Lortie [Fri, 29 Oct 2010 03:06:53 +0000 (23:06 -0400)]
GApplication: emit a signal when starting up

Send a signal to the bus when registration is successful and we are the
primary instance.

13 years agoGApplication: support environment passing
Ryan Lortie [Fri, 29 Oct 2010 02:49:12 +0000 (22:49 -0400)]
GApplication: support environment passing

Add support for passing the full contents of the environment to the
primary instance (by storing it in the platform_data) when
G_APPLICATION_SEND_ENVIRONMENT is in the flags.

13 years agoAdd testcase for environment functions
Ryan Lortie [Fri, 29 Oct 2010 02:20:25 +0000 (22:20 -0400)]
Add testcase for environment functions

13 years agoAdd g_get_environ(): portable access to 'environ'
Ryan Lortie [Fri, 29 Oct 2010 01:26:09 +0000 (21:26 -0400)]
Add g_get_environ(): portable access to 'environ'

Return a copy of 'environ' on platforms where that is possible, or do
something else on other platforms.

13 years agoUpdated Catalan (Valencian) translation
Carles Ferrando [Thu, 28 Oct 2010 23:48:48 +0000 (00:48 +0100)]
Updated Catalan (Valencian) translation

13 years agoGApplication: use infinite timeout for CommandLine
Ryan Lortie [Thu, 28 Oct 2010 20:46:18 +0000 (16:46 -0400)]
GApplication: use infinite timeout for CommandLine

Use an infinite DBus timeout for sending a CommandLine request to the
primary instance.

This resolves a bit of bug #633339.

13 years agoBug 633356 - (GDBus) Make G_MAXINT mean no timeout
Ryan Lortie [Thu, 28 Oct 2010 20:14:24 +0000 (16:14 -0400)]
Bug 633356 - (GDBus) Make G_MAXINT mean no timeout

Don't register a timeout function in the case that G_MAXINT is given for
the timeout length.

13 years agoGNetworkService: fix a small bug
Dan Winship [Thu, 28 Oct 2010 19:17:17 +0000 (15:17 -0400)]
GNetworkService: fix a small bug

Fix a small bug in the synchronous lookup code introduced in the fix
for bug 629274

13 years agoDon't enable dtrace support when dtrace isn't available
Emilio Pozuelo Monfort [Tue, 28 Sep 2010 09:53:03 +0000 (11:53 +0200)]
Don't enable dtrace support when dtrace isn't available

Fixes FTBFS when dtrace isn't available but <sys/sdt.h> is.

13 years agoBug 158725 - free linked list with data
Ryan Lortie [Fri, 16 Oct 2009 10:19:06 +0000 (12:19 +0200)]
Bug 158725 - free linked list with data

Add some helpers for freeing a linked list along with its elements by
providing a GDestroyNotify to call on each of them.

Add a test.

Based on a patch from Cosimo Cecchi.

13 years agoGApplication: exit_status unset in one branch
Ryan Lortie [Wed, 27 Oct 2010 13:26:01 +0000 (09:26 -0400)]
GApplication: exit_status unset in one branch

Closes #633206

13 years agoGPeriodic: allow unblock time to be passed in
Ryan Lortie [Fri, 22 Oct 2010 17:43:11 +0000 (19:43 +0200)]
GPeriodic: allow unblock time to be passed in

13 years agoDeprecate g_source_get_current_time()
Ryan Lortie [Fri, 22 Oct 2010 17:20:14 +0000 (19:20 +0200)]
Deprecate g_source_get_current_time()

13 years agoswitch GSocket to monotonic time for timeouts
Ryan Lortie [Fri, 22 Oct 2010 17:16:57 +0000 (19:16 +0200)]
switch GSocket to monotonic time for timeouts

13 years agoswitch GPeriodic to use monotonic time
Ryan Lortie [Fri, 22 Oct 2010 17:13:01 +0000 (19:13 +0200)]
switch GPeriodic to use monotonic time

13 years agoswitch GTimeoutSource to use monotonic time
Ryan Lortie [Fri, 22 Oct 2010 17:10:39 +0000 (19:10 +0200)]
switch GTimeoutSource to use monotonic time

13 years agoAdd g_source_get_time()
Ryan Lortie [Fri, 22 Oct 2010 16:40:08 +0000 (18:40 +0200)]
Add g_source_get_time()

Cached version of g_get_monotonic_time() that does similar to what
g_source_get_current_time() does for g_get_current_time().

13 years agoRename time_is_current to current_time_is_fresh
Ryan Lortie [Fri, 22 Oct 2010 16:47:06 +0000 (18:47 +0200)]
Rename time_is_current to current_time_is_fresh

Internal structure field; no semantic changes.

13 years agoAdd g_get_monotonic_time()
Ryan Lortie [Fri, 22 Oct 2010 16:42:32 +0000 (18:42 +0200)]
Add g_get_monotonic_time()

Gets the system monotonic time on systems that have it.  Otherwise, call
g_get_current_time().

13 years agoAdd 'GTimeSpec' as 'struct timespec' equivalent
Ryan Lortie [Fri, 22 Oct 2010 15:28:46 +0000 (17:28 +0200)]
Add 'GTimeSpec' as 'struct timespec' equivalent

13 years agoLink libglib against -lrt if we have clock_gettime
Ryan Lortie [Fri, 22 Oct 2010 15:16:47 +0000 (17:16 +0200)]
Link libglib against -lrt if we have clock_gettime

13 years agoBug 632169 - manual use of gsettings-data-convert
Ryan Lortie [Wed, 27 Oct 2010 13:08:32 +0000 (09:08 -0400)]
Bug 632169 - manual use of gsettings-data-convert

Add some words and example code to the documentation about why you might
want to manually invoke gsettings-data-convert and how you should go
about doing that.

13 years agogsettings m4: Use --strict for checking
Ryan Lortie [Tue, 26 Oct 2010 16:02:12 +0000 (12:02 -0400)]
gsettings m4: Use --strict for checking

A while ago we allowed glib-compile-schemas to return a 'success' status
in the case that just one schema file contained errors.  Of course, this
is the exact opposite of what we want in the case that we are checking
schema validity at compile time.

Use the --strict flag for that case.

This closes #633115.

13 years agoGVariant: avoid locking in a common case
Ryan Lortie [Tue, 26 Oct 2010 15:49:32 +0000 (11:49 -0400)]
GVariant: avoid locking in a common case

Avoid acquiring the lock on the instance on the case of deserialising a
child.  We know that it is safe to do this unlocked because a serialised
child will never become unserialised.

Closes #626320

13 years agoGApplicationCommandLine: add printf annotations
Ryan Lortie [Mon, 25 Oct 2010 18:45:19 +0000 (14:45 -0400)]
GApplicationCommandLine: add printf annotations

to g_application_command_line_print{,err}

13 years agoImplement (untested) GApplication actions support
Ryan Lortie [Mon, 25 Oct 2010 18:32:07 +0000 (14:32 -0400)]
Implement (untested) GApplication actions support

13 years agoUpdated Indonesian translation
Andika Triwidada [Mon, 25 Oct 2010 15:10:32 +0000 (22:10 +0700)]
Updated Indonesian translation

13 years agoBump version
Matthias Clasen [Mon, 25 Oct 2010 13:55:38 +0000 (09:55 -0400)]
Bump version

13 years agoMore documentation fixups 2.27.1
Matthias Clasen [Mon, 25 Oct 2010 12:42:36 +0000 (08:42 -0400)]
More documentation fixups

13 years agoRemove nonexisting API from the headers
Matthias Clasen [Mon, 25 Oct 2010 12:34:00 +0000 (08:34 -0400)]
Remove nonexisting API from the headers

I couldn't find any trace of g_application_run_with_arguments.

13 years agoAdd new gmain api to the docs
Matthias Clasen [Mon, 25 Oct 2010 12:30:28 +0000 (08:30 -0400)]
Add new gmain api to the docs

13 years agoUpdate NEWS for 2.27.1
Matthias Clasen [Mon, 25 Oct 2010 12:19:34 +0000 (08:19 -0400)]
Update NEWS for 2.27.1

13 years agoUpdate Simplified Chinese translation.
Yinghua Wang [Sun, 24 Oct 2010 03:51:46 +0000 (03:51 +0000)]
Update Simplified Chinese translation.

13 years agoSome more GApplication doc tweaks
Matthias Clasen [Sat, 23 Oct 2010 18:43:36 +0000 (20:43 +0200)]
Some more GApplication doc tweaks

13 years agoProperly register the inactivity-timeout property
Matthias Clasen [Sat, 23 Oct 2010 12:04:28 +0000 (14:04 +0200)]
Properly register the inactivity-timeout property

It is a uint, not a boolean, so register it as such.
Also, only install the service timeout if we are actually registered
as the primary instance.

13 years agoMove a confusing comment to the right place
Matthias Clasen [Sat, 23 Oct 2010 10:01:51 +0000 (12:01 +0200)]
Move a confusing comment to the right place

13 years agoAdd another example for commandline handling
Matthias Clasen [Sat, 23 Oct 2010 09:54:50 +0000 (11:54 +0200)]
Add another example for commandline handling

Also, clarify some aspects in the documentation.

13 years agoAdd some examples to the GApplication docs
Matthias Clasen [Sat, 23 Oct 2010 00:27:39 +0000 (02:27 +0200)]
Add some examples to the GApplication docs

13 years agoBrush up the GApplication docs
Matthias Clasen [Fri, 22 Oct 2010 22:40:13 +0000 (00:40 +0200)]
Brush up the GApplication docs

Also, fix up inclusions, mark properties for translation, etc.

13 years agoFix a typo
Matthias Clasen [Fri, 22 Oct 2010 22:32:45 +0000 (00:32 +0200)]
Fix a typo

13 years agoGNetworkService: fall back when there is no valid SRV record
Dan Winship [Wed, 15 Sep 2010 14:05:03 +0000 (10:05 -0400)]
GNetworkService: fall back when there is no valid SRV record

RFC 2782 says that if there is no SRV record for
_SERVICE._PROTOCOL.DOMAIN, you should fall back to trying just DOMAIN,
with the default port for SERVICE. Do that.

https://bugzilla.gnome.org/show_bug.cgi?id=629274

13 years agoGNetworkService: fix iteration of multiple addresses
Dan Winship [Wed, 15 Sep 2010 14:22:13 +0000 (10:22 -0400)]
GNetworkService: fix iteration of multiple addresses

Previously if there were multiple SRV records, only the first would
be iterated by the GSocketConnectable interface

13 years agoGSocket: set protocol when using g_socket_new_from_fd()
Dan Winship [Tue, 17 Aug 2010 22:34:13 +0000 (18:34 -0400)]
GSocket: set protocol when using g_socket_new_from_fd()

Otherwise, attempting to create a GSocketConnection from the socket
will likely return the wrong type, since the protocol won't match any
of the registered subtypes.

Also add the start of a GSocket test program (from davidz).

https://bugzilla.gnome.org/show_bug.cgi?id=627171

13 years agoFix deadlock in g_object_remove_toggle_ref()
Florian Müllner [Fri, 22 Oct 2010 11:20:54 +0000 (13:20 +0200)]
Fix deadlock in g_object_remove_toggle_ref()

The code section guarded with toggle_refs_mutex includes a call to
g_object_unref(), which may call toggle_refs_notify(). As the latter
tries to acquire the same mutex, glib locks up.

https://bugzilla.gnome.org/show_bug.cgi?id=632884

13 years agoProtect access to closure, weak refs and toggle refs arrays
Alberto Garcia [Fri, 26 Mar 2010 15:19:13 +0000 (16:19 +0100)]
Protect access to closure, weak refs and toggle refs arrays

This fixes https://bugzilla.gnome.org/show_bug.cgi?id=613822

13 years agoGApplication: create local commandline properly
Ryan Lortie [Thu, 21 Oct 2010 12:02:41 +0000 (14:02 +0200)]
GApplication: create local commandline properly

Don't pass a gchar** to g_object_new() when a GVariant* is expected.

13 years agoGPeriodic: pass microseconds to the tick functions
Ryan Lortie [Wed, 20 Oct 2010 23:37:23 +0000 (01:37 +0200)]
GPeriodic: pass microseconds to the tick functions

...instead of milliticks, which nobody really cares to understand.

13 years agoGPeriodic: a periodic event clock
Ryan Lortie [Wed, 20 Oct 2010 01:20:34 +0000 (03:20 +0200)]
GPeriodic: a periodic event clock

Add a new class, GPeriodic.

We hope to use this as a paint clock that can be shared by GTK and
Clutter.  Many changes are still expected to the API.

13 years agoGApplication: reduce GVariant abuse
Ryan Lortie [Tue, 19 Oct 2010 17:38:00 +0000 (19:38 +0200)]
GApplication: reduce GVariant abuse

Don't use GVariant* as the representation for the argument array.

13 years agoCleanup and doc GApplicationCommandLine
Ryan Lortie [Tue, 19 Oct 2010 16:18:13 +0000 (18:18 +0200)]
Cleanup and doc GApplicationCommandLine

13 years agoGIO reference doc cleanups (re: GApplication)
Ryan Lortie [Tue, 19 Oct 2010 14:56:18 +0000 (16:56 +0200)]
GIO reference doc cleanups (re: GApplication)

13 years agoGDBus: disable test to work around bug #631379
Ryan Lortie [Tue, 19 Oct 2010 11:45:20 +0000 (13:45 +0200)]
GDBus: disable test to work around bug #631379

This test consistently prevents 'make distcheck' from passing on Ubuntu.

13 years agoGApplication: merge DBus interface into C source
Ryan Lortie [Tue, 19 Oct 2010 11:44:30 +0000 (13:44 +0200)]
GApplication: merge DBus interface into C source

instead of having it in a separate file that causes problems to the
build system (I want to avoid using EXTRA_DIST here).

13 years agogio: update symbols
Ryan Lortie [Tue, 19 Oct 2010 10:38:40 +0000 (12:38 +0200)]
gio: update symbols

13 years agoDon't try to dist old GApplication implementations
Ryan Lortie [Tue, 19 Oct 2010 10:38:01 +0000 (12:38 +0200)]
Don't try to dist old GApplication implementations

One of them was deleted already, even.

13 years agoGApplication: use g_signal_accumulator_first_wins
Ryan Lortie [Wed, 13 Oct 2010 01:42:59 +0000 (21:42 -0400)]
GApplication: use g_signal_accumulator_first_wins

...instead of our homebrew version.

13 years agoChange 'Since:' to 2.28 for action classes
Ryan Lortie [Mon, 11 Oct 2010 19:57:09 +0000 (15:57 -0400)]
Change 'Since:' to 2.28 for action classes

13 years agoGApplication: fill in action group implementation
Ryan Lortie [Mon, 11 Oct 2010 15:54:51 +0000 (11:54 -0400)]
GApplication: fill in action group implementation

13 years agogio: app info symbol file fixup
Ryan Lortie [Mon, 11 Oct 2010 14:50:41 +0000 (10:50 -0400)]
gio: app info symbol file fixup

13 years agogio: symbol file updates (actions, command line)
Ryan Lortie [Mon, 11 Oct 2010 14:49:20 +0000 (10:49 -0400)]
gio: symbol file updates (actions, command line)

13 years agoRename methods on GActionGroup to include 'action'
Ryan Lortie [Mon, 11 Oct 2010 14:45:51 +0000 (10:45 -0400)]
Rename methods on GActionGroup to include 'action'

Makes explicit the fact that you are interacting with the individual
action rather than the group and removes potential namespace conflicts
with classes implementing the interface (like g_application_activate()
vs g_application_activate_action()).

13 years agoGApplication: stub-in GActionGroup implementation
Ryan Lortie [Mon, 11 Oct 2010 00:05:13 +0000 (20:05 -0400)]
GApplication: stub-in GActionGroup implementation

13 years agoGApplication test: test remote commandline
Ryan Lortie [Sat, 9 Oct 2010 21:25:07 +0000 (17:25 -0400)]
GApplication test: test remote commandline

Also, a few small fixes/tweaks to other places in the test.

13 years agoGApplication: add remote commandline support
Ryan Lortie [Sat, 9 Oct 2010 21:24:09 +0000 (17:24 -0400)]
GApplication: add remote commandline support

13 years agoGApplication test case
Ryan Lortie [Wed, 6 Oct 2010 18:06:26 +0000 (14:06 -0400)]
GApplication test case

13 years agoGApplication: fix inactivity-timeout
Ryan Lortie [Wed, 6 Oct 2010 18:05:40 +0000 (14:05 -0400)]
GApplication: fix inactivity-timeout

Create the gobject property for it.

Tweak the logic of having a pending timeout at the time that the
application starts -- run the mainloop with a use count of zero if there
is a timeout active.

13 years agonew GApplication implementation
Ryan Lortie [Wed, 6 Oct 2010 17:08:26 +0000 (13:08 -0400)]
new GApplication implementation

13 years agoUse CSIDL_LOCAL_APPDATA on Windows
Tor Lillqvist [Thu, 14 Oct 2010 19:47:25 +0000 (22:47 +0300)]
Use CSIDL_LOCAL_APPDATA on Windows

Make g_get_user_data_dir() return the CSIDL_LOCAL_APPDATA folder on
Windows, and not CSIDL_PERSONAL. On Windows 7, that corresponds to the
subfolders AppData\Local vs. Documents under the profile ("home")
folder. This matches what Qt does, for instance, and has been widely
requested.

Also make g_get_user_config_dir() return this and not the (roaming)
CSIDL_APPDATA folder. The reason for this change is that it would be
surprising and hard to justify if g_get_user_data_dir() returned the
local application data folder while g_get_user_config_dir() would
return the roaming one. Nothing in the function names or the XDG specs
suggests that any roaming vs. local dichotomy would be involved.

Document the new semantics and the fact that these two functions now
return the same directory on Windows.

Note that in reality, code that really truly wants to support Windows
as well as possible probably will not use these GLib functions anyway,
but Win32 APIs directly to be sure what it is doing...

Should hopefully satisfy complaints in bug #620710 and related bugs.

13 years agoPrevent error pileup
Matthias Clasen [Sun, 17 Oct 2010 03:30:30 +0000 (23:30 -0400)]
Prevent error pileup

13 years agoGSignal: fix trivial docs typo
Ryan Lortie [Wed, 13 Oct 2010 01:34:26 +0000 (21:34 -0400)]
GSignal: fix trivial docs typo

13 years agoGObject: add g_signal_accumulator_first_wins
Ryan Lortie [Wed, 13 Oct 2010 00:58:43 +0000 (20:58 -0400)]
GObject: add g_signal_accumulator_first_wins

Deals with the case where we want exactly one signal handler to run.

13 years agogthemedicon: Fix annotation for g_themed_icon_get_names
Colin Walters [Tue, 12 Oct 2010 16:54:36 +0000 (12:54 -0400)]
gthemedicon: Fix annotation for g_themed_icon_get_names

13 years agoUpdated Spanish translation
Jorge González [Sat, 9 Oct 2010 12:38:08 +0000 (14:38 +0200)]
Updated Spanish translation

13 years agogtypemodule: Mention g_object_run_dispose correctly in a warning
Javier Jardón [Fri, 8 Oct 2010 15:21:53 +0000 (17:21 +0200)]
gtypemodule: Mention g_object_run_dispose correctly in a warning

https://bugzilla.gnome.org/show_bug.cgi?id=630797

13 years agogobject: Improve install_properties()
Emmanuele Bassi [Fri, 8 Oct 2010 15:09:10 +0000 (16:09 +0100)]
gobject: Improve install_properties()

Cache the parent type outside of the loop, and fix a typo in the
documentation.

13 years agoInitialise lengths in GvdbReader to silence warnings
Christian Dywan [Fri, 8 Oct 2010 14:33:33 +0000 (16:33 +0200)]
Initialise lengths in GvdbReader to silence warnings

13 years agoInitialise lengths in GDbusAuth to silence warnings
Christian Dywan [Fri, 8 Oct 2010 14:33:04 +0000 (16:33 +0200)]
Initialise lengths in GDbusAuth to silence warnings

13 years agoMention g_object_run_dispose correctly in tutorial
Christian Dywan [Fri, 8 Oct 2010 13:17:31 +0000 (15:17 +0200)]
Mention g_object_run_dispose correctly in tutorial

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=630797

13 years agoUpdated British English translation
Bruce Cowan [Thu, 7 Oct 2010 20:27:17 +0000 (21:27 +0100)]
Updated British English translation

13 years agoRemove g_desktop_app_info_lookup_get_type symbol from gio.types
William Jon McCann [Thu, 7 Oct 2010 17:51:21 +0000 (13:51 -0400)]
Remove g_desktop_app_info_lookup_get_type symbol from gio.types

It was removed in 9b262f1c5fe5a6fd879f17cd7b80d8c54e33d80c

13 years agoDon't call close() on -1
Tor Lillqvist [Thu, 7 Oct 2010 09:04:52 +0000 (12:04 +0300)]
Don't call close() on -1

Of course, a proper implementation of close() will just ignore an
invalid parameter silently, and set errno. But apparently the "debug"
version of the Microsoft C library generates some noise in this
case. So avoid that. Thanks to John Emmas for reporting.

13 years agoUpdated Hebrew translation.
Yaron Shahrabani [Wed, 6 Oct 2010 00:18:30 +0000 (02:18 +0200)]
Updated Hebrew translation.

13 years agoReplace "gio-desktop-app-info-lookup" extension point
Bastien Nocera [Tue, 5 Oct 2010 14:02:37 +0000 (15:02 +0100)]
Replace "gio-desktop-app-info-lookup" extension point

With a native version, that looks for desktop items supporting
x-scheme-handler/foo, when looking for a handler for the "foo"
URI scheme handler.

https://bugzilla.gnome.org/show_bug.cgi?id=631410

13 years agovolume monitor: don't unref NULL
Ryan Lortie [Tue, 5 Oct 2010 06:29:47 +0000 (02:29 -0400)]
volume monitor: don't unref NULL

Fix a couple more cases of blindly calling g_object_unref() on the
result of a function that is documented as sometimes returning NULL.

13 years agoGVariant tests: fix bad allignment assumption
Ryan Lortie [Tue, 5 Oct 2010 06:11:22 +0000 (02:11 -0400)]
GVariant tests: fix bad allignment assumption

One of the GVariant test cases allocates a pair of character arrays on
the stack and then passes them to functions that assume that they will
be aligned to a multiple of two.

This is not the case for some versions of GCC (4.0.3 on PowerPC).

13 years agoGSettings test: fix error match strings
Ryan Lortie [Tue, 5 Oct 2010 01:07:50 +0000 (21:07 -0400)]
GSettings test: fix error match strings

The name of the internal function that appears in an assertion message
has changed.  Update the tests.

13 years agogsettings-tool: Add 'range' subcommand
Ryan Lortie [Mon, 4 Oct 2010 07:41:03 +0000 (03:41 -0400)]
gsettings-tool: Add 'range' subcommand

Provides access to the g_settings_get_range() functionality, converting
its return value to something that's reasonable for printing at the
console and potentially parseable.  The format may change.

Bug #631264.

13 years agogsettings-tool: implement range-checking
Ryan Lortie [Mon, 4 Oct 2010 07:40:22 +0000 (03:40 -0400)]
gsettings-tool: implement range-checking

Prevent assertion messages from spewing forth and also ensure that we
exit with an error status in the event that the value was out of range.

Bug #631264.

13 years agoUpdate symbols and docs sections
Ryan Lortie [Mon, 4 Oct 2010 07:36:09 +0000 (03:36 -0400)]
Update symbols and docs sections

13 years agoGSettings: add g_settings_range_check() API
Ryan Lortie [Mon, 4 Oct 2010 07:33:06 +0000 (03:33 -0400)]
GSettings: add g_settings_range_check() API

Checks if a given value is within the correct range for a key.

13 years agoBug 631263 - GSettings needs range/choice APIs
Ryan Lortie [Mon, 4 Oct 2010 06:58:46 +0000 (02:58 -0400)]
Bug 631263 - GSettings needs range/choice APIs

Add g_settings_get_range() to describe the possible values that may be
provided to g_settings_set_value() without causing an error.

Add a test case.

13 years agoschema compiler: Don't store zero-valued flags
Ryan Lortie [Mon, 4 Oct 2010 06:57:06 +0000 (02:57 -0400)]
schema compiler: Don't store zero-valued flags

Don't store the "none" value for flags into the compiled schema file.
"none" should never appear as a value -- no flags set is indicated by an
empty array.

13 years agoBug 627126 - gsettings schemas on FreeBSD
Ryan Lortie [Mon, 4 Oct 2010 05:51:11 +0000 (01:51 -0400)]
Bug 627126 - gsettings schemas on FreeBSD

Rewrite the install rule for GSettings schemas to not depend on an
obscure chunk of non-portable sed that nobody understands the purpose
of.

Instead, use make's VPATH feature to resolve the paths of the files that
need to be installed.  No need to depend on the .valid targets here
since automake already ensures that 'make all' is complete before 'make
install' is permitted to run.

13 years agoglib-compile-schemas: write strinfo little endian
Ryan Lortie [Mon, 4 Oct 2010 03:26:18 +0000 (23:26 -0400)]
glib-compile-schemas: write strinfo little endian

Ensure that the strinfo is output in little-endian byte order on big
endian machines.

GSettings is now passing all of its tests on PowerPC.

Bug #630968 is closed.

13 years agoGSettings strinfo: byteswap integers
Ryan Lortie [Mon, 4 Oct 2010 03:25:29 +0000 (23:25 -0400)]
GSettings strinfo: byteswap integers

strinfo is always strictly little endian, so ensure that we byteswap to
native when comparing and returning.