platform/upstream/glib.git
14 years agogtimer.c: Revert accidental overwrite
Chun-wei Fan [Tue, 9 Nov 2010 12:32:39 +0000 (20:32 +0800)]
gtimer.c: Revert accidental overwrite

Revert accidental overwrite as timing API was changed from 2.27.2 to 2.27.3

14 years agoBump version
Matthias Clasen [Tue, 9 Nov 2010 04:06:53 +0000 (23:06 -0500)]
Bump version

14 years agoUpdate NEWS 2.27.3
Matthias Clasen [Tue, 9 Nov 2010 02:40:17 +0000 (21:40 -0500)]
Update NEWS

14 years agoAdded and Moved checks for includes
Chun-wei Fan [Tue, 9 Nov 2010 01:53:12 +0000 (09:53 +0800)]
Added and Moved checks for includes

Moved checks for G_OS_WIN32 after GLib header includes and added other checks
required for Windows/MSVC builds

14 years agoUpdated README.txt for VS9
Chun-wei Fan [Tue, 9 Nov 2010 01:50:11 +0000 (09:50 +0800)]
Updated README.txt for VS9

14 years agoUpdated .def generation for x64
Chun-wei Fan [Tue, 9 Nov 2010 01:27:27 +0000 (09:27 +0800)]
Updated .def generation for x64

Some symbols need to be excluded from the .def file as they are set to be so on Win64

14 years agoVarious updates...
Chun-wei Fan [Tue, 9 Nov 2010 01:26:05 +0000 (09:26 +0800)]
Various updates...

-Made up for missed header files in glib and gio during "install"
-Added macro necessary for GLib/GModule .def generation under Win64
-updated location of getting glibconfig.h.win32 for building

14 years agoSome enhancements for Win64 and using existing PCRE installtions
Chun-wei Fan [Tue, 9 Nov 2010 01:23:47 +0000 (09:23 +0800)]
Some enhancements for Win64 and using existing PCRE installtions

Added option for people to use an existing PCRE build and updated .def generation for x64 systems (some symbols are set to be excluded from Win64 builds)
Also fixed the filter "PCRE" for the bundled PCRE as file layout changed

14 years agoAdded option to use existing installation of PCRE
Chun-wei Fan [Tue, 9 Nov 2010 01:11:48 +0000 (09:11 +0800)]
Added option to use existing installation of PCRE

Allow the person compiling GLib to use his/her own copy of PCRE, bug#633075

14 years agoMade up for missed source files
Chun-wei Fan [Tue, 9 Nov 2010 01:08:45 +0000 (09:08 +0800)]
Made up for missed source files

Made up for missing required source files in  gio.vcproj(in) for Windows builds

14 years agoGPeriodic: enable subclassing
Ryan Lortie [Mon, 8 Nov 2010 23:15:32 +0000 (18:15 -0500)]
GPeriodic: enable subclassing

Move GPeriodic struct and class struct to the header.  Do ->priv.

14 years agoGPeriodic: remove repair functions
Ryan Lortie [Mon, 8 Nov 2010 21:59:29 +0000 (16:59 -0500)]
GPeriodic: remove repair functions

Replace it with a single repair signal that either fires or does not.

14 years agoNew function: g_clear_object()
Ryan Lortie [Mon, 8 Nov 2010 21:42:32 +0000 (16:42 -0500)]
New function: g_clear_object()

By analogy to g_clear_error, takes a pass-by-reference GObject reference
and, if non-%NULL, unrefs it and sets it equal to %NULL.

Bug #620263.

14 years agofix .gitignore
Dan Winship [Sun, 7 Nov 2010 17:56:44 +0000 (12:56 -0500)]
fix .gitignore

14 years agofix make check
Dan Winship [Sun, 7 Nov 2010 17:56:08 +0000 (12:56 -0500)]
fix make check

14 years agog_get_user_runtime_dir(): New function
Ryan Lortie [Sat, 6 Nov 2010 21:34:40 +0000 (17:34 -0400)]
g_get_user_runtime_dir(): New function

Get the value of the XDG_RUNTIME_DIR environment variable.

