platform/upstream/glib.git
13 years agog_value_array_remove(): clarify docstring formatting
Will Thompson [Thu, 3 Mar 2011 14:51:41 +0000 (14:51 +0000)]
g_value_array_remove(): clarify docstring formatting

13 years agoUpdated Portuguese translation
Duarte Loreto [Wed, 2 Mar 2011 01:11:04 +0000 (01:11 +0000)]
Updated Portuguese translation

13 years agoUpdated Hebrew translation.
Yaron Shahrabani [Sun, 27 Feb 2011 20:56:31 +0000 (22:56 +0200)]
Updated Hebrew translation.

13 years agoUpdated Italian translation
Luca Ferretti [Sun, 27 Feb 2011 20:47:44 +0000 (21:47 +0100)]
Updated Italian translation

13 years agoUpdated Korean translation
Changwoo Ryu [Sun, 27 Feb 2011 05:43:34 +0000 (14:43 +0900)]
Updated Korean translation

13 years agoUpdated French translation
Bruno Brouard [Fri, 25 Feb 2011 22:53:52 +0000 (23:53 +0100)]
Updated French translation

13 years agoGApplications: Tighten up application-id validity checks
Matthias Clasen [Fri, 25 Feb 2011 16:13:55 +0000 (11:13 -0500)]
GApplications: Tighten up application-id validity checks

Also add tests for these conditions.
https://bugzilla.gnome.org/show_bug.cgi?id=643197

13 years agoAdd some tests for g_hash_table_lookup_extended
Matthias Clasen [Fri, 25 Feb 2011 15:41:29 +0000 (10:41 -0500)]
Add some tests for g_hash_table_lookup_extended

13 years agoGHashTable: Clarify g_hash_table_lookup_extended docs
Matthias Clasen [Fri, 25 Feb 2011 15:40:39 +0000 (10:40 -0500)]
GHashTable: Clarify g_hash_table_lookup_extended docs

Passing NULL as a key is only ok if your hash and equal functions
can deal with it.
https://bugzilla.gnome.org/show_bug.cgi?id=642944

13 years agoGOptionContext: Warn about invalid arg/flag combinations
Matthias Clasen [Fri, 25 Feb 2011 15:10:37 +0000 (10:10 -0500)]
GOptionContext: Warn about invalid arg/flag combinations

This was proposed by Kjell Ahlstedt in bug 642825.
Also adding a few tests for this new behaviour.

13 years agoTreat optional arguments the same for long and short options
Matthias Clasen [Fri, 25 Feb 2011 13:45:28 +0000 (08:45 -0500)]
Treat optional arguments the same for long and short options

This was noticed in bug 642825 and the change was proposed
by Kjell Ahlstedt.

13 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 24 Feb 2011 19:36:04 +0000 (20:36 +0100)]
Updated Spanish translation

13 years agoFix the VS2010 project generation for GLib
Chun-wei Fan [Thu, 24 Feb 2011 04:38:51 +0000 (12:38 +0800)]
Fix the VS2010 project generation for GLib

The scripts accently pick up gcc-only source files... this fixes that.

13 years agoUpdated Polish translation
Piotr Drąg [Wed, 23 Feb 2011 21:03:34 +0000 (22:03 +0100)]
Updated Polish translation

13 years agoRemove uneeded item form VS10 folder
Chun-wei Fan [Wed, 23 Feb 2011 06:22:36 +0000 (14:22 +0800)]
Remove uneeded item form VS10 folder

There is no install.vcxproj.filters...oops

13 years agoUpdated Bulgarian translation
Alexander Shopov [Wed, 23 Feb 2011 06:02:23 +0000 (08:02 +0200)]
Updated Bulgarian translation

13 years agoAllow to list keys in all schemas
Matthias Clasen [Wed, 23 Feb 2011 05:13:39 +0000 (00:13 -0500)]
Allow to list keys in all schemas

Make the schema argument to gsettings list-recursively optional.
This allows to search for not exactly known keys by going

gsettings list-recursively | grep 'font'

13 years agoapplication: fix a typo in the docs annotation
Cosimo Cecchi [Wed, 23 Feb 2011 03:02:05 +0000 (22:02 -0500)]
application: fix a typo in the docs annotation

