platform/upstream/glib.git
12 years agoslice-color test: don't use non-existent macro
Ryan Lortie [Tue, 1 May 2012 20:48:52 +0000 (13:48 -0700)]
slice-color test: don't use non-existent macro

G_GUINT64_MODIFIER doesn't exist, but G_GINT64_MODIFIER does (and will
be the same as is needed for unsigned).

12 years agotests: temporarily disable GDBus async proxy test
Ryan Lortie [Tue, 1 May 2012 20:23:09 +0000 (13:23 -0700)]
tests: temporarily disable GDBus async proxy test

It has never worked properly and, with the new GDBus testing stuff, it's
occasionally failing.

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

12 years agocontenttype test: don't pass -1 as length
Ryan Lortie [Tue, 1 May 2012 19:40:15 +0000 (15:40 -0400)]
contenttype test: don't pass -1 as length

g_content_type_guess() takes a gsize, not a gssize, and -1 does not mean
"I am passing a NULL terminated string".

12 years agoconfigure: Reset LIBS after ELF check
Michael Biebl [Tue, 1 May 2012 16:42:12 +0000 (18:42 +0200)]
configure: Reset LIBS after ELF check

If action-if-found is not specified, AC_CHECK_LIB will append the library
to LIBS. As we don't want to link everything against libelf, reset LIBS
after doing the checks.

12 years agoGApplication: add accessor for DBus information
Ryan Lortie [Mon, 30 Apr 2012 16:20:54 +0000 (12:20 -0400)]
GApplication: add accessor for DBus information

Provide public access to the GDBusConnect and object path that
GApplication is using.  Prevents others from having to guess these
things for themselves based on the application ID.

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

12 years agoGApplication: allow null application_id
Ryan Lortie [Sat, 3 Mar 2012 16:31:05 +0000 (11:31 -0500)]
GApplication: allow null application_id

GApplication application ID is now permitted to be NULL, in which case
G_APPLICATION_NON_UNIQUE will be implicitly enabled.

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

12 years agoUpdated French translation
Bruno Brouard [Mon, 30 Apr 2012 19:54:22 +0000 (21:54 +0200)]
Updated French translation

12 years agog_clear_pointer: use the same static checks than g_clear_object in glib-2-32
Xavier Claessens [Mon, 30 Apr 2012 15:02:06 +0000 (17:02 +0200)]
g_clear_pointer: use the same static checks than g_clear_object in glib-2-32

12 years agoUpdated Galician translations
Fran Diéguez [Mon, 30 Apr 2012 14:14:24 +0000 (16:14 +0200)]
Updated Galician translations

12 years agol10n: Updated Italian translation
Luca Ferretti [Mon, 30 Apr 2012 13:41:08 +0000 (15:41 +0200)]
l10n: Updated Italian translation

12 years agoUpdate gio/tests/.gitignore
Dan Winship [Mon, 30 Apr 2012 10:54:05 +0000 (06:54 -0400)]
Update gio/tests/.gitignore

12 years agofix warnings
Dan Winship [Mon, 30 Apr 2012 10:31:20 +0000 (06:31 -0400)]
fix warnings

12 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Mon, 30 Apr 2012 08:16:16 +0000 (10:16 +0200)]
Updated Norwegian bokmål translation

12 years agoUpdated Brazilian Portuguese translation
Jonh Wendell [Sat, 28 Apr 2012 13:11:25 +0000 (10:11 -0300)]
Updated Brazilian Portuguese translation

12 years agoFix several recently-introduced bugs in g_output_stream_write_async()
Dan Winship [Fri, 27 Apr 2012 13:27:38 +0000 (09:27 -0400)]
Fix several recently-introduced bugs in g_output_stream_write_async()

g_output_stream_write_async() was not initializing the newly-added
members of the WriteData structure, causing various problems.

Also, g_input_stream_read_async() was now leaking its cancellable. Fix
that as well.

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

12 years agoAdd g_clear_pointer()
Xavier Claessens [Mon, 23 Apr 2012 15:57:56 +0000 (17:57 +0200)]
Add g_clear_pointer()

