platform/upstream/glib.git
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

11 years agowin32: Use AC_CHECK_TOOL to find dlltool
Arnel A. Borja [Fri, 14 Sep 2012 00:58:04 +0000 (08:58 +0800)]
win32: Use AC_CHECK_TOOL to find dlltool

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

11 years agogtask: annotate source_object arguments and return values as GObject
Evan Nemerson [Thu, 15 Nov 2012 19:52:28 +0000 (11:52 -0800)]
gtask: annotate source_object arguments and return values as GObject

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

11 years agoOptimize reading strings when deserializing gdbus messages
Mike Gorse [Thu, 29 Nov 2012 22:51:59 +0000 (16:51 -0600)]
Optimize reading strings when deserializing gdbus messages

Now that we're directly accessing the memory holding a message blob,
we can access strings directly while reading them. This speeds up
read_string significantly, since we no longer malloc/memcpy/free.

11 years agog_file_enumerate_children: Fix reference to wrong error code
Matthias Clasen [Fri, 30 Nov 2012 14:03:20 +0000 (09:03 -0500)]
g_file_enumerate_children: Fix reference to wrong error code

This function does in fact return G_IO_ERROR_NOT_DIRETORY, and
not G_FILE_ERROR_NOTDIR.

11 years agoAssamese translation updated
Nilamdyuti Goswami [Fri, 30 Nov 2012 11:53:29 +0000 (17:23 +0530)]
Assamese translation updated

11 years agoUpdated Hebrew translation.
Yaron Shahrabani [Fri, 30 Nov 2012 09:01:53 +0000 (11:01 +0200)]
Updated Hebrew translation.

11 years agoUpdated Hebrew translation.
Yaron Shahrabani [Fri, 23 Nov 2012 08:11:32 +0000 (10:11 +0200)]
Updated Hebrew translation.

11 years agoDon't look for icons called "(null)" if no xdg mime icon
Alexander Larsson [Fri, 30 Nov 2012 08:39:13 +0000 (09:39 +0100)]
Don't look for icons called "(null)" if no xdg mime icon

11 years agoFix race condition in gapplication/basic test
Emilio Pozuelo Monfort [Thu, 29 Nov 2012 16:48:35 +0000 (17:48 +0100)]
Fix race condition in gapplication/basic test

The three processes this test creates need to be executed
in order, and g_usleep was used to guarantee that.
However, under heavy load, that is not enough. Instead,
wait until the children start by making sure they have
written to stdout before proceeding any further.

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

11 years agoUse a simple struct when reading and writing gdbus messages
Mike Gorse [Thu, 1 Nov 2012 00:44:03 +0000 (19:44 -0500)]
Use a simple struct when reading and writing gdbus messages

GData*Streams incur significant overhead, and we do not need all of the
functionality that they provide, since we only ever read from/write to
memory when handling message blobs, so it is more performant to use a
simple structure.

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

11 years agoAdded G_IO_ERROR_BROKEN_PIPE
Juan Pablo Ugarte [Thu, 29 Nov 2012 19:12:25 +0000 (16:12 -0300)]
Added G_IO_ERROR_BROKEN_PIPE

11 years agogio: GLIB_AVAILABLE_IN to more APIs
Ryan Lortie [Thu, 29 Nov 2012 14:03:32 +0000 (09:03 -0500)]
gio: GLIB_AVAILABLE_IN to more APIs

Useful on its own, but also for a future patch for symbol visibility.

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

11 years agoUnconditionally use g_content_type_get_symbolic_icon()
Kalev Lember [Wed, 28 Nov 2012 22:25:52 +0000 (23:25 +0100)]
Unconditionally use g_content_type_get_symbolic_icon()

... and g_content_type_get_generic_icon_name(). The new functions are
implemented for Win32 since commit dace477c, so we no longer need to
guard them with G_OS_UNIX.

11 years agoRevert "Fix compilation on Android with the bionic C library"
Sebastian Dröge [Wed, 28 Nov 2012 15:55:12 +0000 (16:55 +0100)]
Revert "Fix compilation on Android with the bionic C library"

