Fix remove torrent toolbutton.
This commit is contained in:
parent
7303e52ae6
commit
569fba5b5f
File diff suppressed because it is too large
Load Diff
|
@ -66,6 +66,11 @@ class ToolBar(component.Component):
|
||||||
"toolbutton_pause",
|
"toolbutton_pause",
|
||||||
"toolbutton_resume"
|
"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):
|
def start(self):
|
||||||
for widget in self.change_sensitivity:
|
for widget in self.change_sensitivity:
|
||||||
|
@ -136,7 +141,7 @@ class ToolBar(component.Component):
|
||||||
def on_toolbutton_remove_clicked(self, data):
|
def on_toolbutton_remove_clicked(self, data):
|
||||||
log.debug("on_toolbutton_remove_clicked")
|
log.debug("on_toolbutton_remove_clicked")
|
||||||
# Use the menubar's callbacks
|
# 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):
|
def on_toolbutton_pause_clicked(self, data):
|
||||||
log.debug("on_toolbutton_pause_clicked")
|
log.debug("on_toolbutton_pause_clicked")
|
||||||
|
|
Loading…
Reference in New Issue