platform/upstream/glib.git
11 years agoRemove a failing test
Matthias Clasen [Sat, 29 Dec 2012 05:03:09 +0000 (00:03 -0500)]
Remove a failing test

Since we stripped g_credentials_set_pid(), the test for
g_credentials_get_pid() can't succeed anymore, so remove it.

11 years agoAdding test coverage for GTestDBus activating in-tree services.
Tristan Van Berkom [Thu, 20 Dec 2012 06:34:22 +0000 (15:34 +0900)]
Adding test coverage for GTestDBus activating in-tree services.

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

11 years agoMove single-include guards inside include guards
Matthias Clasen [Fri, 28 Dec 2012 04:43:14 +0000 (23:43 -0500)]
Move single-include guards inside include guards

gcc has optimizations for include guards that only work
if they are outermost in the the header.
https://bugzilla.gnome.org/show_bug.cgi?id=689810

11 years agoAdd g_application_command_line_get_stdin()
Ryan Lortie [Wed, 18 Jan 2012 19:37:37 +0000 (14:37 -0500)]
Add g_application_command_line_get_stdin()

This returns a GInputStream corresponding to the stdin on the
commandline that caused this invocation.

The local case works on both UNIX (GUnixInputStream on stdin) and
Windows (GWin32InputStream on GetStdHandle(STD_INPUT_HANDLE)).  The
remote case works only on UNIX (by fd passing over D-Bus).

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

11 years ago[l10n] Updated Estonian translation
Mattias Põldaru [Thu, 27 Dec 2012 14:37:24 +0000 (16:37 +0200)]
[l10n] Updated Estonian translation

11 years agoUpdated Galician translations
Fran Diéguez [Mon, 24 Dec 2012 21:53:03 +0000 (22:53 +0100)]
Updated Galician translations

11 years agoUpdated Greek translation
Dimitris Spingos [Mon, 24 Dec 2012 15:23:17 +0000 (17:23 +0200)]
Updated Greek translation

11 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Sun, 23 Dec 2012 16:38:45 +0000 (17:38 +0100)]
Updated Norwegian bokmål translation

11 years agoUpdated Slovak translation
Peter Mráz [Sun, 23 Dec 2012 13:32:58 +0000 (14:32 +0100)]
Updated Slovak translation

11 years agoUpdated Polish translation
Piotr Drąg [Sun, 23 Dec 2012 03:28:23 +0000 (04:28 +0100)]
Updated Polish translation

11 years agoUpdated Hebrew translation.
Yaron Shahrabani [Thu, 20 Dec 2012 12:24:17 +0000 (14:24 +0200)]
Updated Hebrew translation.

11 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 20 Dec 2012 10:08:39 +0000 (11:08 +0100)]
Updated Spanish translation

11 years agoAssamese translation updated
Nilamdyuti Goswami [Thu, 20 Dec 2012 08:18:11 +0000 (13:48 +0530)]
Assamese translation updated

11 years agoRevert "gtestutils: add g_test_trap_subprocess(), deprecate g_test_trap_fork()"
Matthias Clasen [Wed, 19 Dec 2012 20:20:45 +0000 (15:20 -0500)]
Revert "gtestutils: add g_test_trap_subprocess(), deprecate g_test_trap_fork()"

This reverts commit e3a29184d56b3a65664eb8859e61afbc804497c8.

11 years agoRevert "tests: port from g_test_trap_subprocess() to g_test_trap_fork()"
Matthias Clasen [Wed, 19 Dec 2012 20:20:37 +0000 (15:20 -0500)]
Revert "tests: port from g_test_trap_subprocess() to g_test_trap_fork()"

This reverts commit ea06ec80634ff8f22882f3bc92effb10ac294e41.

11 years agoRevert "gtestutils: fix "-p" logic"
Matthias Clasen [Wed, 19 Dec 2012 20:20:31 +0000 (15:20 -0500)]
Revert "gtestutils: fix "-p" logic"

This reverts commit 723a8f55880f1e7bf1b475901ce40e6cd443b72d.

11 years agoRevert "tests/option-context: fix under --verbose"
Matthias Clasen [Wed, 19 Dec 2012 20:20:20 +0000 (15:20 -0500)]
Revert "tests/option-context: fix under --verbose"

This reverts commit 80253cd71007975946a084697ccec9891102a3e7.