13 years agoBug 638185 - GIOCondition should be annotated as "flags"
Andreas Rottmann [Tue, 22 Feb 2011 14:12:30 +0000 (15:12 +0100)]
Bug 638185 - GIOCondition should be annotated as "flags"

Add a gtk-doc annotation to GIOCondition marking it as a flags type.

13 years agoVisual C++ 2010 Project Files
Chun-wei Fan [Tue, 22 Feb 2011 12:08:36 +0000 (20:08 +0800)]
Visual C++ 2010 Project Files

These are the actual GLib VS2010 project files (*.vcxproj,
*.vcxproj.filters) and property sheet file (*.props) that are used
to compile the GLib, GModule, GObject, GThread, GIO DLLs, along with
the gspawn-win32-helper* programs, glib-genmarshal utility and
testglib test program.  A readme.txt file is also enclosed for
references for building GLib under VS2010.

Note that the project files for GLib, GIO and GObject are templates
that makes use of the autotools items of my last commit so that maintenance
of those files are simplified as new source files are added to these rather
frequently.

Suggestions are welcome for these-please let me know via BugZilla.

Thank you!

13 years agoVisual C++ 2010 Project Files: autotools files
Chun-wei Fan [Tue, 22 Feb 2011 11:58:18 +0000 (19:58 +0800)]
Visual C++ 2010 Project Files: autotools files

These are the updates to the autotools files to
ensure the expansion of the GIO, GLib and GObject
project files (*.vcxproj, *.vcxproj.filters) and to
enable the distribution of the VS2010 project files

The actual VS2010 project files will follow shortly

13 years agoUpdated British English translation
Bruce Cowan [Sun, 20 Feb 2011 16:47:56 +0000 (16:47 +0000)]
Updated British English translation

13 years agoappinfo: Do not override system default handler with less specific one
Vincent Untz [Sun, 20 Feb 2011 09:41:17 +0000 (10:41 +0100)]
appinfo: Do not override system default handler with less specific one

We were considering explicitly configured defaults for parent types
after we already got results for the specific type we're interested in.

This resulted in the explicit default for text/plain to override all
system defaults for subtypes of text/plain, for example. The explicit
default should not apply to subtypes that have a system default.

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

13 years agoExport _glib_get_locale_dir() as it is now used in gio, too
Tor Lillqvist [Sat, 19 Feb 2011 23:23:48 +0000 (01:23 +0200)]
Export _glib_get_locale_dir() as it is now used in gio, too

13 years agoBe more forgiving when parsing introspection xml
Matthias Clasen [Sat, 19 Feb 2011 21:27:51 +0000 (16:27 -0500)]
Be more forgiving when parsing introspection xml

Accept (and silently ignore) version attributes on <interface>
and <method> elements - these occur in the wild, and ignoring
them does not cost us anything.

13 years agoAdd a testcase for bug 637738
Matthias Clasen [Sat, 19 Feb 2011 04:46:09 +0000 (23:46 -0500)]
Add a testcase for bug 637738

13 years agoDocument G_VALUE_NOCOPY_CONTENTS
Matthias Clasen [Sat, 19 Feb 2011 03:42:24 +0000 (22:42 -0500)]
Document G_VALUE_NOCOPY_CONTENTS

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

13 years agoExpand the documentation of g_type_get_qdata()
Matthias Clasen [Sat, 19 Feb 2011 03:35:49 +0000 (22:35 -0500)]
Expand the documentation of g_type_get_qdata()

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

13 years agoUpdates
Matthias Clasen [Fri, 18 Feb 2011 04:30:45 +0000 (23:30 -0500)]
Updates

13 years agoBump micro to .2
Matthias Clasen [Fri, 18 Feb 2011 04:30:29 +0000 (23:30 -0500)]
Bump micro to .2

13 years agoFixed bugster 7007407. Do not clear stat info until a node is really
Lin Ma [Thu, 17 Feb 2011 06:57:37 +0000 (14:57 +0800)]
Fixed bugster 7007407. Do not clear stat info until a node is really
deleted.

13 years agoUpdated Bulgarian translation
Alexander Shopov [Wed, 16 Feb 2011 20:28:00 +0000 (22:28 +0200)]
Updated Bulgarian translation

