dbus_export: fix get_layout_children array signature

GetLayout method should return layout as `(ia{sv}av)` not
`(ia{sv}a(ia{sv}av))`.
This commit is contained in:
Alberts Muktupāvels 2017-12-29 12:09:47 +02:00
parent ca24b8a55c
commit f625ecc861

View File

@ -237,7 +237,7 @@ class DBusMenu(QObject):
return parent_id, props, self.get_layout_children(parent_id, depth, property_names) return parent_id, props, self.get_layout_children(parent_id, depth, property_names)
def get_layout_children(self, parent_id, depth, property_names): def get_layout_children(self, parent_id, depth, property_names):
ans = dbus.Array(signature='(ia{sv}av)') ans = dbus.Array(signature='v')
ac = self.id_to_action(parent_id) ac = self.id_to_action(parent_id)
if ac is not None and depth != 0 and ac.menu() is not None: if ac is not None and depth != 0 and ac.menu() is not None:
for child in menu_actions(ac.menu()): for child in menu_actions(ac.menu()):