14 years agoAdd G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE
Ryan Lortie [Sat, 6 Nov 2010 02:07:07 +0000 (22:07 -0400)]
Add G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE

If specified, the signal subscription is setup client-side but the match
rule is not sent to the server.  This allows the caller to manually
register more detailed match rules.

14 years agoFix docs comment typo
Christian Persch [Sat, 6 Nov 2010 11:27:01 +0000 (12:27 +0100)]
Fix docs comment typo

14 years agoupdate Punjabi Translation by A S Alam
A S Alam [Sat, 6 Nov 2010 05:18:55 +0000 (10:48 +0530)]
update Punjabi Translation by A S Alam

14 years agoupdate Punjabi Translation by A S Alam
A S Alam [Sat, 6 Nov 2010 05:17:54 +0000 (10:47 +0530)]
update Punjabi Translation by A S Alam

14 years agoAdd g_variant_lookup() and tests
Ryan Lortie [Sat, 6 Nov 2010 01:33:06 +0000 (21:33 -0400)]
Add g_variant_lookup() and tests

Convenience API for doing lookups in dictionaries where the key is a
string or object path.

14 years agoFix markup
Matthias Clasen [Fri, 5 Nov 2010 18:50:01 +0000 (14:50 -0400)]
Fix markup

14 years agoFix up gapplication example
Matthias Clasen [Fri, 5 Nov 2010 18:29:15 +0000 (14:29 -0400)]
Fix up gapplication example

14 years agoDescribe enum and flags types a bit
Matthias Clasen [Fri, 5 Nov 2010 18:28:44 +0000 (14:28 -0400)]
Describe enum and flags types a bit

14 years agoUpdate the gschema dtd to include flags
Matthias Clasen [Fri, 5 Nov 2010 17:56:42 +0000 (13:56 -0400)]
Update the gschema dtd to include flags

14 years agoReport more useful errors from g_settings_set_value
Matthias Clasen [Fri, 5 Nov 2010 13:31:36 +0000 (09:31 -0400)]
Report more useful errors from g_settings_set_value

14 years agogsettings.m4: Fix rules to work when there are no schemas
Dan Winship [Thu, 4 Nov 2010 19:23:22 +0000 (15:23 -0400)]
gsettings.m4: Fix rules to work when there are no schemas

If there are no schemas, don't try to install "" at install time.
(In particular, automake conditionals don't work properly with
@-expanded rules, so if you conditionally build a schema, you'll
still unconditionally get the install rule.)

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

14 years agoClarify docs for g_path_is_absolute() semantics on Windows
Tor Lillqvist [Tue, 26 Oct 2010 09:20:22 +0000 (12:20 +0300)]
Clarify docs for g_path_is_absolute() semantics on Windows

14 years agoUpdated Belarusian translation
Ihar Hrachyshka [Sun, 31 Oct 2010 18:12:26 +0000 (20:12 +0200)]
Updated Belarusian translation

14 years agoAdd g_simple_async_report_take_gerror_in_idle
Christian Persch [Thu, 23 Sep 2010 11:47:13 +0000 (13:47 +0200)]
Add g_simple_async_report_take_gerror_in_idle

... and use it where appropriate. Saves an extra GError copy.

Bug #633686.

14 years agoUse g_simple_async_result_{new_,}take_error
Christian Persch [Thu, 23 Sep 2010 11:02:50 +0000 (13:02 +0200)]
Use g_simple_async_result_{new_,}take_error

Bug #633685.

14 years agoAdd simple dynamic scheduling to GPeriodic
Ryan Lortie [Wed, 3 Nov 2010 04:16:16 +0000 (00:16 -0400)]
Add simple dynamic scheduling to GPeriodic

GPeriodic will now try not to use more than 50% of the CPU for its own
purposes unless there are no other tasks attempting to run.

14 years agoTweak GApplication docs
Matthias Clasen [Wed, 3 Nov 2010 02:39:58 +0000 (22:39 -0400)]
Tweak GApplication docs

14 years agodocs: Recommend against using GTimeVal
Ryan Lortie [Wed, 3 Nov 2010 02:12:55 +0000 (22:12 -0400)]
docs: Recommend against using GTimeVal

