platform/upstream/glib.git
13 years agoGHashTable: Add a test for remove-all functionality
Matthias Clasen [Wed, 27 Apr 2011 04:03:28 +0000 (00:03 -0400)]
GHashTable: Add a test for remove-all functionality

13 years agoWhitespace cleanup
Matthias Clasen [Wed, 27 Apr 2011 03:57:17 +0000 (23:57 -0400)]
Whitespace cleanup

13 years agoAllow caching have_qsort_r which re-enables cross-compiling
Maciej Piechotka [Thu, 31 Mar 2011 07:00:27 +0000 (09:00 +0200)]
Allow caching have_qsort_r which re-enables cross-compiling

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

13 years agoFix mailing list link in README
Matthias Clasen [Wed, 27 Apr 2011 03:26:58 +0000 (23:26 -0400)]
Fix mailing list link in README

Patch by Thomas Andersen, bug 647594

13 years agoGDBusServer: Documentation: Improvements.
Murray Cumming [Mon, 4 Apr 2011 08:01:51 +0000 (10:01 +0200)]
GDBusServer: Documentation: Improvements.

Provide a fuller description and lead people away if they arrived
here just looking for a way to provide a regular D-Bus service.

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

13 years agoUse G_SIGNAL_MUST_COLLECT for VARIANT signals
Christian Persch [Fri, 4 Mar 2011 17:21:51 +0000 (18:21 +0100)]
Use G_SIGNAL_MUST_COLLECT for VARIANT signals

Bug #643624.

13 years agoFix up some harmless FALSE <> NULL confusions
Matthias Clasen [Wed, 27 Apr 2011 02:51:54 +0000 (22:51 -0400)]
Fix up some harmless FALSE <> NULL confusions

Reported in bug 643134.

13 years agoGSequence: Make g_sequence_iter_move behave as documented
Matthias Clasen [Wed, 27 Apr 2011 02:08:24 +0000 (22:08 -0400)]
GSequence: Make g_sequence_iter_move behave as documented

As pointed out in bug 658313, moving before the begin iter is
supposed to return the begin iter, not the end iter. Also add
a test for this behaviour.

13 years agoGDesktopAppInfo: Add "filename" property for bindings
Colin Walters [Tue, 26 Apr 2011 19:08:54 +0000 (15:08 -0400)]
GDesktopAppInfo: Add "filename" property for bindings

GDesktopAppInfo violates the GObject rule that your C constructors
should just be thin wrappers around g_object_new().  While GKeyFile
isn't introspctable, this patch allows from JavaScript:

var app = new Gio.DesktopAppInfo({ filename: '/path/to/foo.desktop' });

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

13 years agoSquash some uninitialized variable compiler warnings
Colin Walters [Tue, 26 Apr 2011 17:28:17 +0000 (13:28 -0400)]
Squash some uninitialized variable compiler warnings

From GCC 4.6.

13 years agoGSimpleAsyncResult: push thread context around callback
Dan Winship [Wed, 20 Apr 2011 15:41:47 +0000 (11:41 -0400)]
GSimpleAsyncResult: push thread context around callback

When an old pre-thread-default-context API that takes an explicit
GMainContext wants to call a gio API, it must call
g_main_context_push_thread_default() before, and
g_main_context_pop_thread_default() after the gio call, so that the
gio method will return its result to the desired GMainContext.

But this fails for methods like g_socket_client_connect_async() that
make a chain of multiple async calls, since the pushed/popped context
will only affect the initial call.

Fix this by having GSimpleAsyncResult itself push/pop the context
around the callback invocation, so that if the callback queues another
async request, it will stay in the same context as the original one.

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

13 years agoUpdated Turkish translation
Muhammet Kara [Tue, 26 Apr 2011 00:04:20 +0000 (03:04 +0300)]
Updated Turkish translation