13 years agogdesktopappinfo: Handle g_get_prgname() being NULL
Colin Walters [Wed, 16 Feb 2011 18:49:20 +0000 (13:49 -0500)]
gdesktopappinfo: Handle g_get_prgname() being NULL

Reported-By: Sebastien Bacher <seb128@ubuntu.com>
https://bugzilla.gnome.org/show_bug.cgi?id=642490

13 years agoUse glibc qsort_r() for g_qsort_with_data()
Matthias Clasen [Wed, 16 Feb 2011 06:28:27 +0000 (01:28 -0500)]
Use glibc qsort_r() for g_qsort_with_data()

No point in using an outdated copy that claims to
'work best on a Sun 4/260' when we can just wrap qsort_r...

13 years agoBetter documentation for g_value_dup_object().
Stef Walter [Tue, 15 Feb 2011 18:54:53 +0000 (19:54 +0100)]
Better documentation for g_value_dup_object().

State that NULL is returned when value is NULL.

13 years agogtimezone: Rename shadowing variable 'time' to 'time_'
Damien Lespiau [Thu, 30 Sep 2010 16:27:19 +0000 (17:27 +0100)]
gtimezone: Rename shadowing variable 'time' to 'time_'

13 years agoDon't report standard interfaces more than once
Matthias Clasen [Wed, 16 Feb 2011 00:50:55 +0000 (19:50 -0500)]
Don't report standard interfaces more than once

If they have a custom implementation, don't add the canned
introspection XML, just rely on the generated XML. Fixes
https://bugzilla.gnome.org/show_bug.cgi?id=642042

13 years agoAdd a (currently failing) testcase
Matthias Clasen [Wed, 16 Feb 2011 00:49:24 +0000 (19:49 -0500)]
Add a (currently failing) testcase

This testcase check that we don't report the standard interfaces
more than one in the introspection XML, see
https://bugzilla.gnome.org/show_bug.cgi?id=642042

13 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 15 Feb 2011 20:32:56 +0000 (21:32 +0100)]
Updated Spanish translation

13 years agoUpdated Italian translation
Luca Ferretti [Tue, 15 Feb 2011 12:02:30 +0000 (13:02 +0100)]
Updated Italian translation

13 years agoFix memory leaks in the gdbus introspection parser
Matthias Clasen [Tue, 15 Feb 2011 07:27:54 +0000 (02:27 -0500)]
Fix memory leaks in the gdbus introspection parser

We were getting our length zero, yet NULL-terminated arrays in
a twist in some places. Stop passing around ignored length arguments
at the same time.
https://bugzilla.gnome.org/show_bug.cgi?id=635099

13 years agoFix bug base in array-test
Matthias Clasen [Tue, 15 Feb 2011 05:02:42 +0000 (00:02 -0500)]
Fix bug base in array-test

13 years agoAdd a testcase for bug 640489
Matthias Clasen [Tue, 15 Feb 2011 05:02:13 +0000 (00:02 -0500)]
Add a testcase for bug 640489

13 years agoBug 642052 - g_timeout_add(_seconds) overflow
Ryan Lortie [Tue, 15 Feb 2011 04:21:14 +0000 (23:21 -0500)]
Bug 642052 - g_timeout_add(_seconds) overflow

Fix integer overflow error.

13 years agoBug 642052: add currently-broken test case
Ryan Lortie [Tue, 15 Feb 2011 04:20:38 +0000 (23:20 -0500)]
Bug 642052: add currently-broken test case

The test case fails for now.  It will be fixed by the next commit.

13 years agoMore GValue conversion tests
Matthias Clasen [Tue, 15 Feb 2011 00:15:41 +0000 (19:15 -0500)]
More GValue conversion tests

13 years agoVary the order of unreffing dest and src
Matthias Clasen [Tue, 15 Feb 2011 00:14:44 +0000 (19:14 -0500)]
Vary the order of unreffing dest and src

For slightly better test coverage.

13 years agoAdd schema name in error message
Matthias Clasen [Tue, 15 Feb 2011 00:13:09 +0000 (19:13 -0500)]
Add schema name in error message

Why not be helpful if it doesn't cost anything...

