Get rid of the old Grid and CanvasBox
This commit is contained in:
@@ -123,7 +123,7 @@ class Frame:
|
||||
|
||||
grid = Grid()
|
||||
|
||||
self._menu_shell = MenuShell(grid)
|
||||
self._menu_shell = MenuShell()
|
||||
self._menu_shell.connect('activated', self._menu_shell_activated_cb)
|
||||
self._menu_shell.connect('deactivated', self._menu_shell_deactivated_cb)
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class ActivityMenu(Menu):
|
||||
ACTION_SHARE = 1
|
||||
ACTION_CLOSE = 2
|
||||
|
||||
def __init__(self, grid, activity_host):
|
||||
def __init__(self, activity_host):
|
||||
Menu.__init__(self, activity_host.get_title())
|
||||
|
||||
icon = CanvasIcon(icon_name='stock-share-mesh')
|
||||
@@ -37,7 +37,7 @@ class ActivityIcon(MenuIcon):
|
||||
self.set_menu_strategy(MenuStrategy())
|
||||
|
||||
def create_menu(self):
|
||||
menu = ActivityMenu(self._shell.get_grid(), self._activity_host)
|
||||
menu = ActivityMenu(self._activity_host)
|
||||
menu.connect('action', self._action_cb)
|
||||
return menu
|
||||
|
||||
|
||||
Reference in New Issue
Block a user