platform/upstream/glib.git
12 years agoghash: Add documentation
Jasper St. Pierre [Sun, 7 Oct 2012 23:10:36 +0000 (20:10 -0300)]
ghash: Add documentation

12 years agoglib.py: Remove old debugging code
Jasper St. Pierre [Wed, 26 Sep 2012 14:36:30 +0000 (11:36 -0300)]
glib.py: Remove old debugging code

This was accidentally copy/pasted from gobject.py

12 years agoGFileMonitor: thread-safety fix for non-default-main-context monitors
Dan Winship [Fri, 5 Oct 2012 13:32:24 +0000 (09:32 -0400)]
GFileMonitor: thread-safety fix for non-default-main-context monitors

When queuing events to another thread, we need a mutex around
priv->pending_file_changes and priv->pending_file_change_source.

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

12 years agocodegen: Install Python files in $(datadir)/glib-2.0, rather than $(libdir)
Colin Walters [Fri, 28 Sep 2012 00:11:27 +0000 (20:11 -0400)]
codegen: Install Python files in $(datadir)/glib-2.0, rather than $(libdir)

These files are actually architecture-indepdendent; using $(libdir)
for them means that /usr/bin/gdbus-codegen varies between
architectures, which is problematic for (mis)uses of multilib.

See https://bugzilla.redhat.com/show_bug.cgi?id=718404

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

12 years agocodegen: Explicitly close output
Colin Walters [Wed, 26 Sep 2012 19:44:33 +0000 (15:44 -0400)]
codegen: Explicitly close output

This is just cleaner rather than relying on the GC, and maybe
if we're lucky it will actually solve a problem.

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

12 years agoAdd GLIB_VERSION_2_36 and related
Dan Winship [Wed, 5 Sep 2012 13:44:24 +0000 (09:44 -0400)]
Add GLIB_VERSION_2_36 and related

12 years agogdbus-codegen: Update tests for new inheritance-semantics for Since
David Zeuthen [Wed, 3 Oct 2012 15:20:51 +0000 (11:20 -0400)]
gdbus-codegen: Update tests for new inheritance-semantics for Since

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
12 years agogdbus-codegen: make members of an interface inherit the "Since" annotation
David Zeuthen [Wed, 3 Oct 2012 15:07:57 +0000 (11:07 -0400)]
gdbus-codegen: make members of an interface inherit the "Since" annotation

This is the expected (and sane) behavior - without this bug-fix you'd
have to add "Since" to every member of a newly added D-Bus interface.

Also show-case this in the codegen example.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
12 years agounicode: Add new tests for unicode 6.2
Christian Persch [Sat, 7 Jul 2012 22:24:58 +0000 (00:24 +0200)]
unicode: Add new tests for unicode 6.2

12 years agounicode: Update to unicode 6.2.0 beta
Christian Persch [Sat, 7 Jul 2012 21:56:18 +0000 (23:56 +0200)]
unicode: Update to unicode 6.2.0 beta

12 years agounicode: Add new line breaking class from unicode 6.2
Christian Persch [Sat, 7 Jul 2012 21:53:23 +0000 (23:53 +0200)]
unicode: Add new line breaking class from unicode 6.2

Regional Indicator (RI) is new in unicode 6.2.

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

12 years agounicode: Use g_assert_cmp{int,uint,hex} in tests
Christian Persch [Sat, 7 Jul 2012 22:21:59 +0000 (00:21 +0200)]
unicode: Use g_assert_cmp{int,uint,hex} in tests

This gives more info when the test goes wrong.

12 years agobuild: Post branch version bump
Christian Persch [Wed, 3 Oct 2012 11:58:04 +0000 (13:58 +0200)]
build: Post branch version bump

12 years agoReally fix the leak
Matthias Clasen [Sun, 30 Sep 2012 23:24:13 +0000 (19:24 -0400)]
Really fix the leak

Pointed out by Josselin Mouette.

12 years agoFix memory leaks in glib-compile resources
Matthias Clasen [Sun, 30 Sep 2012 18:07:37 +0000 (14:07 -0400)]
Fix memory leaks in glib-compile resources

