platform/upstream/glib.git
14 years agoTest enum mapping
Matthias Clasen [Mon, 5 Jul 2010 16:08:17 +0000 (12:08 -0400)]
Test enum mapping

14 years agoMore stream tests
Matthias Clasen [Mon, 5 Jul 2010 15:38:31 +0000 (11:38 -0400)]
More stream tests

14 years agoAdd more checks
Matthias Clasen [Mon, 5 Jul 2010 15:13:36 +0000 (11:13 -0400)]
Add more checks

14 years agoAdd some buffered output tests
Matthias Clasen [Mon, 5 Jul 2010 15:12:49 +0000 (11:12 -0400)]
Add some buffered output tests

14 years agoAdd some more tests for the buffered read code
Matthias Clasen [Mon, 5 Jul 2010 12:28:54 +0000 (08:28 -0400)]
Add some more tests for the buffered read code

14 years agoTrivial cleanups
Matthias Clasen [Mon, 5 Jul 2010 11:40:38 +0000 (07:40 -0400)]
Trivial cleanups

14 years agoAdd --disable-Bsymbolic flag
Ryan Lortie [Mon, 5 Jul 2010 17:10:28 +0000 (13:10 -0400)]
Add --disable-Bsymbolic flag

14 years agoMisc test additions
Matthias Clasen [Mon, 5 Jul 2010 07:09:36 +0000 (03:09 -0400)]
Misc test additions

14 years agoFix a typo
Matthias Clasen [Mon, 5 Jul 2010 06:36:48 +0000 (02:36 -0400)]
Fix a typo

14 years agoCleanups
Matthias Clasen [Mon, 5 Jul 2010 04:56:12 +0000 (00:56 -0400)]
Cleanups

14 years agoAdd some more tests
Matthias Clasen [Mon, 5 Jul 2010 03:42:07 +0000 (23:42 -0400)]
Add some more tests

14 years agoAdd some GAppLaunchContext tests
Matthias Clasen [Mon, 5 Jul 2010 03:41:40 +0000 (23:41 -0400)]
Add some GAppLaunchContext tests

14 years agoAdd the new tests to the correct variable
Matthias Clasen [Mon, 5 Jul 2010 03:40:42 +0000 (23:40 -0400)]
Add the new tests to the correct variable

14 years agoAdd some contenttype tests
Matthias Clasen [Mon, 5 Jul 2010 02:27:01 +0000 (22:27 -0400)]
Add some contenttype tests

14 years agoAdd a test for skipping
Matthias Clasen [Mon, 5 Jul 2010 00:50:50 +0000 (20:50 -0400)]
Add a test for skipping

14 years agoAdd some CharsetConverter tests
Matthias Clasen [Mon, 5 Jul 2010 00:49:29 +0000 (20:49 -0400)]
Add some CharsetConverter tests

14 years agoMove charset conversion tests to the test framework
Matthias Clasen [Sat, 3 Jul 2010 17:43:25 +0000 (13:43 -0400)]
Move charset conversion tests to the test framework

14 years agoAdd some more appinfo tests
Matthias Clasen [Sat, 3 Jul 2010 16:49:46 +0000 (12:49 -0400)]
Add some more appinfo tests

14 years agoUpdated Spanish translation
Jorge González [Sun, 4 Jul 2010 11:49:55 +0000 (13:49 +0200)]
Updated Spanish translation

14 years agoUpdated Spanish translation
Jorge González [Sat, 3 Jul 2010 11:48:56 +0000 (13:48 +0200)]
Updated Spanish translation

14 years agoMove GZlibConverter tests
Matthias Clasen [Sat, 3 Jul 2010 07:31:24 +0000 (03:31 -0400)]
Move GZlibConverter tests

14 years agoAdd tests for GIcon
Matthias Clasen [Sat, 3 Jul 2010 07:31:07 +0000 (03:31 -0400)]
Add tests for GIcon

