Fix remove torrent toolbutton.

This commit is contained in:
Andrew Resch 2008-03-08 23:13:30 +00:00
parent 7303e52ae6
commit 569fba5b5f
2 changed files with 589 additions and 577 deletions

File diff suppressed because it is too large Load Diff

View File

@ -66,6 +66,11 @@ class ToolBar(component.Component):
"toolbutton_pause",
"toolbutton_resume"
]
# Set the Remove Torrent toolbuttons drop-down menu
tb_remove = self.window.main_glade.get_widget("toolbutton_remove")
tb_remove.set_menu(
component.get("MenuBar").torrentmenu_glade.get_widget("remove_torrent_menu"))
def start(self):
for widget in self.change_sensitivity:
@ -136,7 +141,7 @@ class ToolBar(component.Component):
def on_toolbutton_remove_clicked(self, data):
log.debug("on_toolbutton_remove_clicked")
# Use the menubar's callbacks
component.get("MenuBar").on_menuitem_remove_activate(data)
component.get("MenuBar").on_menuitem_remove_session_activate(data)
def on_toolbutton_pause_clicked(self, data):
log.debug("on_toolbutton_pause_clicked")