platform/upstream/glib.git
14 years agoGVariantTypeInfo: free hash table when not in use
Ryan Lortie [Sun, 7 Feb 2010 07:52:07 +0000 (02:52 -0500)]
GVariantTypeInfo: free hash table when not in use

14 years agomerge the GVariant serialiser
Ryan Lortie [Fri, 5 Feb 2010 02:18:53 +0000 (21:18 -0500)]
merge the GVariant serialiser

14 years agoGMappedFile: minimal changes to support GBuffer
Ryan Lortie [Fri, 5 Feb 2010 17:37:43 +0000 (12:37 -0500)]
GMappedFile: minimal changes to support GBuffer

Just reorganise the GMappedFile struct to be binary compatible with
GBuffer.  If GBuffer becomes public later then we can revisit this.

14 years agoadd private GBuffer type
Ryan Lortie [Sat, 6 Feb 2010 15:18:07 +0000 (10:18 -0500)]
add private GBuffer type

14 years agoDon't leak filename in g_io_modules_scan_all_in_directory
Tim-Philipp Müller [Fri, 5 Feb 2010 01:14:20 +0000 (01:14 +0000)]
Don't leak filename in g_io_modules_scan_all_in_directory

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

14 years agoFix inconsistent line-endings
Hans Breuer [Sat, 6 Feb 2010 12:22:39 +0000 (13:22 +0100)]
Fix inconsistent line-endings

Apparently CRLF (windows format) was checked in from Linux
causing modified by checkout under windows. See:
http://help.github.com/dealing-with-lineendings/
http://mail.gnome.org/archives/gtk-devel-list/2009-July/msg00041.html

14 years agoDrop empty elements from the VS9 vcproj files
Tor Lillqvist [Sat, 6 Feb 2010 08:40:03 +0000 (10:40 +0200)]
Drop empty elements from the VS9 vcproj files

Dunno if this makes sense, if one lets VS edit the it will put them
back anyway. But it's more pleasing to the eye.

14 years agoUpdated Brazilian Portuguese translation
Jonh Wendell [Fri, 5 Feb 2010 14:09:26 +0000 (11:09 -0300)]
Updated Brazilian Portuguese translation

14 years agorename test: gvarianttype -> gvariant
Ryan Lortie [Fri, 5 Feb 2010 01:27:11 +0000 (20:27 -0500)]
rename test: gvarianttype -> gvariant

More test cases will be added to this file.

14 years agoUpdate Czech translation
Petr Kovar [Thu, 4 Feb 2010 22:54:15 +0000 (23:54 +0100)]
Update Czech translation

14 years agoFurther work on VS9 project files
Tor Lillqvist [Thu, 4 Feb 2010 17:57:38 +0000 (19:57 +0200)]
Further work on VS9 project files

14 years agoClarify use of struct stat on Windows
Tor Lillqvist [Thu, 4 Feb 2010 17:54:50 +0000 (19:54 +0200)]
Clarify use of struct stat on Windows

14 years agoInternally use the _stati64 API explicitly on Windows
Tor Lillqvist [Thu, 4 Feb 2010 17:20:08 +0000 (19:20 +0200)]
Internally use the _stati64 API explicitly on Windows

Avoids warnings and confusion when compiling with MSVC.

14 years agoEnable libtool compatible DLL naming in the VS9 projects
Tor Lillqvist [Thu, 4 Feb 2010 13:24:56 +0000 (15:24 +0200)]
Enable libtool compatible DLL naming in the VS9 projects

14 years agoGVariantType test case: assert all memory freed
Ryan Lortie [Thu, 4 Feb 2010 14:06:56 +0000 (09:06 -0500)]
GVariantType test case: assert all memory freed

Make sure we've freed all TypeInfos at the end of the test.

14 years agoGVariantTypeInfo tweaks
Ryan Lortie [Thu, 4 Feb 2010 14:04:32 +0000 (09:04 -0500)]
GVariantTypeInfo tweaks

  1) always emit ending type FIXED for fixed sized items

    The serialiser needs to know if it dealing with a fixed sized item
    in case the serialised data is corrupt and the item has the wrong
    size.

  2) add a macro that will be used by test cases to check that all
     memory has been freed.

14 years agoUse inherited properties in all configurations in gmodule, too
Tor Lillqvist [Thu, 4 Feb 2010 13:00:15 +0000 (15:00 +0200)]
Use inherited properties in all configurations in gmodule, too

14 years agoUse README.txt instead of README for Windows developer friendliness
Tor Lillqvist [Thu, 4 Feb 2010 12:51:56 +0000 (14:51 +0200)]
Use README.txt instead of README for Windows developer friendliness

