mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/muktupavels/calibre
This commit is contained in:
commit
f9822e35cc
@ -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()):
|
||||||
|
@ -192,7 +192,7 @@ class StatusNotifierItemAPI(Object):
|
|||||||
def Menu(self):
|
def Menu(self):
|
||||||
return dbus.ObjectPath(self.dbus_menu.object_path)
|
return dbus.ObjectPath(self.dbus_menu.object_path)
|
||||||
|
|
||||||
@dbus_property(IFACE, signature='i')
|
@dbus_property(IFACE, signature='u')
|
||||||
def WindowId(self):
|
def WindowId(self):
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user