platform/upstream/glib.git
14 years agoRename gschema-compile to glib-compile-schemas
Matthias Clasen [Fri, 23 Apr 2010 21:27:26 +0000 (17:27 -0400)]
Rename gschema-compile to glib-compile-schemas

And clean up the autofoo a bit: use an uppercase variable,
check for pkg-config, check for presence of glib-compile-schemas.

14 years agoFix up man page handling
Matthias Clasen [Fri, 23 Apr 2010 18:52:26 +0000 (14:52 -0400)]
Fix up man page handling

Turns out the formatted man pages did not end up in the tarballs. Doh.

14 years agoadd missing #endif from last patch
Ryan Lortie [Fri, 23 Apr 2010 17:54:02 +0000 (13:54 -0400)]
add missing #endif from last patch

14 years agoGSocket: define CMSG_LEN and CMSG_SPACE if the system doesn't
Dan Winship [Thu, 25 Feb 2010 16:40:31 +0000 (11:40 -0500)]
GSocket: define CMSG_LEN and CMSG_SPACE if the system doesn't

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

14 years agoGSocket: add support for timeouts
Dan Winship [Thu, 31 Dec 2009 15:29:23 +0000 (10:29 -0500)]
GSocket: add support for timeouts

Also add options for testing timeouts to socket test programs

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

14 years agoGSocket: Merge the unix and windows socket sources together
Dan Winship [Thu, 9 Jul 2009 13:55:00 +0000 (09:55 -0400)]
GSocket: Merge the unix and windows socket sources together

And remove the bits that were added to gasynchelper.c to support the
previous unix socket source.

part of https://bugzilla.gnome.org/show_bug.cgi?id=587898

14 years agogio/tests/socket-client, socket-server: fix for win32
Dan Winship [Fri, 23 Apr 2010 16:21:38 +0000 (12:21 -0400)]
gio/tests/socket-client, socket-server: fix for win32

The addition of unix socket support broke these on win32

14 years agoMake sure G_TYPE_ERROR shows up in the docs
David Zeuthen [Fri, 23 Apr 2010 16:14:37 +0000 (12:14 -0400)]
Make sure G_TYPE_ERROR shows up in the docs

This is related to bug 614541.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years ago[gsettings] Change AM_GSETTINGS macro to GLIB_GSETTINGS
Javier Jardón [Fri, 23 Apr 2010 13:39:44 +0000 (15:39 +0200)]
[gsettings] Change AM_GSETTINGS macro to GLIB_GSETTINGS

So we don't use Automake's macro namespace

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

14 years agoAdd G_GNUC_DEPRECATED_FOR macro
Emmanuele Bassi [Tue, 6 Apr 2010 15:17:18 +0000 (16:17 +0100)]
Add G_GNUC_DEPRECATED_FOR macro

It would be good, error reporting-wise, to be able to signal which
function should be used instead of a deprecated one. GCC 4.5 added an
optional "message" payload to the deprecated attribute, so that:

  void f1 (void) __attribute__((deprecated("Use f2 instead")));

Will expand to:

  warning: f1 is deprecated: Use f2 instead

Instead of just printing:

  warning: f1 is deprecated

Since we already have a G_GNUC_DEPRECATED macro we should provide a
G_GNUC_DEPRECATED_FOR macro defined as:

  G_GNUC_DEPRECATED_FOR(bar)

Which would expand the deprecation message to "Use bar instead"
automatically. The deprecation message should probably be similar
to what we use in gtk-doc to match up with the documentation.

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

14 years agobump version
Matthias Clasen [Fri, 23 Apr 2010 02:24:38 +0000 (22:24 -0400)]
bump version

14 years ago2.25.2 2.25.2
Matthias Clasen [Fri, 23 Apr 2010 02:23:09 +0000 (22:23 -0400)]
2.25.2

14 years agoFix up distcheck
Matthias Clasen [Fri, 23 Apr 2010 02:01:19 +0000 (22:01 -0400)]
Fix up distcheck

14 years agoFix up g_variant_compare addition
Matthias Clasen [Fri, 23 Apr 2010 00:48:24 +0000 (20:48 -0400)]
Fix up g_variant_compare addition

14 years agoMore updates
Matthias Clasen [Fri, 23 Apr 2010 00:15:29 +0000 (20:15 -0400)]
More updates

14 years agoAdd a boxed type for GError
Matthias Clasen [Fri, 23 Apr 2010 00:10:56 +0000 (20:10 -0400)]
Add a boxed type for GError

Patch by Sebastian Dröge, bug 614541

14 years agoDocument --dry-run option of gschema-compile
Matthias Clasen [Fri, 23 Apr 2010 00:02:49 +0000 (20:02 -0400)]
Document --dry-run option of gschema-compile

14 years agoBug 615379 - g_new macros crash if sizeof(struct_type) == 0
Behdad Esfahbod [Thu, 22 Apr 2010 23:48:13 +0000 (19:48 -0400)]
Bug 615379 - g_new macros crash if sizeof(struct_type) == 0

14 years agoFix !srcdir build
Matthias Clasen [Thu, 22 Apr 2010 23:31:39 +0000 (19:31 -0400)]
Fix !srcdir build

Bug 616216

14 years agoUpdates
Matthias Clasen [Thu, 22 Apr 2010 05:29:53 +0000 (01:29 -0400)]
Updates

14 years agoUpdated Catalan (Valencian) translation
Carles Ferrando [Thu, 22 Apr 2010 22:45:49 +0000 (00:45 +0200)]
Updated Catalan (Valencian) translation

14 years agoGUnixSocketAddress: handle abstract sockets with non-0-padded names
Dan Winship [Tue, 20 Apr 2010 21:23:49 +0000 (17:23 -0400)]
GUnixSocketAddress: handle abstract sockets with non-0-padded names

