Daniel Mustieles [Sun, 15 Jan 2012 18:28:05 +0000 (19:28 +0100)]
Updated Spanish translation
Dan Winship [Sun, 15 Jan 2012 14:35:11 +0000 (09:35 -0500)]
gmain: fix adding a child source to an already-attached source
Adding a child source to an already-attached parent source would
crash, because we were passing the parent's context when setting the
child's priority.
Christian Persch [Sat, 14 Jan 2012 23:34:56 +0000 (00:34 +0100)]
Ensure to generate a flags GType for empty Flags enums
When the flags enum only has the default NONE = 0 entry, glib-mkenums
creates an enum type for it, not a flags type. Add an annotation to the
enum to ensure the correct GType is created.
Bug #667938.
Christian Persch [Sat, 14 Jan 2012 20:13:03 +0000 (21:13 +0100)]
resources: Use g_set_error_literal where appropriate
Christian Persch [Sat, 14 Jan 2012 23:40:25 +0000 (00:40 +0100)]
Add missing Since: docs
Fran Diéguez [Sat, 14 Jan 2012 23:42:25 +0000 (00:42 +0100)]
Updated Galician translations
Rico Tzschichholz [Sat, 14 Jan 2012 10:18:07 +0000 (11:18 +0100)]
gio/tests: Fix out-of-source build and use uninstalled libraries
Benjamin Otte [Sat, 14 Jan 2012 00:13:42 +0000 (01:13 +0100)]
array: return_if_fail() if element size is 0
This is particular useful for:
g_array_new (sizeof (MyStruct), FALSE, FALSE);
because the correct incantation is
g_array_new (FALSE, FALSE, sizeof (MyStruct));
and these warnings will trigger in the first situation.
Benjamin Otte [Sun, 1 Jan 2012 20:51:40 +0000 (21:51 +0100)]
values: Use v_pointer for g_value_set_gtype()
... and g_value_get_gtype(). G_TYPE_GTYPE is a pointer type, so it's
values should use the v_pointer member. This is especially true, because
the value collectors from varargs in gvaluecollector.h use that, too.
This should only cause issues when sizeof(glong) != sizeof(gpointer),
and I'm not aware of any such platform. Maybe win64?
Rico Tzschichholz [Fri, 13 Jan 2012 22:48:12 +0000 (23:48 +0100)]
gio/tests: add some missing files to EXTRA_DIST
Rico Tzschichholz [Fri, 13 Jan 2012 22:18:01 +0000 (23:18 +0100)]
gio: Fix for -Wformat-security
Rico Tzschichholz [Fri, 13 Jan 2012 21:35:44 +0000 (22:35 +0100)]
tests: Fix build failure of resources by linking against libgmodule-2.0.la
Piotr Drąg [Fri, 13 Jan 2012 20:11:03 +0000 (21:11 +0100)]
Updated POTFILES.in
Alexander Larsson [Thu, 12 Jan 2012 13:50:56 +0000 (14:50 +0100)]
Add GResource functions to gio.symbols
Alexander Larsson [Thu, 12 Jan 2012 20:09:15 +0000 (21:09 +0100)]
Add GLIB_COMPILE_RESOURCES to glib m4 macros
Alexander Larsson [Thu, 12 Jan 2012 19:51:56 +0000 (20:51 +0100)]
Add glib_compile_resources variable to the gio pc file
Alexander Larsson [Fri, 13 Jan 2012 15:39:28 +0000 (16:39 +0100)]
Add documentation for GResource
Alexander Larsson [Wed, 21 Dec 2011 22:37:56 +0000 (23:37 +0100)]
Support resource:/// uris
Alexander Larsson [Wed, 21 Dec 2011 20:45:16 +0000 (21:45 +0100)]
Add tests for GResource
Alexander Larsson [Wed, 21 Dec 2011 20:43:20 +0000 (21:43 +0100)]
Initial version of glib-compile-resources
This is the basic utility to create resource files, either binary
versions or source files that can be compiled into your app.
Alexander Larsson [Wed, 21 Dec 2011 20:38:23 +0000 (21:38 +0100)]
Initial version of GResource
GResource is a bundle of files combined into a single binary blog.
The API lets you access the files the resource contains by
using resource paths. You can also register resources with a
global list and access these globally in a merged resource namespace.
The normal way this is used is to link in the resources into your
application/library and have it be automatically registred.
Resources are compiled from an xml description using
glib-compile-resources.
Alexander Larsson [Fri, 13 Jan 2012 15:12:56 +0000 (16:12 +0100)]
Merge remote-tracking branch 'gvdb/master'
Alexander Larsson [Wed, 21 Dec 2011 20:13:21 +0000 (21:13 +0100)]
Add macros to handle constructor functions on the compilers that support it
This is only supported on some compilers, so we define G_HAS_CONSTRUCTORS
when it is supported. However, when it is supported we guarantee that
both constructors and destructors work, in executables as well as shared
libraries (including runtime unloading of shared libraries).
Usage is a bit unorthodox, as some compilers need to use #pragma to
implement constructors, and #pragma can't be used in macros.
The canonical way to use this:
#ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
#pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(my_constructor)
#endif
G_DEFINE_CONSTRUCTOR(my_constructor)
static void my_constructor (void)
{
...
#ifdef G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA
#pragma G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(my_destructor)
#endif
G_DEFINE_DESTRUCTOR(my_destructor)
static void my_destructor (void)
{
...
Alexander Larsson [Fri, 13 Jan 2012 14:59:56 +0000 (15:59 +0100)]
Support creating a GvdbReader from data
This is needed for the glib resource work.
Murray Cumming [Fri, 13 Jan 2012 08:21:46 +0000 (09:21 +0100)]
Docs: Changed can not to cannot.
This is a backport from the glib commit
30fdc1a79938540af7bad0af68d0a3b8af14f117
Yaron Shahrabani [Fri, 13 Jan 2012 07:38:35 +0000 (09:38 +0200)]
Updated Hebrew translation.
Javier Jardón [Tue, 6 Dec 2011 23:15:58 +0000 (23:15 +0000)]
docs/gobject/tutorial: Use g_object_class_install_properties
Evan Nemerson [Sat, 7 Jan 2012 17:54:53 +0000 (09:54 -0800)]
GIO: add lots of annotations for Vala bindings
https://bugzilla.gnome.org/show_bug.cgi?id=667447
Philip Withnall [Thu, 22 Dec 2011 00:16:06 +0000 (00:16 +0000)]
Bug 666700 — Add some missing (allow-none) annotations
Add some missing (allow-none) annotations to GContentType, GIcon and
GHashTable methods.
Closes: bgo#666700
Matthias Clasen [Tue, 10 Jan 2012 05:40:14 +0000 (00:40 -0500)]
Back to odd
Matthias Clasen [Tue, 10 Jan 2012 05:39:20 +0000 (00:39 -0500)]
2.31.8
Matthias Clasen [Tue, 10 Jan 2012 04:23:27 +0000 (23:23 -0500)]
Updates
Matthias Clasen [Tue, 10 Jan 2012 02:49:08 +0000 (21:49 -0500)]
Add G_FILE_ATTRIBUTE_FILESYSTEM_USED to get exact used space
This is implemented by with statfs_buffer.f_bavail (free blocks
for unprivileged users) as a default way to retrieve real free space.
Based on a patch by Marcus Carlson, bug 625751.
Matthias Clasen [Tue, 10 Jan 2012 02:35:13 +0000 (21:35 -0500)]
Make glocalfile.c more readable
The many nested ifdefs here really deserve some annotations.
Based on a patch by Marcus Carlson, bug 625751.
Ravi Sankar Guntur [Fri, 6 Jan 2012 17:13:19 +0000 (22:43 +0530)]
add g_queue_free_full to glib-sections.txt
Signed-off-by: Ravi Sankar Guntur <ravi.g@samsung.com>
https://bugzilla.gnome.org/show_bug.cgi?id=667331
Ravi Sankar Guntur [Thu, 5 Jan 2012 05:21:03 +0000 (10:51 +0530)]
Use g_queue_free_full() convenience function.
https://bugzilla.gnome.org/show_bug.cgi?id=667331
Signed-off-by: Ravi Sankar Guntur <ravi.g@samsung.com>
Ihar Hrachyshka [Mon, 9 Jan 2012 22:00:29 +0000 (01:00 +0300)]
Updated Belarusian translation.
Matthias Clasen [Mon, 9 Jan 2012 20:27:07 +0000 (15:27 -0500)]
fix a compiler warning
Matthias Clasen [Sat, 7 Jan 2012 01:48:04 +0000 (20:48 -0500)]
Realign the hash set example with added api
Change the name of set_insert to set_add, to better match the
newly added g_hash_table_add.
Ryan Lortie [Mon, 9 Jan 2012 13:28:10 +0000 (14:28 +0100)]
drop debian/ directory
Dan Vrátil [Mon, 9 Jan 2012 08:29:20 +0000 (09:29 +0100)]
Fix GHashTable GDB pretty printing (bug #667420)
Alexander Shopov [Sun, 8 Jan 2012 14:48:13 +0000 (16:48 +0200)]
Updated Bulgarian translation
Jasper St. Pierre [Fri, 6 Jan 2012 19:29:45 +0000 (14:29 -0500)]
gthread-posix: Remove misleading documentation comments
g_thread_init() has done nothing since 2.32, so while the function
still can be used if "g_thread_init() has not yet been called",
it won't do nothing in that case, it will just perform normally.
Jasper St. Pierre [Tue, 13 Sep 2011 03:14:32 +0000 (23:14 -0400)]
gbacktrace: g_get_prgname () isn't called for a NULL argument
https://bugzilla.gnome.org/show_bug.cgi?id=658871
Kjartan Maraas [Fri, 6 Jan 2012 19:35:34 +0000 (20:35 +0100)]
Updated Norwegian bokmål translation
Daniel Mustieles [Fri, 6 Jan 2012 19:31:54 +0000 (20:31 +0100)]
Updated Spanish translation
Ryan Lortie [Fri, 6 Jan 2012 15:25:03 +0000 (10:25 -0500)]
minor fixup to last commit
Ryan Lortie [Fri, 6 Jan 2012 15:09:32 +0000 (10:09 -0500)]
GHashTable: new 'add' and 'contains' APIs
These are both convenience APIs that make it slightly nicer to use
GHashTable as a set (which is something we document as officially
supported).
Nguyễn Thái Ngọc Duy [Fri, 6 Jan 2012 09:58:57 +0000 (16:58 +0700)]
gio/gsocks5proxy: typo fix
Nguyễn Thái Ngọc Duy [Fri, 6 Jan 2012 09:58:28 +0000 (16:58 +0700)]
Updated Vietnamese translation
Nguyễn Thái Ngọc Duy [Fri, 6 Jan 2012 09:48:13 +0000 (16:48 +0700)]
po/vi: import from Damned Lies
Dan Winship [Thu, 5 Jan 2012 17:57:01 +0000 (12:57 -0500)]
Remove some cruft from an older version of the code
Michael Terry [Wed, 4 Jan 2012 19:48:53 +0000 (14:48 -0500)]
gdesktopappinfo: Fix gtk-doc to mention Keywords not X-GNOME-Keywords
https://bugzilla.gnome.org/show_bug.cgi?id=667285
Simon McVittie [Thu, 5 Jan 2012 15:10:04 +0000 (15:10 +0000)]
Mention g_test_undefined() when documenting assert_failed, assert_stderr
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666116
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
Simon McVittie [Thu, 5 Jan 2012 15:02:07 +0000 (15:02 +0000)]
Skip tests of incorrect property usage under gtester -m no-undefined
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666116
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
Javier Jardón [Thu, 5 Jan 2012 03:31:21 +0000 (04:31 +0100)]
glib/*: Use g_slist_free_full() convenience function
Javier Jardón [Thu, 5 Jan 2012 03:27:20 +0000 (04:27 +0100)]
gio/*: Use g_slist_free_full() convenience function
Michael Terry [Wed, 4 Jan 2012 18:08:56 +0000 (13:08 -0500)]
gdesktopappinfo: Avoid crash by NULL-ing data.pid_envvar before launch
https://bugzilla.gnome.org/show_bug.cgi?id=667279
Claudio Saavedra [Tue, 3 Jan 2012 22:18:59 +0000 (00:18 +0200)]
GSocket: fix a couple of return values
g_socket_receive_with_blocking() and g_socket_send_with_blocking claim
to return -1 in error, their return type is gssize, and yet they
return FALSE if the initial g_return_val_if_fail() call fails.
https://bugzilla.gnome.org/show_bug.cgi?id=667226
Claudio Saavedra [Tue, 3 Jan 2012 22:13:50 +0000 (00:13 +0200)]
GSocket: add some more g_return_if_fail()s
https://bugzilla.gnome.org/show_bug.cgi?id=667225
Matthias Clasen [Wed, 4 Jan 2012 05:10:11 +0000 (00:10 -0500)]
Clarify g_utf8_strlen docs a bit
Paolo Borelli [Tue, 3 Jan 2012 10:49:55 +0000 (11:49 +0100)]
Add a testcase for an old regex bug.
Add a testcase for bug #455640, which was fixed in PCRE versions newer
than 7.2.
Javier Jardón [Mon, 2 Jan 2012 15:10:35 +0000 (16:10 +0100)]
glib/*: Use g_list_free_full()
Javier Jardón [Mon, 2 Jan 2012 15:30:11 +0000 (16:30 +0100)]
gio/*: Use g_list_free_full() convenience function
Javier Jardón [Mon, 2 Jan 2012 15:09:50 +0000 (16:09 +0100)]
gio/gdbus-2.0/codegen/codegen.py: Use g_list_free_full()
Matthias Clasen [Tue, 3 Jan 2012 15:48:50 +0000 (10:48 -0500)]
Fix parameter name mismatches in GWeakRef api
Matthias Clasen [Tue, 3 Jan 2012 13:02:49 +0000 (08:02 -0500)]
Add GWeakRef to the docs
Javier Jardón [Mon, 2 Jan 2012 14:20:42 +0000 (15:20 +0100)]
gio/tests: Use g_list_free_full() convenience function
Stef Walter [Mon, 14 Nov 2011 17:03:47 +0000 (18:03 +0100)]
gvariant: Never break out of g_variant_iter_loop
* Document how to break out of g_variant_iter_loop style loops.
https://bugzilla.gnome.org/show_bug.cgi?id=664069
Simon McVittie [Wed, 7 Dec 2011 15:04:59 +0000 (15:04 +0000)]
Add test for GDBusConnection singleton access racing with destruction
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=665211
Simon McVittie [Tue, 6 Dec 2011 12:44:36 +0000 (12:44 +0000)]
GDBusConnection: use GWeakRef to make the singletons thread-safe
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=665211
https://bugzilla.gnome.org/show_bug.cgi?id=548954
Simon McVittie [Wed, 7 Dec 2011 15:04:13 +0000 (15:04 +0000)]
Add regression test for GWeakRef used to cache a singleton
https://bugzilla.gnome.org/show_bug.cgi?id=548954
Simon McVittie [Thu, 8 Dec 2011 17:35:19 +0000 (17:35 +0000)]
Add deterministic tests for the API of GWeakRef
These don't address the thread-safety, but do address basic use.
https://bugzilla.gnome.org/show_bug.cgi?id=548954
Ryan Lortie [Tue, 6 Dec 2011 12:27:07 +0000 (12:27 +0000)]
GWeakRef: add a weak GObject reference believed to be thread-safe
This patch is a joint work with Simon McVittie.
https://bugzilla.gnome.org/show_bug.cgi?id=548954
Simon McVittie [Tue, 6 Dec 2011 11:37:45 +0000 (11:37 +0000)]
g_object_weak_ref, g_object_add_weak_pointer: document non-thread-safety
Transparent access to a weak pointer from the thread performing the
weak -> strong conversion is incompatible with thread-safety: that
thread will have to do something special. This is GNOME#548954.
https://bugzilla.gnome.org/show_bug.cgi?id=548954
Simon McVittie [Tue, 6 Dec 2011 11:35:02 +0000 (11:35 +0000)]
GBitLock: turn assumptions of g_futex_int_address into a static assertion
We'll probably never encounter a platform where these fail, but that's
what static assertions are for...
https://bugzilla.gnome.org/show_bug.cgi?id=548954
Ryan Lortie [Mon, 2 Jan 2012 16:38:40 +0000 (11:38 -0500)]
gthread.h: avoid anonymous union
This is a GNU extension.
https://bugzilla.gnome.org/show_bug.cgi?id=666978
William Hua [Mon, 2 Jan 2012 02:53:28 +0000 (21:53 -0500)]
nextstep gsettings backend: whitespace police
William Hua [Mon, 2 Jan 2012 02:38:05 +0000 (21:38 -0500)]
thread-safe nextstep gsettings backend
simplified key reset logic
William Hua [Mon, 26 Dec 2011 15:04:38 +0000 (10:04 -0500)]
GSettings: nextstep settings backend
Xan Lopez [Sun, 1 Jan 2012 18:01:14 +0000 (19:01 +0100)]
ginetaddressmask: plug leak
==24706== 52 bytes in 1 blocks are definitely lost in loss record 7,248 of 13,092
==24706== at 0x4A074CD: malloc (vg_replace_malloc.c:236)
==24706== by 0x70E9F5F: standard_malloc (gmem.c:85)
==24706== by 0x70E9FE8: g_malloc (gmem.c:159)
==24706== by 0x71018EC: g_slice_alloc (gslice.c:1003)
==24706== by 0x710192B: g_slice_alloc0 (gslice.c:1029)
==24706== by 0x7068526: g_type_create_instance (gtype.c:1872)
==24706== by 0x705067B: g_object_constructor (gobject.c:1835)
==24706== by 0x704FE47: g_object_newv (gobject.c:1699)
==24706== by 0x7050612: g_object_new_valist (gobject.c:1816)
==24706== by 0x704F894: g_object_new (gobject.c:1531)
==24706== by 0x6F0F2F0: g_inet_address_new_from_bytes (ginetaddress.c:459)
==24706== by 0x6F5D703: remove_network (gnetworkmonitornetlink.c:256)
==24706== by 0x6F5DD80: read_netlink_messages (gnetworkmonitornetlink.c:386)
==24706== by 0x6F2D5CA: socket_source_dispatch (gsocket.c:2505)
==24706== by 0x70E1D45: g_main_dispatch (gmain.c:2513)
==24706== by 0x70E2A06: g_main_context_dispatch (gmain.c:3050)
==24706== by 0x70E2BE9: g_main_context_iterate (gmain.c:3121)
==24706== by 0x70E2CAD: g_main_context_iteration (gmain.c:3182)
==24706== by 0x6F60A05: g_application_run (gapplication.c:1599)
==24706== by 0x42D011: main (ephy-main.c:472)
https://bugzilla.gnome.org/show_bug.cgi?id=667098
Yaron Shahrabani [Fri, 30 Dec 2011 08:47:56 +0000 (10:47 +0200)]
Updated Hebrew translation.
Chun-wei Fan [Fri, 30 Dec 2011 07:27:31 +0000 (15:27 +0800)]
config.h.win32.in: Cleanups
-Make the contents of the preconfigured config.h.win32(.in) more like the
contents of config.h.in
-Correct the sizing of void* on x64 platforms (which should be 8, unlike
4 on x86-32 platforms)
Matthias Clasen [Thu, 29 Dec 2011 16:57:42 +0000 (11:57 -0500)]
Correct some Since tags
As pointed out in bug 666951, g_mkdtemp and g_mkdtemp_full
were only added in 2.30.
Ravi Sankar Guntur [Tue, 20 Dec 2011 09:19:53 +0000 (14:49 +0530)]
Fix to handle '\v' (vertical tab) by g_strescape() and g_strcompress().
fix enables g_strescape() and g_strcompress() to handle '\v' along with other
special characters - '\b', '\f', '\n', '\r', '\t', '\'.
https://bugzilla.gnome.org/show_bug.cgi?id=664830
Signed-off-by: Ravi Sankar Guntur <ravi.g@samsung.com>
Matthias Clasen [Tue, 27 Dec 2011 23:10:42 +0000 (18:10 -0500)]
Some minor updates of building.sgml
https://bugzilla.gnome.org/show_bug.cgi?id=664830
Matthias Clasen [Tue, 27 Dec 2011 23:10:26 +0000 (18:10 -0500)]
Some minor updates of HACKING
Simon McVittie [Wed, 14 Dec 2011 17:31:23 +0000 (17:31 +0000)]
Add undefined/no-undefined mode options to GTester
https://bugzilla.gnome.org/show_bug.cgi?id=666116
Simon McVittie [Wed, 14 Dec 2011 18:08:59 +0000 (18:08 +0000)]
various tests: do not provoke SIGTRAP with -m no-undefined
Some of the GLib tests deliberately provoke warnings (or even fatal
errors) in a forked child. Normally, this is fine, but under valgrind
it's somewhat undesirable. We do want to follow fork(), so we can check
for leaks in child processes that exit gracefully; but we don't want to
be told about "leaks" in processes that are crashing, because there'd
be no point in cleaning those up anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=666116
Simon McVittie [Wed, 14 Dec 2011 17:32:16 +0000 (17:32 +0000)]
Clarify documentation of fast/slow/thorough and quiet/verbose tests
It turns out that there is no middle setting between fast and
slow/thorough, but there *is* a middle setting between quiet and verbose.
https://bugzilla.gnome.org/show_bug.cgi?id=666116
Matthias Clasen [Tue, 27 Dec 2011 22:45:40 +0000 (17:45 -0500)]
Remove another unused AC_DEFINE
Nothing was using the HAVE_GCOV define.
Matthias Clasen [Tue, 27 Dec 2011 22:20:36 +0000 (17:20 -0500)]
Drop unused AC_SUBST
DISABLE_MEM_POOLS is only used as define.
Matthias Clasen [Tue, 27 Dec 2011 22:15:44 +0000 (17:15 -0500)]
Remove a bashism
Matthias Clasen [Tue, 27 Dec 2011 22:12:39 +0000 (17:12 -0500)]
Drop a lot of dead configury for threads
Much of this became obsolete by the recent rewrite of our
threading support.
Matthias Clasen [Tue, 27 Dec 2011 21:22:13 +0000 (16:22 -0500)]
Don't put documentation in glibconfig.h
Matthias Clasen [Tue, 27 Dec 2011 21:18:19 +0000 (16:18 -0500)]
Make glibconfig.h include guards consistent
Matthias Clasen [Tue, 27 Dec 2011 21:16:24 +0000 (16:16 -0500)]
Remove a commented-out macro
Matthias Clasen [Tue, 27 Dec 2011 20:55:04 +0000 (15:55 -0500)]
Remove obsolescent AC_HEADER_STDC macro
We only used the resulting define in one place, and really,
these headers just have to be around or its not worth trying.
Thomas Hindoe Paaboel Andersen [Sat, 24 Dec 2011 14:31:55 +0000 (15:31 +0100)]
docs: g_atexit: do not point in a direction for where to find details
https://bugzilla.gnome.org/show_bug.cgi?id=666804
Åsmund Skjæveland [Mon, 26 Dec 2011 16:15:32 +0000 (17:15 +0100)]
Updated Norwegian Nynorsk translation