David Zeuthen
58eb4da5c5
Fix build broken by previous commit
...
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-23 19:26:56 -04:00
David Zeuthen
b5b34fa2f2
gdbus-codegen: Include docs for generated code in the GIO docs
...
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-23 17:43:03 -04:00
David Zeuthen
affc6f7475
GDBusObjectManagerClient: Add a GDestroyNotify to the user_data
...
For bindings, obviously.
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-16 15:24:42 -04:00
David Zeuthen
3cef28a2f0
gdbus-codegen: Make generated code introspectable
...
Specific changes
- Use get_type(), not get_gtype() for the GType function
- so we need to use the lower-case name type_ for properties called type
- Don't return a function pointer, just make the function returned
available instead
- Add (type) annotations in constructors so g-ir-scanner detects them as such
- Add (transfer none) annotations to property getters
- Add (out) annotations to D-Bus method call functions
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-16 14:08:47 -04:00
David Zeuthen
6bccc46d15
gdbus-codegen: Don't send out PropertiesChanged if value ends up not changing
...
A fairly typical pattern is to have code that does
foo_set_bar (object, "");
if (some_condition)
{
foo_set_bar (object, "yes");
}
where some_condition is often true every time @object is updated.
With this code, bar is essentially always "yes" but because of how
gdbus-codegen works, useless PropertiesChanged events got scheduled
and sent out. With this patch, we avoid that by always keeping the
original value around and comparing it only when we deem it's time to
send out the ::PropertiesChanged signal (typically in an idle but can
be forced by the user via flush()).
Also add a test case for this.
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-15 15:53:28 -04:00
Colin Walters
01602e1695
Fix some compiler warnings from gcc 4.6
2011-04-15 15:51:25 -04:00
David Zeuthen
e19734d6c3
gdbus-codegen: Add support for the org.freedesktop.DBus.Deprecated annotation
...
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-15 12:56:07 -04:00
David Zeuthen
febfc45fbe
GDBus: Support Ugly_Case and use org.gtk.GDBus.C.Name since it's C-only
...
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-15 08:24:40 -04:00
Simon McVittie
c2387ddff1
/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 >
2011-04-15 06:00:16 -04:00
David Zeuthen
4da1824759
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 >
2011-04-14 12:46:54 -04:00
David Zeuthen
3b997d92c1
GDBus: Add test case for the ANONYMOUS authentication method
...
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-13 18:21:16 -04:00
David Zeuthen
6ccca55752
GDBus: Use Skeleton instead of Stub
...
After some brainstorming with Simon, see
https://bugzilla.gnome.org/show_bug.cgi?id=647577#c8
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-13 16:33:51 -04:00
David Zeuthen
34a28f2f06
Add support for org.gtk.GDBus.Since annotation
...
And use this for a) documentation purposes; and b) to preserve C ABI
when an interface is extended. See
https://bugzilla.gnome.org/show_bug.cgi?id=647577#c5
for more details. Also add test cases for this.
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-12 16:17:28 -04:00
David Zeuthen
76d3653721
gdbus-codegen: Add --c-generate-object-manager option + doc improvements
...
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-12 11:50:34 -04:00
David Zeuthen
8276d0e557
Spiff up the "Migrating to GDBus" docs a bit
...
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-12 09:28:09 -04:00
David Zeuthen
fc59b9d843
Update "Migrating to GDBus" chapter to take gdbus-codegen(1) into account
...
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-11 18:32:11 -04:00
David Zeuthen
e5525f1010
GDBus: Add ObjectManager example
...
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-11 16:35:14 -04:00
David Zeuthen
4dffec8906
Dist test-codegen.xml
...
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-11 14:59:19 -04:00
David Zeuthen
9c1941c07f
GDBus: Add test-suite for new ObjectManager and gdbus-codegen(1) code
...
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-11 10:54:52 -04:00
David Zeuthen
982195b61c
GDBus: Use thread-default GMainContext in _g_assert_property_notify + friends
...
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-11 10:51:37 -04:00
Ryan Lortie
45377252db
Add test case for G_APPLICATION_NON_UNIQUE
2011-04-10 07:56:06 -04:00
Matthias Clasen
1a0424b7ff
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
2011-04-08 17:02:01 -04:00
David Zeuthen
0729260141
Silence a bunch of -Wunused-but-set-variable warnings
...
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-04-08 15:44:25 -04:00
Matthias Clasen
edaf99be86
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.
2011-04-08 07:19:38 -04:00
Ryan Lortie
7a752e0817
Improve .gitignore
2011-03-31 15:51:01 +05:30
Ryan Lortie
d95b750a1d
compile schemas test: open ranges for all types
...
We need to make sure that every value in the table actually parses with
GVariant.
2011-03-31 15:15:09 +05:30
Ryan Lortie
d2af82e820
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.
2011-03-31 15:15:09 +05:30
David Zeuthen
1618ca572f
Fix test suite breakage caused by Murray's commit
...
See https://bugzilla.gnome.org/show_bug.cgi?id=645682
Signed-off-by: David Zeuthen <davidz@redhat.com >
2011-03-25 17:56:59 -04:00
Murray Cumming
30fdc1a799
Docs: Changed can not to cannot.
2011-03-24 09:33:55 +01:00
Matthias Clasen
d377367b2c
Forgotten file
2011-03-06 22:38:17 -05:00
Matthias Clasen
54e474931e
Fix a typo
2011-03-04 01:55:18 -05:00
Matthias Clasen
321682871b
Try harder to explain GApplicationCommandline
...
Trying to answer some of the questions in
https://bugzilla.gnome.org/show_bug.cgi?id=643468
2011-03-03 22:40:48 -05:00
Matthias Clasen
6f87ecc14e
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
2011-02-15 19:49:24 -05:00
Matthias Clasen
f9ad7baf31
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
2011-02-15 02:29:15 -05:00
Matthias Clasen
309f5f978b
Improve test coverage
...
Various test additions, mainly in GObject
2011-02-13 23:49:19 -05:00
Daiki Ueno
c0208940c5
Make g_unix_connection_send_fd() work as expected.
...
https://bugzilla.gnome.org/show_bug.cgi?id=637696
2011-01-12 16:01:32 -05:00
Cosimo Cecchi
f248ab1b60
tests: unbreak desktop-app-info test for jhbuild
...
If we have a jhbuilt version of gedit installed, this will fail, as it
will succeed in deleting its desktop file.
2010-12-28 12:18:51 +01:00
Xavier Claessens
30587a3a60
Add io-stream in gitignore
2010-12-20 18:52:44 +01:00
Cosimo Cecchi
678bcad92c
appinfo: add g_app_info_set_as_last_used_for_type()
...
This commit also changes (maintaining compatibility) the way
user-specified default applications are stored (as in, those for which
g_app_info_set_as_default_for_type() has been called.
We now store the default application for a content type in a new group
in the mimeapps.list keyfile, and "Added Associations" tracks only the
applications that have been added by the user, following a
most-recently-used first order.
This is useful in GtkAppChooser-like widgets to pre-select the last used
application when constructing a widget.
https://bugzilla.gnome.org/show_bug.cgi?id=636311
2010-12-20 15:43:58 +01:00
Cosimo Cecchi
274ef35fd4
tests: remove a bogus assumption
2010-12-15 18:03:13 +01:00
Peng Huang
735fcf918e
Bug 632544 – Cannot send a locked message with PRESERVE_SERIAL flag
...
https://bugzilla.gnome.org/show_bug.cgi?id=632544
Signed-off-by: David Zeuthen <davidz@redhat.com >
2010-12-13 13:09:38 -05:00
Xavier Claessens
0a2d47b626
Add g_io_stream_splice_async/finish()
...
That function splice the output stream of both GIOStreams to the input stream
of the other GIOStream.
2010-12-13 17:36:12 +01:00
Benjamin Otte
ca38bddd6e
gio: Add a count to the resolver test for number of enumerators
...
This adds the nice stress-test feature of having 5 enumerators running
at the same time. Yay!
2010-12-07 19:39:24 +01:00
Benjamin Otte
07fd29c323
tls: Make g_tls_{client|server}_connection_new() return a GIOStream
...
The main use case for these objects is as an IO stream, so it makes
sense to return them that way from the start.
2010-12-07 19:39:24 +01:00
Christian Dywan
426f90e3cf
Resolve warnings about istream and ostream in socket test
2010-12-03 16:33:24 +01:00
Benjamin Otte
b9a98a81da
gio: Comment out a whole test
...
... instead of just commenting out the registration and leaving "unused
function" warnings for gcc.
2010-12-02 20:11:28 +01:00
Benjamin Otte
b92e2cd8f8
gio: Remove unused variables from test
2010-12-02 20:11:28 +01:00
Christian Persch
b4632e1c98
Fix the wrong-category schema test
...
It's supposed to test a <default l10n="..."> with a non-existent
category, so make it actually check this!
Bug #635882 .
2010-11-28 17:26:30 -05:00
Christian Persch
57143e311d
Inherit gettext-domain from <schemalist>
...
When the <schema> doesn't have a 'gettext-domain' attribute, but
the <schemalist> does, use that one.
Bug #635640 .
2010-11-28 19:01:21 +01:00
Dan Winship
69129e8065
Make gio/tests/g-icon pass again
...
It got broken in two different ways by the g_str_hash() change
(354d655b
)
2010-11-27 16:56:44 -05:00