There are apparently two incompatible ways of naming abstract sockets:
pad the sockaddr with 0s and use the entire thing as the name, or else
don't, and just pass a shorter length value to the relevant functions.
We previously only supported the former method. Add support for the
latter.

Also correctly handle "anonymous" unix sockaddrs (eg, the client side
of a connection, or a socketpair() socket), and add unix domain socket
support to the socket-client and socket-server test programs to make
sure this all works.

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

14 years agoUpdated Galician translations
Fran Diéguez [Thu, 22 Apr 2010 14:29:06 +0000 (16:29 +0200)]
Updated Galician translations

14 years agoUpdated Kannada translations
Shankar Prasad [Thu, 22 Apr 2010 10:39:58 +0000 (16:09 +0530)]
Updated Kannada translations

14 years agoRename gsettings-tool to gsettings
Matthias Clasen [Thu, 22 Apr 2010 05:15:54 +0000 (01:15 -0400)]
Rename gsettings-tool to gsettings

And make it verb-based.

14 years ago[gsettings] Add g_return_*_if_fail() guards in GSettingsBackend
Javier Jardón [Thu, 22 Apr 2010 01:20:17 +0000 (03:20 +0200)]
[gsettings] Add g_return_*_if_fail() guards in GSettingsBackend

14 years ago[gsettings] Add g_return_*_if_fail() guards
Javier Jardón [Thu, 22 Apr 2010 01:07:49 +0000 (03:07 +0200)]
[gsettings] Add g_return_*_if_fail() guards

Reported by Christian Persch here:
https://bugzilla.gnome.org/show_bug.cgi?id=616405

14 years agoAdd a test for g_settings_get_child
Matthias Clasen [Thu, 22 Apr 2010 01:03:53 +0000 (21:03 -0400)]
Add a test for g_settings_get_child

14 years agoBe more careful about memory management
Matthias Clasen [Wed, 21 Apr 2010 22:08:05 +0000 (18:08 -0400)]
Be more careful about memory management

This was leading to crashes, e.g. bug 616432.

14 years agoPedantic terminology fix
Matthias Clasen [Wed, 21 Apr 2010 21:44:47 +0000 (17:44 -0400)]
Pedantic terminology fix

Elements are not function calls and attributes are not arguments...

14 years agoFix typo in GMutex error message
Colin Walters [Wed, 21 Apr 2010 20:44:26 +0000 (16:44 -0400)]
Fix typo in GMutex error message

14 years agoHandle NULL string properties in bindings
Matthias Clasen [Wed, 21 Apr 2010 18:47:32 +0000 (14:47 -0400)]
Handle NULL string properties in bindings

Admittely, we just handle them by failing the conversion...

14 years agogio.symbols: add two missing G_GNUC_CONSTs
Dan Winship [Wed, 21 Apr 2010 17:37:59 +0000 (13:37 -0400)]
gio.symbols: add two missing G_GNUC_CONSTs

14 years agoUpdated Spanish translation
Jorge González [Wed, 21 Apr 2010 16:46:19 +0000 (18:46 +0200)]
Updated Spanish translation

14 years agoAdd a note about requiring a new enough GConf
Matthias Clasen [Wed, 21 Apr 2010 16:37:38 +0000 (12:37 -0400)]
Add a note about requiring a new enough GConf

14 years agoHandle non-readable/-writable properties when binding
Matthias Clasen [Wed, 21 Apr 2010 16:31:33 +0000 (12:31 -0400)]
Handle non-readable/-writable properties when binding

And document readability/writability requirements for binding flags.

14 years agoTest binding non-readable/writable properties
Matthias Clasen [Wed, 21 Apr 2010 16:31:10 +0000 (12:31 -0400)]
Test binding non-readable/writable properties

14 years agoRename gsettingsschemaupdatecache to the more sane gschema_compile
Matthias Clasen [Wed, 21 Apr 2010 15:50:21 +0000 (11:50 -0400)]
Rename gsettingsschemaupdatecache to the more sane gschema_compile

To follow existing glib pc variables for binaries.

14 years agoUpdate GSettings porting guide for new m4 macro
Bastien Nocera [Wed, 21 Apr 2010 15:49:00 +0000 (16:49 +0100)]
Update GSettings porting guide for new m4 macro

14 years agoAdd GSettings m4 macros helper
Bastien Nocera [Wed, 21 Apr 2010 11:25:23 +0000 (12:25 +0100)]
Add GSettings m4 macros helper

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

14 years agoNuke the gsettingsschemadir pc variable
Matthias Clasen [Wed, 21 Apr 2010 14:58:05 +0000 (10:58 -0400)]
Nuke the gsettingsschemadir pc variable

Not really useful, just use $(prefix)/glib-2.0/schemas. We are getting
m4 sugar to coat this over, anyway.

14 years agoFix gschema-compile tests for --schema-files changes
Bastien Nocera [Wed, 21 Apr 2010 14:02:50 +0000 (15:02 +0100)]
Fix gschema-compile tests for --schema-files changes

14 years agoAdd tests for --allow-any-name
Matthias Clasen [Wed, 21 Apr 2010 13:50:17 +0000 (09:50 -0400)]
Add tests for --allow-any-name

14 years agoAllow passing multiple schemas to gschema-compile
Bastien Nocera [Wed, 21 Apr 2010 11:14:40 +0000 (12:14 +0100)]
Allow passing multiple schemas to gschema-compile

To make test suites easier to implement

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

14 years agoAdd mention of GConfBridge in conversion docs
Bastien Nocera [Wed, 21 Apr 2010 10:15:30 +0000 (11:15 +0100)]
Add mention of GConfBridge in conversion docs

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

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