| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
There's no real reason not to - anything that implements D-Bus
properties is clearly going to have this method in some form.
Also, my next commit needs it.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69283
Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
|
|
|
|
|
|
|
|
|
|
| |
The self-handle test can't exercise certain situations without this,
except by pretending to be an obsolete CM, which means we don't test
the non-obsolete code path properly.
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55666
Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
|
|
|
|
| |
We deprecated this in 0.11.
|
|
|
|
|
|
|
|
| |
fd.o#48363 was opened which complains about lots of documentation
problems (which g-ir-scanner finds). While I was at it I did some
grepping to find yet more problems.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
|
|
|
|
|
| |
The DBus properties mixin is unusable from introspected code at the
moment.
|
|
|
|
|
|
|
|
|
|
|
| |
Replace g_(ptr_)array_free (foo, TRUE) and g_hash_table_destroy
with respectively g_(ptr_)array_unref (foo) and g_hash_table_unref.
I used this command to generate this patch:
for f in `find -name "*.c"`; do sed -i $f -re 's/g_ptr_array_free \(([^ ,]+), TRUE\)/g_ptr_array_unref \(\1\)/'; done
See Danielle's blog for explanation of possible bug _free can do:
http://blogs.gnome.org/danni/2011/11/16/mistakes-with-g_value_set_boxed/
|
| |
|
|
|
|
|
|
|
| |
This allows the application to set a property as if in response to a
D-Bus call. This turned out to not actually be needed for this branch,
but it is needed if we want MC to use TpDBusPropertiesMixin. (See also,
fd.o#32416.)
|
|
|
|
|
|
| |
I find myself wanting this while writing RoomConfig support. Admittedly
once that code is in tp-glib it won't strictly need to be exported, but
I think it's harmless enough.
|
|
|
|
| |
Almost no-one ever needs to call this.
|
| |
|
| |
|
|
|
|
|
|
| |
Given that we have necessary information in introspection XML to choose
between including the property in Changed and in Invalidated, we may as
well use it.
|
| |
|
|
|
|
|
| |
It's a bit annoying to use because you have to define the two arrays
ahead of time, but hey.
|
|
|
|
|
| |
This will be useful in implementing _emit_properties_changed without it
having to repeatedly find the IfaceInfo structure.
|
|
|
|
| |
These reflect conditions under which this function will currently crash.
|
|
|
|
|
|
|
|
|
|
|
| |
Previously if you messed up the arguments to this function (say, you
passed a fully-qualified property name rather than a interface_name,
property_name pair), you'd get an unhelpful assertion about G_IS_VALUE()
failing.
Now you get a nice critical about the specific property which couldn't
be retrieved, listing the interface name and property name and giving
the error.
|
|
|
|
| |
Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
|
|
|
|
|
|
|
|
|
| |
I constantly forget to do this, and it takes me ages to figure out what
I'm doing wrong. Typically I faff around checking the codegen stuff,
make clean and rebuild a few times, grep for what's done for other
interfaces, and then finally remember.
Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
|
|
|
|
|
| |
There's no way to describe the lifetime of the getter and setter in
current g-i: in principle they should be (scope infinite).
|
|
|
|
|
|
|
|
| |
Strictly speaking this is a programming error, but this is consistent with
how we deal with D-Bus methods.
(TpTestsSimpleAccount doesn't have a setter yet, leading it to crash
if a property is set.)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
just compile-time-assert it
In practice all sorts of code will fail if this compile-time assertion
fails. Also, the union we previously used is picked up by gtk-doc 1.14,
which complains that we haven't documented it... rather than trying to
work around that, we can just get rid of it, and reinstate it in the
unlikely event that we later care about a platform where callbacks are
not the same size as pointers.
|
| |
|
|
|
|
|
| |
This partially works around the fact that some system header on Windows
defines interface as a macro.
|
|
|
|
| |
Signed-off-by: Will Thompson <will.thompson@collabora.co.uk>
|
|
|
|
| |
This makes it part of our ABI guarantee.
|
|
|
|
| |
Signed-Off-By: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
|
|
|
|
|
| |
Also, add an assertion which should help catch off-by-one errors by the
caller.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
When it is missing, it is treated as if it were present but with no
static interfaces listed.
|
| |
|
|
|
|
| |
20080723215925-53eee-dbd3c273d1fbf7de5a413f862f3dc101184624ea.gz
|
|
|
|
| |
20080723215825-53eee-61df7c9d4162c1510436b7197aa2ba1d532c3d85.gz
|
|
|
|
|
|
|
|
| |
I wanted to raise D-Bus core errors, since TpDBusPropertiesMixin isn't
conceptually anything to do with Telepathy, but Jonny pointed out
<https://bugs.freedesktop.org/show_bug.cgi?id=16776>.
20080718180710-53eee-2b8637a86344d64f04010af0a61aa7351c9756bb.gz
|
|
|
|
|
|
| |
that was set
20080701203044-53eee-1d594b7f83073a23136ba0c23bf1308fd354d726.gz
|
|
|
|
|
|
| |
be transformed
20080701202935-53eee-95433f7d2b6935a410595a701935e6de642a55cb.gz
|