platform/upstream/glib.git
12 years agoGMemoryInputStream/GMemoryOutputStream: make these properly subclassable
Dan Winship [Wed, 30 Nov 2011 09:32:42 +0000 (10:32 +0100)]
GMemoryInputStream/GMemoryOutputStream: make these properly subclassable

The async methods were directly invoking their own implementations of
the sync methods, making it impossible for a subclass to reimplement
them.

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

12 years agoDon't abort if g_ascii_strtod tests fail
Matthias Clasen [Wed, 30 Nov 2011 03:53:50 +0000 (22:53 -0500)]
Don't abort if g_ascii_strtod tests fail

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

12 years agoRemove two useless lines of code
Geek87 [Mon, 25 Jul 2011 11:08:24 +0000 (13:08 +0200)]
Remove two useless lines of code

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

12 years agoFix a little comment error in the _GTreeNode struct
Geek87 [Mon, 25 Jul 2011 11:06:02 +0000 (13:06 +0200)]
Fix a little comment error in the _GTreeNode struct

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

12 years agoClarify local_command_line docs
Matthias Clasen [Wed, 30 Nov 2011 03:09:58 +0000 (22:09 -0500)]
Clarify local_command_line docs

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

12 years agoDo not use static GTypeInfo and GInterfaceInfo
Nicola Fontana [Wed, 30 Nov 2011 03:02:00 +0000 (22:02 -0500)]
Do not use static GTypeInfo and GInterfaceInfo

Either g_type_register_static_simple (used by G_DEFINE_TYPE_EXTENDED)
and G_IMPLEMENT_INTERFACE use automatic variables for GTypeInfo and
GInterfaceInfo structs, while tutorials and source code often use
static variables. This commit consistently adopts the former method.

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

12 years agognetworkmonitornetlink.c: Make the error messages less geeky
Dan Winship [Tue, 29 Nov 2011 20:45:37 +0000 (21:45 +0100)]
gnetworkmonitornetlink.c: Make the error messages less geeky

This makes several different errors have identical messages, but
they're pretty much "can't happen" situations anyway.

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

12 years agogzlibdecompressor.c: fix a comment
Dan Winship [Tue, 29 Nov 2011 20:42:41 +0000 (21:42 +0100)]
gzlibdecompressor.c: fix a comment

12 years agoAdd missing annotation to g_file_set_attribute()
Michael Vogt [Tue, 29 Nov 2011 11:00:38 +0000 (12:00 +0100)]
Add missing annotation to g_file_set_attribute()

g_file_set_attribute() also permits a NULL value for value_p, and requires it
to be NULL to unset it. Also fix the wrong variable name in the documentation.

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
12 years agoForgot one interface...
Matthias Clasen [Tue, 29 Nov 2011 00:57:44 +0000 (19:57 -0500)]
Forgot one interface...

12 years agoUse an XML blob for gapplication interface info
Matthias Clasen [Tue, 29 Nov 2011 00:33:24 +0000 (19:33 -0500)]
Use an XML blob for gapplication interface info

This is both more readable and more efficient. Double win !

12 years agogtester: Add command line option to skip tests
Carlos Garcia Campos [Fri, 25 Nov 2011 14:39:31 +0000 (15:39 +0100)]
gtester: Add command line option to skip tests

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

12 years agoRearrange GApplication docs
Matthias Clasen [Sun, 27 Nov 2011 03:38:32 +0000 (22:38 -0500)]
Rearrange GApplication docs

Move the GApplication docs to the front of the section,
where they belong.

12 years agogio.symbols: add g_application_[gs]et_default()
Ryan Lortie [Sat, 22 Oct 2011 03:54:31 +0000 (23:54 -0400)]
gio.symbols: add g_application_[gs]et_default()

12 years agoCosmetics
Matthias Clasen [Sat, 26 Nov 2011 06:42:21 +0000 (01:42 -0500)]
Cosmetics

Reword the title of GSimpleAction in the docs.