14 years agoGMainContext: store real time as int64
Ryan Lortie [Wed, 3 Nov 2010 02:03:08 +0000 (22:03 -0400)]
GMainContext: store real time as int64

14 years agoglocalfileinfo: remove non-use of GTimeVal
Ryan Lortie [Mon, 1 Nov 2010 21:04:31 +0000 (17:04 -0400)]
glocalfileinfo: remove non-use of GTimeVal

14 years agoAdd g_get_real_time() for wall-clock int64 micros
Ryan Lortie [Mon, 1 Nov 2010 20:40:36 +0000 (16:40 -0400)]
Add g_get_real_time() for wall-clock int64 micros

Similar in spirit to g_get_monotonic_time().

14 years agoClean up g_usleep()
Ryan Lortie [Mon, 1 Nov 2010 20:35:10 +0000 (16:35 -0400)]
Clean up g_usleep()

Remove some code that was written in 2000 to support OSes that do not
have nanosleep().  nanosleep() has been specified (in POSIX-1.2001) for
almost a decade now, so assume we have it (except on Windows).

Remove the checks for nanosleep and nsleep from configure.ac.

We're removing this code because we honestly believe that nobody will be
affected.  If this change negatively impacts you, please file a bug.

14 years agoGTimer: switch to monotonic time
Ryan Lortie [Mon, 1 Nov 2010 20:06:39 +0000 (16:06 -0400)]
GTimer: switch to monotonic time

and remove docs notes about threads having to be initialised.

14 years agoDrop GTimeSpec type
Ryan Lortie [Mon, 1 Nov 2010 19:47:29 +0000 (15:47 -0400)]
Drop GTimeSpec type

14 years agoSwitch GTimeSpec users to int64 microseconds
Ryan Lortie [Mon, 1 Nov 2010 19:46:35 +0000 (15:46 -0400)]
Switch GTimeSpec users to int64 microseconds

glib is trying to move toward using microseconds-in-gint64 as its
universal time format.

No real API breaks here since GTimeSpec is new this unstable release
series.

14 years agoGTimeout: simplify math for 'seconds' case
Ryan Lortie [Mon, 1 Nov 2010 17:31:37 +0000 (13:31 -0400)]
GTimeout: simplify math for 'seconds' case

The code was designed to deal with any granularity of timer and due to
the use of GTimeVal/GTimeSpec, the math for this gets extremely
confusing.

From a practical standpoint, we only ever have a granularity of seconds.

Take advantage of that fact in the code and vastly simplify the math.

14 years agoUpdated Spanish translation
Jorge González [Tue, 2 Nov 2010 09:46:10 +0000 (10:46 +0100)]
Updated Spanish translation

14 years agoUpdated Spanish translation
Jorge González [Mon, 1 Nov 2010 17:50:46 +0000 (18:50 +0100)]
Updated Spanish translation

14 years agoUpdated Galician translations
Fran Diéguez [Mon, 1 Nov 2010 16:15:38 +0000 (17:15 +0100)]
Updated Galician translations

14 years agoFix gtk-doc typo
Paolo Borelli [Mon, 1 Nov 2010 13:36:57 +0000 (14:36 +0100)]
Fix gtk-doc typo

14 years agoFix Since: for new functions
Christian Persch [Mon, 1 Nov 2010 10:06:26 +0000 (11:06 +0100)]
Fix Since: for new functions

g_simple_async_result_new_from_error/take_error are Since: 2.28.

14 years agoUpdated Hebrew translation.
Yaron Shahrabani [Mon, 1 Nov 2010 06:17:02 +0000 (08:17 +0200)]
Updated Hebrew translation.

14 years agoBump version
Matthias Clasen [Mon, 1 Nov 2010 04:32:47 +0000 (00:32 -0400)]
Bump version

14 years agoNEWS for 2.27.2 2.27.2
Matthias Clasen [Mon, 1 Nov 2010 03:32:48 +0000 (23:32 -0400)]
NEWS for 2.27.2

14 years agoRemove nonexisting type from giotypes.h
Matthias Clasen [Mon, 1 Nov 2010 03:19:04 +0000 (23:19 -0400)]
Remove nonexisting type from giotypes.h