11 years agoRevert "tests/protocol: redo a bit"
Matthias Clasen [Wed, 19 Dec 2012 20:20:13 +0000 (15:20 -0500)]
Revert "tests/protocol: redo a bit"

This reverts commit 8d9969fe15f2afc0c13b5d20a3103df666d68934.

11 years agoRevert "tests/spawn-*.c: fix on Windows"
Matthias Clasen [Wed, 19 Dec 2012 20:20:05 +0000 (15:20 -0500)]
Revert "tests/spawn-*.c: fix on Windows"

This reverts commit 602714a8dae08e395c8834aa059375de7dd877c0.

11 years agoCheck that credentials pass through D-Bus on supported platforms
Simon McVittie [Thu, 8 Nov 2012 14:09:23 +0000 (14:09 +0000)]
Check that credentials pass through D-Bus on supported platforms

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

11 years agoGCredentials: add a regression test
Simon McVittie [Thu, 8 Nov 2012 14:08:44 +0000 (14:08 +0000)]
GCredentials: add a regression test

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

11 years agoGCredentials: add getter/setter for the Unix process ID
Simon McVittie [Thu, 8 Nov 2012 14:08:24 +0000 (14:08 +0000)]
GCredentials: add getter/setter for the Unix process ID

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

11 years agotests/spawn-*.c: fix on Windows
Dan Winship [Sun, 25 Nov 2012 18:52:20 +0000 (13:52 -0500)]
tests/spawn-*.c: fix on Windows

Need to append ".exe" to the spawned binary name on Windows

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

11 years agotests/protocol: redo a bit
Dan Winship [Sun, 25 Nov 2012 16:50:09 +0000 (11:50 -0500)]
tests/protocol: redo a bit

Rather than overloading --verbose, just skip the tests that aren't
supposed to be run in the parent process (so that if you do run the
toplevel test with --verbose, it doesn't immediately error out).

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

11 years agotests/option-context: fix under --verbose
Dan Winship [Sun, 25 Nov 2012 16:42:59 +0000 (11:42 -0500)]
tests/option-context: fix under --verbose

We need to always pass G_TEST_TRAP_SILENCE_STDERR/STDOUT, or else
we can't check that they contained the right text later.

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

11 years agogtestutils: fix "-p" logic
Dan Winship [Sat, 25 Aug 2012 15:54:31 +0000 (11:54 -0400)]
gtestutils: fix "-p" logic

If you had two tests "/foo/bar" and "/foo/bar/baz", and ran the test
program with "-p /foo/bar/baz", it would run "/foo/bar" too. Fix that.
And add a test to tests/testing for it.

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

11 years agotests: port from g_test_trap_subprocess() to g_test_trap_fork()
Dan Winship [Sat, 24 Nov 2012 21:34:13 +0000 (16:34 -0500)]
tests: port from g_test_trap_subprocess() to g_test_trap_fork()

(or, in a few cases, to g_test_expect_message())

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

11 years agogtestutils: add g_test_trap_subprocess(), deprecate g_test_trap_fork()
Dan Winship [Sat, 24 Nov 2012 20:58:27 +0000 (15:58 -0500)]
gtestutils: add g_test_trap_subprocess(), deprecate g_test_trap_fork()

g_test_trap_fork() doesn't work on Windows and is potentially flaky on
unix anyway given the fork-but-don't-exec. Replace it with
g_test_trap_subprocess(), which re-spawns the same program with
arguments telling it to run a specific (otherwise-ignored) test case.

Make the existing g_test_trap_fork() unit tests be unix-only (they
never passed on Windows anyway), and add a parallel set of
g_test_trap_subprocess() tests.

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

11 years agoAdd missing autoconf test for sysctlbyname()
Daniel Macks [Sat, 1 Dec 2012 19:23:01 +0000 (14:23 -0500)]
Add missing autoconf test for sysctlbyname()

uses specific mib[] tokens iff it is available, but configure wasn't
testing for it to be available.

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

11 years agoFix constant type to match assigned variable type
Daniel Macks [Thu, 29 Nov 2012 15:33:47 +0000 (10:33 -0500)]
Fix constant type to match assigned variable type

Some compilers assume a literal value is a certain byte-length without
checking the type to which it is being assigned, giving a compile-time
warning: a default of 'long' is a mismatch when assigning to a guint64
when the latter is a 'long long'. Use one of glib's standard macros to
specify the type of the constant to match the variable type.

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

11 years agoinotify: fix compile
Dan Winship [Wed, 19 Dec 2012 14:10:01 +0000 (09:10 -0500)]
inotify: fix compile

11 years agotimezone: Fix byte arithmetic
Emmanuele Bassi [Wed, 19 Dec 2012 11:03:24 +0000 (11:03 +0000)]
timezone: Fix byte arithmetic

Use guint8* instead of gpointer, to avoid warnings and side effects.

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

11 years agotests: multiple fixes to run-assert-msg-test.sh
Dan Winship [Mon, 19 Nov 2012 21:18:55 +0000 (16:18 -0500)]
tests: multiple fixes to run-assert-msg-test.sh

1) use "../libtool" rather than "libtool" to avoid problems
with wacky OS X not-actually-libtool