12 years agoGApplication: add default application
Ryan Lortie [Fri, 30 Sep 2011 03:52:16 +0000 (23:52 -0400)]
GApplication: add default application

12 years agoGApplication: unregister action interface export
Ryan Lortie [Thu, 30 Jun 2011 08:47:40 +0000 (09:47 +0100)]
GApplication: unregister action interface export

We missed a few cases of unexporting the action group interface (in
error cases, and on GApplication teardown).

12 years agoGApplication: Implement query_action
Matthias Clasen [Sun, 27 Nov 2011 00:43:46 +0000 (19:43 -0500)]
GApplication: Implement query_action

12 years agoGSimpleActionGroup: Implement query_action
Matthias Clasen [Sat, 26 Nov 2011 03:35:33 +0000 (22:35 -0500)]
GSimpleActionGroup: Implement query_action

12 years agoAdd g_action_group_query_action()
Ryan Lortie [Fri, 25 Nov 2011 00:52:48 +0000 (19:52 -0500)]
Add g_action_group_query_action()

This new API allows requesting multiple pieces of information about a
particular action in one go and also simplifies the burden for
GActionGroup implementations -- they need not implement all the separate
APIs now.

12 years agoGBytes: A new type for an immutable set of bytes.
Stef Walter [Fri, 11 Nov 2011 16:08:26 +0000 (17:08 +0100)]
GBytes: A new type for an immutable set of bytes.

 * Represents an immutable reference counted block of memory.
 * This is basically the internal glib GBuffer structure exposed,
   renamed, and with some additional capabilities.
 * The GBytes name comes from python3's immutable 'bytes' type
 * GBytes can be safely used as keys in hash tables, and have
   functions for doing so: g_bytes_hash, g_bytes_equal
 * GByteArray is a mutable form of GBytes, and vice versa. There
   are functions for converting from one to the other efficiently:
   g_bytes_unref_to_array() and g_byte_array_free_to_bytes()
 * Adds g_byte_array_new_take() to support above functions

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

12 years agoFix distcheck
Matthias Clasen [Wed, 23 Nov 2011 23:13:44 +0000 (18:13 -0500)]
Fix distcheck

Now that we have switched to template-free docs, these
hand-rolled cleanup rules get in the way.

12 years agoGInitable, GAsyncInitable: not initializing gives undefined behaviour
Simon McVittie [Thu, 20 Oct 2011 14:01:47 +0000 (15:01 +0100)]
GInitable, GAsyncInitable: not initializing gives undefined behaviour

This is the ISO C sense of undefined behaviour, in which
works-by-coincidence, critical warning, abort, demons-fly-out-of-your-nose
are all valid implementations.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662208
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: David Zeuthen <davidz@redhat.com>
12 years agoGDBusWorker: continue_writing: initialize flush_async_data if closing
Simon McVittie [Wed, 23 Nov 2011 11:20:15 +0000 (11:20 +0000)]
GDBusWorker: continue_writing: initialize flush_async_data if closing

This was a regression in commit f41178c6c: flush_async_data wasn't
necessarily NULL in the "don't flush" case.

Also move initialization of these variables up so that it's
unconditional, since that's easier to verify than checking
that each branch gets it right.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=664617
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
12 years agoAdd some more mainloop tests
Matthias Clasen [Wed, 23 Nov 2011 04:57:18 +0000 (23:57 -0500)]
Add some more mainloop tests

12 years agoRemove unnecessary includes
Matthias Clasen [Wed, 23 Nov 2011 00:31:30 +0000 (19:31 -0500)]
Remove unnecessary includes

These were meant for some other test that ended up not getting
added. This fixes bug 664559.

12 years agoFix !debug builds
Matthias Clasen [Wed, 23 Nov 2011 00:25:03 +0000 (19:25 -0500)]
Fix !debug builds

As pointed out by Chun-wei Fan in bug 664455, parts of the merged
gobjectnotifyqueue.c code ended up inside an #ifdef G_ENABLE_DEBUG
section.