13 years agoDon't ignore SUPPORTS_STARTUP_NOTIFICATION for commandline GAppInfos
Michael Terry [Mon, 25 Apr 2011 12:29:35 +0000 (08:29 -0400)]
Don't ignore SUPPORTS_STARTUP_NOTIFICATION for commandline GAppInfos

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

13 years agoAdd VS 2008 compilation support for some utilities
Chun-wei Fan [Mon, 25 Apr 2011 05:47:07 +0000 (13:47 +0800)]
Add VS 2008 compilation support for some utilities

-Added projects to compile the glib-compile-schemas and gsettings utilities
-Update .vsprops to install these in "install" phase
-Distribute these projects also

13 years agoAdd VS 2010 compilation support for some utilities
Chun-wei Fan [Mon, 25 Apr 2011 05:32:18 +0000 (13:32 +0800)]
Add VS 2010 compilation support for some utilities

-Added projects to compile the glib-compile-schemas and gsettings utilities
-Update .vsprops to install these in "install" phase
-Distribute these projects also

13 years agodocs: fix typos in networking classes
Thomas Hindoe Paaboel Andersen [Wed, 20 Apr 2011 17:08:06 +0000 (19:08 +0200)]
docs: fix typos in networking classes

13 years agoGSocketService: clarify transfer semantics of incoming connections
Dan Winship [Wed, 20 Apr 2011 15:24:46 +0000 (11:24 -0400)]
GSocketService: clarify transfer semantics of incoming connections

The @connection parameter to the ::incoming signal is (transfer none),
so you need to ref it if you want to keep it.

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

13 years agoAPI: testutils: Add g_test_fail()
Benjamin Otte [Fri, 15 Apr 2011 01:23:12 +0000 (03:23 +0200)]
API: testutils: Add g_test_fail()

This allows tests to fail in a nonfatal way and the test runner can
continue if invoked with -k.

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

13 years agotestutils: Sprinkle code with newlines
Benjamin Otte [Mon, 18 Apr 2011 12:45:53 +0000 (14:45 +0200)]
testutils: Sprinkle code with newlines

Readable code ftw!

13 years agotestutils: Return number of bad tests from g_test_run_suite_internal()
Benjamin Otte [Mon, 18 Apr 2011 12:41:51 +0000 (14:41 +0200)]
testutils: Return number of bad tests from g_test_run_suite_internal()

In particular do not return a boolean disguised as an int.

13 years agotestutils: Remove unused variable
Benjamin Otte [Mon, 18 Apr 2011 12:37:24 +0000 (14:37 +0200)]
testutils: Remove unused variable

13 years agotestutils: Return a boolean from g_test_case_run()
Benjamin Otte [Mon, 18 Apr 2011 12:35:58 +0000 (14:35 +0200)]
testutils: Return a boolean from g_test_case_run()

Return value is intened to be TRUE for success, FALSE for failure.
Currently we return TRUE all the time.
Previously the test returned 0 all the time.

13 years agoFix some compiler warnings from gcc 4.6
Colin Walters [Fri, 15 Apr 2011 19:51:25 +0000 (15:51 -0400)]
Fix some compiler warnings from gcc 4.6

13 years agogapplication: Fix typo in property
Colin Walters [Thu, 14 Apr 2011 20:03:18 +0000 (16:03 -0400)]
gapplication: Fix typo in property

13 years agoGApplication: #include "gsettings.h"
Ryan Lortie [Fri, 15 Apr 2011 13:30:24 +0000 (09:30 -0400)]
GApplication: #include "gsettings.h"

Since we call g_settings_sync() from there now...

13 years agoMerge remote-tracking branch 'gvdb/master'
Ryan Lortie [Fri, 15 Apr 2011 13:29:47 +0000 (09:29 -0400)]
Merge remote-tracking branch 'gvdb/master'

13 years agobuilder: do not include <unistd.h> on win32
Ryan Lortie [Fri, 15 Apr 2011 13:27:38 +0000 (09:27 -0400)]
builder: do not include <unistd.h> on win32

