platform/upstream/glib.git
11 years agoPlug a small memory leak
Matthias Clasen [Sun, 16 Jun 2013 13:28:59 +0000 (09:28 -0400)]
Plug a small memory leak

g_test_trap_assertions was leaking the process_id string.

11 years agotests/binding: Ensure that the binding goes away
Emmanuele Bassi [Fri, 3 May 2013 23:44:36 +0000 (16:44 -0700)]
tests/binding: Ensure that the binding goes away

Use weak pointers so that we can check that the GBinding instance goes
away when it should.

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

11 years agobinding: Use hash table as a set
Emmanuele Bassi [Thu, 16 May 2013 21:34:55 +0000 (22:34 +0100)]
binding: Use hash table as a set

11 years agobinding: Make unbind() release the reference on GBinding
Emmanuele Bassi [Thu, 16 May 2013 21:28:54 +0000 (22:28 +0100)]
binding: Make unbind() release the reference on GBinding

The automatic memory management of GBinding is not optimal for high
order languages with garbage collectors semantics. If we leave the
binding instance inert but still referenced it will be leaked, so one
solution that does not throw away the baby of C convenience with the
bathwater of language bindability is to have unbind() perform an
implicit unref().

Hopefully, C developers will read the documentation and especially the
note that says that after calling unbind() the reference count on the
GBinding instance is decreased.

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

11 years agodocs: Fix g_binding_unbind() in the API reference
Emmanuele Bassi [Fri, 3 May 2013 22:51:43 +0000 (15:51 -0700)]
docs: Fix g_binding_unbind() in the API reference

11 years agoUpdated Telugu Translations
Krishnababu Krothapalli [Tue, 11 Jun 2013 08:53:53 +0000 (14:23 +0530)]
Updated Telugu Translations

11 years agoupdated kn translations
Shankar Prasad [Tue, 11 Jun 2013 06:22:33 +0000 (11:52 +0530)]
updated kn translations

11 years agogmain: Document more use cases of g_main_context_wakeup()
Colin Walters [Mon, 10 Jun 2013 17:17:08 +0000 (13:17 -0400)]
gmain: Document more use cases of g_main_context_wakeup()

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

11 years agotests: Add a test for a specific invariant
Benjamin Otte [Sat, 8 Jun 2013 19:59:59 +0000 (21:59 +0200)]
tests: Add a test for a specific invariant

See the documentation in the test. The invariant is used by
gnome-test-runner.

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

11 years agoUpdated Czech translation
Marek Černocký [Mon, 10 Jun 2013 19:31:36 +0000 (21:31 +0200)]
Updated Czech translation

11 years agoUpdated Polish translation
Piotr Drąg [Mon, 10 Jun 2013 18:32:57 +0000 (20:32 +0200)]
Updated Polish translation

11 years agoGObject: turn add-property-after-init to a warning
Ryan Lortie [Mon, 10 Jun 2013 15:14:17 +0000 (11:14 -0400)]
GObject: turn add-property-after-init to a warning

We have turned up enough cases of this being done (including GTK API
allowing apps to do this to GtkSettings well after it has been
instantiated) that it is clear that we cannot really break this feature
while claiming to be backwards compatible.

For that reason, it becomes a warning rather than a critical (ie: it is
still well-defined behaviour, but you are discouraged from doing it).

The intention is to keep this feature for at least the next while.
A given GObjectClass will be able to avoid using GParamSpec pool for as
long as you don't install properties after init.  If you do that, you
will get a warning and we will devolve to using GParamSpecPool.

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

11 years agoAssamese translation updated
Nilamdyuti Goswami [Mon, 10 Jun 2013 09:28:13 +0000 (14:58 +0530)]
Assamese translation updated

11 years agoUpdated Galician translations
Fran Diéguez [Mon, 10 Jun 2013 08:31:01 +0000 (10:31 +0200)]
Updated Galician translations

11 years agogio/tests: sort tests in the Makefile.am
Ryan Lortie [Sat, 8 Jun 2013 21:01:56 +0000 (17:01 -0400)]
gio/tests: sort tests in the Makefile.am

...to make it clear where people should add theirs, reducing the chance
of conflicts caused by everyone always adding at the end.