12 years agoAdd back required _XOPEN_SOURCE define
Matthias Clasen [Wed, 23 Nov 2011 00:12:48 +0000 (19:12 -0500)]
Add back required _XOPEN_SOURCE define

This got lost somewhere between 2.30 and now, but it is needed
for isnan(). See bug 664354, reported by Tim Mooney.

12 years agoGApplication: don't fail if can't get session bus
Ryan Lortie [Tue, 22 Nov 2011 22:32:04 +0000 (17:32 -0500)]
GApplication: don't fail if can't get session bus

If we can't get on the session bus, just behave like a normal non-unique
application.

This turns out to be remarkably easy to implement and lets us avoid
adding a 'dummy' backend.

Add a test for this case as well.

Idea from Zachary Dovel.

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

12 years agogio: Move gmodule to Requires.private
Matthias Clasen [Tue, 22 Nov 2011 16:06:07 +0000 (11:06 -0500)]
gio: Move gmodule to Requires.private

Users of GIO are not generally expected to use gmodule API,
so don't force them all to link against it.

12 years agoGDBusConnection: don't pass boolean > 1 to _g_dbus_worker_new
Simon McVittie [Tue, 22 Nov 2011 12:39:54 +0000 (12:39 +0000)]
GDBusConnection: don't pass boolean > 1 to _g_dbus_worker_new

This happens to work at the moment (because GDBusWorker.frozen is a
gboolean and not just a 1-bit bitfield), but isn't right: the gboolean
ends up with values 0 or G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING
(which is more than 1).

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=664558
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: David Zeuthen <davidz@redhat.com>
12 years agoGSocketInputStream/GSocketOutputStream: fix win32 build
Dan Winship [Tue, 22 Nov 2011 13:56:54 +0000 (08:56 -0500)]
GSocketInputStream/GSocketOutputStream: fix win32 build

based on a patch from Chun-wei Fan

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

12 years agogio/tests: Fix for -Werror=format-security
Rico Tzschichholz [Mon, 21 Nov 2011 22:06:15 +0000 (23:06 +0100)]
gio/tests: Fix for -Werror=format-security

12 years agopost-release bump
Ryan Lortie [Mon, 21 Nov 2011 20:21:23 +0000 (15:21 -0500)]
post-release bump

12 years agorelease glib 2.31.2 2.31.2
Ryan Lortie [Mon, 21 Nov 2011 17:18:32 +0000 (12:18 -0500)]
release glib 2.31.2

12 years agodist gio/tests/key8.pem
Ryan Lortie [Mon, 21 Nov 2011 17:36:43 +0000 (12:36 -0500)]
dist gio/tests/key8.pem

12 years agoAdd test case for #662395
Simon McVittie [Tue, 1 Nov 2011 18:03:12 +0000 (18:03 +0000)]
Add test case for #662395

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
12 years agoGDBus tests: factor out TestIOStream, test_pipe and test_bidi_pipe
Simon McVittie [Tue, 1 Nov 2011 16:49:36 +0000 (16:49 +0000)]
GDBus tests: factor out TestIOStream, test_pipe and test_bidi_pipe

These might even make useful public API if they grew a Windows
implementation, but for now they can be Unix-only test API.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
12 years ago_g_dbus_worker_flush_sync: always flush if we need to
Simon McVittie [Mon, 21 Nov 2011 17:20:52 +0000 (17:20 +0000)]
_g_dbus_worker_flush_sync: always flush if we need to

We didn't previously flush in a couple of cases where we should have
done:

* a write is running when flush is called: we should flush after it
  finishes

* writes have been made since the last flush, but none are pending or
  running right now: we should flush the underlying transport straight
  away

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
12 years agoGDBusWorker: move flush async op into continue_writing()
Simon McVittie [Mon, 21 Nov 2011 17:18:01 +0000 (17:18 +0000)]
GDBusWorker: move flush async op into continue_writing()