2) Use libtool on the libtool script, not the binary, so that it
actually does anything

3) Don't use "gdb --ex" since it's apparently new-ish/non-portable.

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

11 years agoAdd "Since 2.36" to G_FILE_MONITOR_WATCH_HARD_LINKS doc
Dan Winship [Wed, 19 Dec 2012 13:22:23 +0000 (08:22 -0500)]
Add "Since 2.36" to G_FILE_MONITOR_WATCH_HARD_LINKS doc

11 years agogio + inotify support for hard links
Ryan Lortie [Wed, 18 Nov 2009 23:59:14 +0000 (17:59 -0600)]
gio + inotify support for hard links

Add a new GFileMonitorFlag: G_FILE_MONITOR_WATCH_HARD_LINKS.  When set,
changes made to the file via another hard link will be detected.

Implement the new flag for the inotify backend.

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

11 years agoBug 633117: glib fails tests if /etc/localtime is not properly set
John Ralls [Wed, 19 Dec 2012 00:40:08 +0000 (00:40 +0000)]
Bug 633117: glib fails tests if /etc/localtime is not properly set

11 years agoGTimeZone interval_info: Fix interval 0 per IANA tzfile instructions
John Ralls [Tue, 18 Dec 2012 23:41:09 +0000 (15:41 -0800)]
GTimeZone interval_info: Fix interval 0 per IANA tzfile instructions

IANA tzfiles don't always put standard time in the 0th t_info. Follow
their instructions to use the first standard time t_info for interval 0.

11 years agotest_posix_parse: PST8PDT passes on Unix because it names an IANA zone.
John Ralls [Tue, 18 Dec 2012 23:40:43 +0000 (15:40 -0800)]
test_posix_parse: PST8PDT passes on Unix because it names an IANA zone.

11 years agoMSWindows TimeZone Support: Refactor and rewrite TZ variable parsing
John Ralls [Mon, 17 Dec 2012 21:35:10 +0000 (13:35 -0800)]
MSWindows TimeZone Support: Refactor and rewrite TZ variable parsing

11 years agoTest the TZ-variable parsing functions
John Ralls [Tue, 11 Dec 2012 21:42:05 +0000 (13:42 -0800)]
Test the TZ-variable parsing functions

11 years agoImplement and test time zone name/abbrev setting for Windows.
John Ralls [Fri, 7 Dec 2012 01:16:50 +0000 (17:16 -0800)]
Implement and test time zone name/abbrev setting for Windows.

11 years agoWin32 TimeZone Support: General refactoring
John Ralls [Tue, 4 Dec 2012 18:51:48 +0000 (10:51 -0800)]
Win32 TimeZone Support: General refactoring

For code clarity and to pass tests

11 years agoAdd MSWindows timezone names to test new windows support.
John Ralls [Tue, 4 Dec 2012 19:13:04 +0000 (11:13 -0800)]
Add MSWindows timezone names to test new windows support.

11 years agoGTimeZone: Fix time zones in Windows
Arnel A. Borja [Sat, 20 Oct 2012 03:06:28 +0000 (11:06 +0800)]
GTimeZone: Fix time zones in Windows

Get time zone information from registry. Use GetTimeZoneInformation()
instead to get the local time zone if Dynamic DST is not available.

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

11 years agoGTimeZone: Parse Windows format for TZ
Arnel A. Borja [Mon, 15 Oct 2012 03:07:16 +0000 (11:07 +0800)]
GTimeZone: Parse Windows format for TZ

Parse the "tzn[+|-]hh[:mm[:ss]][dzn]" format used in Windows for
environment variable TZ.

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