Based on a patch by Josselin Mouette,
https://bugzilla.gnome.org/show_bug.cgi?id=685069

12 years agoCorrect to docs for g_strcmp0
Matthias Clasen [Sun, 30 Sep 2012 17:37:39 +0000 (13:37 -0400)]
Correct to docs for g_strcmp0

Don't promise to return -1 or 1 - we fall back to strcmp which
does not guarantee this.
https://bugzilla.gnome.org/show_bug.cgi?id=685037

12 years agoUpdated Lithuanian translation
Žygimantas Beručka [Sun, 30 Sep 2012 10:01:14 +0000 (13:01 +0300)]
Updated Lithuanian translation

12 years agoFix gdb script for new quark variable names
Benjamin Otte [Thu, 27 Sep 2012 13:31:46 +0000 (15:31 +0200)]
Fix gdb script for new quark variable names

... and don't spam stderr with exceptions if someone renames things
again.

Last but not least, keep the old names as a fallback, so that LD_PRELOAD
with an older libglib still works.

12 years agoUpdate config.h.win32(.in) and glibconfig.h.win32(.in)
Chun-wei Fan [Wed, 26 Sep 2012 09:47:52 +0000 (17:47 +0800)]
Update config.h.win32(.in) and glibconfig.h.win32(.in)

-Make config.h.win32(.in) have entries that more resembles the generated
 config.h.in
-Move the ALIGNOF_* #define's from glibconfig.h.win32(.in) to
 config.h.win32(.in), where they were supposed to be.

12 years agoVisual C++ property sheet updates
Chun-wei Fan [Wed, 26 Sep 2012 07:42:53 +0000 (15:42 +0800)]
Visual C++ property sheet updates

Make up for the missed GIO headers that need to be installed.

12 years ago[l10n] Updated Catalan (Valencian) translation
Carles Ferrando [Tue, 25 Sep 2012 23:50:49 +0000 (01:50 +0200)]
[l10n] Updated Catalan (Valencian) translation

12 years ago[l10n] Updated Italian translation.
Luca Ferretti [Tue, 25 Sep 2012 06:34:44 +0000 (08:34 +0200)]
[l10n] Updated Italian translation.

12 years agoUpdate Czech translation
Petr Kovar [Mon, 24 Sep 2012 16:23:18 +0000 (18:23 +0200)]
Update Czech translation

12 years agoBump version
Matthias Clasen [Mon, 24 Sep 2012 02:39:20 +0000 (22:39 -0400)]
Bump version

12 years ago2.34.0 2.34.0
Matthias Clasen [Mon, 24 Sep 2012 02:33:21 +0000 (22:33 -0400)]
2.34.0

12 years agoMore updates
Matthias Clasen [Mon, 24 Sep 2012 01:20:06 +0000 (21:20 -0400)]
More updates

12 years agoDocument g_test_dbus_get_flags
Matthias Clasen [Mon, 24 Sep 2012 00:14:27 +0000 (20:14 -0400)]
Document g_test_dbus_get_flags

12 years agoTypo fix
Matthias Clasen [Sun, 23 Sep 2012 23:55:40 +0000 (19:55 -0400)]
Typo fix

12 years agoUpdate GConf migration guide
Matthias Clasen [Sun, 23 Sep 2012 15:23:29 +0000 (11:23 -0400)]
Update GConf migration guide

Newer intltool makes this much easier. Yay
https://bugzilla.gnome.org/show_bug.cgi?id=674620

12 years agoFix g_ptr_array_ref_docs
Matthias Clasen [Sun, 23 Sep 2012 15:16:26 +0000 (11:16 -0400)]
Fix g_ptr_array_ref_docs

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

12 years agoClarify g_type_init docs
Matthias Clasen [Sun, 23 Sep 2012 15:13:57 +0000 (11:13 -0400)]
Clarify g_type_init docs

Mention that there's no way to undo it.
https://bugzilla.gnome.org/show_bug.cgi?id=654239

