platform/upstream/glib.git
14 years agoRemove leftover test data
Matthias Clasen [Wed, 21 Apr 2010 13:34:57 +0000 (09:34 -0400)]
Remove leftover test data

14 years agoAdd an --allow-any-name option
Matthias Clasen [Wed, 21 Apr 2010 13:33:57 +0000 (09:33 -0400)]
Add an --allow-any-name option

This will make it easier for people to keep their GConf key names
in the transition period.

Conflicts:

gio/gschema-compile.c

14 years agoAdd some more schema compiler tests
Matthias Clasen [Wed, 21 Apr 2010 04:43:55 +0000 (00:43 -0400)]
Add some more schema compiler tests

14 years agoFix type mapping for float in gsettings-schema-convert
Matthias Clasen [Wed, 21 Apr 2010 03:40:22 +0000 (23:40 -0400)]
Fix type mapping for float in gsettings-schema-convert

Bug 616331.

14 years agoSimplify gschema-compile test suite
Matthias Clasen [Wed, 21 Apr 2010 03:28:49 +0000 (23:28 -0400)]
Simplify gschema-compile test suite

Add --one-schema-file option to gschema-compile to allow easier test
setup. Simplify the test setup.

Bug #616276.

14 years agoAdd gettext-domain when required, and allow to specify it on the cmdline
Matthias Clasen [Wed, 21 Apr 2010 02:49:32 +0000 (22:49 -0400)]
Add gettext-domain when required, and allow to specify it on the cmdline

Bug 616309

14 years agoAdd documentation and translation for gsettings-tool
Matthias Clasen [Wed, 21 Apr 2010 02:41:12 +0000 (22:41 -0400)]
Add documentation and translation for gsettings-tool

14 years agoAdd a minimal commandline utility to poke GSettings
Matthias Clasen [Wed, 21 Apr 2010 00:54:53 +0000 (20:54 -0400)]
Add a minimal commandline utility to poke GSettings

14 years ago[gio] Use G_DEFINE_INTERFACE macro
Javier Jardón [Tue, 20 Apr 2010 03:38:02 +0000 (05:38 +0200)]
[gio] Use G_DEFINE_INTERFACE macro

Use this macro in gasyncinitable, gconverter, ginitable and
gsocketconnectable

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

14 years agoTweak the generation of the file list in gio.vcproj
Tor Lillqvist [Wed, 21 Apr 2010 00:22:59 +0000 (03:22 +0300)]
Tweak the generation of the file list in gio.vcproj

Visual Studio doesn't like slash as directory separator, so use
backslash. While at it, sort the list of files put in the project file
just for clarity.

14 years agoremove empty initialisers { } for MSVC's sake
Ryan Lortie [Wed, 21 Apr 2010 00:14:50 +0000 (20:14 -0400)]
remove empty initialisers {  } for MSVC's sake

14 years agoMerge remote branch 'gvdb/master'
Ryan Lortie [Wed, 21 Apr 2010 00:13:56 +0000 (20:13 -0400)]
Merge remote branch 'gvdb/master'

14 years ago__value -> value to avoid stomping the C compiler
Ryan Lortie [Wed, 21 Apr 2010 00:12:41 +0000 (20:12 -0400)]
__value -> value to avoid stomping the C compiler

14 years agoRefer to the right directory
Matthias Clasen [Tue, 20 Apr 2010 23:51:28 +0000 (19:51 -0400)]
Refer to the right directory

14 years agoFix gsettings mapping for uint64
Christian Persch [Tue, 20 Apr 2010 23:39:03 +0000 (19:39 -0400)]
Fix gsettings mapping for uint64

Bug #616295.

14 years agoFlesh out the porting guide some more
Matthias Clasen [Tue, 20 Apr 2010 23:23:52 +0000 (19:23 -0400)]
Flesh out the porting guide some more

14 years agoDocument g_settings_bind_writable
Matthias Clasen [Tue, 20 Apr 2010 19:13:07 +0000 (15:13 -0400)]
Document g_settings_bind_writable

14 years agoDon't crash gsettings-schema-convert for GConf schemas that contain empty elements
Richard Hughes [Tue, 20 Apr 2010 21:25:23 +0000 (22:25 +0100)]
Don't crash gsettings-schema-convert for GConf schemas that contain empty elements

This can be observed in gnome-power-manager with one of the entries that
contains <long></long>

14 years agogschema-compile: output to srcdir by default
Ryan Lortie [Tue, 20 Apr 2010 21:27:17 +0000 (17:27 -0400)]
gschema-compile: output to srcdir by default