14 years agoUpdate README for VS9 build
Tor Lillqvist [Thu, 4 Feb 2010 12:50:36 +0000 (14:50 +0200)]
Update README for VS9 build

14 years agoRefactor VS9 project files
Tor Lillqvist [Thu, 4 Feb 2010 12:36:23 +0000 (14:36 +0200)]
Refactor VS9 project files

Factor out common parts into a vsprops file. Drop empty elements for
tools that aren't used.

14 years agoDon't use deprecated g_win32 API
Tor Lillqvist [Thu, 4 Feb 2010 12:35:04 +0000 (14:35 +0200)]
Don't use deprecated g_win32 API

14 years agoPut a version info resource also in the gio DLL
Tor Lillqvist [Wed, 3 Feb 2010 22:37:13 +0000 (00:37 +0200)]
Put a version info resource also in the gio DLL

Also, distribute gio/gio.rc(.in).

14 years agoUpdate copyright years
Tor Lillqvist [Wed, 3 Feb 2010 22:11:44 +0000 (00:11 +0200)]
Update copyright years

14 years agoAdd checks for NULL pointer in arrays.
Krzesimir Nowak [Wed, 13 Jan 2010 17:40:17 +0000 (18:40 +0100)]
Add checks for NULL pointer in arrays.

Fixes: Bug 599197 -  array ref and unref functions crash on NULL
array.

* garray.c: Added safety guards to all public functions, which did
not have them earlier. Now when NULL is passed to them, they will
issue a warning and return, instead of segfaulting.

14 years agoproperly guard the includes
River Tarnell [Wed, 3 Feb 2010 16:31:02 +0000 (17:31 +0100)]
properly guard the includes

Fixes: Bug 604967 -  2.22.3 libasyncns build fails on HP-UX 11.11

* gio/libasyncns/asyncns.c: properly guard the includes of sys/select.h
  and sys/time.h

14 years agoFix the "install" VS9 project
Tor Lillqvist [Wed, 3 Feb 2010 16:09:28 +0000 (18:09 +0200)]
Fix the "install" VS9 project

Install also ghostutils.h. Don't bother mentioning any pointless
PreprocessorDefinitions for the "install" project, as all it does is
copy files.

14 years agoGVariantTypeInfo changes
Ryan Lortie [Wed, 3 Feb 2010 04:38:20 +0000 (23:38 -0500)]
GVariantTypeInfo changes

 - rename 'type' in MemberInfo to 'type_info'
 - add 'ending_type' field to MemberInfo
 - document how to find the ending

14 years agoLink with dnsapi.lib also in 32-bit builds
Tor Lillqvist [Tue, 2 Feb 2010 19:24:45 +0000 (21:24 +0200)]
Link with dnsapi.lib also in 32-bit builds

14 years agoInclude also testglib.vcproj in tarball
Tor Lillqvist [Tue, 2 Feb 2010 19:23:27 +0000 (21:23 +0200)]
Include also testglib.vcproj in tarball

14 years agoDon't use a compiler keyword as a variable name
Philip Withnall [Tue, 2 Feb 2010 10:41:00 +0000 (10:41 +0000)]
Don't use a compiler keyword as a variable name

Appease the MS C++ compiler by using _val instead of __value as a variable
name in G_VALUE_COLLECT_INIT.

Problem found by Haakon Sporsheim <haakon.sporsheim@gmail.com>.
Re-closes: bgo#608602

14 years agog_bit_lock: remove double variable declarations
Ryan Lortie [Mon, 1 Feb 2010 23:30:57 +0000 (18:30 -0500)]
g_bit_lock: remove double variable declarations

Remove double declaration of local static variables used for futex
emulation.

Problem found by Haakon Sporsheim <haakon.sporsheim@gmail.com>.

14 years agoghostutils: Fix a crash and add some tests
Dan Winship [Mon, 1 Feb 2010 23:11:43 +0000 (18:11 -0500)]
ghostutils: Fix a crash and add some tests

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

14 years agoG{Byte,Ptr,}Array: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 19:30:08 +0000 (14:30 -0500)]
G{Byte,Ptr,}Array: move docs from tmpl to .c

14 years agoGList, GSList: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 18:07:16 +0000 (13:07 -0500)]
GList, GSList: move docs from tmpl to .c

14 years agoremove trailing whitespace breaking .gitignore
Ryan Lortie [Sun, 31 Jan 2010 06:26:49 +0000 (01:26 -0500)]
remove trailing whitespace breaking .gitignore

14 years agoGIOChannel: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 05:39:40 +0000 (00:39 -0500)]
GIOChannel: move docs from tmpl to .c