11 years agoGTimeZone: Parse POSIX format for TZ
Arnel A. Borja [Sat, 20 Oct 2012 06:10:43 +0000 (14:10 +0800)]
GTimeZone: Parse POSIX format for TZ

Parse the "std offset [dst [offset],start[/time],end[/time]]" (POSIX)
format used in Unix for environment variable TZ.

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

11 years agoGTimeZone: Add initialization functions for rules
Arnel A. Borja [Sun, 21 Oct 2012 03:26:21 +0000 (11:26 +0800)]
GTimeZone: Add initialization functions for rules

Add functions to initialize a GTimeZone from rules.

11 years agoGTimeZone: Parse more offset formats
Arnel A. Borja [Mon, 15 Oct 2012 02:57:09 +0000 (10:57 +0800)]
GTimeZone: Parse more offset formats

Allow more formats for offset. Parse seconds in offsets too. Make offset
signs optional.

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

11 years agoReplace zoneinfo pointers with structs
John Ralls [Mon, 15 Oct 2012 21:32:58 +0000 (14:32 -0700)]
Replace zoneinfo pointers with structs

The approach of sucking a zoneinfo file into a GBytes and working with
pointers into it might be fast, but it's obtuse and not compatible with
Microsoft Windows.

11 years agoExtract function init_zone_from_iana_info
John Ralls [Mon, 15 Oct 2012 21:19:53 +0000 (14:19 -0700)]
Extract function init_zone_from_iana_info

11 years agoExtract function zone_info_unix
John Ralls [Mon, 15 Oct 2012 21:11:14 +0000 (14:11 -0700)]
Extract function zone_info_unix

11 years agogtype: disallow adding interfaces after the fact
Ryan Lortie [Mon, 5 Nov 2012 16:07:16 +0000 (11:07 -0500)]
gtype: disallow adding interfaces after the fact

Add a check to prevent adding an interface to a class that has already
had its class_init done.

This is an incompatible change but it is suspected that there are not
many users of this functionality.  Two known exceptions are pygobject
(fixed in bug 686149) and our own testsuite (affected tests have been
temporarily disabled by this patch).

Once we confirm that nobody else is using this functionality we can
remove a rather large amount of code for dealing with this case.

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

11 years agogio: Fix build with -Werror=format-security
Rico Tzschichholz [Tue, 18 Dec 2012 20:32:01 +0000 (21:32 +0100)]
gio: Fix build with -Werror=format-security

11 years agoRevert "gtype: disallow adding interfaces after the fact"
Rico Tzschichholz [Tue, 18 Dec 2012 20:23:13 +0000 (21:23 +0100)]
Revert "gtype: disallow adding interfaces after the fact"

This reverts commit d6a075b0d8dfe4e4a41f6624ad7032d2163d420c.

11 years agogsocket: Work around broken CMSG_FIRSTHDR()
PHO [Mon, 17 Dec 2012 23:33:50 +0000 (08:33 +0900)]
gsocket: Work around broken CMSG_FIRSTHDR()

As RFC 2292 points out, some platforms (e.g. Darwin 9.8.0) provide
CMSG_FIRSTHDR(msg) which just returns msg.msg_control without first
checking if msg.msg_controllen is non-zero. We need a workaround for
such platforms not to let g_socket_receive_message() segfault.

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

11 years agoGOutputStream: Fix a compiler warning
Colin Walters [Sat, 15 Dec 2012 14:55:39 +0000 (09:55 -0500)]
GOutputStream: Fix a compiler warning

11 years agogtask: don't deadlock when tasks block on other tasks
Dan Winship [Sat, 15 Dec 2012 16:44:59 +0000 (11:44 -0500)]
gtask: don't deadlock when tasks block on other tasks

If tasks block waiting for other tasks to complete then the system can
end up starved for threads. Avoid this by bumping up max-threads in
that case.

This also reverts 7b1f8c58 and reverts max-threads for GTask's
GThreadPool back to 10.

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

11 years agoAdd g_get_num_processors()
Colin Walters [Mon, 17 Dec 2012 15:47:53 +0000 (10:47 -0500)]
Add g_get_num_processors()

Based on a patch from John Cupitt <jcupitt@gmail.com>

Useful for thread pools which should scale to number of processors.

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

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