This makes it easier to schedule a flush, by putting it on the same code
path as writing and closing.

Also change message_written to expect the lock to be held, since all
that's left in that function either wants to hold the lock or doesn't
care, and it's silly to release the lock immediately before calling
message_written, which just takes it again.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
12 years agoschedule_write_in_worker_thread: require caller to lock; rename accordingly
Simon McVittie [Mon, 21 Nov 2011 17:16:16 +0000 (17:16 +0000)]
schedule_write_in_worker_thread: require caller to lock; rename accordingly

When we use this function to schedule a flush, it'll be called
with the lock held. Releasing and immediately re-taking the lock would
be pointless.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
12 years agoGDBusWorker: rename some functions
Simon McVittie [Fri, 21 Oct 2011 13:43:44 +0000 (14:43 +0100)]
GDBusWorker: rename some functions

maybe_write_next_message now also closes, and I'm about to make it
consider whether to flush as well, so its name is increasingly
inappropriate. Similarly, write_message_in_idle_cb is a wrapper around
it which could do any of those things.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
12 years agoGDBusWorker: distinguish between 3 sorts of output that might be pending
Simon McVittie [Mon, 21 Nov 2011 17:14:55 +0000 (17:14 +0000)]
GDBusWorker: distinguish between 3 sorts of output that might be pending

If the user calls flush_sync() with no messages in the queue, but an
async write call pending, then we ought to flush after that async write
returns (although we don't currently do that). If it was an async close
or flush that was pending, there's no need to flush (again) afterwards.
So, we need to distinguish.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662395
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
12 years agoDrop last uses of @returns:
Ryan Lortie [Mon, 21 Nov 2011 17:02:02 +0000 (12:02 -0500)]
Drop last uses of @returns:

12 years agoMissed a couple of @returns
Ryan Lortie [Mon, 21 Nov 2011 16:39:52 +0000 (11:39 -0500)]
Missed a couple of @returns

12 years agoGVariant: drop use of @returns
Ryan Lortie [Mon, 21 Nov 2011 16:33:05 +0000 (11:33 -0500)]
GVariant: drop use of @returns

12 years agogbitlock: Drop @returns syntax from doc comments
Matthias Clasen [Mon, 21 Nov 2011 16:09:42 +0000 (11:09 -0500)]
gbitlock: Drop @returns syntax from doc comments

12 years agoGBuffer: Drop @returns syntax from doc comments
Matthias Clasen [Mon, 21 Nov 2011 16:05:43 +0000 (11:05 -0500)]
GBuffer: Drop @returns syntax from doc comments

12 years agoGSocketClient: Drop @returns syntax from doc comments
Matthias Clasen [Mon, 21 Nov 2011 16:03:31 +0000 (11:03 -0500)]
GSocketClient: Drop @returns syntax from doc comments

12 years agoGSimplePermission: Drop @returns syntax in doc comments
Matthias Clasen [Mon, 21 Nov 2011 16:02:30 +0000 (11:02 -0500)]
GSimplePermission: Drop @returns syntax in doc comments

12 years agoGPermission: Drop @returns syntax from doc comments
Matthias Clasen [Mon, 21 Nov 2011 16:01:16 +0000 (11:01 -0500)]
GPermission: Drop @returns syntax from doc comments

12 years agoImprove test coverage
Matthias Clasen [Mon, 21 Nov 2011 06:53:29 +0000 (01:53 -0500)]
Improve test coverage

12 years agoImprove mainloop test coverage slightly
Matthias Clasen [Mon, 21 Nov 2011 06:40:51 +0000 (01:40 -0500)]
Improve mainloop test coverage slightly

12 years agoImprove test coverage
Matthias Clasen [Mon, 21 Nov 2011 06:02:50 +0000 (01:02 -0500)]
Improve test coverage

12 years agoFix a case conversion bug
Matthias Clasen [Mon, 21 Nov 2011 05:27:25 +0000 (00:27 -0500)]
Fix a case conversion bug

For titlecase chars without uppercase variant, we were returning
0, contrary to the docs.

12 years agoImprove test coverage
Matthias Clasen [Mon, 21 Nov 2011 05:27:12 +0000 (00:27 -0500)]
Improve test coverage

12 years agoAdd a test for g_unichar_isdefined
Matthias Clasen [Mon, 21 Nov 2011 04:18:20 +0000 (23:18 -0500)]
Add a test for g_unichar_isdefined

12 years agogio/Makefile.am
Chun-wei Fan [Mon, 21 Nov 2011 03:53:02 +0000 (11:53 +0800)]
gio/Makefile.am

Filter out yet another *nix only source file from the Visual C++ project
file completion rules.

12 years agoUpdate GLib Visual C++ projects
Chun-wei Fan [Mon, 21 Nov 2011 02:45:27 +0000 (10:45 +0800)]
Update GLib Visual C++ projects

Also link to WinMM.lib since timeGetTime is used (commit 8d023c27).

12 years agoUpdated Galician translations
Fran Diéguez [Mon, 21 Nov 2011 00:59:07 +0000 (01:59 +0100)]
Updated Galician translations

12 years agoGFile: Add some introspection annotations
Matthias Clasen [Sun, 20 Nov 2011 20:12:05 +0000 (15:12 -0500)]
GFile: Add some introspection annotations

progress_callback in g_file_copy and g_file_copy_async may be NULL.
Annotations should reflect that. Pointed out by Carlo Teubner.

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

12 years agoDocument that g_list_sort is a stable sort.
Josselin Mouette [Sun, 20 Nov 2011 15:53:36 +0000 (16:53 +0100)]
Document that g_list_sort is a stable sort.

This is a guarantee for the future so that applications can rely on it.

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

12 years agoUpdated Spanish translation
Jorge González [Sun, 20 Nov 2011 09:10:13 +0000 (10:10 +0100)]
Updated Spanish translation

12 years agoGApplication: unregister bus name
Matthias Clasen [Fri, 18 Nov 2011 04:30:32 +0000 (23:30 -0500)]
GApplication: unregister bus name

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

12 years agoTrivial doc typo fix
Matthias Clasen [Sat, 19 Nov 2011 21:23:33 +0000 (16:23 -0500)]
Trivial doc typo fix

12 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Sat, 19 Nov 2011 11:02:08 +0000 (12:02 +0100)]
Updated Norwegian bokmål translation