12 years agoUpdate to latest version
Matthias Clasen [Sun, 23 Sep 2012 14:44:57 +0000 (10:44 -0400)]
Update to latest version

We should really stop shipping this, but I don't want to make
such a change on the day before a stable release, so I'll just
update it to avoid noise in diffs.

12 years agoUpdated Latvian translation
Anita Reitere [Sun, 23 Sep 2012 14:44:20 +0000 (17:44 +0300)]
Updated Latvian translation

12 years ago[l10n] Updated German translation
Mario Blättermann [Sun, 23 Sep 2012 12:43:07 +0000 (14:43 +0200)]
[l10n] Updated German translation

12 years agoFix gio docs
Matthias Clasen [Sun, 23 Sep 2012 06:18:56 +0000 (02:18 -0400)]
Fix gio docs

12 years agoFix GRegex docs
Matthias Clasen [Sun, 23 Sep 2012 05:59:37 +0000 (01:59 -0400)]
Fix GRegex docs

12 years agoFix up g_tree_foreach docs
Matthias Clasen [Sun, 23 Sep 2012 05:58:44 +0000 (01:58 -0400)]
Fix up g_tree_foreach docs

12 years agoFix up docs for GDuplicateFunc
Matthias Clasen [Sun, 23 Sep 2012 05:46:34 +0000 (01:46 -0400)]
Fix up docs for GDuplicateFunc

12 years agoUpdates
Matthias Clasen [Sun, 23 Sep 2012 05:18:53 +0000 (01:18 -0400)]
Updates

12 years agoUpdated kn translation
Shankar Prasad [Sat, 22 Sep 2012 20:57:03 +0000 (02:27 +0530)]
Updated kn translation

12 years agoUpdated Latvian translation
Rūdolfs Mazurs [Sat, 22 Sep 2012 17:02:44 +0000 (20:02 +0300)]
Updated Latvian translation

12 years ago[l10n]Updated Catalan (Valencian) translation
Carles Ferrando [Sat, 22 Sep 2012 14:44:50 +0000 (16:44 +0200)]
[l10n]Updated Catalan (Valencian) translation

12 years ago[l10n] Updated Catalan translation
Gil Forcada [Sat, 22 Sep 2012 14:44:39 +0000 (16:44 +0200)]
[l10n] Updated Catalan translation

12 years agoUpdated Hebrew translation.
Yaron Shahrabani [Sat, 22 Sep 2012 12:24:19 +0000 (15:24 +0300)]
Updated Hebrew translation.

12 years agoUpdated Bulgarian translation
Alexander Shopov [Sat, 22 Sep 2012 10:00:25 +0000 (13:00 +0300)]
Updated Bulgarian translation

12 years agoUpdated kn translation
Shankar Prasad [Fri, 21 Sep 2012 18:51:21 +0000 (00:21 +0530)]
Updated kn translation

12 years agoUpdated Brazilian Portuguese Translation
Rafael Ferreira [Fri, 21 Sep 2012 18:41:12 +0000 (15:41 -0300)]
Updated Brazilian Portuguese Translation

12 years agoUpdated Telugu Translations
Krishnababu Krothapalli [Thu, 20 Sep 2012 10:44:21 +0000 (16:14 +0530)]
Updated Telugu Translations

12 years agogio: Fix build on Windows
Chun-wei Fan [Tue, 18 Sep 2012 09:05:49 +0000 (17:05 +0800)]
gio: Fix build on Windows

The newly-introduced functions, g_content_type_get_symbolic_icon() and
g_content_type_get_generic_icon_name() don't seem to be for Windows, at
least for now.  So filter them out from gio.symbols on Windows.

Also, glocalfileinfo.c calls g_content_type_get_symbolic_icon() in
get_icon(), so only build that code when on Unix, for the time being.

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

12 years agoUpdated Galician translations
Fran Diéguez [Wed, 19 Sep 2012 00:27:16 +0000 (02:27 +0200)]
Updated Galician translations

12 years agoUpdated British English translation
Bruce Cowan [Tue, 18 Sep 2012 17:35:04 +0000 (18:35 +0100)]
Updated British English translation

