Tor Lillqvist
507c266c3b
Plug memory leak on Windows
...
Intern the string returned from g_win32_getlocale() and then free it.
Fixes bug #621168 .
2010-06-10 11:54:35 +03:00
Matthias Clasen
6720596544
Fix GApplication tests to run without a session bus
...
We reuse code from the GDBus tests here to launch a session bus.
2010-06-09 23:44:13 -04:00
David Zeuthen
db0c55608f
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>
2010-06-09 17:57:04 -04:00
David Zeuthen
ed7f59770e
GDBusProxy: Fix error handling in synchronous initialization codepath
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-06-09 17:09:10 -04:00
Ryan Lortie
653921e17a
g_variant_builder_add_parsed: fix type error
...
Problem caught by Juan A. Suarez Romero
2010-06-09 12:43:45 -04:00
Richard Hughes
f265319b59
Do not do update-po at distcheck time to avoid touching files checked into version control
2010-06-09 17:10:57 +01:00
David Zeuthen
1951c39c44
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>
2010-06-09 10:59:02 -04:00
Juan A. Suarez Romero
67193f55c3
Fix warning
...
Disable functions defined but not used.
2010-06-09 10:32:36 +02:00
Juan A. Suarez Romero
992e07c8b2
Fix warnings
...
Do explicit casts to avoid warnings.
2010-06-09 10:32:12 +02:00
blue dark
2b72587bed
Updated zh_CN translation.
2010-06-09 15:13:14 +08:00
Christian Persch
d8dca11733
Fix thinko
...
When replacing strcmp() with g_variant_is_of_type(), remove the "== 0"
part! Found by Colin Walters.
2010-06-08 19:43:30 +02:00
Colin Walters
0ed183b572
[GDBusConnection] Use Gio's default async implementation again
...
The fix was committed in git.
https://bugzilla.gnome.org/show_bug.cgi?id=620990
2010-06-08 13:44:19 -04:00
Christian Persch
06e74ca969
g_dbus_method_invocation_return_value consumes the floating variant
...
Bug #620953 .
2010-06-08 17:41:47 +02:00
Christian Persch
2ab9a07ec7
Simplify variant builder
...
Build the full return value with one builder, and don't unref the
unowned return value!
Bug #620954 .
2010-06-08 17:41:47 +02:00
Christian Persch
d3b091f63a
Use g_variant_is_of_type()
...
... instead of strcmp()'ing the type strings.
Bug #620954 .
2010-06-08 17:41:46 +02:00
Christian Persch
b75e7eb95d
Plug a mem leak
...
Bug #620954 .
2010-06-08 17:41:46 +02:00
Javier Jardón
471c4e413c
[docs] Fix typos in some g_file_* functions
...
Reported by Alexander Saprykin in bug
https://bugzilla.gnome.org/show_bug.cgi?id=620947
2010-06-08 16:27:45 +02:00
Matthias Clasen
b482eab3fa
Bump version
2010-06-08 01:10:17 -04:00
Matthias Clasen
1a963c659c
2.25.8
2010-06-08 01:09:06 -04:00
Matthias Clasen
795ddeb421
Add missing marshaler
2010-06-07 23:41:06 -04:00
Matthias Clasen
e300c7e622
Fix a missing parameter in a doc comment
...
Pointed out by David Zeuthen.
2010-06-07 23:28:30 -04:00
Matthias Clasen
a89b10c1dc
Fix a signal signature
...
GApplication::action was erroneously declaring the timestamp parameter
as int instead of uint.
2010-06-07 23:27:21 -04:00
Matthias Clasen
063470ea0d
Fix a misspelt doc comment
2010-06-07 22:34:07 -04:00
Matthias Clasen
3b11a7d3f2
Add a lost <SECTION>
2010-06-07 22:22:39 -04:00
Matthias Clasen
32b7fbb890
Rename GApplication::appid to GApplication::application-id
2010-06-07 22:21:47 -04:00
Matthias Clasen
c59cc94318
Fix !srcdir checks
2010-06-07 22:10:27 -04:00
Matthias Clasen
14c62ff722
Updates
2010-06-07 21:23:42 -04:00
Matthias Clasen
fdc99873ee
Document signals
2010-06-07 21:23:42 -04:00
Javier Jardón
d68100afcc
[docs] GApplication is available since Gio 2.26
2010-06-08 00:00:39 +02:00
Matthias Clasen
c2a539eff0
Use g types for consistency
2010-06-07 17:48:09 -04:00
Matthias Clasen
6427e93757
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.
2010-06-07 13:48:42 -04:00
Ryan Lortie
af78f6d418
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.
2010-06-07 13:04:39 +02:00
Matthias Clasen
486c46b945
Include the right header
2010-06-07 06:24:28 -04:00
Ryan Lortie
71c5e3f899
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.
2010-06-07 10:18:43 +02:00
Matthias Clasen
a0c044b5c6
Make g_assertion_message_error take a const GError*
...
This was requested in bug 620265.
2010-06-06 16:42:06 -04:00
Christian Persch
87ee5f3641
Don't do an extra strlen when g_variant_get_string() returns it already
2010-06-06 16:32:04 -04:00
Matthias Clasen
2aca3b506a
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.
2010-06-06 16:20:21 -04:00
Matthias Clasen
9371ca0cc2
Sort gio.h includes alphabetically
2010-06-06 16:15:44 -04:00
Michael Natterer
3944a63fed
gio: fix the build
2010-06-06 21:15:42 +02:00
Matthias Clasen
92fab48387
Some cleanups
...
Always include config.h, make property strings for translation,
add since tags.
2010-06-06 14:24:14 -04:00
Will Thompson
40e10764b3
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.
2010-06-06 17:49:56 +01:00
Will Thompson
f291d3bb3c
Document G_GNUC_DEPRECATED_FOR
2010-06-06 17:49:56 +01:00
Will Thompson
157116b8dd
Add examples for G_STRINGIFY and G_PASTE
2010-06-06 17:49:56 +01:00
Will Thompson
28f9f03a3b
Hide G_PASTE_ARGS in gtkdocs.
2010-06-06 17:49:56 +01:00
Javier Jardón
a131beda54
[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
2010-06-06 05:26:38 +02:00
Javier Jardón
e08c7b86c4
[docs] Improve the g_get_system_data_dirs() docs.
...
The retrieved list of directories is XDG_DATA_DIRS
2010-06-06 05:15:22 +02:00
Javier Jardón
07777db60d
[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.
2010-06-06 05:05:15 +02:00
Javier Jardón
e40b5ae3ef
[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.
2010-06-06 04:57:46 +02:00
Javier Jardón
b2718ee71a
[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.
2010-06-05 18:40:07 +02:00
Ryan Lortie
61f3f45cb9
add get_permission API to GSettingsBackend
...
implement it in the various in-tree backends
also, lots of whitespace changes to realign the vtable members
2010-06-05 00:10:05 +02:00