13 years agoUpdated Hebrew translation
Yaron Shahrabani [Mon, 14 Feb 2011 05:53:06 +0000 (07:53 +0200)]
Updated Hebrew translation

13 years agoImprove test coverage
Matthias Clasen [Mon, 14 Feb 2011 04:47:42 +0000 (23:47 -0500)]
Improve test coverage

Various test additions, mainly in GObject

13 years agoCosmetic rearrangement
Matthias Clasen [Sun, 13 Feb 2011 22:37:06 +0000 (17:37 -0500)]
Cosmetic rearrangement

13 years agoFix the tm.tm_gmtoff check
Matthias Clasen [Sun, 13 Feb 2011 03:23:04 +0000 (22:23 -0500)]
Fix the tm.tm_gmtoff check

13 years agoUse g_assert_no_error
Matthias Clasen [Sun, 13 Feb 2011 02:08:57 +0000 (21:08 -0500)]
Use g_assert_no_error

The option-context test had its own version.

13 years agoUpdated Galician translations
Fran Diéguez [Sun, 13 Feb 2011 12:58:18 +0000 (13:58 +0100)]
Updated Galician translations

13 years agoUpdated Galician translations
Fran Diéguez [Sun, 13 Feb 2011 12:55:47 +0000 (13:55 +0100)]
Updated Galician translations

13 years agoUpdated Polish translation
Piotr Drąg [Sun, 13 Feb 2011 00:18:41 +0000 (01:18 +0100)]
Updated Polish translation

13 years agoUpdate Korean translation
Changwoo Ryu [Sat, 12 Feb 2011 22:02:24 +0000 (07:02 +0900)]
Update Korean translation

13 years agoFix a few string mismatches in the Italian translations
Matthias Clasen [Sat, 12 Feb 2011 17:43:15 +0000 (12:43 -0500)]
Fix a few string mismatches in the Italian translations

Noticed these while testing gsettings translations.

13 years agoFix some problems with message handling
Matthias Clasen [Sat, 12 Feb 2011 17:42:18 +0000 (12:42 -0500)]
Fix some problems with message handling

g_printerr() doesn't append a newline, so we have to consistently
do it everywhere. Also, we cannot call gettext on "", ever.

13 years agoComplete the translation setup for glib-compile-schemas
Matthias Clasen [Sat, 12 Feb 2011 17:30:35 +0000 (12:30 -0500)]
Complete the translation setup for glib-compile-schemas

13 years agoSet up message translation for gdbus
Matthias Clasen [Sat, 12 Feb 2011 17:26:26 +0000 (12:26 -0500)]
Set up message translation for gdbus

This was only halfway done before and not working.

13 years agoDocs: Mention gettext setup requirements in i18n section
Matthias Clasen [Sat, 12 Feb 2011 17:09:39 +0000 (12:09 -0500)]
Docs: Mention gettext setup requirements in i18n section

13 years agodoc: Fix typo in previous commit
Benjamin Otte [Sat, 12 Feb 2011 17:05:54 +0000 (18:05 +0100)]
doc: Fix typo in previous commit

Yuck. I blame it on the weekend.

13 years agodocs: Fix return value for g_datetime_compare()
Benjamin Otte [Sat, 12 Feb 2011 16:56:34 +0000 (17:56 +0100)]
docs: Fix return value for g_datetime_compare()

Previous code confused dt1 and dt2. The new formulation is stolen from
man strcmp() and g_strcmp0().

13 years agoGVariant: titlecase ‘Unicode’ in text format docs
Will Thompson [Fri, 11 Feb 2011 19:09:48 +0000 (19:09 +0000)]
GVariant: titlecase ‘Unicode’ in text format docs

13 years agoGVariant: Correct uint32/64 thinko in text format docs
Will Thompson [Fri, 11 Feb 2011 19:07:45 +0000 (19:07 +0000)]
GVariant: Correct uint32/64 thinko in text format docs

13 years agoGVariant: doc the format of g_variant_parse/print
Ryan Lortie [Fri, 11 Feb 2011 15:27:44 +0000 (10:27 -0500)]
GVariant: doc the format of g_variant_parse/print