14 years agoGDBus: Rename "Introspection XML" section to "D-Bus Introspection Data"
David Zeuthen [Fri, 2 Jul 2010 21:09:55 +0000 (17:09 -0400)]
GDBus: Rename "Introspection XML" section to "D-Bus Introspection Data"

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoBug 623407 - g_keyfile_settings_backend_new crash
Ryan Lortie [Fri, 2 Jul 2010 15:35:43 +0000 (11:35 -0400)]
Bug 623407 - g_keyfile_settings_backend_new crash

The keyfile backend forms paths like this:

  prefix + group_name + '/' + keyname

If the prefix is '/apps/yelp/' and the group name is '/' then this means
that we end up with a key name of (for example):

  '/apps/yelp/' + '/' + '/' + 'font-adjustment'

= '/apps/yelp///font-adjustment'

which is obviously not a valid key name.

This patch rejects group names starting or ending with '/' or containing
'//' and also rejects keys containing '/'.  This should make it
impossible for invalid keys to be formed.

14 years agoBug 623402 - schema compiler reports wrong line
Ryan Lortie [Fri, 2 Jul 2010 15:14:28 +0000 (11:14 -0400)]
Bug 623402 - schema compiler reports wrong line

Don't reuse the GMarkupParseContext in order to avoid inaccurate line
number reports.  Fix a memory leak, too.

14 years agoBug 623401 - schema compiler: process enums first
Ryan Lortie [Fri, 2 Jul 2010 15:11:45 +0000 (11:11 -0400)]
Bug 623401 - schema compiler: process enums first

Process *.enum.xml before any *.gschema.xml files to ensure that all
enums have been defined.

14 years agoGDBus: Hold lock when printing debug messages
David Zeuthen [Fri, 2 Jul 2010 13:40:59 +0000 (09:40 -0400)]
GDBus: Hold lock when printing debug messages

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGDBus: make G_DBUS_DEBUG=authentication work again
David Zeuthen [Fri, 2 Jul 2010 13:34:03 +0000 (09:34 -0400)]
GDBus: make G_DBUS_DEBUG=authentication work again

This was inadvertently removed in this commit

http://git.gnome.org/browse/glib/commit/?id=1d22b64843c83631bcd0e5255930f3a4e990961e

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoUpdate headers being installed in the Visual Studio project
Tor Lillqvist [Fri, 2 Jul 2010 12:31:24 +0000 (15:31 +0300)]
Update headers being installed in the Visual Studio project

It sucks to have the lists of public headers duplicated in the
Makefile.am files and the glib.vsprops file. But it isn't exactly easy
to work around all the weirdness in autotools, Visual Studio, and bat
files either to do it another way.

14 years agoBug 622124 - implement flags for GSettings
Ryan Lortie [Thu, 1 Jul 2010 22:58:56 +0000 (18:58 -0400)]
Bug 622124 - implement flags for GSettings

Add a <flags> tag to the schema file format and a flags='' attribute to
go along with.  Add some extra test cases for those.

Add new g_settings_{get,set}_flags() calls and support binding to
GParamSpecFlags properties.  Add test cases.

14 years agoUpdated Spanish translation
Jorge González [Thu, 1 Jul 2010 19:39:37 +0000 (21:39 +0200)]
Updated Spanish translation

14 years agoBug 620913 – More control with G_DBUS_DEBUG
David Zeuthen [Thu, 1 Jul 2010 18:37:16 +0000 (14:37 -0400)]
Bug 620913 – More control with G_DBUS_DEBUG

This commit adds the following G_DBUS_DEBUG flags

 - emission
 - incoming
 - call
 - signal
 - payload

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGDBus: Fix bug in child enumeration
David Zeuthen [Thu, 1 Jul 2010 17:06:56 +0000 (13:06 -0400)]
GDBus: Fix bug in child enumeration

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoUse "unix:" instead of tcp in test for now...
Ryan Lortie [Thu, 1 Jul 2010 16:55:04 +0000 (12:55 -0400)]
Use "unix:" instead of tcp in test for now...