Also reimplement g_clear_object() using g_clear_pointer()

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

12 years agoGAppInfo: overwrite the DISPLAY only if it is set in the launch context
Debarshi Ray [Mon, 16 Apr 2012 21:00:01 +0000 (23:00 +0200)]
GAppInfo: overwrite the DISPLAY only if it is set in the launch context

If the launch context is a GAppLaunchContext, and not a
GdkAppLaunchContext, then g_app_launch_context_get_display will return
NULL because the get_display virtual method is undefined. The DISPLAY
might still be inherited from the parent process, in which case
overwriting it with NULL breaks the launch.

This is a regression introduced in:
de834bed306565c0652050665eafff4dfcdf0d8b

Fixes: https://bugzilla.gnome.org/672786

12 years agoUpdated Hebrew translation.
Yaron Shahrabani [Thu, 26 Apr 2012 12:29:12 +0000 (15:29 +0300)]
Updated Hebrew translation.

12 years agoDist gio/dbus-daemon.xml and fix dependency for builddir != srcdir
Alexander Larsson [Thu, 26 Apr 2012 08:05:41 +0000 (10:05 +0200)]
Dist gio/dbus-daemon.xml and fix dependency for builddir != srcdir

12 years agobuild: Fix 'make dist' regression
Colin Walters [Wed, 25 Apr 2012 18:47:01 +0000 (14:47 -0400)]
build: Fix 'make dist' regression

Commit f084b603771f78126bc0b07229a1574b76e776bb incorrectly set
DIST_SUBDIRS for the toplevel Makefile.am.  In general actually we
don't need to set it, because modern automake automatically sets
it by looking at conditionals for SUBDIRS.

Tested-by: Rico Tzschichholz <ricotz@t-online.de>
https://bugzilla.gnome.org/show_bug.cgi?id=667806

12 years agogsocket: test if family is <= 0, not < 0
Dan Winship [Wed, 25 Apr 2012 14:44:55 +0000 (10:44 -0400)]
gsocket: test if family is <= 0, not < 0

If all members of GSocketFamily are supported on the platform, then
all of its values will be positive, and so the enum might become
unsigned, in which case testing for "family < 0" might cause warnings.
But we want to return an error if family == 0 (aka
G_SOCKET_FAMILY_INVALID) anyway, so just tweak the test accordingly.

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

12 years agomake sure configure fails if AC_CHECK_ALIGNOF cannot detect the alignment
Michael Olbrich [Wed, 25 Apr 2012 07:46:35 +0000 (09:46 +0200)]
make sure configure fails if AC_CHECK_ALIGNOF cannot detect the alignment

When cross-compiling with gcc >= 4.5 AC_CHECK_ALIGNOF fails to detect the
correct alignment. Without a previous AC_CHECK_TYPE for the same type, the
alignment is silently set to '0'.
This makes sure that configure fails and reports the problem.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
https://bugzilla.gnome.org/show_bug.cgi?id=674483

12 years agowin32: More srcdir != builddir fixing
Dieter Verfaillie [Tue, 24 Apr 2012 14:39:21 +0000 (16:39 +0200)]
win32: More srcdir != builddir fixing

12 years agowin32: Fix build with srcdir != builddir
Alexander Larsson [Tue, 24 Apr 2012 12:53:49 +0000 (14:53 +0200)]
win32: Fix build with srcdir != builddir

Missed this part in the last commit

12 years agowin32: Fix build of gdbus-daemon-generated.[ch]
Alexander Larsson [Tue, 24 Apr 2012 12:03:38 +0000 (14:03 +0200)]
win32: Fix build of gdbus-daemon-generated.[ch]

gdbus-daemon-generated.[ch] failed to build because it depended
on gdbus-2.0/codegen/gdbus-codegen which was build during the SUBDIRS part
of the build, however SUBDIRS are done *after* processing BUILT_SOURCES,
and these files are in BUILT_SOURCES.

The fix is simple, instead of running the gdbus-codegen code we
run the gdbus-codegen.in code, which works fine for uninstalled execution.