GDBusActionGroup does not exist yet.

14 years agoFix a doc typo
Matthias Clasen [Mon, 1 Nov 2010 03:13:36 +0000 (23:13 -0400)]
Fix a doc typo

14 years agoRemove leftover definition from gactiongroup.h
Matthias Clasen [Mon, 1 Nov 2010 03:10:41 +0000 (23:10 -0400)]
Remove leftover definition from gactiongroup.h

GContextActionGroupInterface is not currently used anywhere.

14 years agoVarious documentation fixes
Matthias Clasen [Mon, 1 Nov 2010 02:41:00 +0000 (22:41 -0400)]
Various documentation fixes

14 years agoGSimpleAsyncResult: add error-taking variants
Matthias Clasen [Mon, 1 Nov 2010 02:38:38 +0000 (22:38 -0400)]
GSimpleAsyncResult: add error-taking variants

Add g_simple_async_result_new_take_error and
g_simple_async_result_take_error, which take over ownership of the
given error. Based on a patch by Christian Persch.

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

14 years agoAdd an example of invoking actions
Matthias Clasen [Mon, 1 Nov 2010 02:05:20 +0000 (22:05 -0400)]
Add an example of invoking actions

14 years agoFix g_action_group_activate_action() docs
Matthias Clasen [Mon, 1 Nov 2010 01:08:25 +0000 (21:08 -0400)]
Fix g_action_group_activate_action() docs

14 years agoBe more careful about overwriting errors
Matthias Clasen [Mon, 1 Nov 2010 00:58:15 +0000 (20:58 -0400)]
Be more careful about overwriting errors

When trying to parse again, we don't want to overwrite the exiting
error.

14 years agoGApplication: Add an action example
Matthias Clasen [Mon, 1 Nov 2010 00:49:53 +0000 (20:49 -0400)]
GApplication: Add an action example

14 years agoDon't leak references in the actions example
Matthias Clasen [Mon, 1 Nov 2010 00:33:02 +0000 (20:33 -0400)]
Don't leak references in the actions example

These are not initially unowned...

14 years agoFix error in Japanese translation
Takayuki KUSANO [Sun, 31 Oct 2010 16:28:13 +0000 (01:28 +0900)]
Fix error in Japanese translation

14 years agoAdd an example of using GApplication with actions
Matthias Clasen [Sun, 31 Oct 2010 02:19:02 +0000 (22:19 -0400)]
Add an example of using GApplication with actions

14 years agoUse G_GINT64_CONSTANT here
Christian Persch [Sun, 31 Oct 2010 01:40:28 +0000 (21:40 -0400)]
Use G_GINT64_CONSTANT here

Bug #631482.

14 years agogsettings-tool: Support completion for enum values
Matthias Clasen [Sat, 30 Oct 2010 05:13:42 +0000 (01:13 -0400)]
gsettings-tool: Support completion for enum values

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

14 years agoAdd a command to list keys and values recursively
Matthias Clasen [Sat, 30 Oct 2010 04:00:06 +0000 (00:00 -0400)]
Add a command to list keys and values recursively

This is similar to gconftool-2 -R, which is very handy
for collecting information for bug reports, etc. It is now
possible to say gsettings list-recursively org.foo.bar, and
this will produce a list of schemas, keys and values for
org.foo.bar and all its child and grandchild schemata,
recursively.

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

14 years agoMake gsettings-tool translatable again
Matthias Clasen [Sat, 30 Oct 2010 03:12:07 +0000 (23:12 -0400)]
Make gsettings-tool translatable again

This regression was caused by the recent rewrite.

14 years agoUse 'aay' instead of 'as' for environ
Ryan Lortie [Fri, 29 Oct 2010 20:33:47 +0000 (16:33 -0400)]
Use 'aay' instead of 'as' for environ

It might contain non-utf8 characters.

14 years agoGApplication: emit a signal when starting up
Ryan Lortie [Fri, 29 Oct 2010 03:06:53 +0000 (23:06 -0400)]
GApplication: emit a signal when starting up