Temporarily avoids the issue reported in bug #623306.

14 years agoGDBus: plug some memory leaks
David Zeuthen [Wed, 30 Jun 2010 20:36:47 +0000 (16:36 -0400)]
GDBus: plug some memory leaks

These fixes makes udisks-daemon from udisks' gdbus-port branch, see

 http://cgit.freedesktop.org/udisks/log/?h=gdbus-port

handle 200 add/remove uevents generated by e.g.

 #!/bin/bash
 DEV=mmcblk0p1
 for n in `seq 200` ; do
     udevadm trigger --sysname-match=$DEV --action=remove
     udevadm trigger --sysname-match=$DEV --action=add
     echo foo $n
 done

without any substantial leaks.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGSettings: accept <flags> as an alias for <enum>
Ryan Lortie [Wed, 30 Jun 2010 17:27:38 +0000 (13:27 -0400)]
GSettings: accept <flags> as an alias for <enum>

until we have proper support for flags...

14 years agogsettings.m4: add support for enums
Ryan Lortie [Wed, 30 Jun 2010 17:12:19 +0000 (13:12 -0400)]
gsettings.m4: add support for enums

14 years agoGDBus: Take a reference to the GDBusInterfaceInfo object
David Zeuthen [Wed, 30 Jun 2010 16:19:28 +0000 (12:19 -0400)]
GDBus: Take a reference to the GDBusInterfaceInfo object

Things will still work fine if the GDBusInterfaceInfo is allocated
statically because if so the ref_count will be -1.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGDBus: Rename `introspection_data' parameter to `interface_info'
David Zeuthen [Wed, 30 Jun 2010 16:10:00 +0000 (12:10 -0400)]
GDBus: Rename `introspection_data' parameter to `interface_info'

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoBug 623142 – Ensure ::new-connection runs before processing D-Bus messages
David Zeuthen [Wed, 30 Jun 2010 15:43:42 +0000 (11:43 -0400)]
Bug 623142 – Ensure ::new-connection runs before processing D-Bus messages

Without this guarantee, peer-to-peer connections are not very
useful. However, with this guarantee it's possible to export objects
in a handler for the GDBusServer::new-connection signal.

There are two caveats with this patch

 - it won't work on message bus connections
 - we don't queue up messages to be written

that can be addresses later if needed.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agog_settings_list_keys() -> _list_items()
Ryan Lortie [Wed, 30 Jun 2010 14:02:45 +0000 (10:02 -0400)]
g_settings_list_keys() -> _list_items()

This function returns children as well.

14 years agoGSettings: add <override>, tests, modify output
Ryan Lortie [Wed, 30 Jun 2010 00:24:39 +0000 (20:24 -0400)]
GSettings: add <override>, tests, modify output

Add <override> tag, more tests, and actually output the results of these
new tags to the gschemas.compiled file.

14 years agoGSettings: new <schema> tags 'extends', 'list-of'
Ryan Lortie [Tue, 29 Jun 2010 18:41:04 +0000 (14:41 -0400)]
GSettings: new <schema> tags 'extends', 'list-of'

Add support for extends='' and list-of='' tags to the <schema> element.
The attributes are parsed and some sanity-checking is done but currently
nothing happens as a result.

Add some tests.

14 years agoglib-compile-schemas: fix small leak
Ryan Lortie [Tue, 29 Jun 2010 18:40:44 +0000 (14:40 -0400)]
glib-compile-schemas: fix small leak

14 years agoBug 623143 – Never require non-closed connections
David Zeuthen [Tue, 29 Jun 2010 19:19:56 +0000 (15:19 -0400)]
Bug 623143 – Never require non-closed connections