If the target directory is not explicitly set then output to the source
directory.  Closes bug #616311 reported by Bastien Nocera.

14 years agoGSettings: bind to writablity of a key
Ryan Lortie [Tue, 20 Apr 2010 16:30:12 +0000 (12:30 -0400)]
GSettings: bind to writablity of a key

14 years agoFix up the gtk-doc comment for the GSettings::changed signal
Richard Hughes [Tue, 20 Apr 2010 15:14:11 +0000 (16:14 +0100)]
Fix up the gtk-doc comment for the GSettings::changed signal

14 years agoAdd g_variant_compare() for like basic types
Ryan Lortie [Mon, 19 Apr 2010 18:16:06 +0000 (14:16 -0400)]
Add g_variant_compare() for like basic types

14 years agogschema-compile: return quickly on parse error
Ryan Lortie [Mon, 19 Apr 2010 15:05:04 +0000 (11:05 -0400)]
gschema-compile: return quickly on parse error

Suggested by Christian Persch in #616102

14 years ago[docs] Fix G_VALUE_COLLECT_INIT documentation
Javier Jardón [Mon, 19 Apr 2010 23:04:31 +0000 (01:04 +0200)]
[docs] Fix G_VALUE_COLLECT_INIT documentation

Add the documentation to the corresponding section

This macro was introduced in
commit 546fc0ca331c8d1b3393fe218a697b6a1a1c1072

14 years agoBump version
Matthias Clasen [Mon, 19 Apr 2010 23:01:46 +0000 (19:01 -0400)]
Bump version

14 years ago2.25.1
Matthias Clasen [Mon, 19 Apr 2010 23:00:28 +0000 (19:00 -0400)]
2.25.1

14 years agoDon't forget to install and distribute gsettings-schema-convert
Matthias Clasen [Mon, 19 Apr 2010 22:26:41 +0000 (18:26 -0400)]
Don't forget to install and distribute gsettings-schema-convert

14 years agoDon't forget to install and distribute gsettings-schema-convert
Matthias Clasen [Mon, 19 Apr 2010 22:26:41 +0000 (18:26 -0400)]
Don't forget to install and distribute gsettings-schema-convert

14 years agoBump version
Matthias Clasen [Mon, 19 Apr 2010 21:33:03 +0000 (17:33 -0400)]
Bump version

14 years ago2.25.0 2.25.0
Matthias Clasen [Mon, 19 Apr 2010 21:30:42 +0000 (17:30 -0400)]
2.25.0

14 years agoReset interface age to 0
Matthias Clasen [Mon, 19 Apr 2010 19:07:52 +0000 (15:07 -0400)]
Reset interface age to 0

14 years agoUse g_set_error_literal where appropriate
Christian Persch [Mon, 19 Apr 2010 18:18:59 +0000 (14:18 -0400)]
Use g_set_error_literal where appropriate

14 years agoInstall a dtd in /usr/share/glib-2.0/schemas/gschema.dtd
Matthias Clasen [Mon, 19 Apr 2010 18:04:42 +0000 (14:04 -0400)]
Install a dtd in /usr/share/glib-2.0/schemas/gschema.dtd

14 years agoRemove misnamed files
Matthias Clasen [Mon, 19 Apr 2010 17:25:52 +0000 (13:25 -0400)]
Remove misnamed files

14 years agoSome tests for gschema-compile
Matthias Clasen [Mon, 19 Apr 2010 17:14:30 +0000 (13:14 -0400)]
Some tests for gschema-compile

Mostly making sure that we produce reasonable error messages for
typical mistakes.

14 years agoLittle fix in gio/test/Makefile.am
Javier Jardón [Mon, 19 Apr 2010 15:58:37 +0000 (17:58 +0200)]
Little fix in gio/test/Makefile.am

This was introduced in
commit 4a605693fce718a81f809245be2ebad9978031ac

14 years agoAnother shadowed variable fix
Matthias Clasen [Mon, 19 Apr 2010 15:40:23 +0000 (11:40 -0400)]
Another shadowed variable fix

See bug 616154.

14 years agoDon't segfault when <default> is missing
Matthias Clasen [Mon, 19 Apr 2010 15:31:21 +0000 (11:31 -0400)]
Don't segfault when <default> is missing

Also add a framework for schema compiler tests.

Fixes bug 616086.