11 years agoGDesktopAppInfo: support DBusActivatable
Ryan Lortie [Mon, 29 Apr 2013 20:37:55 +0000 (13:37 -0700)]
GDesktopAppInfo: support DBusActivatable

Support the sender-side of the freedesktop application specification for
cases that we find 'DBusActivatable=true' in the desktop file.

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

11 years agoUpdate link to documentation
Matthias Clasen [Thu, 6 Jun 2013 04:05:41 +0000 (00:05 -0400)]
Update link to documentation

11 years agotests: fix and re-add the broken test
Dan Winship [Thu, 6 Jun 2013 02:49:31 +0000 (23:49 -0300)]
tests: fix and re-add the broken test

11 years agoRemove a failing testcase
Matthias Clasen [Thu, 6 Jun 2013 01:50:52 +0000 (21:50 -0400)]
Remove a failing testcase

One of the recently added examples seems wrong. Drop it.

11 years agoGFileEnumerator: Add some documentation about ordering
Colin Walters [Wed, 5 Jun 2013 22:05:12 +0000 (18:05 -0400)]
GFileEnumerator: Add some documentation about ordering

Kind of a gratuitious gaping hole in the docs...

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

11 years agotests: add a few more invalid IPv6 address tests
Ryan Lortie [Wed, 5 Jun 2013 19:51:13 +0000 (15:51 -0400)]
tests: add a few more invalid IPv6 address tests

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

11 years agoginetaddress: fix addr/string conversions on windows
Dan Winship [Sun, 2 Jun 2013 21:32:21 +0000 (18:32 -0300)]
ginetaddress: fix addr/string conversions on windows

When parsing an address, we need to re-set "len" between IPv4 and
IPv6, since WSAStringToAddress() might set it to sizeof(struct sin_addr)
when trying to parse the string as IPv4, even if it fails. Also, we
need to make sure to not pass strings to WSAStringToAddress() that it
will accept but that we don't want it to.

When stringifying an address, we need to clear the sockaddr before
filling it in, so we don't accidentally end up with an unwanted
scope_id or the like.

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

11 years agoEnsure g_file_copy() does not temporarily expose private files
Colin Walters [Sun, 12 May 2013 06:28:01 +0000 (07:28 +0100)]
Ensure g_file_copy() does not temporarily expose private files

Previously, g_file_copy() would (on Unix) create files with the
default mode of 644.  For applications which might at user request
copy arbitrary private files such as ~/.ssh or /etc/shadow, a
world-readable copy would be temporarily exposed.

This patch is suboptimal in that it *only* fixes g_file_copy()
for the case where both source and destination are instances of
GLocalFile on Unix.

The reason for this is that the public GFile APIs for creating files
allow very limited control over the access permissions for the created
file; one can either say a file is "private" or not.  Fixing
this by adding e.g. g_file_create_with_attributes() would make sense,
except this would entail 8 new API calls for all the variants of
_create(), _create_async(), _replace(), _replace_async(),
_create_readwrite(), _create_readwrite_async(), _replace_readwrite(),
_replace_readwrite_async().  That can be done as a separate patch
later.

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

11 years agog_file_copy(): Clean up logic for info query
Colin Walters [Wed, 8 May 2013 23:01:59 +0000 (00:01 +0100)]
g_file_copy(): Clean up logic for info query

Previously, we called g_file_query_info() *again* on the source at the
very end of the copy.  This has the lame semantics that if the source
happened to be deleted, we would fail to apply attributes to the
destination.  This could even be a security flaw.

This commit changes things so that we query info from the source
*stream* after opening - i.e. on Unix we use the proper fstat() and
friends.  That way we operate more atomically.

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

11 years agoGApplication: implement fd.o application spec
Ryan Lortie [Mon, 29 Apr 2013 20:30:02 +0000 (13:30 -0700)]
GApplication: implement fd.o application spec

The freedesktop application specification is largely overlapping the
GLib application D-Bus interface but implementing it will allow for
applications to be launched directly from desktop files, which we want.

We keep the old Gtk interface for compatibility reasons and because it
has some functionality not in the freedesktop spec (Busy state,
CommandLine, etc.).

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

11 years agoGApplication: set prgname to appid for services
Ryan Lortie [Thu, 9 May 2013 13:30:38 +0000 (09:30 -0400)]
GApplication: set prgname to appid for services