I also removed Makefile from the dependencies to avoid rebuilding the file
in tarballs, as Makefiles are written at configure time. We should be able to
ship the prebuilt files in the tarballs.
When running uninstalled

12 years agoUpdated Bulgarian translation
Alexander Shopov [Tue, 24 Apr 2012 04:28:43 +0000 (07:28 +0300)]
Updated Bulgarian translation

12 years agoUpdated Galician translations
Fran Diéguez [Mon, 23 Apr 2012 22:29:07 +0000 (00:29 +0200)]
Updated Galician translations

12 years agoVisual C++ projects: Clean/fix up
Chun-wei Fan [Mon, 23 Apr 2012 16:03:33 +0000 (00:03 +0800)]
Visual C++ projects: Clean/fix up

Clean/fix up the Preprocessor Definitions for the various projects, where
we purge out the unneeded macros and add _DEBUG to the Debug builds of
various projects that somehow lacked this.

This will also fix the GIO build under Visual C++ 2008, as the _DEBUG macro
in the release builds will cause a debug entry to appear in its manifest
file during the build, which will cause GIO-using applications to fail
to run on systems not running Visual C++/Studio 2008 due to its embedding
of a badly-generated manifest file.

12 years agoAdd tests for signal convenience api
Matthias Clasen [Mon, 23 Apr 2012 12:19:29 +0000 (08:19 -0400)]
Add tests for signal convenience api

12 years agoAdd tests for toggle reference and qdata
Matthias Clasen [Mon, 23 Apr 2012 12:19:06 +0000 (08:19 -0400)]
Add tests for toggle reference and qdata

12 years agoImprove test coverage in gobject/tests
Matthias Clasen [Mon, 23 Apr 2012 12:17:40 +0000 (08:17 -0400)]
Improve test coverage in gobject/tests

This is just making sure that we execute property getters/setters.

12 years agoAdd some directory getter tests
Matthias Clasen [Mon, 23 Apr 2012 12:16:50 +0000 (08:16 -0400)]
Add some directory getter tests

12 years agoImprove GOptionContext test coverage
Matthias Clasen [Mon, 23 Apr 2012 12:16:23 +0000 (08:16 -0400)]
Improve GOptionContext test coverage

12 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 23 Apr 2012 09:40:33 +0000 (11:40 +0200)]
Updated Spanish translation

12 years agoMake GDataOutputStream implement GSeekable
Maciej Piechotka [Thu, 29 Mar 2012 00:08:41 +0000 (02:08 +0200)]
Make GDataOutputStream implement GSeekable

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

12 years agoMake GBufferedOutputStream implement GSeekable
Maciej Piechotka [Wed, 28 Mar 2012 23:50:41 +0000 (01:50 +0200)]
Make GBufferedOutputStream implement GSeekable

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

12 years agoMake GBufferedInputStream implement GSeekable
Maciej Piechotka [Wed, 28 Mar 2012 12:12:44 +0000 (14:12 +0200)]
Make GBufferedInputStream implement GSeekable

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

12 years agoUpdated Russian translation
Yuri Kozlov [Mon, 23 Apr 2012 08:12:27 +0000 (12:12 +0400)]
Updated Russian translation

12 years agoMake the child source test work
Matthias Clasen [Mon, 23 Apr 2012 04:35:37 +0000 (00:35 -0400)]
Make the child source test work

On my machine, this test was failing, because the timeout source
for quitting the inner mainloop was triggering repeatedly. Avoid
that by explicitly returning G_SOURCE_REMOVE from the callback.

12 years agodocs: Use latest docbook dtd: 4.5
Javier Jardón [Mon, 23 Apr 2012 01:45:08 +0000 (02:45 +0100)]
docs: Use latest docbook dtd: 4.5

12 years agodocs: rename *-docs.sgml to *-docs.xml
Javier Jardón [Sun, 22 Apr 2012 20:56:07 +0000 (21:56 +0100)]
docs: rename *-docs.sgml to *-docs.xml

We are using xml docbook nowadays

12 years agodocs: Add index to new api added in 2.34
Javier Jardón [Mon, 23 Apr 2012 00:36:49 +0000 (01:36 +0100)]
docs: Add index to new api added in 2.34

