Robert Collins [Tue, 15 Jun 2010 05:49:44 +0000 (01:49 -0400)]
Add subunit support to gtester-report
This patch adds subunit support to gtester-report via a -s switch. Subunit
(https://launchpad.net/subunit) is a language neutral test activity protocol.
This can be used to integrate gtester tests with the Hudson CI tool amongst
other things.
Bug #611869.
Robert Collins [Tue, 15 Jun 2010 05:37:14 +0000 (01:37 -0400)]
Use optparse to parse gtester-report commandline options
See bug #611778.
Emmanuele Bassi [Tue, 15 Jun 2010 05:31:18 +0000 (01:31 -0400)]
Add package and version to the test report XML
Matthias Clasen [Tue, 15 Jun 2010 04:50:36 +0000 (00:50 -0400)]
Reword a doc comment
To take out some awkward wording.
Hib Eris [Tue, 15 Jun 2010 04:39:46 +0000 (00:39 -0400)]
Let GLIB_SETTINGS macro use glib-compile-schemas from PATH when cross compiling
See bug #621172
Hib Eris [Tue, 15 Jun 2010 04:38:35 +0000 (00:38 -0400)]
Use native glib-compile-schemas when cross compiling
Colin Walters [Tue, 8 Jun 2010 20:25:33 +0000 (16:25 -0400)]
Switch to using variants for timestamps, split out signals
Like how we're handling activation, use GVariant for timestamps. To
avoid polluting the GtkApplication API with GVariants, we rename the
GApplication signals to "quit-with-data" and "action-with-data".
GtkApplication will then wrap those as just "quit" and "action".
https://bugzilla.gnome.org/show_bug.cgi?id=621002
Christian Persch [Sun, 13 Jun 2010 13:16:33 +0000 (15:16 +0200)]
Add --xml to gdbus-tool to print raw introspected XML
Bug #621442.
Matthias Clasen [Sat, 12 Jun 2010 22:40:45 +0000 (18:40 -0400)]
Avoid a race in application registration
We need to register the object before taking the name.
Remove the workarounds for this race from the test suite.
Fran Diéguez [Sat, 12 Jun 2010 15:47:40 +0000 (17:47 +0200)]
Updated Galician translations
Matthias Clasen [Sat, 12 Jun 2010 05:55:25 +0000 (01:55 -0400)]
Accept no-reply errors
This can happen if the app quits before the dbus reply can be
sent out.
Matthias Clasen [Sat, 12 Jun 2010 03:21:49 +0000 (23:21 -0400)]
Make the tests not fall over every other time
David Zeuthen [Fri, 11 Jun 2010 19:45:18 +0000 (15:45 -0400)]
Bug 621213 – GDBusProxy and well-known names
Allow constructing a GDBusProxy for well-known names as discussed here
http://mail.gnome.org/archives/gtk-devel-list/2009-October/msg00075.html
including test cases.
Make it possible to create a GDBusProxy for a GBusType instead of a
GDBusConnection. This requires G_BUS_TYPE_NONE so add that too.
Nuke g_bus_watch_proxy() since one can now more or less use GDBusProxy
for this.
Port gdbus-example-watch-proxy to this new API and include this
example in the GDBusProxy doc page.
Also nuke the GType parameter from the GDBusProxy constructors as
requested here: https://bugzilla.gnome.org/show_bug.cgi?id=621229
Also update the porting guide and other API docs for this change.
Also fix a bug in the signal dispatching code so each subscriber only
get notified once, not N times, for the same signal. Also add a test
case for this.
https://bugzilla.gnome.org/show_bug.cgi?id=621213
Signed-off-by: David Zeuthen <davidz@redhat.com>
Ryan Lortie [Fri, 11 Jun 2010 18:52:17 +0000 (14:52 -0400)]
gitignore GApplication test-cases
Felix Riemann [Thu, 10 Jun 2010 22:10:05 +0000 (00:10 +0200)]
Close memory leak in GSettings
Fixes bug #621252.
Alexander Larsson [Fri, 11 Jun 2010 07:59:56 +0000 (09:59 +0200)]
converter streams: make code more readable
The name buffer_availabile was kinda confusing, so its been renamed
to buffer_data_size() to match buffer_data().
Also I added a comment to buffer_ensure_space because its behaviour
wasn't obvious.
Jürg Billeter [Fri, 28 May 2010 09:00:37 +0000 (11:00 +0200)]
Use correct offset for buffer data in GConverterOutputStream
Otherwise we overwrite already converted data in the case that more
than one call to g_converter_convert is necessary in write() or
flush().
https://bugzilla.gnome.org/show_bug.cgi?id=619945
Jürg Billeter [Thu, 27 May 2010 14:55:53 +0000 (16:55 +0200)]
Ensure we always have some target space in GConverterOutputStream
When the converter fills the whole buffer without reading all input,
we need to enlarge the buffer. Otherwise we get an assertion failure
for `outbuf_size > 0' in g_converter_convert.
https://bugzilla.gnome.org/show_bug.cgi?id=619945
Christian Dywan [Fri, 11 Jun 2010 07:46:47 +0000 (09:46 +0200)]
Add a regression test for GConverterOutputStream corruption
See bug #619945 for background
Ryan Lortie [Fri, 11 Jun 2010 02:35:31 +0000 (22:35 -0400)]
GSettings test case fixes
- call g_settings_sync()
- fix bug #618715 by not forking if a backend is specified via
environment variable
Ryan Lortie [Fri, 11 Jun 2010 02:30:44 +0000 (22:30 -0400)]
Add g_settings_sync() and use it
Colin Walters [Thu, 10 Jun 2010 18:02:15 +0000 (14:02 -0400)]
[Gio] Merge in introspection annotations from gobject-introspection gio-2.0.c
This is not an exhaustive set, but covers everything we have so far.
Ryan Lortie [Thu, 10 Jun 2010 17:49:57 +0000 (13:49 -0400)]
GSettings: store (default, options) in gvdb
gvdb just dropped the ability to have a separate "options" field. We
now store the options into a GVariant along with the default value.
For now, we use a small shim in GSettingsSchema in order not to touch
too much code. A more complete rewrite will follow.
This represents a change to the schema file format with another likely
to follow. glib-compile-schemas needs to be re-run after installing
this change.
Ryan Lortie [Thu, 10 Jun 2010 17:35:25 +0000 (13:35 -0400)]
Merge remote branch 'gvdb/master'
Ryan Lortie [Thu, 10 Jun 2010 17:34:56 +0000 (13:34 -0400)]
drop "options" support
Tomeu Vizoso [Thu, 10 Jun 2010 16:29:23 +0000 (18:29 +0200)]
Add _with_closures alternative functions for those in GDBus that
accept more than one callback.
g_bus_own_name_with_closures
g_bus_own_name_on_connection_with_closures
g_bus_watch_name_with_closures
g_bus_watch_name_on_connection_with_closures
g_bus_watch_proxy_with_closures
g_bus_watch_proxy_on_connection_with_closures
https://bugzilla.gnome.org/show_bug.cgi?id=621092
Colin Walters [Wed, 9 Jun 2010 21:17:14 +0000 (17:17 -0400)]
[GApplication] Tweak docs a bit
Colin Walters [Wed, 9 Jun 2010 01:43:16 +0000 (21:43 -0400)]
Rewrite apps test to ensure children are killed
Create a function run_with_application that both ensures the
app is running exactly while the test is running, which most
of the tests use. We start it beforehand, and kill it after.
This avoids having any interdependence between the tests (and
there definitely was before, because we didn't wait for
the process to actually terminate after a kill() call).
Also, open a pipe between the two, and have the child app
monitor that pipe. If it gets closed (e.g. because the parent
died), the child exits. This is the most reliable way to
avoid stale children; before, if we failed an assertion, the
parent would abort, and not run kill().
https://bugzilla.gnome.org/show_bug.cgi?id=621034
Ryan Lortie [Thu, 10 Jun 2010 12:06:32 +0000 (08:06 -0400)]
Mention GVariant format string docs from iter docs
It's not entirely clear what @format_string in iter_next() and
iter_loop() should be. Include a link to the GVariant format string
docs as a hint.
Tor Lillqvist [Thu, 10 Jun 2010 08:52:25 +0000 (11:52 +0300)]
Plug memory leak on Windows
Intern the string returned from g_win32_getlocale() and then free it.
Fixes bug #621168.
Matthias Clasen [Thu, 10 Jun 2010 03:44:13 +0000 (23:44 -0400)]
Fix GApplication tests to run without a session bus
We reuse code from the GDBus tests here to launch a session bus.
David Zeuthen [Wed, 9 Jun 2010 21:57:04 +0000 (17:57 -0400)]
GDBusConnection: Do not dispatch calls to unregistered objects or subtrees
There was a slight race where we ended up calling into user code if
the user managed to unregister an object (or subtree) in the window
between
- processing the remote call on the worker thread; and
- continuing handling it on the user code thread (via an idle handler)
This patch fixes the problem.
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Wed, 9 Jun 2010 21:08:34 +0000 (17:08 -0400)]
GDBusProxy: Fix error handling in synchronous initialization codepath
Signed-off-by: David Zeuthen <davidz@redhat.com>
Ryan Lortie [Wed, 9 Jun 2010 16:43:13 +0000 (12:43 -0400)]
g_variant_builder_add_parsed: fix type error
Problem caught by Juan A. Suarez Romero
Richard Hughes [Wed, 9 Jun 2010 08:36:47 +0000 (09:36 +0100)]
Do not do update-po at distcheck time to avoid touching files checked into version control
David Zeuthen [Wed, 9 Jun 2010 14:56:35 +0000 (10:56 -0400)]
Bug 621119 – GDBusProxy and objects with no properties
Fix proxy construction for objects with no properties in the case
where G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES isn't set.
The unfortunate side-effect here is that GDBusProxy can no longer be
used to test for "object existence", e.g. creating a GDBusProxy for
any path and interface will not fail. But that's not really a big
deal, if apps rely on that they are doing something very wrong.
https://bugzilla.gnome.org/show_bug.cgi?id=621119
Signed-off-by: David Zeuthen <davidz@redhat.com>
Juan A. Suarez Romero [Wed, 9 Jun 2010 08:27:39 +0000 (10:27 +0200)]
Fix warning
Disable functions defined but not used.
Juan A. Suarez Romero [Wed, 9 Jun 2010 08:23:39 +0000 (10:23 +0200)]
Fix warnings
Do explicit casts to avoid warnings.
blue dark [Wed, 9 Jun 2010 07:13:14 +0000 (15:13 +0800)]
Updated zh_CN translation.
Christian Persch [Tue, 8 Jun 2010 17:40:58 +0000 (19:40 +0200)]
Fix thinko
When replacing strcmp() with g_variant_is_of_type(), remove the "== 0"
part! Found by Colin Walters.
Colin Walters [Tue, 8 Jun 2010 15:21:48 +0000 (11:21 -0400)]
[GDBusConnection] Use Gio's default async implementation again
The fix was committed in git.
https://bugzilla.gnome.org/show_bug.cgi?id=620990
Christian Persch [Tue, 8 Jun 2010 11:40:38 +0000 (13:40 +0200)]
g_dbus_method_invocation_return_value consumes the floating variant
Bug #620953.
Christian Persch [Tue, 8 Jun 2010 11:36:58 +0000 (13:36 +0200)]
Simplify variant builder
Build the full return value with one builder, and don't unref the
unowned return value!
Bug #620954.
Christian Persch [Tue, 8 Jun 2010 11:36:00 +0000 (13:36 +0200)]
Use g_variant_is_of_type()
... instead of strcmp()'ing the type strings.
Bug #620954.
Christian Persch [Tue, 8 Jun 2010 11:35:22 +0000 (13:35 +0200)]
Plug a mem leak
Bug #620954.
Javier Jardón [Tue, 8 Jun 2010 14:25:38 +0000 (16:25 +0200)]
[docs] Fix typos in some g_file_* functions
Reported by Alexander Saprykin in bug
https://bugzilla.gnome.org/show_bug.cgi?id=620947
Matthias Clasen [Tue, 8 Jun 2010 05:10:17 +0000 (01:10 -0400)]
Bump version
Matthias Clasen [Tue, 8 Jun 2010 05:09:06 +0000 (01:09 -0400)]
2.25.8
Matthias Clasen [Tue, 8 Jun 2010 03:41:06 +0000 (23:41 -0400)]
Add missing marshaler
Matthias Clasen [Tue, 8 Jun 2010 03:28:30 +0000 (23:28 -0400)]
Fix a missing parameter in a doc comment
Pointed out by David Zeuthen.
Matthias Clasen [Tue, 8 Jun 2010 03:27:21 +0000 (23:27 -0400)]
Fix a signal signature
GApplication::action was erroneously declaring the timestamp parameter
as int instead of uint.
Matthias Clasen [Tue, 8 Jun 2010 02:34:07 +0000 (22:34 -0400)]
Fix a misspelt doc comment
Matthias Clasen [Tue, 8 Jun 2010 02:22:39 +0000 (22:22 -0400)]
Add a lost <SECTION>
Matthias Clasen [Tue, 8 Jun 2010 02:21:47 +0000 (22:21 -0400)]
Rename GApplication::appid to GApplication::application-id
Matthias Clasen [Tue, 8 Jun 2010 01:53:32 +0000 (21:53 -0400)]
Fix !srcdir checks
Matthias Clasen [Tue, 8 Jun 2010 01:23:37 +0000 (21:23 -0400)]
Updates
Matthias Clasen [Mon, 7 Jun 2010 22:27:33 +0000 (18:27 -0400)]
Document signals
Javier Jardón [Mon, 7 Jun 2010 21:55:34 +0000 (23:55 +0200)]
[docs] GApplication is available since Gio 2.26
Matthias Clasen [Mon, 7 Jun 2010 21:48:09 +0000 (17:48 -0400)]
Use g types for consistency
Matthias Clasen [Mon, 7 Jun 2010 17:25:39 +0000 (13:25 -0400)]
Merge the wip/gapplication branch
This adds a GApplication object to GIO, which is the core of
an application support class, supporting
- uniqueness
- exporting actions (simple scripting)
- standard actions (quit, activate)
The implementation for Linux uses D-Bus, takes a name on the
session bus, and exports a org.gtk.Application interface.
Implementations for Win32 and OS X are still missing.
Ryan Lortie [Mon, 7 Jun 2010 10:58:57 +0000 (12:58 +0200)]
Bug 620767 - Typo in GSettings documentation
Use the correct variable name and work around the escaping of '@'.
Expand/clarify the section on how translation of <default> is handled.
Matthias Clasen [Mon, 7 Jun 2010 10:23:24 +0000 (06:23 -0400)]
Include the right header
Ryan Lortie [Mon, 7 Jun 2010 08:18:43 +0000 (10:18 +0200)]
Bug 620496 - schema compiler: reject invalid paths
The GSettings schema compiler was accepting any string as a path. It is
probably quite a common mistake to suspect that '/apps/foo' is a valid
path name when this will cause all sorts of trouble later. Check for
this case and report the error.
Matthias Clasen [Sun, 6 Jun 2010 20:42:06 +0000 (16:42 -0400)]
Make g_assertion_message_error take a const GError*
This was requested in bug 620265.
Christian Persch [Sun, 6 Jun 2010 20:32:04 +0000 (16:32 -0400)]
Don't do an extra strlen when g_variant_get_string() returns it already
Matthias Clasen [Sun, 6 Jun 2010 20:20:21 +0000 (16:20 -0400)]
Add single-include guards to new headers
As pointed out by Christian Persch in bug 620173, all the new
gdbus and gsettings headers were missing these.
Matthias Clasen [Sun, 6 Jun 2010 20:15:44 +0000 (16:15 -0400)]
Sort gio.h includes alphabetically
Michael Natterer [Sun, 6 Jun 2010 19:15:42 +0000 (21:15 +0200)]
gio: fix the build
Matthias Clasen [Sun, 6 Jun 2010 18:22:48 +0000 (14:22 -0400)]
Some cleanups
Always include config.h, make property strings for translation,
add since tags.
Will Thompson [Thu, 3 Jun 2010 14:09:09 +0000 (15:09 +0100)]
Add some symbols to glib-sections.txt
Most of these are private; the few that aren't were already documented
but not included in the gtkdoc output.
Will Thompson [Thu, 3 Jun 2010 14:08:58 +0000 (15:08 +0100)]
Document G_GNUC_DEPRECATED_FOR
Will Thompson [Thu, 3 Jun 2010 13:50:19 +0000 (14:50 +0100)]
Add examples for G_STRINGIFY and G_PASTE
Will Thompson [Thu, 3 Jun 2010 13:43:30 +0000 (14:43 +0100)]
Hide G_PASTE_ARGS in gtkdocs.
Javier Jardón [Sun, 6 Jun 2010 03:25:59 +0000 (05:25 +0200)]
[docs] Improve the g_get_system_config_dirs() docs.
The retrieved list of directories is XDG_CONFIG_DIRS,
Also mention the retrieved directory on Windows: CSIDL_COMMON_APPDATA
Javier Jardón [Sun, 6 Jun 2010 03:13:06 +0000 (05:13 +0200)]
[docs] Improve the g_get_system_data_dirs() docs.
The retrieved list of directories is XDG_DATA_DIRS
Javier Jardón [Sun, 6 Jun 2010 03:05:15 +0000 (05:05 +0200)]
[docs] Improve the g_get_user_cache_dir() docs
The retrieved directory is XDG_CACHE_HOME on UNIX platforms.
Also mention the retrieved directory on Windows: CSIDL_INTERNET_CACHE.
Javier Jardón [Sun, 6 Jun 2010 02:57:46 +0000 (04:57 +0200)]
[docs] Improve the g_get_user_data_dir() docs
The retrieved directory is XDG_DATA_HOME on UNIX platforms.
Also mention the retrieved directory on Windows: CSIDL_PERSONAL.
Javier Jardón [Sat, 5 Jun 2010 16:34:38 +0000 (18:34 +0200)]
[docs] Improve the g_get_user_config_dir() docs a bit
The retrieved directory is XDG_CONFIG_HOME on UNIX platforms.
Also mention the retrieved directory on Windows: CSIDL_APPDATA.
Ryan Lortie [Fri, 4 Jun 2010 21:07:40 +0000 (23:07 +0200)]
add get_permission API to GSettingsBackend
implement it in the various in-tree backends
also, lots of whitespace changes to realign the vtable members
Ryan Lortie [Fri, 4 Jun 2010 21:02:44 +0000 (23:02 +0200)]
gsettingsbackend.h: pretend to be gio.h
Since #include <gsettingsbackend.h> is a perfectly valid thing for
applications to do, and since we want to include gio headers from
gsettingsbackend.h, we need to effectively disable the #error we would
get from those headers (because we're not coming via gio.h).
We don't want to #include <gio/gio.h> here because this would cause
needless rebuilding of GSettingsBackend, GSettings,
GDelayedSettingsBackend, etc... every time someone changed anything in
any public header.
Ryan Lortie [Fri, 4 Jun 2010 20:32:01 +0000 (22:32 +0200)]
Bug 620582 - a simple GPermission implementation
add GSimplePermission, a trivial const implementation of GPermission
can-request and can-release are always false for this implementation and
the value of 'allowed' is decided at construction.
Matej Urbančič [Fri, 4 Jun 2010 18:03:41 +0000 (20:03 +0200)]
Updated Slovenian translation
Ryan Lortie [Thu, 3 Jun 2010 20:58:52 +0000 (22:58 +0200)]
Bug 620519 - GPermission
Add an abstract interface representing the permission to perform an
action.
Murray Cumming [Fri, 4 Jun 2010 15:07:05 +0000 (17:07 +0200)]
Gio: gioenums.h: Remove trailing commas to avoid C++ warnings.
Javier Jardón [Sun, 30 May 2010 12:56:55 +0000 (14:56 +0200)]
gdbusaddress: Fix typo
Kristjan Schmidt [Thu, 3 Jun 2010 16:19:31 +0000 (18:19 +0200)]
Updated Esperanto translation
Matthias Clasen [Thu, 3 Jun 2010 15:40:02 +0000 (11:40 -0400)]
Don't spew a g_warning if inotify setup fails
We use is_supported when we are trying to find a local file monitor
implementation that works, and having the g_warning in there trips
the test suite.
Ryan Lortie [Thu, 3 Jun 2010 09:24:31 +0000 (11:24 +0200)]
Bug 620350 - add g_variant_builder_add_parsed()
A delicious blend of g_variant_new_parsed() and
g_variant_builder_add_value(). Now available in a GLib near you.
Ryan Lortie [Thu, 3 Jun 2010 07:41:33 +0000 (09:41 +0200)]
Bug 620349 – utf8ify GVariant printer
Take advantage of our knowledge that GVariant strings are always valid
utf8 when printing and parsing:
- allow valid printing unicode characters to pass through unescaped
- escape non-printing characters using \uxxxx or \Uxxxxxxxx format
- do the same in the parser
- update existing test cases to use utf8, add a new test case
Milan Bouchet-Valat [Wed, 2 Jun 2010 14:05:13 +0000 (16:05 +0200)]
Annotate GVariant and GSettings _strv() functions
Add GObject introspection annotations so that the length parameter is
correctly detected for g_variant_new_strv(), g_variant_get_strv() and
g_variant_dup_strv(). Also specify that it can be a NULL pointer in
g_variant_get_strv() and g_variant_dup_strv().
For g_settings_set_strv(), detect that a NULL value is allowed, meaning
empty array.
Closes bug #620384.
Signed-off-by: Ryan Lortie <desrt@desrt.ca>
Ryan Lortie [Wed, 2 Jun 2010 17:34:45 +0000 (19:34 +0200)]
improve gitignore (systemtap)
Kjartan Maraas [Wed, 2 Jun 2010 13:41:01 +0000 (15:41 +0200)]
Updated Norwegian bokmål translation
Ryan Lortie [Wed, 2 Jun 2010 02:00:58 +0000 (04:00 +0200)]
Support NULL value for g_settings_set_strv()
Allow easy setting of the empty array that we lost with the last patch.
Milan Bouchet-Valat [Tue, 1 Jun 2010 21:16:19 +0000 (23:16 +0200)]
Remove length parameter for g_settings_[gs]et_strv
Length of the array is redundant since it's NULL-terminated. This is not
consistent with many GLib and GTK+ functions, and adds complexity with
no real gain, while these convenience functions should be kept simple.
Closes bug #620312
Jorge González [Sun, 30 May 2010 16:23:21 +0000 (18:23 +0200)]
Updated Spanish translation
Fran Diéguez [Sun, 30 May 2010 15:43:57 +0000 (17:43 +0200)]
Updated Galician translations
Andika Triwidada [Sun, 30 May 2010 10:10:51 +0000 (17:10 +0700)]
Updated Indonesian translation
Jorge González [Sat, 29 May 2010 10:06:16 +0000 (12:06 +0200)]
Updated Spanish translation
Jorge González [Fri, 28 May 2010 18:21:02 +0000 (20:21 +0200)]
Updated Spanish translation
Jorge González [Fri, 28 May 2010 17:45:51 +0000 (19:45 +0200)]
Updated Spanish translation