14 years agoBug 615111 – GAsyncInitable's default implementation is broken
David Zeuthen [Mon, 19 Apr 2010 14:42:42 +0000 (10:42 -0400)]
Bug 615111 – GAsyncInitable's default implementation is broken

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoDon't write out zero-byte sections in builder
Ryan Lortie [Mon, 19 Apr 2010 14:28:44 +0000 (10:28 -0400)]
Don't write out zero-byte sections in builder

This and the previous issue caught by Christian Persch in bug #616156

14 years agoWhitespace fixups
Ryan Lortie [Mon, 19 Apr 2010 14:18:44 +0000 (10:18 -0400)]
Whitespace fixups

14 years agoFix logic error for missing options in reader
Ryan Lortie [Mon, 19 Apr 2010 14:17:31 +0000 (10:17 -0400)]
Fix logic error for missing options in reader

14 years agoHandle int64 and double types correctly
Matthias Clasen [Mon, 19 Apr 2010 14:34:42 +0000 (10:34 -0400)]
Handle int64 and double types correctly

14 years agoFix up some typos in the new tests
Matthias Clasen [Mon, 19 Apr 2010 14:34:22 +0000 (10:34 -0400)]
Fix up some typos in the new tests

14 years agoDon't write out zero-byte sections in builder
Ryan Lortie [Mon, 19 Apr 2010 14:28:44 +0000 (10:28 -0400)]
Don't write out zero-byte sections in builder

This and the previous issue caught by Christian Persch in bug #616156

14 years agoWhitespace fixups
Ryan Lortie [Mon, 19 Apr 2010 14:18:44 +0000 (10:18 -0400)]
Whitespace fixups

14 years agoFix logic error for missing options in reader
Ryan Lortie [Mon, 19 Apr 2010 14:17:31 +0000 (10:17 -0400)]
Fix logic error for missing options in reader

14 years agoAdd testcase for g_settings_bind with [u]int64 properties
Christian Persch [Mon, 19 Apr 2010 14:00:03 +0000 (10:00 -0400)]
Add testcase for g_settings_bind with [u]int64 properties

And use different values for the doubles test.

All of these fail currently since g_settings_bind default mapping
truncate to glong (eek!).

Bug #616119

14 years agoAdd gsettings-related variables
Matthias Clasen [Mon, 19 Apr 2010 13:49:22 +0000 (09:49 -0400)]
Add gsettings-related variables

14 years agoRename shadowed variables
Christian Persch [Mon, 19 Apr 2010 13:46:32 +0000 (09:46 -0400)]
Rename shadowed variables

Bug #616154.

14 years agoCall setlocale initially
Matthias Clasen [Mon, 19 Apr 2010 13:30:22 +0000 (09:30 -0400)]
Call setlocale initially

That seems to be required to make bindtextdomain work in the
l10n tests. See bug 616152.

14 years agoBypass l10n tests for now on Windows
Tor Lillqvist [Mon, 19 Apr 2010 13:13:13 +0000 (16:13 +0300)]
Bypass l10n tests for now on Windows

14 years agoAdd a bit about autofoo for schemas
Matthias Clasen [Mon, 19 Apr 2010 12:54:01 +0000 (08:54 -0400)]
Add a bit about autofoo for schemas

Always a good idea to have copiable snipplets in a porting guide...

14 years agoAvoid non-portable <glob.h> API
Tor Lillqvist [Mon, 19 Apr 2010 12:48:30 +0000 (15:48 +0300)]
Avoid non-portable <glob.h> API

And thus we can build gschema-compile on all platforms, and run it in
tests.

14 years agoAdd a schema convertion script
Matthias Clasen [Mon, 19 Apr 2010 12:04:57 +0000 (08:04 -0400)]
Add a schema convertion script

14 years agoPortability improvements
Tor Lillqvist [Mon, 19 Apr 2010 09:25:22 +0000 (12:25 +0300)]
Portability improvements

Gschema-compile uses glob which is available on Unix only. Thus can't
run the gschema-compile test except on Unix either.

To avoid an Automake error, comment out the SOURCES and LDADD of
unix-streams which for some reason has been commented out from
TEST_PROGS.

Can't use a Makefile.am target called foo_PROGRAMS for random files
that aren't actually programs, as Automake assumes EXEEXT should be
appended to the file names.

14 years agoAdd GWin32InputStream and GWin32OutputStream classes
Tor Lillqvist [Mon, 19 Apr 2010 08:32:05 +0000 (11:32 +0300)]
Add GWin32InputStream and GWin32OutputStream classes

Correspond to GUnixInputStream and GUnixOutputStream. No true async
support though. But that is how the Win32 API is, for files not
explicitly opened for so-called overlapped IO.