12 years agodocs: Fix "Since" markup
Javier Jardón [Mon, 23 Apr 2012 00:15:26 +0000 (01:15 +0100)]
docs: Fix "Since" markup

12 years agogio: add a proxy test program
Dan Winship [Sun, 22 Apr 2012 19:18:50 +0000 (15:18 -0400)]
gio: add a proxy test program

Test GProxy, GProxyResolver, GProxyAddress, and
GProxyAddressEnumerator, plus GSocketClient's proxy-resolving
codepaths.

12 years agogio: Add more information to GProxyAddress
Dan Winship [Sat, 21 Apr 2012 04:25:53 +0000 (00:25 -0400)]
gio: Add more information to GProxyAddress

Add two new methods to GProxyAddress for recovering information about
the destination URI that the proxy was created for (and modify
GProxyAddressEnumerator to set that information when creating the
GProxyAddress).

12 years agogio: fix error handling in async case of GProxyAddressEnumerator
Dan Winship [Sun, 22 Apr 2012 19:20:14 +0000 (15:20 -0400)]
gio: fix error handling in async case of GProxyAddressEnumerator

In the async case, a failed DNS lookup was causing the proxy
resolution to bail out immediately, rather than just moving on to the
next potential proxy (which might not need us to do the DNS lookup
beforehand). Fix that.

12 years agoUpdated Galician translations
Fran Diéguez [Sun, 22 Apr 2012 13:34:12 +0000 (15:34 +0200)]
Updated Galician translations

12 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 22 Apr 2012 09:13:21 +0000 (11:13 +0200)]
Updated Spanish translation

12 years agoUpdated Hebrew translation.
Yaron Shahrabani [Sun, 22 Apr 2012 08:41:51 +0000 (11:41 +0300)]
Updated Hebrew translation.

12 years agoUpdated Bulgarian translation
Alexander Shopov [Sun, 22 Apr 2012 06:07:34 +0000 (09:07 +0300)]
Updated Bulgarian translation

12 years agoUpdated Galician translations
Fran Diéguez [Sat, 21 Apr 2012 14:30:59 +0000 (16:30 +0200)]
Updated Galician translations

12 years agoUpdated Slovenian translation
Matej Urbančič [Sat, 21 Apr 2012 10:46:49 +0000 (12:46 +0200)]
Updated Slovenian translation

12 years agoUpdated Slovenian translation
Matej Urbančič [Sat, 21 Apr 2012 10:39:22 +0000 (12:39 +0200)]
Updated Slovenian translation

12 years agoUpdated Serbian translation
Мирослав Николић [Sat, 21 Apr 2012 07:26:24 +0000 (09:26 +0200)]
Updated Serbian translation

12 years agoUpdated POTFILES.in
Piotr Drąg [Fri, 20 Apr 2012 18:50:26 +0000 (20:50 +0200)]
Updated POTFILES.in

12 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 20 Apr 2012 15:22:55 +0000 (17:22 +0200)]
Updated Spanish translation

12 years agoUpdated Galician translations
Fran Diéguez [Fri, 20 Apr 2012 13:12:48 +0000 (15:12 +0200)]
Updated Galician translations

12 years agowin32: Implement _g_dbus_get_machine_id using machine guid
Alexander Larsson [Fri, 20 Apr 2012 08:23:34 +0000 (10:23 +0200)]
win32: Implement _g_dbus_get_machine_id using machine guid

This is what libdbus uses, so we're compatible.

12 years agowin32: Support autolaunching dbus daemon
Alexander Larsson [Wed, 18 Apr 2012 15:09:37 +0000 (17:09 +0200)]
win32: Support autolaunching dbus daemon

12 years agoAdd _g_io_win32_get_module to get the gio HMODULE
Alexander Larsson [Wed, 18 Apr 2012 14:25:29 +0000 (16:25 +0200)]
Add _g_io_win32_get_module to get the gio HMODULE

