glib/gio/gdbus-2.0/codegen
David Zeuthen d72116d8b7 gdbus-codegen: Don't generate invalid GObject property names
For a D-Bus property with name "Type" (fairly common), we used to
generate a GObject property with name "type-" and C accessors
get_type_() (to avoid clashing with the GType getter), set_type_()
(for symmetri).

However, the rules for GObject property names are fairly rigid and
specifically prohibit names ending in a dash.

Therefore change things so the chosen GObject property name is "type"
but preserve the naming rules for the C getter and setter (for the
same reasons: avoiding name clashing and symmetri).

This change does break the API of generated code (but only on the
GObject property level, the C symbols are not changed) but strictly
speaking the behavior was undefined since "type-" was an invalid
GObject property name.

Also add a test case for this.

Bug 679473.

https://bugzilla.gnome.org/show_bug.cgi?id=679473

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
2012-07-06 09:26:41 -04:00
..
__init__.py Introduce the UNINSTALLED_GLIB_BUILDDIR environment variable 2011-08-25 16:55:49 -04:00
.gitignore Avoid using - (hyphen) in gdbus-codegen directory name 2011-08-25 16:55:46 -04:00
codegen_docbook.py Updated codegen to work with python3. 2012-07-01 11:14:54 -04:00
codegen_main.py Updated codegen to work with python3. 2012-07-01 11:14:54 -04:00
codegen.py Updated codegen to work with python3. 2012-07-01 11:14:54 -04:00
config.py.in Avoid using - (hyphen) in gdbus-codegen directory name 2011-08-25 16:55:46 -04:00
dbustypes.py gdbus-codegen: Don't generate invalid GObject property names 2012-07-06 09:26:41 -04:00
gdbus-codegen.in Use the same Python as we found in configure 2012-06-29 11:59:33 -03:00
Makefile.am Use the same Python as we found in configure 2012-06-29 11:59:33 -03:00
parser.py Updated codegen to work with python3. 2012-07-01 11:14:54 -04:00
utils.py Updated codegen to work with python3. 2012-07-01 11:14:54 -04:00