glib/gio/gdbus-codegen
David Zeuthen f773bd8b76 gdbus-codegen: gracefully handle property get on proxy with no cached property
This can easily happen if the owner of the remote object vanishes. Of
course, when that happens, user code is already notified (by e.g. the
notify::g-name-owner signal) so it can avoid using the proxy but
requiring that is a bit harsh. IOW, before this patch this critical
error was printed

 GLib-GIO-CRITICAL **: g_dbus_gvariant_to_gvalue: assertion `value != NULL' failed

when that happened. With this patch, we just avoid setting the GValue
so the user will get the default value for its type instead. So, for
example, if the user code is getting a GVariant property on such a
defunct proxy, then he gets a NULL back. So unless said user code
checks the return value, criticals will still be printed if the NULL
GVariant is used for anything interesting.

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-05-06 10:32:42 -04:00
..
__init__.py gdbus-codegen: Add copyright / license headers 2011-04-15 08:33:30 -04:00
.gitignore Update .gitignores 2011-05-02 09:54:15 -04:00
codegen_docbook.py gdbus-codegen: Generate docs when generating C code 2011-04-18 14:23:19 -04:00
codegen_main.py gdbus-codegen: Generate docs when generating C code 2011-04-18 14:23:19 -04:00
codegen.py gdbus-codegen: gracefully handle property get on proxy with no cached property 2011-05-06 10:32:42 -04:00
config.py.in gdbus-codegen: Add copyright / license headers 2011-04-15 08:33:30 -04:00
dbustypes.py gdbus-codegen: Generate GDBusObject{,Proxy,Skeleton} subtypes 2011-04-25 09:29:18 -04:00
gdbus-codegen.in gdbus-codegen: Add copyright / license headers 2011-04-15 08:33:30 -04:00
Makefile.am More distcheck fixes 2011-05-04 20:45:46 -04:00
parser.py gdbus-codegen: Add copyright / license headers 2011-04-15 08:33:30 -04:00
utils.py gdbus-codegen: Generate docs when generating C code 2011-04-18 14:23:19 -04:00