This reverts commit cb0ed84d4022e0fba6aaa9e99e258d8d507a90e5.

It wasn't meant to be pushed yet.

11 years agoFix duplicated case value for mingw runtimes defining EOVERLFOW as EFBIG
Andoni Morales Alastruey [Wed, 28 Nov 2012 15:34:18 +0000 (16:34 +0100)]
Fix duplicated case value for mingw runtimes defining EOVERLFOW as EFBIG

11 years agoFix compilation on Android with the bionic C library
Sebastian Dröge [Wed, 28 Nov 2012 15:28:28 +0000 (16:28 +0100)]
Fix compilation on Android with the bionic C library

11 years agoProtect against strcmp() on NULL strings
Sebastian Dröge [Wed, 28 Nov 2012 15:25:43 +0000 (16:25 +0100)]
Protect against strcmp() on NULL strings

11 years agog_unix_signal_add_full(): Annotate to shadow g_unix_signal_add()
Martin Pitt [Wed, 28 Nov 2012 11:09:17 +0000 (12:09 +0100)]
g_unix_signal_add_full(): Annotate to shadow g_unix_signal_add()

Just like g_timeout_add() and friends, we want to hide the unintrospectable
g_unix_signal_add() from GI bindings and present g_unix_signal_add_full() as
GLib.unix_signal_add() to them.

11 years agoAdd new api to the docs
Matthias Clasen [Wed, 28 Nov 2012 05:04:45 +0000 (00:04 -0500)]
Add new api to the docs

11 years agoFix suprisingly hard-to-spot typo
Matthias Clasen [Wed, 28 Nov 2012 05:01:11 +0000 (00:01 -0500)]
Fix suprisingly hard-to-spot typo

11 years agoGMemoryOutputStream: Add new _resizable() constructor usable from bindings
Colin Walters [Thu, 22 Nov 2012 13:23:27 +0000 (08:23 -0500)]
GMemoryOutputStream: Add new _resizable() constructor usable from bindings

Really, the memory output stream API is too warped around the model
where it's a fixed size buffer that you've already allocated.  Even in
C, I find myself always wanting to use it to just accumulate data into
an arbitrary-sized buffer it allocates.

Unfortunately, it's also not usable from bindings because it's not
common to bind g_free() and g_realloc(), but if you just pass NULL, you
get the default of a fixed size, which is useless as per above.

I am going to use this from a gjs test case, and the GSubprocess test
cases also will use it.

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

11 years agofileinfo: Add missing AVAILABLE macro
Bastien Nocera [Tue, 27 Nov 2012 16:23:08 +0000 (17:23 +0100)]
fileinfo: Add missing AVAILABLE macro

As forgotten in previous patch.

11 years agofileinfo: Add _get_deletion_date() helper
Bastien Nocera [Tue, 27 Nov 2012 15:59:28 +0000 (16:59 +0100)]
fileinfo: Add _get_deletion_date() helper

For use in gnome-settings-daemon, so that callers don't have
to parse the deletion date by hand.

11 years agogio: New API for GFile from remote commandline arg
Ryan Lortie [Sun, 25 Nov 2012 19:25:59 +0000 (14:25 -0500)]
gio: New API for GFile from remote commandline arg

Add a pair of new APIs: one to GFile to create a new file from a
commandline arg relative to a given cwd and one to
GApplicationCommandLine to create a GFile from an arg, relative to the
cwd of the invoking commandline.

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

11 years agoUpdated Odia Translation with FUEL implementation.
ManojKumar Giri [Tue, 27 Nov 2012 13:51:43 +0000 (19:21 +0530)]
Updated Odia Translation with FUEL implementation.

11 years agog_test_expect_message: fix pattern syntax in example code
Dan Winship [Sat, 24 Nov 2012 20:47:45 +0000 (15:47 -0500)]
g_test_expect_message: fix pattern syntax in example code