12 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 18 Sep 2012 14:35:15 +0000 (16:35 +0200)]
Updated Spanish translation

12 years agoGApplication: document differences from libunique
Ryan Lortie [Tue, 18 Sep 2012 14:14:35 +0000 (10:14 -0400)]
GApplication: document differences from libunique

People implementing GApplication often waste a lot of time by trying to
use it as if it were libunique.  Add a note to the docs about the
difference.

12 years agobump version
Ryan Lortie [Tue, 18 Sep 2012 12:38:04 +0000 (08:38 -0400)]
bump version

12 years agoUpdated Marathi Translations
Sandeep Sheshrao Shedmake [Tue, 18 Sep 2012 07:43:52 +0000 (13:13 +0530)]
Updated Marathi Translations

12 years agohindi update
Rajesh Ranjan [Tue, 18 Sep 2012 07:41:18 +0000 (13:11 +0530)]
hindi update

12 years agoUpdated Brazilian Portuguese translation
Rafael Ferreira [Tue, 18 Sep 2012 02:35:57 +0000 (23:35 -0300)]
Updated Brazilian Portuguese translation

12 years agoUpdated Hungarian translation
Gabor Kelemen [Mon, 17 Sep 2012 23:21:04 +0000 (01:21 +0200)]
Updated Hungarian translation

12 years agoGLib 2.33.14 2.33.14
Ryan Lortie [Mon, 17 Sep 2012 21:53:58 +0000 (17:53 -0400)]
GLib 2.33.14

12 years agoUpdated Russian translation
Yuri Myasoedov [Mon, 17 Sep 2012 16:29:36 +0000 (20:29 +0400)]
Updated Russian translation

12 years agogresource tests: fix VPATH builds emitting errors during dependency generation
Dieter Verfaillie [Thu, 13 Sep 2012 10:13:36 +0000 (12:13 +0200)]
gresource tests: fix VPATH builds emitting errors during dependency generation

Adding the --sourcedir option fixes these:
/path/to/src/gio/tests/test2.gresource.xml: Error on line 5 char 1: Failed to locate 'test1.txt' in current directory.
/path/to/src/gio/tests/test3.gresource.xml: Error on line 5 char 1: Failed to locate 'test1.txt' in current directory.
/path/to/src/gio/tests/test4.gresource.xml: Error on line 5 char 1: Failed to locate 'test1.txt' in current directory.
/path/to/src/gio/tests/test.gresource.xml: Error on line 5 char 1: Failed to locate 'test1.txt' in current directory.

12 years agoUpdated Lithuanian translation
Aurimas Černius [Sun, 16 Sep 2012 20:11:25 +0000 (23:11 +0300)]
Updated Lithuanian translation

12 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Sun, 16 Sep 2012 04:20:45 +0000 (12:20 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

12 years agoUpdated Danish translation
Ask H. Larsen [Sun, 16 Sep 2012 00:09:14 +0000 (02:09 +0200)]
Updated Danish translation

12 years agoUpdated Slovenian translation
Matej Urbančič [Sat, 15 Sep 2012 18:49:54 +0000 (20:49 +0200)]
Updated Slovenian translation

12 years agoUpdated Portuguese translation
Duarte Loreto [Sat, 15 Sep 2012 18:29:25 +0000 (19:29 +0100)]
Updated Portuguese translation

12 years agoUpdated Korean translation
Seong-ho Cho [Sat, 15 Sep 2012 06:06:39 +0000 (15:06 +0900)]
Updated Korean translation

12 years agoUpdated Indonesian translation
Andika Triwidada [Sat, 15 Sep 2012 04:51:46 +0000 (11:51 +0700)]
Updated Indonesian translation

12 years agoUpdated Galician translations
Fran Diéguez [Fri, 14 Sep 2012 23:43:08 +0000 (01:43 +0200)]
Updated Galician translations

12 years agoFix the doc build
Matthias Clasen [Fri, 14 Sep 2012 23:40:24 +0000 (19:40 -0400)]
Fix the doc build

12 years agoUpdated Greek translation
Tom Tryfonidis [Fri, 14 Sep 2012 16:50:21 +0000 (19:50 +0300)]
Updated Greek translation

12 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Fri, 14 Sep 2012 10:26:34 +0000 (13:26 +0300)]
Updated Belarusian translation.