The API to create these streams takes Win32 HANDLEs. Not file
descriptors, because file descriptors are specific to the C library
used. The user code and GLib might be using different C libraries.

Also add a test program for the new classes, and a gio-windows-2.0.pc
file.

14 years ago Silence a warning
Matthias Clasen [Mon, 19 Apr 2010 03:53:31 +0000 (23:53 -0400)]
 Silence a warning

g_string_insert_len (s, pos, NULL, 0) is a harmless nop, don't
spew warnings in this case.

14 years agoFix up docs for backend setup functions
Matthias Clasen [Sun, 18 Apr 2010 19:57:11 +0000 (15:57 -0400)]
Fix up docs for backend setup functions

14 years agoRefer to gio-querymodules in the extension point docs
Matthias Clasen [Sun, 18 Apr 2010 19:55:14 +0000 (15:55 -0400)]
Refer to gio-querymodules in the extension point docs

14 years agoAdd a man page for gio-querymodules
Matthias Clasen [Sun, 18 Apr 2010 19:54:54 +0000 (15:54 -0400)]
Add a man page for gio-querymodules

14 years agoCorrect filename extension in help output.
Matthias Clasen [Sun, 18 Apr 2010 19:37:55 +0000 (15:37 -0400)]
Correct filename extension in help output.

14 years agoWhitespace fix
Matthias Clasen [Sun, 18 Apr 2010 19:35:22 +0000 (15:35 -0400)]
Whitespace fix

14 years agoUpdate the gschema-compile docs
Matthias Clasen [Sun, 18 Apr 2010 18:58:50 +0000 (14:58 -0400)]
Update the gschema-compile docs

Correct the schema file extension, mention the usual locations
for schemas and add a reference to gsettings-schema-convert.

14 years ago[docs] Remove unused sgml template from GObject documentation
David King [Fri, 17 Jul 2009 21:06:03 +0000 (23:06 +0200)]
[docs] Remove unused sgml template from GObject documentation

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

Signed-off-by: Javier Jardón <jjardon@gnome.org>
14 years agoMore distcheck fixes
Matthias Clasen [Sun, 18 Apr 2010 01:31:30 +0000 (21:31 -0400)]
More distcheck fixes

14 years agoadd a keyfile test
Matthias Clasen [Sun, 18 Apr 2010 01:19:45 +0000 (21:19 -0400)]
add a keyfile test

14 years agoMore distcheck fix attempts
Matthias Clasen [Sun, 18 Apr 2010 00:54:53 +0000 (20:54 -0400)]
More distcheck fix attempts

14 years agoDistcheck fixes
Matthias Clasen [Sun, 18 Apr 2010 00:13:59 +0000 (20:13 -0400)]
Distcheck fixes

14 years agoSome build fixes
Matthias Clasen [Sat, 17 Apr 2010 20:57:28 +0000 (16:57 -0400)]
Some build fixes

14 years agoCorrect the sense of an assertion
Matthias Clasen [Sat, 17 Apr 2010 20:48:10 +0000 (16:48 -0400)]
Correct the sense of an assertion

14 years agoDocument the tests
Matthias Clasen [Sat, 17 Apr 2010 20:13:22 +0000 (16:13 -0400)]
Document the tests

Add a short note for each test that explains what it tries to test.

14 years agoGDelayedSettingsBackend: another mandatory fixup
Ryan Lortie [Sat, 17 Apr 2010 15:58:52 +0000 (11:58 -0400)]
GDelayedSettingsBackend: another mandatory fixup

  - emit the "has-unapplied" property notify if dropping the last key
    from the changeset due to a mandatory key

14 years agoGSettings delayed: fix handling of mandatory keys
Ryan Lortie [Sat, 17 Apr 2010 15:39:04 +0000 (11:39 -0400)]
GSettings delayed: fix handling of mandatory keys

  - if a key becomes mandatory, drop it from the changeset

  - if we still get failing writes (ie: because of a race) then drop the
    entire changeset and signal that it happened

14 years agoadd backend setup APIs
Ryan Lortie [Sat, 17 Apr 2010 14:26:10 +0000 (10:26 -0400)]
add backend setup APIs

14 years agoUpdates
Matthias Clasen [Sat, 17 Apr 2010 05:55:55 +0000 (01:55 -0400)]
Updates

14 years agoMerge GSettings tests
Matthias Clasen [Sat, 17 Apr 2010 05:43:58 +0000 (01:43 -0400)]
Merge GSettings tests