14 years agoGTree, GNode: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 05:27:28 +0000 (00:27 -0500)]
GTree, GNode: move docs from tmpl to .c

14 years agoGThreadPool: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 05:18:09 +0000 (00:18 -0500)]
GThreadPool: move docs from tmpl to .c

14 years agoGRelation: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 05:16:14 +0000 (00:16 -0500)]
GRelation: move docs from tmpl to .c

14 years agoGCache: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 05:10:58 +0000 (00:10 -0500)]
GCache: move docs from tmpl to .c

14 years agoGChecksum: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 05:05:48 +0000 (00:05 -0500)]
GChecksum: move docs from tmpl to .c

14 years agoGCompletion: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 05:03:33 +0000 (00:03 -0500)]
GCompletion: move docs from tmpl to .c

14 years agoFix typo in introduction to threads in Glib
Christian Dywan [Mon, 1 Feb 2010 11:37:23 +0000 (12:37 +0100)]
Fix typo in introduction to threads in Glib

14 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Sun, 31 Jan 2010 18:57:59 +0000 (19:57 +0100)]
Updated Norwegian bokmål translation

14 years agoFix shadowing of G_VALUE_COLLECT variables in G_VALUE_COLLECT_INIT
Philip Withnall [Sun, 31 Jan 2010 16:15:32 +0000 (16:15 +0000)]
Fix shadowing of G_VALUE_COLLECT variables in G_VALUE_COLLECT_INIT

Closes: bgo#608602

14 years agodata{list,sets}, quarks: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 04:34:19 +0000 (23:34 -0500)]
data{list,sets}, quarks: move docs from tmpl to .c

14 years agoGPattern: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 04:10:34 +0000 (23:10 -0500)]
GPattern: move docs from tmpl to .c

14 years agoString chunks: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 04:04:52 +0000 (23:04 -0500)]
String chunks: move docs from tmpl to .c

14 years agoMove allocator and memchunk docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 03:58:43 +0000 (22:58 -0500)]
Move allocator and memchunk docs from tmpl to .c

14 years agoGSequence: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 03:19:29 +0000 (22:19 -0500)]
GSequence: move docs from tmpl to .c

14 years agoGShell: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 03:15:35 +0000 (22:15 -0500)]
GShell: move docs from tmpl to .c

14 years agoGTimer: move docs from tmpl to .c
Ryan Lortie [Sun, 31 Jan 2010 03:12:22 +0000 (22:12 -0500)]
GTimer: move docs from tmpl to .c

14 years agoFix up gthread.c documentation
Ryan Lortie [Sun, 31 Jan 2010 02:55:03 +0000 (21:55 -0500)]
Fix up gthread.c documentation

The last incomplete commit got pushed accidentally.  This finishes it up.

14 years agomerge GVariantTypeInfo
Ryan Lortie [Sun, 31 Jan 2010 01:15:25 +0000 (20:15 -0500)]
merge GVariantTypeInfo

14 years agoRevert accidental commit "dirt"
Ryan Lortie [Sat, 30 Jan 2010 21:00:51 +0000 (16:00 -0500)]
Revert accidental commit "dirt"

This reverts commit c46bc6ba1fc8c5045c9a93b95e78e81936e2d954.

14 years agoGIO: Remove trailing "." from Since: tags in docs
Ryan Lortie [Sat, 30 Jan 2010 19:06:12 +0000 (14:06 -0500)]
GIO: Remove trailing "." from Since: tags in docs

Typing "Since: 2.22." results in the creation of an api-index-2.22..xml
file (ie: the last '.' is taken to be part of the version number).

14 years agodirt
Ryan Lortie [Sat, 30 Jan 2010 18:00:01 +0000 (13:00 -0500)]
dirt

14 years agomove threads docs to .c
Ryan Lortie [Sat, 30 Jan 2010 17:32:09 +0000 (12:32 -0500)]
move threads docs to .c

14 years agoGIOChannel: fill in missing docs
Ryan Lortie [Sat, 30 Jan 2010 18:29:23 +0000 (13:29 -0500)]
GIOChannel: fill in missing docs

14 years agog_strlcpy doc: small fixup
Ryan Lortie [Sat, 30 Jan 2010 17:30:53 +0000 (12:30 -0500)]
g_strlcpy doc: small fixup

prevent the <note> from getting sucked in as part of the Returns:

14 years agogbitlock: fix gtkdoc brokenness
Ryan Lortie [Sat, 30 Jan 2010 17:13:50 +0000 (12:13 -0500)]
gbitlock: fix gtkdoc brokenness