11 years agogio: port file/vfs-related classes from GSimpleAsyncResult to GTask
Dan Winship [Thu, 2 Aug 2012 19:50:35 +0000 (15:50 -0400)]
gio: port file/vfs-related classes from GSimpleAsyncResult to GTask

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

11 years agogio: port basic I/O classes from GSimpleAsyncResult to GTask
Dan Winship [Thu, 2 Aug 2012 19:49:59 +0000 (15:49 -0400)]
gio: port basic I/O classes from GSimpleAsyncResult to GTask

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

11 years agoTamil translation updated
Shantha kumar [Tue, 18 Dec 2012 11:18:21 +0000 (16:48 +0530)]
Tamil translation updated

11 years agoTamil translation updated
Shantha kumar [Tue, 18 Dec 2012 11:05:48 +0000 (16:35 +0530)]
Tamil translation updated

11 years agoTamil translation updated
Shantha kumar [Tue, 18 Dec 2012 10:59:08 +0000 (16:29 +0530)]
Tamil translation updated

11 years agoTamil translation updated
Shantha kumar [Tue, 18 Dec 2012 10:37:10 +0000 (16:07 +0530)]
Tamil translation updated

11 years agoTamil translation updated
Shantha kumar [Tue, 18 Dec 2012 10:31:25 +0000 (16:01 +0530)]
Tamil translation updated

11 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 18 Dec 2012 07:40:39 +0000 (08:40 +0100)]
Updated Slovenian translation

11 years agobump version
Matthias Clasen [Tue, 18 Dec 2012 00:18:13 +0000 (19:18 -0500)]
bump version

11 years ago2.35.3 2.35.3 upstream/2.35.3
Matthias Clasen [Mon, 17 Dec 2012 19:39:24 +0000 (14:39 -0500)]
2.35.3

11 years agoFix distcheck
Matthias Clasen [Tue, 18 Dec 2012 00:14:22 +0000 (19:14 -0500)]
Fix distcheck

11 years agoFix g_type_add_class_private() name in g_warning
Christophe Fergeau [Mon, 17 Dec 2012 13:58:04 +0000 (14:58 +0100)]
Fix g_type_add_class_private() name in g_warning

When g_type_class_get_private is called without calling
g_type_add_class_private first, a g_warning is issued, but
the name of the function to call is wrong:
g_type_class_add_class_private.

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

11 years agogsocket: improve sockopt handling for IPv4-wrapped-IPv6 sockets
Dan Winship [Wed, 12 Dec 2012 15:39:02 +0000 (16:39 +0100)]
gsocket: improve sockopt handling for IPv4-wrapped-IPv6 sockets

On IPv6 sockets, set both the IPv4 and IPv6 versions of IP socket
options, in case the socket is (or might become) IPv4-wrapped. (But
ignore errors when setting the IPv4 version.)

Similarly, when joining or leaving a multicast group, pick the sockopt
to use based on the address family of the multicast address rather
than the address family of the socket.

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

11 years agoRemove an unneeded escaping in NAMESER_COMPAT_INCLUDE
PHO [Mon, 17 Dec 2012 13:26:38 +0000 (22:26 +0900)]
Remove an unneeded escaping in NAMESER_COMPAT_INCLUDE

In configure.ac, escaping '#' in NAMESER_COMPAT_INCLUDE results in the following gio/gnetworking.h, which obviously doesn't compile:

  #include <arpa/inet.h>
  #include <arpa/nameser.h>
  \#include <arpa/nameser_compat.h>

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

11 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 16 Dec 2012 19:47:11 +0000 (20:47 +0100)]
Updated Spanish translation

11 years agoUpdated Polish translation
Piotr Drąg [Sun, 16 Dec 2012 02:44:09 +0000 (03:44 +0100)]
Updated Polish translation

11 years agoUpdated Galician translations
Fran Diéguez [Fri, 14 Dec 2012 23:41:54 +0000 (00:41 +0100)]
Updated Galician translations

11 years agoUpdated Galician translations
Fran Diéguez [Fri, 14 Dec 2012 23:40:16 +0000 (00:40 +0100)]
Updated Galician translations

11 years agoUpdate Visual C++ property sheets
Chun-wei Fan [Fri, 14 Dec 2012 16:28:30 +0000 (00:28 +0800)]
Update Visual C++ property sheets

The last commit (Add a preconfigured gio/gnetworking.h for Windows) has to
be split into two as git am does not like a patch that deals with files
that have different line feeds.