Spotted by Kean Johnston <kean.johnston@gmail.com>.

https://mail.gnome.org/archives/gtk-devel-list/2011-April/msg00010.html

13 years agoBug 637561 - Crash when using G_DBUS_SERVER_FLAGS_RUN_IN_THREAD
Michael Kuhn [Wed, 22 Dec 2010 09:11:11 +0000 (10:11 +0100)]
Bug 637561 - Crash when using G_DBUS_SERVER_FLAGS_RUN_IN_THREAD

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years ago/gdbus/message-serialize-invalid test: be compatible with D-Bus 1.4.8
Simon McVittie [Thu, 31 Mar 2011 12:58:55 +0000 (13:58 +0100)]
/gdbus/message-serialize-invalid test: be compatible with D-Bus 1.4.8

Older versions of libdbus would let you construct an invalid
DBusMessage, but that's a bug, which will be fixed in 1.4.8/1.5.0.
Instead, construct a valid message of the same length, then replace
substrings in the serialized blob with their invalid counterparts.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGLocalFile: Use _fstati64 rather than stat on Win32
Kean Johnston [Fri, 15 Apr 2011 08:15:04 +0000 (10:15 +0200)]
GLocalFile: Use _fstati64 rather than stat on Win32

We want this to get 64bit timestamps and file lenghts.

13 years agoSlight docs rewording
Matthias Clasen [Fri, 15 Apr 2011 00:41:54 +0000 (20:41 -0400)]
Slight docs rewording

Proposed by Thomas Andersen,
https://bugzilla.gnome.org/show_bug.cgi?id=647700

13 years agoGResolver: Don't return duplicate addresses
David Zeuthen [Thu, 14 Apr 2011 15:27:57 +0000 (11:27 -0400)]
GResolver: Don't return duplicate addresses

... this was causing a GDBus test-case to fail so now that it is
fixed, also reenable the test case.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGInetAddress: add equal() method
David Zeuthen [Thu, 14 Apr 2011 15:27:57 +0000 (11:27 -0400)]
GInetAddress: add equal() method

This is needed in the fix for

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGTimeZone: fix non-threadsafe refcounting
Ryan Lortie [Thu, 14 Apr 2011 13:54:17 +0000 (09:54 -0400)]
GTimeZone: fix non-threadsafe refcounting

In the previous code, if the timezone was pulled out of the cache again
just as the last reference was being dropped, the cache code will
increase its refcount and return it while the unref code was freeing it.

Protect against that.

Closes #646435.

13 years agoGDBus: If an authentication method fail, don't give up, just try the next one
David Zeuthen [Wed, 13 Apr 2011 22:40:47 +0000 (18:40 -0400)]
GDBus: If an authentication method fail, don't give up, just try the next one

This problem was reported in bug 647602.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBus: Add test case for the ANONYMOUS authentication method
David Zeuthen [Wed, 13 Apr 2011 22:21:16 +0000 (18:21 -0400)]
GDBus: Add test case for the ANONYMOUS authentication method

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBus: Nuke debug spew from the ANONYMOUS authentication method
David Zeuthen [Wed, 13 Apr 2011 22:19:57 +0000 (18:19 -0400)]
GDBus: Nuke debug spew from the ANONYMOUS authentication method

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBus: Allow tcp: and nonce-tcp: addresses without any arguments
David Zeuthen [Wed, 13 Apr 2011 21:49:19 +0000 (17:49 -0400)]
GDBus: Allow tcp: and nonce-tcp: addresses without any arguments

This was broken in this commit

 http://git.gnome.org/browse/glib/commit/?id=0729260141bb585943ad1c6efa8ab7ee9058b0aa

