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-03-05 06:18:24 -05:00
2010-09-02 22:36:47 +03:00
2011-09-04 17:50:41 -04:00
2011-06-04 10:45:54 -04:00
2009-03-31 19:39:16 -04:00
2012-02-02 16:22:42 +01:00
2010-07-12 18:30:14 -04:00
2012-07-03 21:14:41 -04:00
2012-07-03 21:13:32 -04:00
2012-07-03 21:13:32 -04:00
2010-07-05 00:56:12 -04:00
2010-03-26 09:30:25 -04:00
2010-07-12 18:30:14 -04:00
2010-07-12 18:30:14 -04:00
2010-07-12 18:30:14 -04:00
2012-04-30 09:28:42 -04:00
2012-06-28 15:38:06 +02:00
2010-07-07 19:53:22 -04:00
2012-03-27 12:45:27 -04:00
2012-01-01 19:01:14 +01:00
2012-04-19 10:06:26 +02:00
2011-06-07 08:55:31 +08:00
2012-06-12 10:35:52 +02:00
2011-08-29 14:49:32 -04:00
2012-04-19 10:06:26 +02:00
2011-08-29 14:49:32 -04:00
2012-07-03 21:14:41 -04:00
2010-07-07 19:53:22 -04:00
2011-02-08 10:05:00 -05:00
2011-12-08 18:05:12 -05:00
2012-02-18 09:22:31 +00:00
2011-12-10 21:46:39 -05:00
2011-02-08 10:05:00 -05:00
2010-06-04 19:03:38 +02:00
2011-06-04 18:48:19 -04:00
2012-06-23 17:59:37 -04:00
2012-01-13 17:12:57 +01:00
2011-01-09 21:45:20 +01:00
2011-08-29 14:49:32 -04:00
2010-04-16 23:23:40 -04:00
2011-12-08 18:05:14 -05:00
2012-01-06 16:58:57 +07:00
2011-10-16 21:41:15 -04:00
2012-06-26 12:26:05 -04:00
2012-04-19 10:06:26 +02:00
2012-02-21 01:10:54 +01:00
2011-10-02 22:33:10 -04:00
2011-06-14 18:51:57 -04:00
2011-05-05 14:09:11 -04:00
2012-06-04 06:04:28 -04:00
2009-07-05 22:35:55 -04:00
2012-07-03 21:14:41 -04:00
2011-08-29 14:49:32 -04:00
2012-07-03 21:13:32 -04:00
2010-07-07 19:53:22 -04:00