13 years agoBranch away from stable, bump to 2.29.0
Ryan Lortie [Fri, 11 Feb 2011 15:27:44 +0000 (10:27 -0500)]
Branch away from stable, bump to 2.29.0

This is now the unstable branch.

Stable release is on the glib-2-28 branch.

13 years agoGObject: correct documentation typos
Will Thompson [Fri, 11 Feb 2011 15:18:02 +0000 (15:18 +0000)]
GObject: correct documentation typos

13 years agoGVariant: support NULL for empty arrays in varargs
Ryan Lortie [Fri, 11 Feb 2011 15:14:29 +0000 (10:14 -0500)]
GVariant: support NULL for empty arrays in varargs

g_variant_new("as", NULL); now gives an empty array of strings, for
example.

This was documented as working already, but was never actually
implemented (due to the fact that it muddies the water when considering
maybe types).  It's being implemented now because its convenience to
programmers exceeds any damage done to the conceptual purity of the API.

13 years agoUpdated Bengali India Translation
Runa Bhattacharjee [Fri, 11 Feb 2011 13:31:05 +0000 (19:01 +0530)]
Updated Bengali India Translation

13 years agogsettings: Minor typo in previous commit
Colin Walters [Fri, 11 Feb 2011 04:42:34 +0000 (23:42 -0500)]
gsettings: Minor typo in previous commit

13 years agoGSettings: add paragraph with performance notes
Ryan Lortie [Wed, 9 Feb 2011 16:55:35 +0000 (11:55 -0500)]
GSettings: add paragraph with performance notes

summary: reads are very fast.  writes are fast for you, but expensive
for the system, so don't do them except in response to explicit user
action.

13 years agoBump version
Matthias Clasen [Tue, 8 Feb 2011 18:21:37 +0000 (13:21 -0500)]
Bump version

13 years agoUpdated Polish translation
Piotr Drąg [Tue, 8 Feb 2011 17:22:44 +0000 (18:22 +0100)]
Updated Polish translation

13 years agoDocument new API 2.28.0
Matthias Clasen [Tue, 8 Feb 2011 15:05:00 +0000 (10:05 -0500)]
Document new API

13 years agoFix some parameter mismatches in GVariant docs
Matthias Clasen [Tue, 8 Feb 2011 15:04:36 +0000 (10:04 -0500)]
Fix some parameter mismatches in GVariant docs

13 years agoAvoid more compiler warnings
Matthias Clasen [Tue, 8 Feb 2011 12:41:49 +0000 (07:41 -0500)]
Avoid more compiler warnings

13 years agog_date_time_format: drop an unused variable
Matthias Clasen [Tue, 8 Feb 2011 12:35:54 +0000 (07:35 -0500)]
g_date_time_format: drop an unused variable

13 years agoAdd release note about GApplication
Matthias Clasen [Tue, 8 Feb 2011 12:33:02 +0000 (07:33 -0500)]
Add release note about GApplication

13 years agoUpdate NEWS
Matthias Clasen [Tue, 8 Feb 2011 05:00:08 +0000 (00:00 -0500)]
Update NEWS

13 years agoBump version to 2.28.0
Matthias Clasen [Tue, 8 Feb 2011 04:53:29 +0000 (23:53 -0500)]
Bump version to 2.28.0

13 years agoFix a typo
Matthias Clasen [Tue, 8 Feb 2011 04:46:02 +0000 (23:46 -0500)]
Fix a typo

13 years agoAdd more data about origin application to the "Launched" signal.
Michal Hruby [Mon, 7 Feb 2011 20:25:33 +0000 (21:25 +0100)]
Add more data about origin application to the "Launched" signal.

This will help applications such as zeitgeist's datahub to collect
more complete information about application launches, as the "actor"
of a launch is important for zeitgeist's magic to work properly.

13 years agogdesktopappinfo: Asynchronously flush after sending notification
Colin Walters [Fri, 4 Feb 2011 20:37:51 +0000 (15:37 -0500)]
gdesktopappinfo: Asynchronously flush after sending notification

If we were the initial connection owner, unref will destroy the
connection immediately, and we may lose messages.  Asynchronously
flush to avoid that.

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

13 years agoClarify GInitable docs
Matthias Clasen [Tue, 8 Feb 2011 04:35:21 +0000 (23:35 -0500)]
Clarify GInitable docs