The test case for catching this is unfortunately commented out (so it
didn't catch it) due to this bug

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

still being unresolved.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbusconnection: Avoid tripping assertion if we fail to authenticate twice
Colin Walters [Wed, 13 Apr 2011 18:03:58 +0000 (14:03 -0400)]
gdbusconnection: Avoid tripping assertion if we fail to authenticate twice

If g_bus_get_sync() fails in authentication (because e.g. the process
uid, doesn't match the expected in EXTERNAL), a secondary call to
g_bus_get_sync() would notice we aren't initialized, and try
to initialize.

The assertion here is just wrong; we now explicitly and clearly handle
both cases where we already have an error, or we already succeeded.

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

13 years agoG_VARIANT_TYPE_VARDICT: Add 'Since:' tag
Ryan Lortie [Wed, 13 Apr 2011 15:46:33 +0000 (11:46 -0400)]
G_VARIANT_TYPE_VARDICT: Add 'Since:' tag

13 years agoBump version
Matthias Clasen [Wed, 13 Apr 2011 12:48:10 +0000 (08:48 -0400)]
Bump version

13 years agoSkip the writable test if the file is not writable 2.29.2
Matthias Clasen [Wed, 13 Apr 2011 12:19:35 +0000 (08:19 -0400)]
Skip the writable test if the file is not writable

Since make distcheck operates on a readonly source tree.

13 years agoFix non-srcdir builds
Matthias Clasen [Wed, 13 Apr 2011 05:31:19 +0000 (01:31 -0400)]
Fix non-srcdir builds

13 years agoMore updates
Matthias Clasen [Wed, 13 Apr 2011 04:42:51 +0000 (00:42 -0400)]
More updates

13 years agoFix a typo in the GSettings docs
Matthias Clasen [Wed, 13 Apr 2011 04:39:01 +0000 (00:39 -0400)]
Fix a typo in the GSettings docs

Pointed out by Thomas Andersen
https://bugzilla.gnome.org/show_bug.cgi?id=647600

13 years agogsettings-tool fixes: Add missing _apply(), add unset-recursively to man page
Colin Walters [Tue, 12 Apr 2011 16:56:33 +0000 (12:56 -0400)]
gsettings-tool fixes: Add missing _apply(), add unset-recursively to man page

13 years agogsettings: Implement reset-recursively
Colin Walters [Tue, 12 Apr 2011 15:00:54 +0000 (11:00 -0400)]
gsettings: Implement reset-recursively

Motivation was the ability to:
$ gsettings reset-recursively org.gnome.gnome-panel

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

13 years agoGLocalDirectoryMonitor: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 14:02:31 +0000 (10:02 -0400)]
GLocalDirectoryMonitor: Improve struct packing

13 years agoGIOSchedulerJob: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 14:02:12 +0000 (10:02 -0400)]
GIOSchedulerJob: Improve struct packing

13 years agoGFilenameCompleter: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 14:01:37 +0000 (10:01 -0400)]
GFilenameCompleter: Improve struct packing

13 years agoGFileAttributeMatcher: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 14:01:05 +0000 (10:01 -0400)]
GFileAttributeMatcher: Improve struct packing

13 years agoGDBusProxy: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 14:00:37 +0000 (10:00 -0400)]
GDBusProxy: Improve struct packing

13 years agoGDBusWorker: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 14:00:03 +0000 (10:00 -0400)]
GDBusWorker: Improve struct packing

13 years agoGMarkupParseContext: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 13:58:13 +0000 (09:58 -0400)]
GMarkupParseContext: Improve struct packing

13 years agoGMatchInfo: improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 13:55:59 +0000 (09:55 -0400)]
GMatchInfo: improve struct packing

13 years agoAdd forgotten apis
Matthias Clasen [Mon, 11 Apr 2011 17:26:40 +0000 (13:26 -0400)]
Add forgotten apis

g_desktop_app_info_launch_uris_as_manager was not listed in
the docs.

13 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 11 Apr 2011 19:06:01 +0000 (21:06 +0200)]
Updated Spanish translation

13 years agoAdd forgotten apis
Matthias Clasen [Mon, 11 Apr 2011 17:26:40 +0000 (13:26 -0400)]
Add forgotten apis