Since services are based on D-Bus activation and desktop files are
supposed to be named like the busname for DBusActivatable applications
and since gnome-shell wants wmclass equal to the desktop file name, we
therefore want wmclass equal to the application ID in this case.

wmclass is determined from the prgname, which is otherwise pretty
pointless to set to some random thing in $(libexec) for a D-Bus service,
so set that to the appid.

This means that for D-Bus services, the following things are now all the
same:

 - application ID
 - prgname
 - wmclass property set on all windows
 - desktop file name
 - well-known bus name

There are not many applications running as D-Bus services at present so
this shouldn't impact anybody except for gnome-clocks (where this change
will be fixing a bug) and gnome-terminal.

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

11 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 5 Jun 2013 16:28:48 +0000 (18:28 +0200)]
Updated Spanish translation

11 years agoUpdated Odia Translation.
ManojKumar Giri [Wed, 5 Jun 2013 07:38:46 +0000 (13:08 +0530)]
Updated Odia Translation.

11 years agoUpdated Marathi Translations
Sandeep Sheshrao Shedmake [Wed, 5 Jun 2013 06:58:00 +0000 (12:28 +0530)]
Updated Marathi Translations

11 years agoUpdated Gujarati Translations
Sweta Kothari [Wed, 5 Jun 2013 05:18:55 +0000 (10:48 +0530)]
Updated Gujarati Translations

11 years agog_file_set_contents(): don't fsync on ext3/4
Ryan Lortie [Tue, 4 Jun 2013 13:48:12 +0000 (09:48 -0400)]
g_file_set_contents(): don't fsync on ext3/4

ext3 and ext4 (for quite some time) with default mount options don't
need fsync() to ensure safety of replace-by-rename.  Stop doing that for
these filesystems.

Note: this patch also impacts ext2, which is probably not safe, but I
don't know of any way to check ext2. vs the others because they all have
the same magic numbers (short of opening /proc/mount).

This patch assumes that if BTRFS_SUPER_MAGIC is defined then so will be
EXT3_SUPER_MAGIC.

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

11 years agogio/tests/inet-address: fix to work on OS X
Dan Winship [Sat, 25 May 2013 14:09:43 +0000 (11:09 -0300)]
gio/tests/inet-address: fix to work on OS X

OS X's getaddrinfo() only supports IPv6 scope IDs that are interface
names, not numbers. So use if_indextoname() to get the name of an
interface and construct an address using that.

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

11 years agog_file_set_contents: change {posix_ => }fallocate
Ryan Lortie [Tue, 4 Jun 2013 02:55:20 +0000 (22:55 -0400)]
g_file_set_contents: change {posix_ => }fallocate

Use fallocate() instead of posix_fallocate() so that we just fail
instead of getting the emulated version from the libc.

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

11 years agog_file_set_contents(): fix simple logic error
Ryan Lortie [Mon, 3 Jun 2013 21:59:29 +0000 (17:59 -0400)]
g_file_set_contents(): fix simple logic error

CI FTW.

11 years agog_file_set_contents(): use unistd instead of stdio
Ryan Lortie [Mon, 3 Jun 2013 21:49:06 +0000 (17:49 -0400)]
g_file_set_contents(): use unistd instead of stdio

Use a normal write() system call instead of fdopen() and fwrite().

This will definitely work on UNIX system and should work on Windows as
well...

As an added bonus, we can use g_close() now as well.

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

11 years agog_file_set_contents(): don't allocate display name
Ryan Lortie [Mon, 3 Jun 2013 20:16:25 +0000 (16:16 -0400)]
g_file_set_contents(): don't allocate display name

g_file_set_contents() sets a GError in the event of various failures
that count occur.  It uses g_filename_display_name() in order to get the
filename to include in the messages.

Factor out the error handling to make it easier to allocate the display
name only when we need it (instead of allocating it every time).

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

11 years agog_file_set_contents(): use posix_fallocate()
Ryan Lortie [Mon, 3 Jun 2013 19:43:01 +0000 (15:43 -0400)]
g_file_set_contents(): use posix_fallocate()

Extents-based filesystems like knowing in advance how much data will be
written to a file in order to prevent fragmentation.  If we have it, use
posix_fallocate() before writing data in g_file_set_contents().

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

11 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 3 Jun 2013 19:37:49 +0000 (21:37 +0200)]
Updated Slovenian translation