12 years agoGTlsCertificate: support unencrypted PKCS#8 private keys
Dan Winship [Fri, 18 Nov 2011 20:05:34 +0000 (15:05 -0500)]
GTlsCertificate: support unencrypted PKCS#8 private keys

PKCS#8 is the "right" way to encode private keys. Although the APIs do
not currently support encrypted keys, we should at least support
unencrypted PKCS#8 keys.

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

12 years ago[gio] Terminate connect call when application proxy is used
Nicolas Dufresne [Thu, 17 Nov 2011 18:04:04 +0000 (13:04 -0500)]
[gio] Terminate connect call when application proxy is used

The connect_async() calls would never terminated when an application side
proxy was being used. Note we also skip over TLS handshake in this case,
as the application may have to do some proxy handshake before.

12 years agoGMain: allow NULL context to g_source_attach
Giovanni Campagna [Thu, 17 Nov 2011 21:30:29 +0000 (22:30 +0100)]
GMain: allow NULL context to g_source_attach

Documentation says it's fine and means default context, but the annotations
are missing (and thus bindings would complain).

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

12 years agoGPollable*Stream: expose source methods to introspection
Giovanni Campagna [Thu, 17 Nov 2011 21:29:18 +0000 (22:29 +0100)]
GPollable*Stream: expose source methods to introspection

GSource has been introspectable for a while, so can stop skipping
methods of GPollableInputStream/OutputStream that return it.

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