12 years agoUpdate French translation
Alexandre Franke [Fri, 14 Sep 2012 07:44:48 +0000 (09:44 +0200)]
Update French translation

12 years agoUpdated Serbian translation
Мирослав Николић [Fri, 14 Sep 2012 07:23:53 +0000 (09:23 +0200)]
Updated Serbian translation

12 years agoAssamese translation updated
Nilamdyuti Goswami [Fri, 14 Sep 2012 06:23:11 +0000 (11:53 +0530)]
Assamese translation updated

12 years agoupdate Punjabi Translation
A S Alam [Fri, 14 Sep 2012 02:00:04 +0000 (07:30 +0530)]
update Punjabi Translation

12 years agoUpdated Polish translation
Piotr Drąg [Thu, 13 Sep 2012 22:53:20 +0000 (00:53 +0200)]
Updated Polish translation

12 years agoCVE-2012-3524: Hardening for being run in a setuid environment
Colin Walters [Wed, 22 Aug 2012 18:26:11 +0000 (14:26 -0400)]
CVE-2012-3524: Hardening for being run in a setuid environment

Some programs attempt to use libglib (or even libgio) when setuid.
For a long time, GTK+ simply aborted if launched in this
configuration, but we never had a real policy for GLib.

I'm not sure whether we should advertise such support.  However, given
that there are real-world programs that do this currently, we can make
them safer with not too much effort.

Better to fix a problem caused by an interaction between two
components in *both* places if possible.

This patch adds a private function g_check_setuid() which is used to
first ensure we don't run an external dbus-launch binary if
DBUS_SESSION_BUS_ADDRESS isn't set.

Second, we also ensure the local VFS is used in this case.  The
gdaemonvfs extension point will end up talking to the session bus
which is typically undesirable in a setuid context.

Implementing g_check_setuid() is interesting - whether or not we're
running in a privilege-escalated path is operating system specific.
Note that GTK+'s code to check euid versus uid worked historically on
Unix, more modern systems have filesystem capabilities and SELinux
domain transitions, neither of which are captured by the uid
comparison.

On Linux/glibc, the way this works is that the kernel sets an
AT_SECURE flag in the ELF auxiliary vector, and glibc looks for it on
startup.  If found, then glibc sets a public-but-undocumented
__libc_enable_secure variable which we can use.  Unfortunately, while
it *previously* worked to check this variable, a combination of newer
binutils and RPM break it:
http://www.openwall.com/lists/owl-dev/2012/08/14/1

So for now on Linux/glibc, we fall back to the historical Unix version
until we get glibc fixed.

On some BSD variants, there is a issetugid() function.  On other Unix
variants, we fall back to what GTK+ has been doing.

Reported-By: Sebastian Krahmer <krahmer@suse.de>
Signed-off-by: Colin Walters <walters@verbum.org>
12 years agoAdd api to get the generic icon name for a mime type
William Jon McCann [Mon, 10 Sep 2012 19:16:58 +0000 (15:16 -0400)]
Add api to get the generic icon name for a mime type

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

12 years agoUpdated German translation
Mario Blättermann [Thu, 13 Sep 2012 09:05:59 +0000 (11:05 +0200)]
Updated German translation

12 years agoFix regression in g_shell_parse_argv()
Alexander Larsson [Thu, 13 Sep 2012 08:13:04 +0000 (10:13 +0200)]
Fix regression in g_shell_parse_argv()

The commit in 6e4acf44b3a943906432a2bf55223ac107d8e0c2 broke
the fallthrough case for '\\' when it changed the '#' case.

This caused issues like this:
  https://bugzilla.gnome.org/show_bug.cgi?id=683821

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

