@@ -192,7 +192,7 @@ class DBusMenuService(DBusService):
192192 # TODO: replace dict here with more exact typing for item
193193 idToItems : dict [str , dict ] = {}
194194
195- def __init__ (self , session_bus , context , items ):
195+ def __init__ (self , session_bus , items ):
196196 super ().__init__ (
197197 interface_info = MENU_NODE_INFO ,
198198 object_path = self .DBUS_SERVICE_PATH ,
@@ -374,7 +374,7 @@ class StatusNotifierItemService(DBusService):
374374 ItemIsMenu = True
375375 Menu = None
376376
377- def __init__ (self , session_bus , context , menu_items ):
377+ def __init__ (self , session_bus , menu_items ):
378378 super ().__init__ (
379379 interface_info = SNI_NODE_INFO ,
380380 object_path = self .DBUS_SERVICE_PATH ,
@@ -383,7 +383,7 @@ def __init__(self, session_bus, context, menu_items):
383383
384384 self .bus = session_bus
385385
386- self ._menu = DBusMenuService (session_bus , context , menu_items )
386+ self ._menu = DBusMenuService (session_bus , menu_items )
387387 self .Menu = self ._menu .DBUS_SERVICE_PATH
388388
389389 def register (self ):
@@ -453,7 +453,7 @@ def __init__(self, context, plugin_config):
453453 session_bus = Gio .bus_get_sync (Gio .BusType .SESSION )
454454
455455 self .sni_service = StatusNotifierItemService (
456- session_bus , context , menu_items = self .get_items ()
456+ session_bus , menu_items = self .get_items ()
457457 )
458458 self .sni_service .register ()
459459
0 commit comments