platform/upstream/glib.git
12 years agogappinfo: Fix uninitialized-variable gcc warning
Colin Walters [Sat, 26 May 2012 15:53:14 +0000 (11:53 -0400)]
gappinfo: Fix uninitialized-variable gcc warning

12 years agoAnnotate API introduced for 2.34 with GLIB_AVAILABLE_IN_2_34
Colin Walters [Fri, 25 May 2012 13:22:06 +0000 (09:22 -0400)]
Annotate API introduced for 2.34 with GLIB_AVAILABLE_IN_2_34

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

12 years agoAnnotate API introduced for 2.32 with GLIB_AVAILABLE_IN_2_32
Colin Walters [Fri, 25 May 2012 12:59:09 +0000 (08:59 -0400)]
Annotate API introduced for 2.32 with GLIB_AVAILABLE_IN_2_32

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

12 years agoAnnotate API introduced for 2.30 with GLIB_AVAILABLE_IN_2_30
Colin Walters [Fri, 25 May 2012 12:42:50 +0000 (08:42 -0400)]
Annotate API introduced for 2.30 with GLIB_AVAILABLE_IN_2_30

I didn't do this comprehensively, since there's a lot of it, mainly
due to the GDBus object manager stuff, but anyone trying to use
that would fail fast due to lack of the gdbus code generator.

My main goal was to get API additions to existing classes like
g_data_input_stream_read_line_utf8(), as well as the lower level new
API like glib-unix.h.

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

12 years agogio: fix symbol name
Marc-Antoine Perennou [Sat, 26 May 2012 08:34:53 +0000 (10:34 +0200)]
gio: fix symbol name

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
12 years agogio: add GBytes-based input/output stream methods
Dan Winship [Thu, 5 Apr 2012 13:19:17 +0000 (09:19 -0400)]
gio: add GBytes-based input/output stream methods

Using a caller-supplied buffer for g_input_stream_read() doesn't
translate well to the semantics of many other languages, and using a
non-refcounted buffer for read_async() and write_async() makes it
impossible to manage the memory correctly currently in
garbage-collected languages.

Fix both of these issues by adding a new set of methods that work with
GBytes objects rather than plain buffers.

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

12 years agoRevert "application: Don't print a critical warning here"
Christian Persch [Thu, 24 May 2012 15:51:35 +0000 (17:51 +0200)]
Revert "application: Don't print a critical warning here"

This reverts commit 1541478bac6fed26bcb77ebae5e50bb7a76954f7.

12 years agoapplication: Save a few bytes in the library
Christian Persch [Sat, 5 May 2012 15:29:44 +0000 (17:29 +0200)]
application: Save a few bytes in the library

There's really no need to put useless whitespace into the .so.

12 years agoapplication: Don't print a critical warning here
Christian Persch [Sat, 5 May 2012 15:26:34 +0000 (17:26 +0200)]
application: Don't print a critical warning here

It's a runtime error, not a programming error.

12 years agoglib: fix build
Marc-Antoine Perennou [Tue, 22 May 2012 18:38:52 +0000 (20:38 +0200)]
glib: fix build

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
12 years agogspawn: Add GSpawnFlag to use the PATH from envp
Christian Persch [Sat, 19 May 2012 22:01:35 +0000 (00:01 +0200)]
gspawn: Add GSpawnFlag to use the PATH from envp

Add a G_SPAWN_SEARCH_PATH_FROM_ENVP flag to GSpawnFlags so that
g_spawn_async() etc use the PATH variable from the passed-in child
environment to search for the executable.
If both this flag and the G_SPAWN_SEARCH_PATH flag are set, the
child environment is searched first and only falls back to the
PATH from the process environment if it is unset.

Bug #676398.

12 years agoenviron: Allow NULL envp
Christian Persch [Sat, 19 May 2012 21:59:01 +0000 (23:59 +0200)]
environ: Allow NULL envp

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

12 years agoGMemoryOutputStream: Add API to return data as a GBytes
Colin Walters [Fri, 18 May 2012 14:39:05 +0000 (10:39 -0400)]
GMemoryOutputStream: Add API to return data as a GBytes

Matches the corresponding additions to GMemoryInputStream.

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

12 years agoGMemoryInputStream: Add API to accept GBytes
Colin Walters [Thu, 17 May 2012 18:36:15 +0000 (14:36 -0400)]
GMemoryInputStream: Add API to accept GBytes

And s/Chunk/GBytes/ internally.  GBytes is really a perfect match for
GMemoryInputStream.

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

12 years agogio: The tmpl parameter to g_file_new_tmp can be NULL
Debarshi Ray [Thu, 17 May 2012 04:43:54 +0000 (06:43 +0200)]
gio: The tmpl parameter to g_file_new_tmp can be NULL

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