This updates the property sheets to use the pre-configured
gio/gnetworking.h during the build process.

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

11 years agoAdd a preconfigured gio/gnetworking.h for Windows
Chun-wei Fan [Thu, 13 Dec 2012 15:45:04 +0000 (23:45 +0800)]
Add a preconfigured gio/gnetworking.h for Windows

Since Windows builds by Visual C++ do not make use of autotools during
its build process, we need to dist a pre-configured
gio/gnetworking.h(.win32) for such builds.

The vs9/vs10 (and therefore vs11) property sheets are updated as well

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

11 years agodocs: Fix return value of g_file_set_attributes_from_info()
Tomas Bzatek [Fri, 14 Dec 2012 15:54:09 +0000 (16:54 +0100)]
docs: Fix return value of g_file_set_attributes_from_info()

GIO API usually returns FALSE and sets GError when something went wrong
and it was also the case of this method, just being badly documented.

11 years agogfileenumerator: Add a g_file_enumerator_get_child method
Jasper St. Pierre [Wed, 12 Dec 2012 09:49:28 +0000 (04:49 -0500)]
gfileenumerator: Add a g_file_enumerator_get_child method

This is a new convenience method designed to simplify some use
cases of GFileEnumerator, by making it easy to get the next file
from a file enumerator.

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

11 years agoUpdated POTFILES.in
Piotr Drąg [Wed, 12 Dec 2012 21:21:17 +0000 (22:21 +0100)]
Updated POTFILES.in

11 years agogsocket: add getsockopt/setsockopt wrappers
Dan Winship [Tue, 14 Feb 2012 02:12:34 +0000 (21:12 -0500)]
gsocket: add getsockopt/setsockopt wrappers

Add g_socket_get_option() and g_socket_set_option(), wrapping
getsockopt/setsockopt for the case of integer-valued options. Update
code to use these instead of the underlying calls.

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

11 years agoAdd gnetworking.h
Dan Winship [Thu, 11 Nov 2010 14:57:25 +0000 (09:57 -0500)]
Add gnetworking.h

Install a public "gnetworking.h" header that can be used to include
the relevant OS-dependent networking headers. This does not really
abstract away unix-vs-windows however; error codes, in particular,
are incompatible.

gnetworkingprivate.h now contains just a few internal URI-related
functions

Also add a g_networking_init() function to gnetworking.h, which can be
used to explicitly initialize OS-level networking, rather than having
that happen as a side-effect of registering GInetAddress.

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

11 years agogio: move resolver utils from gresolver.c to gthreadedresolver.c
Dan Winship [Thu, 29 Dec 2011 16:25:07 +0000 (11:25 -0500)]
gio: move resolver utils from gresolver.c to gthreadedresolver.c

Since there is only one resolver implementation now, we can move the
resolver utility functions from gresolver.c into gthreadedresolver.c,
and remove the prototypes from gnetworkingprivate.h.

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

11 years agog_unix_open_pipe: Add missing F_SETFD
Colin Walters [Tue, 11 Dec 2012 21:53:48 +0000 (16:53 -0500)]
g_unix_open_pipe: Add missing F_SETFD

Spotted by Ray Strode <rstrode@redhat.com>

While we're here, microoptimize by skipping the fcntl() calls if flags
is 0.

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

11 years agogobject.symbols: Update for g_checksum_get_type()
Colin Walters [Tue, 11 Dec 2012 01:30:44 +0000 (20:30 -0500)]
gobject.symbols: Update for g_checksum_get_type()

See previous commit.

11 years agoMake GChecksum more fully introspectable
Colin Walters [Mon, 10 Dec 2012 15:50:30 +0000 (10:50 -0500)]
Make GChecksum more fully introspectable

In 2.34, g_compute_checksum_for_bytes() was added, but this patch
allows binding users to use the incremental update API; this is
significantly more efficient than reading entire files into memory.

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

11 years agogio: Don't leak the temp file when g_file_replace() fails or is cancelled
Dan Winship [Wed, 7 Nov 2012 15:36:05 +0000 (10:36 -0500)]
gio: Don't leak the temp file when g_file_replace() fails or is cancelled

If the temp file still exists at the end of the close operation,
unlink it.

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

11 years agoAdd g_type_get_type_registration_serial()
Alexander Larsson [Fri, 7 Dec 2012 16:34:52 +0000 (17:34 +0100)]
Add g_type_get_type_registration_serial()