11 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 3 Jun 2013 09:27:44 +0000 (11:27 +0200)]
Updated Spanish translation

11 years agoUpdated Odia Translation.
ManojKumar Giri [Mon, 3 Jun 2013 08:18:33 +0000 (13:48 +0530)]
Updated Odia Translation.

11 years agoUpdated Gujarati Translations
Sweta Kothari [Mon, 3 Jun 2013 08:00:48 +0000 (13:30 +0530)]
Updated Gujarati Translations

11 years agoRemove extra comma in gtestutils.h
Kjell Ahlstedt [Sun, 2 Jun 2013 18:21:33 +0000 (20:21 +0200)]
Remove extra comma in gtestutils.h

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

11 years agoImprove GSettings test coverage
Matthias Clasen [Mon, 3 Jun 2013 00:00:21 +0000 (20:00 -0400)]
Improve GSettings test coverage

11 years agoAdd a directory monitoring test
Matthias Clasen [Sun, 2 Jun 2013 23:59:48 +0000 (19:59 -0400)]
Add a directory monitoring test

11 years agoRemove some unused inotify code
Matthias Clasen [Sun, 2 Jun 2013 18:37:19 +0000 (14:37 -0400)]
Remove some unused inotify code

11 years agotests: Remove a leftover debug printf
Ryan Lortie [Sun, 2 Jun 2013 13:53:06 +0000 (09:53 -0400)]
tests: Remove a leftover debug printf

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

11 years agoImprove unix stream test coverage
Matthias Clasen [Sun, 2 Jun 2013 05:47:19 +0000 (01:47 -0400)]
Improve unix stream test coverage

11 years agoImprove GAppInfo test coverage
Matthias Clasen [Sun, 2 Jun 2013 05:46:21 +0000 (01:46 -0400)]
Improve GAppInfo test coverage

11 years agoImprove GMemoryInputStream test coverage
Matthias Clasen [Sun, 2 Jun 2013 05:44:49 +0000 (01:44 -0400)]
Improve GMemoryInputStream test coverage

11 years agoImprove GMenuModel test coverage
Matthias Clasen [Sun, 2 Jun 2013 05:44:15 +0000 (01:44 -0400)]
Improve GMenuModel test coverage

11 years agoImprove GFileAttributeMatcher test coverage
Matthias Clasen [Sun, 2 Jun 2013 05:43:13 +0000 (01:43 -0400)]
Improve GFileAttributeMatcher test coverage

11 years agoImprove GIcon test coverage
Matthias Clasen [Sun, 2 Jun 2013 05:42:28 +0000 (01:42 -0400)]
Improve GIcon test coverage

11 years agoImprove test coverage for GZipCompressor
Matthias Clasen [Sun, 2 Jun 2013 05:41:50 +0000 (01:41 -0400)]
Improve test coverage for GZipCompressor

11 years agoImprove test coverage for GBufferedOutputStream
Matthias Clasen [Sun, 2 Jun 2013 05:41:09 +0000 (01:41 -0400)]
Improve test coverage for GBufferedOutputStream

11 years agoTrivial formatting fix
Matthias Clasen [Sun, 2 Jun 2013 05:40:39 +0000 (01:40 -0400)]
Trivial formatting fix

11 years agoSkip spawn tests when collecting coverage
Matthias Clasen [Sat, 1 Jun 2013 22:54:57 +0000 (18:54 -0400)]
Skip spawn tests when collecting coverage

These tests break gcov's data collection, so don't link them
against -lgov. See bug 682133.

11 years agoImprove test coverage a bit
Matthias Clasen [Sat, 1 Jun 2013 04:36:16 +0000 (00:36 -0400)]
Improve test coverage a bit

11 years agomem-overflow: test malloc and realloc corner cases
Matthias Clasen [Sat, 1 Jun 2013 04:35:39 +0000 (00:35 -0400)]
mem-overflow: test malloc and realloc corner cases

11 years agoUpdated Galician translations
Fran Diéguez [Sat, 1 Jun 2013 22:25:33 +0000 (00:25 +0200)]
Updated Galician translations

11 years agoFix failure to build exit-on-close gdbus test
Ryan Lortie [Sat, 1 Jun 2013 15:38:10 +0000 (11:38 -0400)]
Fix failure to build exit-on-close gdbus test