g_desktop_app_info_launch_uris_as_manager was not listed in
the docs.

13 years agoFix duplicate private subsection
Matthias Clasen [Mon, 11 Apr 2011 17:21:12 +0000 (13:21 -0400)]
Fix duplicate private subsection

gtk-doc doesn't understand duplicate Private subsections in
the obvious way, it seems.

13 years agoFix a few parameter mismatches in the docs
Matthias Clasen [Mon, 11 Apr 2011 17:20:55 +0000 (13:20 -0400)]
Fix a few parameter mismatches in the docs

13 years agoDon't include unistd.h unconditionally
Matthias Clasen [Mon, 11 Apr 2011 16:57:19 +0000 (12:57 -0400)]
Don't include unistd.h unconditionally

It doesn't exist on all platforms. Partial fix for bug 647341.

13 years agoAdd 2.30 index to GLib docs
Matthias Clasen [Mon, 11 Apr 2011 16:53:25 +0000 (12:53 -0400)]
Add 2.30 index to GLib docs

13 years agoUpdates
Matthias Clasen [Mon, 11 Apr 2011 16:26:15 +0000 (12:26 -0400)]
Updates

13 years agoGApplication: g_settings_sync() on exit
Ryan Lortie [Mon, 11 Apr 2011 07:30:24 +0000 (03:30 -0400)]
GApplication: g_settings_sync() on exit

Call g_settings_sync() just before g_applcation_run() returns.  This is
really the correct thing to do in every case that you're using GSettings
and it prevents every single application from having to do it for
themselves.

Closes bug #647419.

13 years agoGSettings: make _sync() a no-op if uninitialised
Ryan Lortie [Mon, 11 Apr 2011 07:37:47 +0000 (03:37 -0400)]
GSettings: make _sync() a no-op if uninitialised

If GSettings is uninitialised then g_settings_sync() should very
obviously just return right away (rather than attempting to initialise
GSettings first).

13 years agoAdd test case for G_APPLICATION_NON_UNIQUE
Ryan Lortie [Sun, 10 Apr 2011 11:55:03 +0000 (07:55 -0400)]
Add test case for G_APPLICATION_NON_UNIQUE

13 years agoGApplication: add G_APPLICATION_NON_UNIQUE
Ryan Lortie [Sun, 10 Apr 2011 11:51:55 +0000 (07:51 -0400)]
GApplication: add G_APPLICATION_NON_UNIQUE

Add a flag to essentially short-circuit g_application_register().  The
application makes no attempt to acquire the bus name or check for
existing instances with that name.  The application is never considered
as being 'remote' and all requests are handled locally.

Closes #646985.

13 years agoGApplication: fix leaked object path
Ryan Lortie [Sun, 10 Apr 2011 11:50:26 +0000 (07:50 -0400)]
GApplication: fix leaked object path

In the case that we fail to become the primary instance we should
unregister *both* object paths that we registered during our attempt.

13 years agoGSocket: clarify g_socket_receive documentation
Dan Winship [Sat, 9 Apr 2011 16:47:32 +0000 (12:47 -0400)]
GSocket: clarify g_socket_receive documentation

g_socket_receive* return 0 if the connection is closed.

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

13 years agogsettings-tool: warn if setting a value fails
Dan Winship [Fri, 11 Mar 2011 03:09:31 +0000 (22:09 -0500)]
gsettings-tool: warn if setting a value fails

eg, if the dconf backend cannot connect to dbus

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

13 years agoFix another faulty GApplicationCommandline example
Matthias Clasen [Fri, 8 Apr 2011 21:02:01 +0000 (17:02 -0400)]
Fix another faulty GApplicationCommandline example

Several flaws were pointed out by Shaun McCance. We were
leaking handled arguments, and we were mishandling the last
argument, and we were actually skipping arguments too.

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