12 years agoUpdated Marathi Translations
Sandeep Sheshrao Shedmake [Wed, 12 Sep 2012 10:19:27 +0000 (15:49 +0530)]
Updated Marathi Translations

12 years agoMove GIO-specific information to the GIO docs
Matthias Clasen [Wed, 12 Sep 2012 03:14:39 +0000 (23:14 -0400)]
Move GIO-specific information to the GIO docs

12 years agoAdd a section about writing GLib applications
Matthias Clasen [Wed, 12 Sep 2012 02:41:18 +0000 (22:41 -0400)]
Add a section about writing GLib applications

For now, this includes some information about threads and security.

12 years agoDrop GVFS_INOTIFY_DIAG debug feature
Matthias Clasen [Wed, 12 Sep 2012 00:22:26 +0000 (20:22 -0400)]
Drop GVFS_INOTIFY_DIAG debug feature

Just not a good idea to have this in production code.

12 years agoAssamese translation updated
Nilamdyuti Goswami [Tue, 11 Sep 2012 13:25:26 +0000 (18:55 +0530)]
Assamese translation updated

12 years agoFix gdbus connection annotations
Thomas Bechtold [Tue, 11 Sep 2012 05:45:24 +0000 (07:45 +0200)]
Fix gdbus connection annotations

g_dbus_connection_call_with_unix_fd_list_sync () and
g_dbus_connection_call_sync () should allow None for the
bus_name parameter.

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

Signed-off-by: Richard Hughes <richard@hughsie.com>
12 years agoUpdated French translation by Alexandre Franke and Claude Paroz
Claude Paroz [Mon, 10 Sep 2012 09:01:39 +0000 (11:01 +0200)]
Updated French translation by Alexandre Franke and Claude Paroz

12 years agogwin32mount.c: Fix syntax error
LRN [Sun, 9 Sep 2012 14:49:06 +0000 (10:49 -0400)]
gwin32mount.c: Fix syntax error

Signed-off-by: Colin Walters <walters@verbum.org>
https://bugzilla.gnome.org/show_bug.cgi?id=683641

12 years agoUpdated Portuguese translation
Duarte Loreto [Sun, 9 Sep 2012 00:30:24 +0000 (01:30 +0100)]
Updated Portuguese translation

12 years agoUpdated Slovenian translation
Martin Srebotnjak [Sat, 8 Sep 2012 18:40:24 +0000 (20:40 +0200)]
Updated Slovenian translation

12 years agoG_DEFINE_QUARK: fix up some implementation issues
Ryan Lortie [Wed, 5 Sep 2012 00:54:33 +0000 (20:54 -0400)]
G_DEFINE_QUARK: fix up some implementation issues

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

12 years agoUpdated Czech translation
Marek Černocký [Sat, 8 Sep 2012 09:17:27 +0000 (11:17 +0200)]
Updated Czech translation

12 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Fri, 7 Sep 2012 15:27:47 +0000 (18:27 +0300)]
Updated Belarusian translation.

12 years agoUpdated Hebrew translation.
Yaron Shahrabani [Fri, 7 Sep 2012 13:52:28 +0000 (16:52 +0300)]
Updated Hebrew translation.

12 years agoUpdated Serbian translation
Мирослав Николић [Thu, 6 Sep 2012 20:34:36 +0000 (22:34 +0200)]
Updated Serbian translation

12 years agotests/gvariant: Fix test on big endian architectures
Colin Walters [Wed, 5 Sep 2012 13:04:58 +0000 (09:04 -0400)]
tests/gvariant: Fix test on big endian architectures

We need to ensure we get the exact same byte-level GVariant, so
byteswap on big endian architectures.

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

12 years agoBox GTimeZone to make it introspectable
Martin Pitt [Mon, 3 Sep 2012 19:43:50 +0000 (21:43 +0200)]
Box GTimeZone to make it introspectable

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

12 years agoUpdated British English translation
Bruce Cowan [Wed, 5 Sep 2012 12:13:54 +0000 (13:13 +0100)]
Updated British English translation

12 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Wed, 5 Sep 2012 11:52:32 +0000 (19:52 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)