14 years agoGRand: move docs from tmpl to inline comments
Ryan Lortie [Sat, 30 Jan 2010 06:00:50 +0000 (01:00 -0500)]
GRand: move docs from tmpl to inline comments

14 years agoUpdated Spanish translation
Jorge González [Sat, 30 Jan 2010 11:37:00 +0000 (12:37 +0100)]
Updated Spanish translation

14 years agogvarianttype: fix a trivial missing const
Ryan Lortie [Sat, 30 Jan 2010 05:00:48 +0000 (00:00 -0500)]
gvarianttype: fix a trivial missing const

14 years agodon't #include <glib.h> from other public headers
Ryan Lortie [Sat, 30 Jan 2010 04:56:04 +0000 (23:56 -0500)]
don't #include <glib.h> from other public headers

fix up some problems that were hidden by that

14 years agoUpdated French translation
Claude Paroz [Fri, 29 Jan 2010 21:52:58 +0000 (22:52 +0100)]
Updated French translation

14 years agoUpdate POTFILES.in to make l10n.gnome.org happy
Andre Klapper [Fri, 29 Jan 2010 21:33:06 +0000 (22:33 +0100)]
Update POTFILES.in to make l10n.gnome.org happy

14 years agoimprove gitignore
Ryan Lortie [Fri, 29 Jan 2010 03:43:51 +0000 (22:43 -0500)]
improve gitignore

14 years agoGHash: move docs from tmpl to inline comments
Ryan Lortie [Fri, 29 Jan 2010 03:36:48 +0000 (22:36 -0500)]
GHash: move docs from tmpl to inline comments

14 years agoSince: markers for g_bit_*lock()
Ryan Lortie [Fri, 29 Jan 2010 00:12:55 +0000 (19:12 -0500)]
Since: markers for g_bit_*lock()

14 years agoBug 548967 - 1 bit mutex lock: add tests
Ryan Lortie [Thu, 28 Jan 2010 23:41:19 +0000 (18:41 -0500)]
Bug 548967 - 1 bit mutex lock: add tests

Add a test case for the new API.

Always check the emulated futex(2) implementation, even on systems with
futex support.

14 years agoBug 548967 - 1 bit mutex lock
Ryan Lortie [Thu, 28 Jan 2010 16:32:07 +0000 (11:32 -0500)]
Bug 548967 - 1 bit mutex lock

Add support for a mutex lock that consumes only one bit of storage
inside of an integer on systems that support futexes.  Futex is emulated
(at a higher cost) on systems that don't have it -- but only in the
contended case.

14 years agoglib docs: Delete and ignore empty .tmpl files
Ryan Lortie [Thu, 28 Jan 2010 17:39:46 +0000 (12:39 -0500)]
glib docs: Delete and ignore empty .tmpl files

14 years agoReturn NULL from g_mapped_file_get_contents()
Ryan Lortie [Thu, 28 Jan 2010 02:30:26 +0000 (21:30 -0500)]
Return NULL from g_mapped_file_get_contents()

In the case of an empty file, return NULL instead of "".  This means
that the return result of g_mapped_file_get_contents() will always be
page-aligned.

14 years agoUpdated Slovenian translation
Matej Urbančič [Wed, 27 Jan 2010 12:16:13 +0000 (13:16 +0100)]
Updated Slovenian translation

14 years agoImprove type documentation
Behdad Esfahbod [Tue, 26 Jan 2010 21:12:20 +0000 (16:12 -0500)]
Improve type documentation

14 years agoAdd gtk-doc comments with Since tags to GMemoryOutputStream properties
Christian Dywan [Tue, 26 Jan 2010 19:45:40 +0000 (20:45 +0100)]
Add gtk-doc comments with Since tags to GMemoryOutputStream properties

14 years ago[glib/gvarianttype] Move some documentation to header file
Javier Jardón [Tue, 26 Jan 2010 18:15:48 +0000 (19:15 +0100)]
[glib/gvarianttype] Move some documentation to header file

Also, change G_VARIANT_TYPE(str) for G_VARIANT_TYPE(type_string)
so It's correctly documented now.

14 years ago[glib/gvariantype] Added missing "Since: 2.24" tag
Javier Jardón [Tue, 26 Jan 2010 18:00:41 +0000 (19:00 +0100)]
[glib/gvariantype] Added missing "Since: 2.24" tag

14 years agoalways use our own internal assertion message symbol
Martin Pitt [Tue, 26 Jan 2010 10:22:31 +0000 (11:22 +0100)]
always use our own internal assertion message symbol

Re-using glibc's __abort_msg symbol causes linking problems, since the symbol
is declared private. Always use our own__glib_abort_msg symbol to store
assertion messages, to avoid compatibility and linking problems.

