mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
6bccc46d15
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> |
||
---|---|---|
.. | ||
__init__.py | ||
codegen_docbook.py | ||
codegen_main.py | ||
codegen.py | ||
config.py.in | ||
dbustypes.py | ||
gdbus-codegen.in | ||
Makefile.am | ||
parser.py | ||
utils.py |