12 years agogsignal.h: Remove trailing comma
Murray Cumming [Fri, 18 Nov 2011 09:46:35 +0000 (10:46 +0100)]
gsignal.h: Remove trailing comma

12 years agoWe need <locale.h> in gsettingsschema.c now
Ryan Lortie [Fri, 18 Nov 2011 09:41:07 +0000 (09:41 +0000)]
We need <locale.h> in gsettingsschema.c now

for LC_TIME (since we moved a bunch of code over from gsettings.c).

12 years agoClear proxy address upon retry
Nicolas Dufresne [Thu, 17 Nov 2011 18:01:05 +0000 (13:01 -0500)]
Clear proxy address upon retry

The proxy address was not cleared between each attempt. That would lead
to leak or worse, trying to do the proxy handshake on the final
destination address. To make all this safer, I have regroup all the cleanup
where the iterations starts.

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

12 years agoSilence compiler warnings
Sjoerd Simons [Mon, 14 Nov 2011 21:06:07 +0000 (22:06 +0100)]
Silence compiler warnings

Fix several warnings for format strings (-Werror=format-security) and
set but unused variables (-Wunused-but-set-variable)

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

12 years agoGKeyFile: Accept empty files
Jürg Billeter [Fri, 4 Nov 2011 21:48:56 +0000 (22:48 +0100)]
GKeyFile: Accept empty files

It already accepts files consisting solely of whitespace.

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

12 years agoDocument exactly what g_time_val_to_iso8601() produces
Simon McVittie [Tue, 18 Oct 2011 10:14:20 +0000 (11:14 +0100)]
Document exactly what g_time_val_to_iso8601() produces

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=537637
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
12 years ago_g_dbus_get_machine_id(): check /etc/machine-id too
Alexandre Rostovtsev [Wed, 16 Nov 2011 15:05:46 +0000 (15:05 +0000)]
_g_dbus_get_machine_id(): check /etc/machine-id too

machine-id can be in /etc or in /var/lib/dbus.

[amended with slightly revised error handling -smcv]

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

12 years agoRemove redefinition of typedef 'GSettingsSchemaSource'
Rico Tzschichholz [Thu, 17 Nov 2011 18:46:54 +0000 (19:46 +0100)]
Remove redefinition of typedef 'GSettingsSchemaSource'

12 years agostart on the NEWS
Ryan Lortie [Thu, 17 Nov 2011 17:40:36 +0000 (17:40 +0000)]
start on the NEWS

12 years agog_settings_new_full(): more docs
Ryan Lortie [Thu, 17 Nov 2011 17:33:19 +0000 (17:33 +0000)]
g_settings_new_full(): more docs

12 years agoadd plugin example for GSettingsSchemaSource
Ryan Lortie [Thu, 17 Nov 2011 14:02:39 +0000 (14:02 +0000)]
add plugin example for GSettingsSchemaSource

12 years agoAdd gtk-doc for gsettingsschema{,source}
Ryan Lortie [Thu, 17 Nov 2011 10:06:49 +0000 (10:06 +0000)]
Add gtk-doc for gsettingsschema{,source}

12 years ago'make dist' fixes
Matthias Clasen [Thu, 17 Nov 2011 04:24:46 +0000 (23:24 -0500)]
'make dist' fixes

12 years agosettings-source test: Check returned error as well
Matthias Clasen [Thu, 17 Nov 2011 03:25:16 +0000 (22:25 -0500)]
settings-source test: Check returned error as well

12 years agoTrivial typo fix
Matthias Clasen [Thu, 17 Nov 2011 03:12:21 +0000 (22:12 -0500)]
Trivial typo fix

12 years agogsettings: add annotations for _new_full()
Jasper St. Pierre [Wed, 16 Nov 2011 19:51:45 +0000 (14:51 -0500)]
gsettings: add annotations for _new_full()

The path and backend arguments to g_settings_new_full are optional.