Also fix the test case to work with out of tree builds (such as "make
distcheck"), and re-enable it.

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

14 years agoBump version
Matthias Clasen [Mon, 25 Jan 2010 19:16:09 +0000 (14:16 -0500)]
Bump version

14 years ago2.23.2 2.23.2
Matthias Clasen [Mon, 25 Jan 2010 19:14:14 +0000 (14:14 -0500)]
2.23.2

14 years agoDisable yet another failing test that was recently added...
Matthias Clasen [Mon, 25 Jan 2010 19:13:48 +0000 (14:13 -0500)]
Disable yet another failing test that was recently added...

14 years agoMinor docs update
Matthias Clasen [Mon, 25 Jan 2010 17:46:35 +0000 (12:46 -0500)]
Minor docs update

14 years agoAnother few failing tests disabled
Matthias Clasen [Mon, 25 Jan 2010 17:43:10 +0000 (12:43 -0500)]
Another few failing tests disabled

14 years agoDisable a failing test, tsk, tsk.
Matthias Clasen [Mon, 25 Jan 2010 17:29:09 +0000 (12:29 -0500)]
Disable a failing test, tsk, tsk.

14 years agoMention GVariant
Matthias Clasen [Mon, 25 Jan 2010 17:00:06 +0000 (12:00 -0500)]
Mention GVariant

14 years agoUpdates
Matthias Clasen [Mon, 25 Jan 2010 16:57:47 +0000 (11:57 -0500)]
Updates

14 years agoadd testcase for GVariantType
Ryan Lortie [Mon, 25 Jan 2010 16:31:56 +0000 (11:31 -0500)]
add testcase for GVariantType

14 years agomerge GVariantType
Ryan Lortie [Mon, 25 Jan 2010 16:26:27 +0000 (11:26 -0500)]
merge GVariantType

GVariantType is the type system for GVariant

14 years agoMove the boxed private type data to TypeNode
Benjamin Otte [Wed, 20 Jan 2010 20:06:30 +0000 (21:06 +0100)]
Move the boxed private type data to TypeNode

This way we don't need to keep a custom array that we bsearch on (and
that isn't threadsafe) but can use the gtype.c machinery that is
threadsafe. And fast, too!

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

14 years agoPut calls to registered copy/free functions into separate functions
Benjamin Otte [Wed, 20 Jan 2010 19:02:24 +0000 (20:02 +0100)]
Put calls to registered copy/free functions into separate functions

This eases cleaning up these functions.

One optimization in value_set_internal() was lost in the process. It
shouldn't cause too many issues when all is said and done.

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

14 years agoUpdated Bulgarian translation
Alexander Shopov [Mon, 25 Jan 2010 09:58:18 +0000 (11:58 +0200)]
Updated Bulgarian translation

14 years agoTypo fixes
Matthias Clasen [Mon, 25 Jan 2010 01:50:51 +0000 (20:50 -0500)]
Typo fixes

14 years agoUpdated Bengali translation
Jamil Ahmed [Sun, 24 Jan 2010 16:54:12 +0000 (22:54 +0600)]
Updated Bengali translation

14 years agogio: .gitignore gio-querymodules
Ryan Lortie [Sat, 23 Jan 2010 06:07:46 +0000 (01:07 -0500)]
gio: .gitignore gio-querymodules

14 years agoBug 448888 - don't init g_slice for always-malloc
Ryan Lortie [Sat, 23 Jan 2010 01:18:58 +0000 (20:18 -0500)]
Bug 448888 - don't init g_slice for always-malloc

14 years ago[tests] Remove C++ style comments
Alberto Garcia [Wed, 20 Jan 2010 17:53:08 +0000 (18:53 +0100)]
[tests] Remove C++ style comments

It makes the IBM XL C Compiler (the 'native' non-free compiler
on the AIX 5.3 and 6.1 platform) stop compiling with syntax error.

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

Signed-off-by: Javier Jardón <jjardon@gnome.org>
14 years ago[configure] More -lresolv-checking-fixing
Dan Winship [Mon, 18 Jan 2010 14:46:19 +0000 (09:46 -0500)]
[configure] More -lresolv-checking-fixing

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

14 years agoEnsure values are memset to 0 when calling G_VALUE_COLLECT_INIT()
Benjamin Otte [Mon, 18 Jan 2010 13:03:16 +0000 (14:03 +0100)]
Ensure values are memset to 0 when calling G_VALUE_COLLECT_INIT()

The reason we need to enforce this is that the GTypeValueTable
documentation explicitly states that memory is memset to 0 when the
value_init function is called.

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