12 years agoGTestDBus: Allow to specify the dbus-daemon binary
Alexander Larsson [Thu, 19 Apr 2012 09:01:24 +0000 (11:01 +0200)]
GTestDBus: Allow to specify the dbus-daemon binary

The env var G_TEST_DBUS_DAEMON lets you change dbus-daemon to
whatever you want. This is useful to test with gdbus-daemon

12 years agoAdd gdbus-daemon test app
Alexander Larsson [Mon, 16 Apr 2012 08:16:47 +0000 (10:16 +0200)]
Add gdbus-daemon test app

12 years agoAdd GDBusDAaemon, an implementation of a message bus
Alexander Larsson [Mon, 16 Apr 2012 08:16:04 +0000 (10:16 +0200)]
Add GDBusDAaemon, an implementation of a message bus

This is mostly complete, sans support for activation. However, its
not as picky as the libdbus implementation in terms like validation
and limits checking, nor is it as tested.

Its can be useful to test gdbus if dbus-daemon is not availible, but
its main reason for existance is to implement a default session bus
on win32 so that e.g. GApplication is guaranteed to work.

12 years agoresourcefile: Set display name
Benjamin Otte [Fri, 20 Apr 2012 12:31:05 +0000 (14:31 +0200)]
resourcefile: Set display name

Fixes resource filenames not being printed in CSS warnings for GTK.

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

12 years agoMore beautiful fix
Matthias Clasen [Thu, 19 Apr 2012 21:13:52 +0000 (17:13 -0400)]
More beautiful fix

A comma on a line by itself is too ugly to stand.

12 years agoBump version to 2.33.1
Matthias Clasen [Thu, 19 Apr 2012 21:06:49 +0000 (17:06 -0400)]
Bump version to 2.33.1

This avoids triggering the 'too new' warning from 2.34 API.

12 years agoFix non-win32 build error in my recent commit
Alexander Larsson [Thu, 19 Apr 2012 18:46:08 +0000 (20:46 +0200)]
Fix non-win32 build error in my recent commit

12 years agoRevert "tests: fix test on windows"
Matthias Clasen [Thu, 19 Apr 2012 17:25:26 +0000 (13:25 -0400)]
Revert "tests: fix test on windows"

This reverts commit 79361eede240e9591891290c22cd072ccddb78a3.

Just commenting out a test without an explanation does not
look right to me. This needs at the minimum a link to a
bug report or an explanation for why the behaviour is platform
dependent. If the test was just wrong, it needs to be removed,
not commented out. If there is a bug in the win32 implementation,
it needs to be fixed.

12 years agoTests: Move dbus specific tests to if HAVE_DBUS_DAEMON
Alexander Larsson [Thu, 19 Apr 2012 16:12:23 +0000 (18:12 +0200)]
Tests: Move dbus specific tests to if HAVE_DBUS_DAEMON

These used to only be built on unix, but if you have dbus-daemon on
win32 we should really build them there too.

12 years agoFix test building on win32
Alexander Larsson [Thu, 19 Apr 2012 16:11:47 +0000 (18:11 +0200)]
Fix test building on win32

12 years agoGTestDBus: Make work on win32
Alexander Larsson [Thu, 19 Apr 2012 11:49:52 +0000 (13:49 +0200)]
GTestDBus: Make work on win32

Win32 doesn't have things like fork so the existing code has no way
of working. Instead we swap it all out for a custom implementation
on win32.

12 years agotests: fix test on windows
Andoni Morales Alastruey [Thu, 19 Apr 2012 13:02:34 +0000 (15:02 +0200)]
tests: fix test on windows

12 years agotest: only check for defined errors
Andoni Morales Alastruey [Thu, 19 Apr 2012 13:12:48 +0000 (15:12 +0200)]
test: only check for defined errors

12 years agoRemove ununsed include
Alexander Larsson [Wed, 18 Apr 2012 14:24:44 +0000 (16:24 +0200)]
Remove ununsed include

12 years agogdbus: Escape nonce files in dbus addressess
Alexander Larsson [Tue, 17 Apr 2012 13:50:53 +0000 (15:50 +0200)]
gdbus: Escape nonce files in dbus addressess