Send a signal to the bus when registration is successful and we are the
primary instance.

14 years agoGApplication: support environment passing
Ryan Lortie [Fri, 29 Oct 2010 02:49:12 +0000 (22:49 -0400)]
GApplication: support environment passing

Add support for passing the full contents of the environment to the
primary instance (by storing it in the platform_data) when
G_APPLICATION_SEND_ENVIRONMENT is in the flags.

14 years agoAdd testcase for environment functions
Ryan Lortie [Fri, 29 Oct 2010 02:20:25 +0000 (22:20 -0400)]
Add testcase for environment functions

14 years agoAdd g_get_environ(): portable access to 'environ'
Ryan Lortie [Fri, 29 Oct 2010 01:26:09 +0000 (21:26 -0400)]
Add g_get_environ(): portable access to 'environ'

Return a copy of 'environ' on platforms where that is possible, or do
something else on other platforms.

14 years agoUpdated Catalan (Valencian) translation
Carles Ferrando [Thu, 28 Oct 2010 23:48:48 +0000 (00:48 +0100)]
Updated Catalan (Valencian) translation

14 years agoGApplication: use infinite timeout for CommandLine
Ryan Lortie [Thu, 28 Oct 2010 20:46:18 +0000 (16:46 -0400)]
GApplication: use infinite timeout for CommandLine

Use an infinite DBus timeout for sending a CommandLine request to the
primary instance.

This resolves a bit of bug #633339.

14 years agoBug 633356 - (GDBus) Make G_MAXINT mean no timeout
Ryan Lortie [Thu, 28 Oct 2010 20:14:24 +0000 (16:14 -0400)]
Bug 633356 - (GDBus) Make G_MAXINT mean no timeout

Don't register a timeout function in the case that G_MAXINT is given for
the timeout length.

14 years agoGNetworkService: fix a small bug
Dan Winship [Thu, 28 Oct 2010 19:17:17 +0000 (15:17 -0400)]
GNetworkService: fix a small bug

Fix a small bug in the synchronous lookup code introduced in the fix
for bug 629274

14 years agoDon't enable dtrace support when dtrace isn't available
Emilio Pozuelo Monfort [Tue, 28 Sep 2010 09:53:03 +0000 (11:53 +0200)]
Don't enable dtrace support when dtrace isn't available

Fixes FTBFS when dtrace isn't available but <sys/sdt.h> is.

14 years agoBug 158725 - free linked list with data
Ryan Lortie [Fri, 16 Oct 2009 10:19:06 +0000 (12:19 +0200)]
Bug 158725 - free linked list with data

Add some helpers for freeing a linked list along with its elements by
providing a GDestroyNotify to call on each of them.

Add a test.

Based on a patch from Cosimo Cecchi.

14 years agoGApplication: exit_status unset in one branch
Ryan Lortie [Wed, 27 Oct 2010 13:26:01 +0000 (09:26 -0400)]
GApplication: exit_status unset in one branch

Closes #633206

14 years agoGPeriodic: allow unblock time to be passed in
Ryan Lortie [Fri, 22 Oct 2010 17:43:11 +0000 (19:43 +0200)]
GPeriodic: allow unblock time to be passed in

14 years agoDeprecate g_source_get_current_time()
Ryan Lortie [Fri, 22 Oct 2010 17:20:14 +0000 (19:20 +0200)]
Deprecate g_source_get_current_time()

14 years agoswitch GSocket to monotonic time for timeouts
Ryan Lortie [Fri, 22 Oct 2010 17:16:57 +0000 (19:16 +0200)]
switch GSocket to monotonic time for timeouts

14 years agoswitch GPeriodic to use monotonic time
Ryan Lortie [Fri, 22 Oct 2010 17:13:01 +0000 (19:13 +0200)]
switch GPeriodic to use monotonic time

14 years agoswitch GTimeoutSource to use monotonic time
Ryan Lortie [Fri, 22 Oct 2010 17:10:39 +0000 (19:10 +0200)]
switch GTimeoutSource to use monotonic time

14 years agoAdd g_source_get_time()
Ryan Lortie [Fri, 22 Oct 2010 16:40:08 +0000 (18:40 +0200)]
Add g_source_get_time()