In the case that HAVE_DBUS_DAEMON was undefined (as in ostree where glib
is built before D-Bus) this test was failing.  Move it inside the
HAVE_DBUS_DAEMON block.

11 years agoglib.mk: Rework win32 test support
Ryan Lortie [Sat, 1 Jun 2013 14:07:33 +0000 (10:07 -0400)]
glib.mk: Rework win32 test support

Newer versions of automake (~1.13.1) seem to generate some new rules for
testcases that get tripped up on our use of $(addsuffix) and $(strip) so
take those out of the definition of TESTS on win32.

11 years agoChange a pair of TESTS = to TEST +=
Ryan Lortie [Sat, 1 Jun 2013 13:55:13 +0000 (09:55 -0400)]
Change a pair of TESTS = to TEST +=

11 years agoGSettings tests: reverse installed test complexity
Ryan Lortie [Sat, 1 Jun 2013 02:33:22 +0000 (22:33 -0400)]
GSettings tests: reverse installed test complexity

Remove the complications that were introduced in an attempt to make the
gsettings and gschema-compile tests function as installed tests.  These
tests are designed (in large part for gsettings and entirely for
gschema-compile) to test the in-tree tools and should not be testing the
system versions.

In the future we may want to move the use of the in-tree tools from the
gsettings testcase into the Makefile and install the resulting files,
allowing this testcase to run against those files, installed.

11 years agoRework the build system for a new tests approach
Ryan Lortie [Thu, 30 May 2013 04:07:32 +0000 (00:07 -0400)]
Rework the build system for a new tests approach

Perform a substantial cleanup of the build system with respect to
building and installing testcases.

First, Makefile.decl has been renamed glib.mk and substantially
expanded.  We intend to add more stuff here in the future, like canned
rules for mkenums, marshallers, resources, etc.

By default, tests are no longer compiled as part of 'make'.  They will
be built when 'make check' is run.  The old behaviour can be obtained
with --enable-always-build-tests.

--disable-modular-tests is gone (because tests are no longer built by
default).  There is no longer any way to cause 'make check' to be a
no-op, but that's not very useful anyway.

A new glibtests.m4 file is introduced.  Along with glib.mk, this
provides for consistent handling of --enable-installed-tests and
--enable-always-build-tests (mentioned above).

Port our various test-installing Makefiles to the new framework.

This patch substantially improves the situation in the toplevel tests/
directory.  Things are now somewhat under control there.  There were
some tests being built that weren't even being run and we run those now.
The long-running GObject performance tests in this directory have been
removed from 'make check' because they take too long.

As an experiment, 'make check' now runs the testcases on win32 builds,
by default.  We can't run them under gtester (since it uses a pipe to
communicate with the subprocess) so just toss them in TESTS.  Most of
them are passing on win32.

Things are not quite done here, but this patch is already a substantial
improvement.  More to come.

11 years agoRemove a bunch of lingering g_thread_init()
Ryan Lortie [Thu, 30 May 2013 04:04:05 +0000 (00:04 -0400)]
Remove a bunch of lingering g_thread_init()

After this patch, there is but one remaining use of g_thread_init(),
which is in tests/slice-threadinit.c, a testcase dedicated to testing
the functionality of gslice across a g_thread_init() boundary.

This testcase is pretty meaningless these days... probably we should
delete it.

11 years agoSome final g_test_build_filename() porting
Ryan Lortie [Thu, 30 May 2013 03:49:30 +0000 (23:49 -0400)]
Some final g_test_build_filename() porting

This should be the last users that need to be ported.

For some of the oldschool non-gtester-ified tests, we call g_test_init()
from main() because it is necessary in order to use
g_test_build_filename().

11 years agoMove a pair of gobject tests to tests/gobject/
Ryan Lortie [Thu, 30 May 2013 03:43:26 +0000 (23:43 -0400)]
Move a pair of gobject tests to tests/gobject/

testgobject.c and timeloop-closure.c are the only two tests in the
toplevel tests/ directory that depend on gobject, so move them to
tests/gobject/ along with the other gobject tests.

Both of these were in noinst_PROGRAMS and not TESTS, so keep them that
way when we move them.

11 years agoSplit off the gdbus-overflow test
Matthias Clasen [Sat, 1 Jun 2013 01:24:21 +0000 (21:24 -0400)]
Split off the gdbus-overflow test