There's a couple of places in GDBus where it's a programming error
(e.g. we'll assert or spew via e.g. g_warning()) to use the API on a
closed connection.  This approach can never work since a
GDBusConnection can be closed at any point in time outside of
programmer control.

Just change the code to return a run-time error (e.g. return
G_IO_ERROR_CLOSED when sending messages, invoking methods) or silently
accept the request (e.g.  exporting objects, registering for signals)
without doing anything.

Note that a GDBusConnection object is always useless after being
closed - e.g.  there's no way to "reopen" a connection - the user will
have to create a new object and use that instead.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoBug 622294 - More annotations for GVariant
Milan Bouchet-Valat [Mon, 21 Jun 2010 15:09:07 +0000 (17:09 +0200)]
Bug 622294 - More annotations for GVariant

This adds annotations to all functions in gvariant.c. A few docs
were also fixed (wrong parameter names, missing mention that NULL
is allowed).

14 years ago[autogen.sh] Support NOCONFIGURE (from gnome-common)
Colin Walters [Mon, 28 Jun 2010 21:16:44 +0000 (17:16 -0400)]
[autogen.sh] Support NOCONFIGURE (from gnome-common)

gnome-common's autogen.sh uses NOCONFIGURE to skip running configure.
Support that in addition to the current AUTOGEN_SUBDIR_MODE.

14 years agoUpdated Spanish translation
Jorge González [Mon, 28 Jun 2010 18:57:31 +0000 (20:57 +0200)]
Updated Spanish translation

14 years agoBug 622565 - compile-schemas fails when no schemas
Ryan Lortie [Mon, 28 Jun 2010 18:06:32 +0000 (14:06 -0400)]
Bug 622565 - compile-schemas fails when no schemas

Neutralise and deprecate the --uninstall option in the schema compiler
and remove it from gsettings.m4.

Make the new default behaviour a compromise between the old default
behaviour and the previous --uninstall option:

  - never return a failure code if no schema files are found

  - issue a warning instead

  - remove the gschemas.compiled file if it exists

14 years agoGSettings: peek instead of ref/unref enum class
Ryan Lortie [Mon, 28 Jun 2010 17:58:25 +0000 (13:58 -0400)]
GSettings: peek instead of ref/unref enum class

We only ever do the enum mapping for the property binding in the case
that a GParamSpecEnum exists and in that case the class is already
referenced by the GParamSpec.  Use peek instead of ref/unref and add a
clarifying note.

14 years agoBug 622127 - GSettings extended key validation
Ryan Lortie [Mon, 28 Jun 2010 14:18:45 +0000 (10:18 -0400)]
Bug 622127 - GSettings extended key validation

First shot at attempting to implement this in a reasonable way.  See
the bug for more information about why this is needed.

14 years agoUpdated Hebrew translation.
Yaron Shahrabani [Mon, 28 Jun 2010 09:28:47 +0000 (12:28 +0300)]
Updated Hebrew translation.

14 years agoFix a alloc/free mismatch
Matthias Clasen [Sun, 27 Jun 2010 23:27:04 +0000 (19:27 -0400)]
Fix a alloc/free mismatch

Pointed out in http://bugzilla.redhat.com/show_bug.cgi?id=608453
by David Tardon.

14 years agoFilter out child schema entries when listing keys
Matthias Clasen [Sun, 27 Jun 2010 20:31:53 +0000 (16:31 -0400)]
Filter out child schema entries when listing keys

14 years agoImplement bash completion for gsettings
Matthias Clasen [Sun, 27 Jun 2010 20:00:20 +0000 (16:00 -0400)]
Implement bash completion for gsettings

14 years agoGSettings: Don't free value before using its type
Ryan Lortie [Sun, 27 Jun 2010 14:11:45 +0000 (10:11 -0400)]
GSettings: Don't free value before using its type

Fix a bug where the type from g_variant_get_type() was used after
freeing the variant.  This works for base types (since they are cached
and live forever) but not for arrays (where the bug was first seen).

14 years agoAdd PCRE_EXP_DECL to pcre_callout declaration
Kristian Rietveld [Sat, 26 Jun 2010 20:55:47 +0000 (22:55 +0200)]
Add PCRE_EXP_DECL to pcre_callout declaration

Fixes build on Mac OS X.

14 years agoUpdated Spanish translation
Jorge González [Sat, 26 Jun 2010 08:14:52 +0000 (10:14 +0200)]
Updated Spanish translation

14 years agoBug 622128 - retry with default for failed mapping
Ryan Lortie [Fri, 25 Jun 2010 14:52:32 +0000 (10:52 -0400)]
Bug 622128 - retry with default for failed mapping

Hold the GSettingsKeyInfo as part of the binding structure to save work
on each get/set.  Use our copy of this structure to call the internal
get/set APIs.  Give more descriptive error messages in the case of
invalid data on sets and retry using the translated default then schema
default value in case of failure to map on reads.

14 years ago[gbinding] Move argument reference out of first column
Colin Walters [Thu, 17 Jun 2010 02:44:58 +0000 (22:44 -0400)]
[gbinding] Move argument reference out of first column

It makes gobject-introspection complain.

14 years agoHack up glib/tests/array-test to not actually malloc 2G
Dan Winship [Thu, 24 Jun 2010 18:23:37 +0000 (14:23 -0400)]
Hack up glib/tests/array-test to not actually malloc 2G

Fixes the test on machines where that allocation takes very long.

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

14 years agoversion.bump()
Ryan Lortie [Thu, 24 Jun 2010 17:32:26 +0000 (13:32 -0400)]
version.bump()

14 years agoRelease glib 2.25.10 2.25.10
Ryan Lortie [Thu, 24 Jun 2010 17:18:44 +0000 (13:18 -0400)]
Release glib 2.25.10

14 years agoTweak GSettings key/schema listing APIs
Ryan Lortie [Thu, 24 Jun 2010 16:25:48 +0000 (12:25 -0400)]
Tweak GSettings key/schema listing APIs

14 years agoClarify GSettings documentation wrt errors
Ryan Lortie [Thu, 24 Jun 2010 06:28:01 +0000 (02:28 -0400)]
Clarify GSettings documentation wrt errors

Make it clear about exactly what "@key is valid" means.

14 years agog_keyfile_settings_backend_new doc improvement
Ryan Lortie [Thu, 24 Jun 2010 06:21:58 +0000 (02:21 -0400)]
g_keyfile_settings_backend_new doc improvement

14 years agoGSettings: add g_settings_list_keys()
Ryan Lortie [Thu, 24 Jun 2010 06:15:15 +0000 (02:15 -0400)]
GSettings: add g_settings_list_keys()

Second half of bug #622554.

14 years agoAdd g_settings_schema_exists
Ryan Lortie [Thu, 24 Jun 2010 05:49:27 +0000 (01:49 -0400)]
Add g_settings_schema_exists

Solves half of #622554.

14 years agoKeyfileSettingsBackend: fix symbol visibility leak
Ryan Lortie [Thu, 24 Jun 2010 05:49:00 +0000 (01:49 -0400)]
KeyfileSettingsBackend: fix symbol visibility leak

14 years agoRework the GSettings keyfile backend
Ryan Lortie [Tue, 22 Jun 2010 12:12:04 +0000 (08:12 -0400)]
Rework the GSettings keyfile backend

14 years agoGSettingsBackend: some debug code
Ryan Lortie [Thu, 24 Jun 2010 04:55:14 +0000 (00:55 -0400)]
GSettingsBackend: some debug code

14 years agoIgnore more glib test cases
Ryan Lortie [Thu, 24 Jun 2010 04:41:05 +0000 (00:41 -0400)]
Ignore more glib test cases

14 years agofix leaks in the GSettings test case
Ryan Lortie [Thu, 24 Jun 2010 04:36:42 +0000 (00:36 -0400)]
fix leaks in the GSettings test case

14 years agoGChecksum: accept NULL pointer with length 0
Ryan Lortie [Thu, 24 Jun 2010 04:35:10 +0000 (00:35 -0400)]
GChecksum: accept NULL pointer with length 0

Several GChecksum functions were incorrectly aborting when passed a NULL
data pointer, even if the length parameter was equal to zero.

14 years agoGSettings "delayed": don't leak unapplied keys
Ryan Lortie [Thu, 24 Jun 2010 04:38:01 +0000 (00:38 -0400)]
GSettings "delayed": don't leak unapplied keys

GDelayedSettingsBackend was leaking the GTree holding the list of
unapplied keys on finalize.

14 years agoDeprecate some rarely-used APIS
Matthias Clasen [Thu, 24 Jun 2010 02:32:35 +0000 (22:32 -0400)]
Deprecate some rarely-used APIS

GRelation and GCompletion are almost never used, and not very actively
maintained. Mark them as deprecated to make this clear. Bug #551271.

14 years agoIntroduce G_PARAM_DEPRECATED and G_ENABLE_DIAGNOSTIC
Christian Dywan [Fri, 18 Jun 2010 14:14:27 +0000 (16:14 +0200)]
Introduce G_PARAM_DEPRECATED and G_ENABLE_DIAGNOSTIC

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

14 years agobinding: Add SYNC_CREATE to the flags
Emmanuele Bassi [Mon, 21 Jun 2010 11:26:42 +0000 (12:26 +0100)]
binding: Add SYNC_CREATE to the flags

When creating a binding between two object properties we might want to
automatically synchronize the two values at the moment of the binding
creation, instead of waiting for the next change.

The G_BINDING_SYNC_CREATE flag does exactly what it says on the tin.

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

14 years agoneutralise pltcheck.sh
Ryan Lortie [Wed, 23 Jun 2010 14:12:14 +0000 (10:12 -0400)]
neutralise pltcheck.sh

14 years agoGIO doc cleanups
Matthias Clasen [Wed, 23 Jun 2010 13:03:51 +0000 (09:03 -0400)]
GIO doc cleanups

14 years agoDocument g_cclosure_marshal_VOID__VARIANT
Matthias Clasen [Wed, 23 Jun 2010 11:32:24 +0000 (07:32 -0400)]
Document g_cclosure_marshal_VOID__VARIANT

14 years agoIgnore gatomicarray.h
Matthias Clasen [Wed, 23 Jun 2010 11:22:49 +0000 (07:22 -0400)]
Ignore gatomicarray.h

Otherwise gtk-doc picks up declarations from that header and is
disappointed when they are not documented.

14 years agosilence gtk-doc
Matthias Clasen [Wed, 23 Jun 2010 11:21:50 +0000 (07:21 -0400)]
silence gtk-doc

Add g_error_get_type to a private section in gobject-sections.txt
so gtk-doc doesn't complain about it.

14 years agoAdd some more unicode property tests
Matthias Clasen [Wed, 23 Jun 2010 04:20:11 +0000 (00:20 -0400)]
Add some more unicode property tests

14 years agoMove node tests to the test framework
Matthias Clasen [Wed, 23 Jun 2010 03:39:51 +0000 (23:39 -0400)]
Move node tests to the test framework

14 years agoSome more hash, utils and checksum tests
Matthias Clasen [Wed, 23 Jun 2010 02:25:02 +0000 (22:25 -0400)]
Some more hash, utils and checksum tests

14 years agoMove node test to the test framework
Matthias Clasen [Wed, 23 Jun 2010 02:24:29 +0000 (22:24 -0400)]
Move node test to the test framework

14 years agoMove date tests to the test framework
Matthias Clasen [Tue, 22 Jun 2010 23:50:35 +0000 (19:50 -0400)]
Move date tests to the test framework

14 years agoAdd an index for 2.26 api additions
Matthias Clasen [Tue, 22 Jun 2010 21:42:30 +0000 (17:42 -0400)]
Add an index for 2.26 api additions

14 years agoImprove documentation for g_strcmp0()
Milan Bouchet-Valat [Wed, 23 Jun 2010 10:17:29 +0000 (12:17 +0200)]
Improve documentation for g_strcmp0()

Be more explicit about the handling of two NULL pointers.

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

14 years agoGDBusProxy: Don't warn when calling methods on other interfaces
David Zeuthen [Tue, 22 Jun 2010 21:48:35 +0000 (17:48 -0400)]
GDBusProxy: Don't warn when calling methods on other interfaces

If we know the expected interface (e.g. :g-interface-info is set),
then we always warned when calling a method on a different
interface. Don't do that, there's no way the expected interface can
know anything about this method.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agogio/tests/testapps: Fix source refcounting
Dan Winship [Tue, 22 Jun 2010 19:31:55 +0000 (15:31 -0400)]
gio/tests/testapps: Fix source refcounting

Either child_watch_source or timeout_source will already have been
destroyed after we finish the loop, and it's not safe to call
g_source_destroy() on it a second time unless we're still holding a
ref on it.

14 years agoGSocketConnection: don't close the socket if it's still reffed
Dan Winship [Fri, 23 Apr 2010 12:47:18 +0000 (08:47 -0400)]
GSocketConnection: don't close the socket if it's still reffed

When disposing a GSocketConnection, don't explicitly close the
underlying GSocket. The GSocket will close itself if it gets
destroyed, and if it doesn't get destroyed, that presumably means the
app still wants to use it. Eg, this lets you use GSocketClient to
create a GSocketConnection, and then take the GSocket and destroy the
GSocketConnection.

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

14 years agoGSocketInput/OutputStream: fix non-blocking on Windows
Dan Winship [Fri, 23 Apr 2010 12:21:41 +0000 (08:21 -0400)]
GSocketInput/OutputStream: fix non-blocking on Windows

The GSocket docs point out that g_socket_send/g_socket_receive may
return G_IO_ERROR_WOULD_BLOCK even if g_socket_condition_check claimed
that they wouldn't. Fix the socket streams to check for that.

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

14 years agoGDBus: update padding
David Zeuthen [Tue, 22 Jun 2010 16:12:16 +0000 (12:12 -0400)]
GDBus: update padding

Add lots of padding for public class structures. Notably, we seemed to
lack any padding whatsoever in the GDBusMessageClass struct (spotted
by Dan Winship). Also switch to using

 gpointer padding[N];

instead of

 void (*_g_reserved1) (void);
 ...
 void (*_g_reservedN) (void);

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoImprove g_application_new documentation
Matthias Clasen [Tue, 22 Jun 2010 12:24:30 +0000 (08:24 -0400)]
Improve g_application_new documentation

Patch by Saleem Abdulrasool, bug 622154.

14 years agoAdd single include guards to gvariant[type].h
Ryan Lortie [Tue, 22 Jun 2010 12:09:27 +0000 (08:09 -0400)]
Add single include guards to gvariant[type].h

14 years agoMake the protocol.c test program compile on Windows
Tor Lillqvist [Tue, 22 Jun 2010 09:41:01 +0000 (12:41 +0300)]
Make the protocol.c test program compile on Windows

Note that it does not actually work, though. Maybe because
g_io_channel_set_flags() is not implemented for file descriptor based
GIOChannels on Windows.

14 years agoFix build with the Microsoft compiler
Tor Lillqvist [Tue, 22 Jun 2010 09:13:21 +0000 (12:13 +0300)]
Fix build with the Microsoft compiler

Correct a few gccisms and C99isms. Ensure the Windows-specific gio
source files are listed in the generated gio VS project file.

14 years agoBypass a few functions not used on Windows when compiling for Windows
Tor Lillqvist [Tue, 22 Jun 2010 09:10:34 +0000 (12:10 +0300)]
Bypass a few functions not used on Windows when compiling for Windows