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
..
2012-06-12 07:09:53 -04:00
2012-06-25 19:37:05 -04:00
2010-07-05 00:56:12 -04:00
2012-06-04 06:04:26 -04:00
2012-04-30 09:28:42 -04:00
2011-07-27 16:23:33 -04:00
2011-07-27 16:23:33 -04:00
2011-07-27 16:23:33 -04:00
2011-07-27 16:23:33 -04:00
2011-07-27 16:23:33 -04:00
2012-06-28 15:57:22 +02:00
2010-04-17 01:48:05 -04:00
2010-06-09 10:32:36 +02:00
2012-06-04 06:04:29 -04:00
2012-06-22 10:32:25 -04:00
2012-04-20 15:02:48 +02:00
2012-06-04 06:04:28 -04:00
2012-04-08 10:24:51 -04:00
2011-10-16 21:41:15 -04:00
2011-07-27 16:23:33 -04:00
2011-07-27 16:23:33 -04:00
2011-09-26 16:54:23 -04:00
2011-07-27 16:23:33 -04:00
2010-04-17 01:48:05 -04:00
2012-06-21 15:13:06 -04:00
2010-09-03 15:44:28 -04:00
2012-01-13 17:12:53 +01:00
2012-06-04 06:04:29 -04:00
2011-10-13 01:00:57 -04:00
2011-10-13 01:00:57 -04:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2012-06-04 06:04:29 -04:00
2011-10-16 16:09:33 -04:00