It is unrealiable under load, and frequently fails in the
ostree tests. See https://bugzilla.gnome.org/show_bug.cgi?id=701105

11 years agoFix a typo
Matthias Clasen [Fri, 31 May 2013 21:23:29 +0000 (17:23 -0400)]
Fix a typo

11 years agoBump version.
Ryan Lortie [Thu, 30 May 2013 17:50:17 +0000 (13:50 -0400)]
Bump version.

11 years agoFix property example in gobject tutorial
William Jon McCann [Tue, 29 Jan 2013 23:46:43 +0000 (00:46 +0100)]
Fix property example in gobject tutorial

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

11 years agoRemove org.gtk.test.gschema
Ryan Lortie [Thu, 30 May 2013 03:30:46 +0000 (23:30 -0400)]
Remove org.gtk.test.gschema

This is the old non-xml schema file format that we were playing around
with at one time.  Nothing is using this file anymore.

11 years agoicon deserialisation: fix uninitialised variable
Ryan Lortie [Thu, 30 May 2013 01:49:53 +0000 (21:49 -0400)]
icon deserialisation: fix uninitialised variable

Deserialising an emblemed icon would make uninitialised use of a
variable in the error case.  Fix that.

11 years agodocs/: ignore gtester Makefile targets
Ryan Lortie [Thu, 30 May 2013 01:33:04 +0000 (21:33 -0400)]
docs/: ignore gtester Makefile targets

Mark 'test', 'test-report', 'perf-report' and 'full-report' as PHONY in
docs/Makefile.am to prevent recursion of gtester into the documentation
subdirectories.  Stop including Makefile.decl from these directories
since it is no longer necessary.

This will clear up the warnings about EXTRA_DIST being defined once in
gtk-doc.make and again in Makefile.decl.

11 years agoGObject: prevent installing properties after init
Ryan Lortie [Mon, 22 Apr 2013 21:37:18 +0000 (17:37 -0400)]
GObject: prevent installing properties after init

GObject has previously allowed installing properties after class_init
has finished running.  This means that you could install some of your
own properties on G_TYPE_OBJECT, for example, although they wouldn't
have worked properly.

A previous patch asserted that this was not true and we had to revert it
because it broke the shell.  Instead of reverting, we should have used a
critical, so do that now.

Complaints go to this bug:

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

11 years agoRename G_TEST_DISTED to G_TEST_DIST
Ryan Lortie [Wed, 29 May 2013 12:49:16 +0000 (08:49 -0400)]
Rename G_TEST_DISTED to G_TEST_DIST