13 years agoSilence a bunch of -Wunused-but-set-variable warnings
David Zeuthen [Fri, 8 Apr 2011 19:44:25 +0000 (15:44 -0400)]
Silence a bunch of -Wunused-but-set-variable warnings

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGSettings: remove more asserts
Ryan Lortie [Fri, 8 Apr 2011 13:14:50 +0000 (09:14 -0400)]
GSettings: remove more asserts

Same logic as the last commit on this topic, applied to the other
functions too.

13 years agoAvoid an interaction between GApplication and GOption
Matthias Clasen [Fri, 8 Apr 2011 11:13:54 +0000 (07:13 -0400)]
Avoid an interaction between GApplication and GOption

When using GOption to handle commandlines, we need to disable
the builtin help handling, since it calls exit(). Also mention
this particular pitfall in the docs.

13 years agoglib-compile-schemas: check for undefined refs
Ryan Lortie [Fri, 8 Apr 2011 05:47:52 +0000 (01:47 -0400)]
glib-compile-schemas: check for undefined refs

For child schemas, verify that the named schema actually exists and
issue a warning if not.  This error in schema files will cause runtime
errors when iterating over the list of child schemas and attempting to
instantiate each one.

This will move from being merely a warning to a hard error in the
future.

Bug #646039.

13 years agoDon't assert on backend == settings->priv->backend
Ryan Lortie [Fri, 8 Apr 2011 01:25:01 +0000 (21:25 -0400)]
Don't assert on backend == settings->priv->backend

They could be different if a notification is queued for delivery and
someone calls g_settings_delay().

Bug #646843.

13 years agoAdd a warning to the g_dbus_connection_set_exit_on_close docs
Matthias Clasen [Thu, 7 Apr 2011 21:14:36 +0000 (17:14 -0400)]
Add a warning to the g_dbus_connection_set_exit_on_close docs

Tell people to not leak their apps out of the session.

13 years agoFix two leaks seen when using TLS connections
Dan Winship [Mon, 4 Apr 2011 15:10:50 +0000 (11:10 -0400)]
Fix two leaks seen when using TLS connections

g_tls_certificate_list_new_from_file() was leaking the file contents,
and GSource was leaking the GSourcePrivate structure that got
created when using child sources.

13 years ago[l10n]Fixes on Catalan translation
Jordi Serratosa [Mon, 4 Apr 2011 19:16:35 +0000 (21:16 +0200)]
[l10n]Fixes on Catalan translation

13 years agoUpdated Japanese translation
OKANO Takayoshi [Mon, 4 Apr 2011 12:27:35 +0000 (21:27 +0900)]
Updated Japanese translation

13 years agoDocs: Change DBus to D-Bus
Murray Cumming [Thu, 24 Mar 2011 08:37:21 +0000 (09:37 +0100)]
Docs: Change DBus to D-Bus

13 years agoUpdate Czech translation
Petr Kovar [Mon, 4 Apr 2011 02:10:42 +0000 (04:10 +0200)]
Update Czech translation

13 years agoUpdated Hungarian translation
Gabor Kelemen [Sun, 3 Apr 2011 08:13:57 +0000 (10:13 +0200)]
Updated Hungarian translation

13 years agoGDBusMethodInvocation: Improve get_parameters() documentation.
Murray Cumming [Sat, 2 Apr 2011 13:42:11 +0000 (15:42 +0200)]
GDBusMethodInvocation: Improve get_parameters() documentation.

Note that the returned GVariant is always a tuple.
See bug #646420.

13 years agogqsort: Quiet a compiler warning for qsort_r
Colin Walters [Thu, 31 Mar 2011 21:07:07 +0000 (17:07 -0400)]
gqsort: Quiet a compiler warning for qsort_r

13 years agogoption: [linux] Look in /proc/self/cmdline for argv0 if not specified
Colin Walters [Fri, 25 Mar 2011 15:59:33 +0000 (11:59 -0400)]
goption: [linux] Look in /proc/self/cmdline for argv0 if not specified