12 years agog_utf8_validate: @str shouldn't end up annotated as utf8
Dan Winship [Wed, 21 Mar 2012 13:22:38 +0000 (09:22 -0400)]
g_utf8_validate: @str shouldn't end up annotated as utf8

In order for this function to have any point, it has to be possible to
pass non-UTF-8 data to it, so annotate @str as being array-of-guint8
instead of utf8.

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

12 years agoproxy-test: work even when the upstream DNS lies
Dan Winship [Fri, 18 May 2012 16:18:23 +0000 (12:18 -0400)]
proxy-test: work even when the upstream DNS lies

Rather than depending on the host's DNS configuration to properly
return an error for a non-existent hostname, just substitute in
a dummy GResolver implementation that does it for us.

12 years agog_app_info_launch_default_for_uri: don't use GFile if we don't have to
Dan Winship [Fri, 18 May 2012 12:49:05 +0000 (08:49 -0400)]
g_app_info_launch_default_for_uri: don't use GFile if we don't have to

GFile doesn't handle some "real" URIs, so check if there's a default
handler for the URI scheme first, and only use g_file_new_for_uri()
and g_file_query_default_handler() if not. Eg, this fixes the case of
opening http URIs with "%2F" in the path.

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

12 years agoDocument that g_app_info_create_from_commandline() does unquoting according to fd.o
Holger Berndt [Thu, 17 May 2012 20:24:10 +0000 (22:24 +0200)]
Document that g_app_info_create_from_commandline() does unquoting according to fd.o

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

12 years agognetworkmonitornetlink: don't leak the list of networks
Dan Winship [Thu, 17 May 2012 17:48:21 +0000 (13:48 -0400)]
gnetworkmonitornetlink: don't leak the list of networks

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

12 years agog_clear_pointer: work around gcc helpfulness
Dan Winship [Thu, 10 May 2012 17:29:39 +0000 (13:29 -0400)]
g_clear_pointer: work around gcc helpfulness

gcc gets upset when we do "((GDestroyNotify) destroy) (_p)" because
it's non-portable. But we don't care; we already know glib wouldn't
work on any platform where different pointer types have different
calling conventions. So tweak the code to avoid the warning.

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

12 years agogsettings: add reset-recursively to bash completion
Matthias Clasen [Thu, 17 May 2012 04:44:36 +0000 (00:44 -0400)]
gsettings: add reset-recursively to bash completion

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

12 years agoImprove libelf configure check
Matthias Clasen [Thu, 17 May 2012 04:41:33 +0000 (00:41 -0400)]
Improve libelf configure check

system libelf is not sufficient for glib (lacks elf_getshdrstrndx and
elf_getshdrnum) so let's make sure we don't define HAVE_LIBELF

12 years agoglib: fix memory leaks in gutils, protocol, and strfuncs tests
Ravi Sankar Guntur [Mon, 19 Mar 2012 15:47:32 +0000 (21:17 +0530)]
glib: fix memory leaks in gutils, protocol, and strfuncs tests

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

Signed-off-by: Ravi Sankar Guntur <ravi.g@samsung.com>
12 years agoupdate .gitignore
Dan Winship [Wed, 16 May 2012 16:00:44 +0000 (12:00 -0400)]
update .gitignore

12 years agoGAppInfo: add a mechanism to query supported content types
Giovanni Campagna [Sat, 14 Apr 2012 17:34:00 +0000 (19:34 +0200)]
GAppInfo: add a mechanism to query supported content types

This essentially adds an accessor for the MimeType field in desktop files,
to retrieve the list of all mime types supported by an application.
The interface though is part of GAppInfo, so it could be implemented
in the future by other backends.

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

12 years agoAdd g_type_ensure() and use it rather than playing games with volatile
Dan Winship [Sun, 3 Jan 2010 19:47:56 +0000 (14:47 -0500)]
Add g_type_ensure() and use it rather than playing games with volatile

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

12 years agogfile: add g_return_if_fail to g_file_make_directory_with_parents()
Paolo Borelli [Tue, 15 May 2012 15:38:44 +0000 (17:38 +0200)]
gfile: add g_return_if_fail to g_file_make_directory_with_parents()

12 years agogfile: Plug memory leak in g_file_make_directory_with_parents()
Colin Walters [Fri, 4 May 2012 14:03:12 +0000 (10:03 -0400)]
gfile: Plug memory leak in g_file_make_directory_with_parents()

The logic here is pretty twisted, but basically we were leaking a ref
for each non-existent parent.  The clearest way to fix this was to
move to more explicit refcounting logic; when a variable is pointing
to an object, it holds a ref.

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

12 years agoCover some malloc corner cases in tests
Matthias Clasen [Mon, 14 May 2012 20:18:26 +0000 (16:18 -0400)]
Cover some malloc corner cases in tests

12 years agoAdd a test for g_clear_pointer
Matthias Clasen [Sun, 13 May 2012 05:52:37 +0000 (01:52 -0400)]
Add a test for g_clear_pointer