Since this feature is so utterly automake-centric, we may as well be
using the same terminology as automake itself (ie: although it's
BUILT_SOURCES, it's DIST_EXTRA, not DISTED).

Also add some comments to the enum explaining that these terms are
really corresponding directly to the automake terms.

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

11 years agoRemove G_TEST_DATA= from installed .test files
Ryan Lortie [Tue, 28 May 2013 21:48:06 +0000 (17:48 -0400)]
Remove G_TEST_DATA= from installed .test files

This is no longer needed with the new test data file finding stuff.

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

11 years agoTest data file API: port two more testcases
Ryan Lortie [Tue, 28 May 2013 22:03:17 +0000 (18:03 -0400)]
Test data file API: port two more testcases

These ones were slightly non-trivial so they didn't get included in the
previous patches.  Port them now.

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

11 years agotests: move tests to new _get_filename() API
Ryan Lortie [Tue, 28 May 2013 18:24:47 +0000 (14:24 -0400)]
tests: move tests to new _get_filename() API

This API was introduced to save a few lines of code here and there, so
let's start by removing a bunch from our own tests.

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

11 years agogtest: Add more path building API
Ryan Lortie [Tue, 28 May 2013 17:22:59 +0000 (13:22 -0400)]
gtest: Add more path building API

Add a pair of functions for returning strings that don't need to be
freed.  This is a bit of a hack but it will turn the 99% case of using
these functions from:

  gchar *tmp;
  tmp = g_test_build_filename (...);
  fd = open (tmp, ...);
  g_free (tmp);

to:

  fd = open (g_test_get_filename (...), ...);

which is a pretty substantial win.

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

11 years agotests: use new g_test_build_filename() API
Ryan Lortie [Tue, 28 May 2013 16:48:37 +0000 (12:48 -0400)]
tests: use new g_test_build_filename() API

Port most of the tests to the new g_test_build_filename() API.

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

11 years agoAdd g_test_build_filename()
Ryan Lortie [Tue, 28 May 2013 16:44:41 +0000 (12:44 -0400)]
Add g_test_build_filename()

This function allows testcases to find data files in various situations
of srcdir == builddir, srcdir != builddir and for installed tests.

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

11 years agoTrivial doc typo fix
Matthias Clasen [Wed, 29 May 2013 02:23:58 +0000 (22:23 -0400)]
Trivial doc typo fix

11 years agoTrivial documentation typos
Matthias Clasen [Wed, 29 May 2013 04:07:26 +0000 (00:07 -0400)]
Trivial documentation typos

11 years agoWork with ltp 1.10
Matthias Clasen [Wed, 29 May 2013 04:14:55 +0000 (00:14 -0400)]
Work with ltp 1.10

11 years agoImprove gtype test coverage
Matthias Clasen [Wed, 29 May 2013 12:34:24 +0000 (08:34 -0400)]
Improve gtype test coverage

11 years agoImprove signal test coverage
Matthias Clasen [Wed, 29 May 2013 12:33:55 +0000 (08:33 -0400)]
Improve signal test coverage

11 years agoImprove test coverage in gobject/
Matthias Clasen [Wed, 29 May 2013 04:15:55 +0000 (00:15 -0400)]
Improve test coverage in gobject/

Lines:          6631    8862    74.8 %
Functions:      747     893     83.7 %

11 years agoGIcon: NULLify the `type' out param in the sync methods too
Emanuele Aina [Mon, 20 May 2013 14:53:40 +0000 (15:53 +0100)]
GIcon: NULLify the `type' out param in the sync methods too

Both g_[file|bytes]_icon_load() leave the `type' out parameter
untouched, while the async methods g_[file|bytes]_icon_load_finish()
always set it to NULL.

For consistency's sake NULLify it in the sync methods too.

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

11 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 28 May 2013 20:26:50 +0000 (22:26 +0200)]
Updated Slovenian translation

11 years agoupdated kn translations
Shankar Prasad [Tue, 28 May 2013 12:58:09 +0000 (18:28 +0530)]
updated kn translations

11 years agoUpdate Visual Studio Project Sheets
Chun-wei Fan [Tue, 28 May 2013 04:55:56 +0000 (12:55 +0800)]
Update Visual Studio Project Sheets

"Install" the newly-introduced gio/gbytesicon.h...

11 years agoGLib 2.37.1 2.37.1
Ryan Lortie [Mon, 27 May 2013 21:34:21 +0000 (17:34 -0400)]
GLib 2.37.1

11 years agoMore test fixes for builddir != srcdir
Matthias Clasen [Tue, 28 May 2013 02:05:19 +0000 (22:05 -0400)]
More test fixes for builddir != srcdir

11 years agoFix make check with builddir != srcdir
Matthias Clasen [Tue, 28 May 2013 01:20:10 +0000 (21:20 -0400)]
Fix make check with builddir != srcdir

This broke when the tests were converted to be installable.
My apologies.

11 years agogio/tests: Make gdbus-proxy-well-known-name handle srcdir != builddir
Colin Walters [Mon, 27 May 2013 23:30:31 +0000 (19:30 -0400)]
gio/tests: Make gdbus-proxy-well-known-name handle srcdir != builddir

11 years agoFix yet more test regressions...
Ryan Lortie [Mon, 27 May 2013 22:34:33 +0000 (18:34 -0400)]
Fix yet more test regressions...

11 years agoOne more broken test....
Ryan Lortie [Mon, 27 May 2013 22:30:53 +0000 (18:30 -0400)]
One more broken test....

11 years agoMore srcdir != destdir tests fallout
Ryan Lortie [Mon, 27 May 2013 22:27:14 +0000 (18:27 -0400)]
More srcdir != destdir tests fallout

11 years agotests: fix a srcdir vs. destdir issue
Ryan Lortie [Mon, 27 May 2013 22:05:09 +0000 (18:05 -0400)]
tests: fix a srcdir vs. destdir issue

The target file is a script, so it'll always be in SRCDIR for the uninstalled
case.  Just look there and avoid the libtool trickery.