14 years agolet binding functions return a floating GVariant
Ryan Lortie [Sat, 17 Apr 2010 05:27:00 +0000 (01:27 -0400)]
let binding functions return a floating GVariant

14 years agoadd GMemorySettingsBackend
Ryan Lortie [Sat, 17 Apr 2010 05:02:57 +0000 (01:02 -0400)]
add GMemorySettingsBackend

14 years agoadd pltcheck.sh exception for GChecksum
Ryan Lortie [Sat, 17 Apr 2010 05:02:05 +0000 (01:02 -0400)]
add pltcheck.sh exception for GChecksum

14 years agoXML schemas are now *.gschema.xml
Ryan Lortie [Sat, 17 Apr 2010 04:03:48 +0000 (00:03 -0400)]
XML schemas are now *.gschema.xml

14 years agoRemove garbage
Matthias Clasen [Sat, 17 Apr 2010 04:36:14 +0000 (00:36 -0400)]
Remove garbage

14 years agoMerge the GSettings docs
Matthias Clasen [Sat, 17 Apr 2010 04:31:41 +0000 (00:31 -0400)]
Merge the GSettings docs

14 years agoDocument G_SETTINGS_BIND_GET_NO_CHANGES
Matthias Clasen [Sat, 17 Apr 2010 04:16:01 +0000 (00:16 -0400)]
Document G_SETTINGS_BIND_GET_NO_CHANGES

14 years agoMerge the keyfile settings backend.
Matthias Clasen [Sat, 17 Apr 2010 03:57:26 +0000 (23:57 -0400)]
Merge the keyfile settings backend.

14 years agomerge GSettings
Ryan Lortie [Sat, 17 Apr 2010 03:17:01 +0000 (23:17 -0400)]
merge GSettings

14 years agoGSettingsSchema: add call to get list of keys
Ryan Lortie [Sat, 17 Apr 2010 03:20:48 +0000 (23:20 -0400)]
GSettingsSchema: add call to get list of keys

14 years agoMan page tweaks
Matthias Clasen [Sat, 17 Apr 2010 00:43:53 +0000 (20:43 -0400)]
Man page tweaks

Add enough info to keep the docbook stylesheets from embedding
FIXMEs in the formatted output.

14 years agoMan page tweaks
Matthias Clasen [Sat, 17 Apr 2010 00:40:02 +0000 (20:40 -0400)]
Man page tweaks

14 years agoSome doc tweaks
Matthias Clasen [Fri, 16 Apr 2010 23:30:58 +0000 (19:30 -0400)]
Some doc tweaks

14 years agoAdd indices for 2.26 api additions
Matthias Clasen [Fri, 16 Apr 2010 23:13:51 +0000 (19:13 -0400)]
Add indices for 2.26 api additions

14 years agoset version to 2.25.0
Ryan Lortie [Fri, 16 Apr 2010 18:30:12 +0000 (14:30 -0400)]
set version to 2.25.0

14 years agoGSettings: import delayed backend to master
Ryan Lortie [Fri, 16 Apr 2010 16:02:44 +0000 (12:02 -0400)]
GSettings: import delayed backend to master

14 years agoGSettings: more PLT/visibility fixups
Ryan Lortie [Fri, 16 Apr 2010 16:02:29 +0000 (12:02 -0400)]
GSettings: more PLT/visibility fixups

14 years agogio.symbols: remove pointless whitespace
Ryan Lortie [Fri, 16 Apr 2010 15:58:04 +0000 (11:58 -0400)]
gio.symbols: remove pointless whitespace

14 years agoGSettingsBackend: fix type in g_return_val_if_fail
Ryan Lortie [Fri, 16 Apr 2010 16:01:40 +0000 (12:01 -0400)]
GSettingsBackend: fix type in g_return_val_if_fail

14 years agoMerge remote branch 'gvdb/master'
Ryan Lortie [Fri, 16 Apr 2010 15:05:22 +0000 (11:05 -0400)]
Merge remote branch 'gvdb/master'

14 years agoFix uninitialised header in the builder.
Ryan Lortie [Fri, 16 Apr 2010 15:04:15 +0000 (11:04 -0400)]
Fix uninitialised header in the builder.

14 years agoGSettings: merge the schema compiler
Ryan Lortie [Fri, 16 Apr 2010 03:35:49 +0000 (23:35 -0400)]
GSettings: merge the schema compiler

14 years agomerge GSettingsSchema
Ryan Lortie [Fri, 16 Apr 2010 02:30:11 +0000 (22:30 -0400)]
merge GSettingsSchema