mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 10:07:13 +02:00
GDBusObject{Proxy,Skeleton}: Prefix properties with g- to avoid collisions
Otherwise we might collide with an interface called Connection. https://bugzilla.gnome.org/show_bug.cgi?id=659699 This is for the same reason that GDBusProxy has its properties prefixed with g-. Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
@@ -2838,7 +2838,7 @@ class CodeGenerator:
|
||||
'{\n'
|
||||
' g_return_val_if_fail (G_IS_DBUS_CONNECTION (connection), NULL);\n'
|
||||
' g_return_val_if_fail (g_variant_is_object_path (object_path), NULL);\n'
|
||||
' return %sOBJECT_PROXY (g_object_new (%sTYPE_OBJECT_PROXY, "connection", connection, "object-path", object_path, NULL));\n'
|
||||
' return %sOBJECT_PROXY (g_object_new (%sTYPE_OBJECT_PROXY, "g-connection", connection, "g-object-path", object_path, NULL));\n'
|
||||
'}\n'
|
||||
'\n'%(self.namespace, self.ns_lower, self.ns_upper, self.ns_upper))
|
||||
|
||||
@@ -2979,7 +2979,7 @@ class CodeGenerator:
|
||||
'%sobject_skeleton_new (const gchar *object_path)\n'
|
||||
'{\n'
|
||||
' g_return_val_if_fail (g_variant_is_object_path (object_path), NULL);\n'
|
||||
' return %sOBJECT_SKELETON (g_object_new (%sTYPE_OBJECT_SKELETON, "object-path", object_path, NULL));\n'
|
||||
' return %sOBJECT_SKELETON (g_object_new (%sTYPE_OBJECT_SKELETON, "g-object-path", object_path, NULL));\n'
|
||||
'}\n'
|
||||
'\n'%(self.namespace, self.ns_lower, self.ns_upper, self.ns_upper))
|
||||
for i in self.ifaces:
|
||||
|
Reference in New Issue
Block a user