Otherwise the colon in c:\blah made for trouble

12 years agoFix build on win32
Alexander Larsson [Tue, 17 Apr 2012 13:50:01 +0000 (15:50 +0200)]
Fix build on win32

Some errnos don't exist on win32

12 years agoFix race in gdbus-connection test
Alexander Larsson [Mon, 16 Apr 2012 08:18:44 +0000 (10:18 +0200)]
Fix race in gdbus-connection test

We need to flush the AddMatches before even connecting to the bus, or we
risk missing the NameOwnerChanged from the new connections.

12 years agoSupport initial underscores in dbus codegen namespace
Alexander Larsson [Mon, 16 Apr 2012 07:55:29 +0000 (09:55 +0200)]
Support initial underscores in dbus codegen namespace

Before these were considered lowercase and thus got duplicated.

12 years agoUse GTestDBus in all GDBus unit tests
Xavier Claessens [Wed, 18 Apr 2012 21:28:17 +0000 (23:28 +0200)]
Use GTestDBus in all GDBus unit tests

To make port easier, this rewrites dbus-sessionbus.c using a
GTestDBus singleton internally.

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

12 years agoAdd GTestDBus object
Xavier Claessens [Wed, 18 Apr 2012 21:21:13 +0000 (23:21 +0200)]
Add GTestDBus object

This is a helper to write unit tests using a private dbus-daemon.

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

12 years agoAdd private _g_bus_get_singleton_if_exists() function
Xavier Claessens [Fri, 6 Apr 2012 12:51:09 +0000 (14:51 +0200)]
Add private _g_bus_get_singleton_if_exists() function

This is used by g_test_dbus_down() to ensure the GDBusConnection
gets disposed, but not create one if the singleton already got
disposed.

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

12 years agoRevert "Add a private copy of gio/tests/gdbus-tests.c,h to gio/"
David Zeuthen [Wed, 18 Apr 2012 17:48:27 +0000 (13:48 -0400)]
Revert "Add a private copy of gio/tests/gdbus-tests.c,h to gio/"

This reverts commit 07bbc87615c6c0d6a525f40c2bffad2c11e400d2.

12 years agoRevert "Add private _g_bus_get_singleton_if_exists() function"
David Zeuthen [Wed, 18 Apr 2012 17:48:09 +0000 (13:48 -0400)]
Revert "Add private _g_bus_get_singleton_if_exists() function"

This reverts commit f8a8e9039889c090fb3323e195730b9e460396e4.

12 years agoRevert "Add GTestDBus object"
David Zeuthen [Wed, 18 Apr 2012 17:47:51 +0000 (13:47 -0400)]
Revert "Add GTestDBus object"

This reverts commit 1b5f70b5b035019ba28da6a5db6eff8122e17ae7.

12 years agoGMenuModel: Don't leak GDBusConnection in test
David Zeuthen [Wed, 18 Apr 2012 17:33:00 +0000 (13:33 -0400)]
GMenuModel: Don't leak GDBusConnection in test

See https://bugzilla.gnome.org/show_bug.cgi?id=672985#c89

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoAdd GTestDBus object
Xavier Claessens [Wed, 18 Apr 2012 06:50:07 +0000 (08:50 +0200)]
Add GTestDBus object

This is a helper to write unit tests using a private dbus-daemon.

session_bus_up/down() are now just wrappers around a GTestDBus singleton.

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

12 years agoAdd private _g_bus_get_singleton_if_exists() function
Xavier Claessens [Fri, 6 Apr 2012 12:51:09 +0000 (14:51 +0200)]
Add private _g_bus_get_singleton_if_exists() function

This is used by g_test_dbus_down() to ensure the GDBusConnection
gets disposed, but not create one if the singleton already got
disposed.

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

12 years agoAdd a private copy of gio/tests/gdbus-tests.c,h to gio/
Xavier Claessens [Tue, 17 Apr 2012 17:33:11 +0000 (19:33 +0200)]
Add a private copy of gio/tests/gdbus-tests.c,h to gio/

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

12 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Wed, 18 Apr 2012 07:27:04 +0000 (09:27 +0200)]
Updated Norwegian bokmål translation