12 years agoschema source: avoid introspection confusion
Jasper St. Pierre [Wed, 16 Nov 2011 19:53:03 +0000 (14:53 -0500)]
schema source: avoid introspection confusion

Any method that has its prefix'd argument as its first parameter will be
interpreted by introspection as a method. We don't want this, so we need
to swap the first two parameters.

12 years agogsettingsschema: Use the trusted parameter
Jasper St. Pierre [Wed, 16 Nov 2011 19:51:27 +0000 (14:51 -0500)]
gsettingsschema: Use the trusted parameter

12 years agoAdd test case and fix some bugs
Ryan Lortie [Wed, 16 Nov 2011 10:38:04 +0000 (10:38 +0000)]
Add test case and fix some bugs

Add the first test case for the schema source functionality and fix a
couple of bugs that got uncovered by that.

12 years agoAdd g_settings_schema_source_new_from_directory()
Ryan Lortie [Wed, 16 Nov 2011 10:37:30 +0000 (10:37 +0000)]
Add g_settings_schema_source_new_from_directory()

It is now possible for plugin loading systems to do the right thing.

12 years agoClarify docs/params for 'schema' vs 'schema id'
Ryan Lortie [Tue, 15 Nov 2011 12:42:02 +0000 (12:42 +0000)]
Clarify docs/params for 'schema' vs 'schema id'

Clean up our parameter naming and documentation to draw a clearer line
between a schema and its identifier.

12 years agoAdd g_settings_new_full() taking GSettingsSchema
Ryan Lortie [Tue, 15 Nov 2011 12:38:01 +0000 (12:38 +0000)]
Add g_settings_new_full() taking GSettingsSchema

12 years agoGSettings: add 'settings-schema' property
Ryan Lortie [Tue, 15 Nov 2011 12:16:50 +0000 (12:16 +0000)]
GSettings: add 'settings-schema' property

Ideally we'd have called this 'schema', but it is already used.

12 years agoadd boxed types for GSettingSchema{,Source}
Ryan Lortie [Tue, 15 Nov 2011 12:28:28 +0000 (12:28 +0000)]
add boxed types for GSettingSchema{,Source}

12 years agoDrop the 'schema_name' field of GSettings
Ryan Lortie [Tue, 15 Nov 2011 11:56:18 +0000 (11:56 +0000)]
Drop the 'schema_name' field of GSettings

This is strictly redundant now that we can get the ID from the schema
itself.  Its only other purpose was to get the schema name from the
set_property() call to the constructed() call and we can avoid that by
doing the schema lookup at the time of the property being set.

12 years agospeak of 'schema id' rather than 'schema name'
Ryan Lortie [Tue, 15 Nov 2011 11:39:12 +0000 (11:39 +0000)]
speak of 'schema id' rather than 'schema name'

Schemas are identified by id='' in the xml file, so we should use the
same language on the C and GObject property APIs.

12 years agoGSettings: deprecate 'schema' property
Ryan Lortie [Tue, 15 Nov 2011 11:31:58 +0000 (11:31 +0000)]
GSettings: deprecate 'schema' property

This should have been called 'schema-name'.

12 years agodrop the now-trivial g_settings_schema_new
Ryan Lortie [Tue, 15 Nov 2011 08:03:38 +0000 (08:03 +0000)]
drop the now-trivial g_settings_schema_new

Combine it into g_settings_constructed()

12 years agonew public header: gsettingsschema.h
Ryan Lortie [Tue, 15 Nov 2011 08:00:16 +0000 (08:00 +0000)]
new public header: gsettingsschema.h

Expose some GSettingsSchemaSource and GSettingsSchema APIs.

These are mostly useless so far...

12 years agoAdd non-aborting g_settings_schema_source_lookup()
Ryan Lortie [Tue, 15 Nov 2011 07:47:56 +0000 (07:47 +0000)]
Add non-aborting g_settings_schema_source_lookup()

And rewrite g_settings_schema_new() in terms of it