12 years ago[l10n] Update Japanese translation
Jiro Matsuzawa [Sun, 13 May 2012 10:22:24 +0000 (19:22 +0900)]
[l10n] Update Japanese translation

12 years agoUse non-deprecated api in tests
Matthias Clasen [Sun, 13 May 2012 04:46:39 +0000 (00:46 -0400)]
Use non-deprecated api in tests

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

12 years agogkeyfile: Fix annotations for g_key_file_load_from_data
Jasper St. Pierre [Wed, 2 May 2012 16:53:27 +0000 (12:53 -0400)]
gkeyfile: Fix annotations for g_key_file_load_from_data

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

12 years agodocs: reference g_menu_item_new in gmenu convenience menuitem API
Lars Uebernickel [Thu, 10 May 2012 16:35:03 +0000 (09:35 -0700)]
docs: reference g_menu_item_new in gmenu convenience menuitem API

12 years ago[l10n] Updated German translation
Christian Kirbach [Tue, 8 May 2012 17:16:14 +0000 (19:16 +0200)]
[l10n] Updated German translation

12 years agoSet GLIB_VERSION_MAX_ALLOWED to GLIB_VERSION_CUR_STABLE by default
Xavier Claessens [Tue, 8 May 2012 14:49:53 +0000 (16:49 +0200)]
Set GLIB_VERSION_MAX_ALLOWED to GLIB_VERSION_CUR_STABLE by default

12 years agoversion macros: Make MIN_REQUIRED the current stable version
Emmanuele Bassi [Tue, 8 May 2012 14:12:42 +0000 (15:12 +0100)]
version macros: Make MIN_REQUIRED the current stable version

So that deprecation warnings will come into effect starting from the
stable release, instead of the next.

12 years ago[l10n] Update Japanese translation
Jiro Matsuzawa [Tue, 8 May 2012 11:24:53 +0000 (20:24 +0900)]
[l10n] Update Japanese translation

12 years agoconfigure.ac: more AS_IF
Michael Olbrich [Mon, 7 May 2012 08:33:44 +0000 (10:33 +0200)]
configure.ac: more AS_IF

It looks like JH_CHECK_XML_CATALOG has some prerequisite as well

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

12 years agoconfigure: Use AS_IF almost everywhere
Colin Walters [Thu, 3 May 2012 19:18:11 +0000 (15:18 -0400)]
configure: Use AS_IF almost everywhere

Not doing so is an evil trap, sadly.  This patch has been
compile-checked on Fedora 16, and I've verified that the generated
config.status and config.h is exactly the same.

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

12 years agoconfigure.ac: use AS_IF
Michael Olbrich [Thu, 3 May 2012 06:44:12 +0000 (08:44 +0200)]
configure.ac: use AS_IF

This way any prerequisites for e.g. AC_CHECK_HEADER are always executed
before the 'if'.

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

12 years agoUpdated Russian translation
Yuri Kozlov [Sun, 6 May 2012 07:35:01 +0000 (11:35 +0400)]
Updated Russian translation

12 years agodocs: Fix typo in G_DEFINE_DYNAMIC_TYPE_EXTENDED example.
Krzesimir Nowak [Thu, 3 May 2012 13:00:14 +0000 (15:00 +0200)]
docs: Fix typo in G_DEFINE_DYNAMIC_TYPE_EXTENDED example.

12 years agoUpdated Czech translation
Marek Černocký [Fri, 4 May 2012 07:30:06 +0000 (09:30 +0200)]
Updated Czech translation

12 years agoapplication: Clarification about 'primary instance'
Christian Persch [Wed, 2 May 2012 18:14:52 +0000 (20:14 +0200)]
application: Clarification about 'primary instance'

For non-unique applications, the 'primary instance' is the current
instance.

12 years agoUpdated Greek translation
Dimitris Spingos [Wed, 2 May 2012 09:00:03 +0000 (12:00 +0300)]
Updated Greek translation

12 years agoFix GIO/GObject Visual C++ projects
Chun-wei Fan [Wed, 2 May 2012 03:10:23 +0000 (11:10 +0800)]
Fix GIO/GObject Visual C++ projects

-Make up for the missed DLL_EXPORT-it's actually needed for all GLib DLL
 builds, omitting this caused problems to surface due to recent works to
 make GDBus work on Windows.
-Also use the FFI_BULIDING macro for GObject builds as the suggessted
 workaround for using static LibFFI builds (as we do now)-please see
 ffi.h(.in). This will fix the build of GObject against LibFFI 3.0.11,
 but it is probable that this will change at some point for LibFFI.

12 years agoGLib 2.33.1 2.33.1
Ryan Lortie [Tue, 1 May 2012 16:57:00 +0000 (12:57 -0400)]
GLib 2.33.1

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