Cached version of g_get_monotonic_time() that does similar to what
g_source_get_current_time() does for g_get_current_time().

14 years agoRename time_is_current to current_time_is_fresh
Ryan Lortie [Fri, 22 Oct 2010 16:47:06 +0000 (18:47 +0200)]
Rename time_is_current to current_time_is_fresh

Internal structure field; no semantic changes.

14 years agoAdd g_get_monotonic_time()
Ryan Lortie [Fri, 22 Oct 2010 16:42:32 +0000 (18:42 +0200)]
Add g_get_monotonic_time()

Gets the system monotonic time on systems that have it.  Otherwise, call
g_get_current_time().

14 years agoAdd 'GTimeSpec' as 'struct timespec' equivalent
Ryan Lortie [Fri, 22 Oct 2010 15:28:46 +0000 (17:28 +0200)]
Add 'GTimeSpec' as 'struct timespec' equivalent

14 years agoLink libglib against -lrt if we have clock_gettime
Ryan Lortie [Fri, 22 Oct 2010 15:16:47 +0000 (17:16 +0200)]
Link libglib against -lrt if we have clock_gettime

14 years agoBug 632169 - manual use of gsettings-data-convert
Ryan Lortie [Wed, 27 Oct 2010 13:08:32 +0000 (09:08 -0400)]
Bug 632169 - manual use of gsettings-data-convert

Add some words and example code to the documentation about why you might
want to manually invoke gsettings-data-convert and how you should go
about doing that.

14 years agogsettings m4: Use --strict for checking
Ryan Lortie [Tue, 26 Oct 2010 16:02:12 +0000 (12:02 -0400)]
gsettings m4: Use --strict for checking

A while ago we allowed glib-compile-schemas to return a 'success' status
in the case that just one schema file contained errors.  Of course, this
is the exact opposite of what we want in the case that we are checking
schema validity at compile time.

Use the --strict flag for that case.

This closes #633115.

14 years agoGVariant: avoid locking in a common case
Ryan Lortie [Tue, 26 Oct 2010 15:49:32 +0000 (11:49 -0400)]
GVariant: avoid locking in a common case

Avoid acquiring the lock on the instance on the case of deserialising a
child.  We know that it is safe to do this unlocked because a serialised
child will never become unserialised.

Closes #626320

14 years agoGApplicationCommandLine: add printf annotations
Ryan Lortie [Mon, 25 Oct 2010 18:45:19 +0000 (14:45 -0400)]
GApplicationCommandLine: add printf annotations

to g_application_command_line_print{,err}

14 years agoImplement (untested) GApplication actions support
Ryan Lortie [Mon, 25 Oct 2010 18:32:07 +0000 (14:32 -0400)]
Implement (untested) GApplication actions support

14 years agoUpdated Indonesian translation
Andika Triwidada [Mon, 25 Oct 2010 15:10:32 +0000 (22:10 +0700)]
Updated Indonesian translation

14 years agoBump version
Matthias Clasen [Mon, 25 Oct 2010 13:55:38 +0000 (09:55 -0400)]
Bump version

14 years agoMore documentation fixups 2.27.1
Matthias Clasen [Mon, 25 Oct 2010 12:42:36 +0000 (08:42 -0400)]
More documentation fixups

14 years agoRemove nonexisting API from the headers
Matthias Clasen [Mon, 25 Oct 2010 12:34:00 +0000 (08:34 -0400)]
Remove nonexisting API from the headers

I couldn't find any trace of g_application_run_with_arguments.

14 years agoAdd new gmain api to the docs
Matthias Clasen [Mon, 25 Oct 2010 12:30:28 +0000 (08:30 -0400)]
Add new gmain api to the docs

14 years agoUpdate NEWS for 2.27.1
Matthias Clasen [Mon, 25 Oct 2010 12:19:34 +0000 (08:19 -0400)]
Update NEWS for 2.27.1

14 years agoUpdate Simplified Chinese translation.
Yinghua Wang [Sun, 24 Oct 2010 03:51:46 +0000 (03:51 +0000)]
Update Simplified Chinese translation.