This lets you cache type lookup information and then know when
the cache information is out of date. In particular, we want this
in order to be able to cache g_type_from_name() lookups in the Gtk+
theme machinery.

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

11 years agofileinfo: mark lost+found/ root directory as hidden
David Zeuthen [Thu, 6 Dec 2012 21:21:58 +0000 (16:21 -0500)]
fileinfo: mark lost+found/ root directory as hidden

This was reported in bug 689800.

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

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoSupport for .hidden files
Timothy Arceri [Wed, 28 Nov 2012 23:50:55 +0000 (10:50 +1100)]
Support for .hidden files

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

11 years agoadd two missing version macros
Ryan Lortie [Thu, 6 Dec 2012 18:56:39 +0000 (13:56 -0500)]
add two missing version macros

11 years agovarious: add missing cases of #include "config.h"
Ryan Lortie [Thu, 6 Dec 2012 18:29:31 +0000 (13:29 -0500)]
various: add missing cases of #include "config.h"

11 years agog_get_home_dir(): honour $HOME
Ryan Lortie [Sun, 2 Dec 2012 17:07:24 +0000 (12:07 -0500)]
g_get_home_dir(): honour $HOME

If the $HOME environment variable is set, prefer that to the entry in
/etc/passwd.

This brings us in line with almost every other utility and library on
UNIX-like systems while avoiding some of the more complicated
possibilities that have been suggested.

This incompatible change has been petitioned for quite some time by
many, and in particular from the Debian world, which carries a patch
that adds a new G_HOME environment variable with the same meaning as
this patch now assigns to HOME.

The primary motivation for the change was to increase the testability of
GLib-based programs from 'make check' types of frameworks: it is now
possible to set HOME to a temp directory to avoid the testsuite
modifying the user's real home directory.

The change also brings us increased compliance with the XDG Base
Directory Specification.  The specification specifically states that the
default values should be computed based on the HOME environment
variable, whereas we were basing them on the value from /etc/passwd.

The change was agreed to by all in attendence at the November 29 Gtk+
developer meeting.

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

11 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 5 Dec 2012 19:08:15 +0000 (20:08 +0100)]
Updated Spanish translation

11 years agogdbusobjectskeleton: Fix compiler warnings
Colin Walters [Fri, 30 Nov 2012 20:18:01 +0000 (15:18 -0500)]
gdbusobjectskeleton: Fix compiler warnings

The G_OBJECT_WARN_INVALID_PROPERTY_ID() macro uses a local variable
named "_object"; work around this by using "object" as the variable we
pass in.

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

11 years agogobject: Use local variable names in macros less likely to clash
Colin Walters [Fri, 30 Nov 2012 20:22:54 +0000 (15:22 -0500)]
gobject: Use local variable names in macros less likely to clash

At least GDBus had code that had "_object" as a parameter to one of
its functions, but this clashes with the GObject macro
G_OBJECT_WARN_INVALID_PROPERTY_ID() which created a local "_object".

Since many of us cargo cult around copies of objects, let's be
defensive here and use local variable names less likely to clash with
application code.

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

11 years agowin32: suppress fatal error dialog box when running tests
Dan Winship [Fri, 16 Nov 2012 03:26:54 +0000 (22:26 -0500)]
win32: suppress fatal error dialog box when running tests

When running a test program (ie, if g_test_init() has been called),
don't pop up a dialog box when a fatal error occurs. Just print the
message to stderr and exit.

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

11 years agogsocketlistener: set source object tag before completing the GTask
Aleksander Morgado [Mon, 3 Dec 2012 14:59:06 +0000 (15:59 +0100)]
gsocketlistener: set source object tag before completing the GTask

Otherwise, the finish() method won't find the source object.

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

11 years agowin32: Fix GDBusDaemon build when glib is built as a static lib
Kalev Lember [Sun, 2 Dec 2012 14:34:37 +0000 (15:34 +0100)]
win32: Fix GDBusDaemon build when glib is built as a static lib

This makes sure not to ifdef _g_io_win32_get_module() out when glib is
built as a static lib, and also fixes it to work when DllMain isn't
available.

The implementation uses GetModuleHandleEx() which is only available on
Windows XP and later, so this commit effectively drops the Windows 2000
support in glib. Earlier commit 731b4699 already took care of defining
_WIN32_WINNT to support the Windows XP API.

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