12 years agoDo not detect GNUstep as Cocoa
Alexandre Rostovtsev [Mon, 16 Apr 2012 02:57:25 +0000 (22:57 -0400)]
Do not detect GNUstep as Cocoa

GNUstep also installs Foundation/Foundation.h

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

Signed-off-by: William Hua <william@attente.ca>
12 years agoUse Cocoa header for Cocoa test instead of Foundation.
William Hua [Wed, 18 Apr 2012 03:49:47 +0000 (23:49 -0400)]
Use Cocoa header for Cocoa test instead of Foundation.

12 years agogdbus-codegen: Don't leak stuff in tests
David Zeuthen [Tue, 17 Apr 2012 21:51:01 +0000 (17:51 -0400)]
gdbus-codegen: Don't leak stuff in tests

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoGDBusObjectProxy: Don't leak connection
David Zeuthen [Tue, 17 Apr 2012 21:50:40 +0000 (17:50 -0400)]
GDBusObjectProxy: Don't leak connection

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoGDBusObjectManagerClient: Don't leak object proxy when handling D-Bus signal
David Zeuthen [Tue, 17 Apr 2012 21:48:08 +0000 (17:48 -0400)]
GDBusObjectManagerClient: Don't leak object proxy when handling D-Bus signal

It's g_object_unref(), not g_object_ref(). Ugh.

Therefore, use g_clear_object().

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoUpdated POTFILES.in
Piotr Drąg [Tue, 17 Apr 2012 17:48:59 +0000 (19:48 +0200)]
Updated POTFILES.in

12 years agogio: use GPollable* to implement fallback read_async/write_async
Dan Winship [Sat, 4 Feb 2012 21:46:29 +0000 (16:46 -0500)]
gio: use GPollable* to implement fallback read_async/write_async

If a GInputStream does not provide a read_async() implementation, but
does implement GPollableInputStream, then instead of doing
read-synchronously-in-a-thread, just use
g_pollable_input_stream_read_nonblocking() and
g_pollable_input_stream_create_source() to implement an async read in
the same thread. Similarly for GOutputStream.

Remove a bunch of existing read_async()/write_async() implementations
that are basically equivalent to the new fallback method.

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

12 years agogio: implement GPollableInput/OutputStream in more stream types
Dan Winship [Mon, 6 Feb 2012 20:08:08 +0000 (15:08 -0500)]
gio: implement GPollableInput/OutputStream in more stream types

Implement GPollableInputStream in GMemoryInputStream and
GConverterInputStream, and likewise implement GPollableOutputStream in
the corresponding output streams.

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

12 years agogpollableutils: utility functions for pollable stream implementations
Dan Winship [Sat, 11 Feb 2012 22:22:49 +0000 (17:22 -0500)]
gpollableutils: utility functions for pollable stream implementations

Move g_pollable_source_new() here from gpollableinputstream.c, add
g_pollable_source_new_full(), and add some new methods to do either
blocking or nonblocking reads depending on a boolean argument.

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

12 years agogio: minor GPollableInputStream / GPollableOutputStream fixes
Dan Winship [Sun, 1 Apr 2012 18:47:19 +0000 (14:47 -0400)]
gio: minor GPollableInputStream / GPollableOutputStream fixes

Make g_pollable_input_stream_read() and
g_pollable_output_stream_write() look a little bit more like the
non-pollable versions in terms of error handling, etc. Also, use the
read_fn and write_fn virtual methods directly rather than calling
g_input_stream_read()/g_output_stream_write(), to avoid problems with
re-entrancy involving the "pending" flag.

Also belatedly add single-include guards to the header files.

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

12 years agoGConverterInputStream: fix an infinite loop when fill_buffer returns an error
Dan Winship [Tue, 17 Apr 2012 15:46:50 +0000 (11:46 -0400)]
GConverterInputStream: fix an infinite loop when fill_buffer returns an error

The loop was using a GConverterResult variable where it meant to use a
gssize, and since GConverterResult was ending up as an unsigned type,
this meant the (res < 0) check always failed.