Mention explicitly that the object is unrefed on error.
Pointed out by Philip Van Hoof,
https://bugzilla.gnome.org/show_bug.cgi?id=641363

13 years agoAppend .exe to glib-compile-schemas in .pc file
Matthias Clasen [Tue, 8 Feb 2011 04:30:56 +0000 (23:30 -0500)]
Append .exe to glib-compile-schemas in .pc file

This makes the binary name correct on Windows.
Pointed out by David Schleef,
https://bugzilla.gnome.org/show_bug.cgi?id=641572

13 years agoChange the id of the gsettings section
Matthias Clasen [Tue, 8 Feb 2011 04:28:26 +0000 (23:28 -0500)]
Change the id of the gsettings section

This tricks gtk-doc into generating a html file with a different
name, avoiding the case-only GSettings.html vs gsettings.html.
https://bugzilla.gnome.org/show_bug.cgi?id=641688

13 years agoDon't use -w in shebang line
Matthias Clasen [Tue, 8 Feb 2011 04:27:19 +0000 (23:27 -0500)]
Don't use -w in shebang line

This can cause warnings when PERL_PATH gets expanded to /usr/bin/env.
Patch by Adam Sampson, https://bugzilla.gnome.org/show_bug.cgi?id=641477

13 years agodocs: Document Since properly, 2.26 -> 2.28
Javier Jardón [Tue, 8 Feb 2011 01:04:20 +0000 (01:04 +0000)]
docs: Document Since properly, 2.26 -> 2.28

13 years agoGApplication: document Since properly in header files, 2.26 -> 2.28
Rui Matos [Mon, 7 Feb 2011 22:53:29 +0000 (22:53 +0000)]
GApplication: document Since properly in header files, 2.26 -> 2.28

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

13 years agoUse ; instead of: to not confuse g-ir-scanner
Johan Dahlin [Tue, 1 Feb 2011 19:27:04 +0000 (17:27 -0200)]
Use ; instead of: to not confuse g-ir-scanner

13 years agoUpdated Korean translation
Changwoo Ryu [Wed, 2 Feb 2011 12:59:38 +0000 (21:59 +0900)]
Updated Korean translation

13 years agoCorrect gtk-doc SECTION: syntax
Johan Dahlin [Tue, 1 Feb 2011 18:17:23 +0000 (16:17 -0200)]
Correct gtk-doc SECTION: syntax

g-ir-scanner does not allow a space between the : and the
section name.

13 years agodocs: Remove some unneeded template files
Javier Jardón [Tue, 1 Feb 2011 13:15:55 +0000 (13:15 +0000)]
docs: Remove some unneeded template files

async_queues, atomic_operations and bookmarkfile are already ported
to inline comments

13 years agoGApplication: add notes about GDBus architecture
Ryan Lortie [Mon, 31 Jan 2011 18:19:59 +0000 (13:19 -0500)]
GApplication: add notes about GDBus architecture

Some people are trying to write code that calls g_application_register()
then checks to see if we became the primary name owner before exporting
objects.  This sort of approach worked with libdbus-1 because method
calls to the freshly-acquired name would not be dispatched until the
application returned to the mainloop.  With GDBus, however, dispatches
can occur at any time (including in the brief space between acquiring
the name and actually registering the object).

Add documentation to make it clear that you should not expect this to
work.

13 years agoCheck that error exists before trying to set it. Fixes bug #640975.
Ignacio Casal Quinteiro [Mon, 31 Jan 2011 12:34:26 +0000 (13:34 +0100)]
Check that error exists before trying to set it. Fixes bug #640975.

13 years agoUpdated Galician translations
Fran Diéguez [Sun, 30 Jan 2011 02:31:06 +0000 (03:31 +0100)]
Updated Galician translations

13 years agoUpdated Italian translation
Luca Ferretti [Sat, 29 Jan 2011 13:00:25 +0000 (14:00 +0100)]
Updated Italian translation

13 years agoupdate Punjabi Translation by A S Alam
A S Alam [Sat, 29 Jan 2011 02:24:24 +0000 (07:54 +0530)]
update Punjabi Translation by A S Alam