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