We really shouldn't use <unknown> when we can perfectly easily
get argv0 out of /proc.  This avoids people having to pass argv
down into gtk_init/g_option_context_parse etc., which is important
because GTK+ uses it to initialize the WM_CLASS, which in turn
GNOME Shell consumes for application tracking.

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

13 years agogio.symbols updates
Ryan Lortie [Thu, 31 Mar 2011 10:25:21 +0000 (15:55 +0530)]
gio.symbols updates

13 years agoImprove .gitignore
Ryan Lortie [Thu, 31 Mar 2011 10:21:01 +0000 (15:51 +0530)]
Improve .gitignore

13 years agoglib.symbols: add some missing symbols
Ryan Lortie [Thu, 31 Mar 2011 10:17:54 +0000 (15:47 +0530)]
glib.symbols: add some missing symbols

13 years agocompile schemas test: open ranges for all types
Ryan Lortie [Thu, 31 Mar 2011 09:42:34 +0000 (15:12 +0530)]
compile schemas test: open ranges for all types

We need to make sure that every value in the table actually parses with
GVariant.

13 years agogschema-test: invert expectation for min/max omit
Ryan Lortie [Thu, 31 Mar 2011 09:41:30 +0000 (15:11 +0530)]
gschema-test: invert expectation for min/max omit

It is now completely valid.

Fix up what is now a legitimate range error in the schema used in one of
the tests.

13 years agoglib-compile-schemas: min and max are now optional
Ryan Lortie [Thu, 31 Mar 2011 09:40:25 +0000 (15:10 +0530)]
glib-compile-schemas: min and max are now optional

Will be taken to be the minimum and maximum value for the type of the
key if they are left out.

Bug #646310.

13 years agoGVariant test: test parsing of "inf" and "nan"
Ryan Lortie [Thu, 31 Mar 2011 09:39:55 +0000 (15:09 +0530)]
GVariant test: test parsing of "inf" and "nan"

13 years agoGVariant parser: parse "inf", "-inf" and "nan"
Ryan Lortie [Thu, 31 Mar 2011 09:18:10 +0000 (14:48 +0530)]
GVariant parser: parse "inf", "-inf" and "nan"

13 years agoGVariant parser: match strings without consuming
Ryan Lortie [Thu, 31 Mar 2011 09:15:50 +0000 (14:45 +0530)]
GVariant parser: match strings without consuming

Add a new function that allows the parser to check that the current
token is equal to a given string without consuming the token.
Reimplement the 'consume' function in terms of the new function.

13 years agoGVariant parser: fix memory error
Ryan Lortie [Thu, 31 Mar 2011 08:37:59 +0000 (14:07 +0530)]
GVariant parser: fix memory error

In some cases it was possible for the GVariant parser to access past the
'limit' parameter.  This should fix that.

13 years agoAdd 'uint' convenience functions for GSettings
Ryan Lortie [Thu, 31 Mar 2011 07:14:40 +0000 (12:44 +0530)]
Add 'uint' convenience functions for GSettings

Without getting into a debate about the reasons why you may or may not
want to use unsigned integers, it's sufficient to note that people have
been using them and requesting this functionality.

Bug #641755.

13 years agoAdd GTimeZoneMonitor
Ryan Lortie [Sat, 19 Mar 2011 02:00:14 +0000 (22:00 -0400)]
Add GTimeZoneMonitor

Monitors /etc/localtime for changes and instructs GTimeZone to drop its
cache.  Also has a signal for interested 3rd parties.

13 years agog_time_zone_new_local: cache the result
Ryan Lortie [Sat, 19 Mar 2011 03:09:52 +0000 (23:09 -0400)]
g_time_zone_new_local: cache the result

Add a function to drop the cache.

13 years agoGTimeZone: don't add /etc/localtime to the cache
Ryan Lortie [Sat, 19 Mar 2011 03:09:17 +0000 (23:09 -0400)]
GTimeZone: don't add /etc/localtime to the cache

It may change.