mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 07:58:38 +00:00
menu items
This commit is contained in:
parent
d32dc83f14
commit
edb596aeff
2 changed files with 59 additions and 1 deletions
|
@ -633,7 +633,7 @@
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkImageMenuItem" id="menu_removetorrent">
|
<widget class="GtkImageMenuItem" id="menu_removetorrent">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes">Remove selected Torrent</property>
|
<property name="label" translatable="yes">Remove Torrent</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<signal name="activate" handler="remove_torrent"/>
|
<signal name="activate" handler="remove_torrent"/>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -685,6 +685,58 @@
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkMenuItem" id="menuitem3">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Torrent</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkMenu" id="menu4">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkMenuItem" id="menuitem5">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Clear Completed</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<signal name="activate" handler="clear_finished"/>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkMenuItem" id="menuitem6">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Update Tracker</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<signal name="activate" handler="update_tracker"/>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkMenuItem" id="menuitem7">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Queue Up</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<signal name="activate" handler="queue_up"/>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkMenuItem" id="menuitem8">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Queue Down</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<signal name="activate" handler="queue_down"/>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkMenuItem" id="menuitem10">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Queue to Bottom</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<signal name="activate" handler="queue_bottom"/>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenuItem" id="menu_view">
|
<widget class="GtkMenuItem" id="menu_view">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
|
|
@ -156,6 +156,7 @@ class DelugeGTK:
|
||||||
"clear_finished": self.clear_finished,
|
"clear_finished": self.clear_finished,
|
||||||
"queue_up": self.q_torrent_up,
|
"queue_up": self.q_torrent_up,
|
||||||
"queue_down": self.q_torrent_down,
|
"queue_down": self.q_torrent_down,
|
||||||
|
"queue_bottom": self.q_to_bottom,
|
||||||
})
|
})
|
||||||
|
|
||||||
def build_tray_icon(self):
|
def build_tray_icon(self):
|
||||||
|
@ -782,6 +783,11 @@ class DelugeGTK:
|
||||||
if torrent is not None:
|
if torrent is not None:
|
||||||
self.manager.queue_up(torrent)
|
self.manager.queue_up(torrent)
|
||||||
|
|
||||||
|
def q_to_bottom(self, widget):
|
||||||
|
torrent = self.get_selected_torrent()
|
||||||
|
if torrent is not None:
|
||||||
|
self.manager.queue_bottom(torrent)
|
||||||
|
|
||||||
def toolbar_toggle(self, widget):
|
def toolbar_toggle(self, widget):
|
||||||
if widget.get_active():
|
if widget.get_active():
|
||||||
self.wtree.get_widget("tb_left").show()
|
self.wtree.get_widget("tb_left").show()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue