summaryrefslogtreecommitdiffstats
path: root/deluge/ui/gtk3/mainwindow.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2021-02-20 14:48:58 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2021-02-20 15:22:08 +0000
commit1022448e4fbd7934b69b28abb3ff0c474b7b16ec (patch)
tree7813386021715212e5e98770e8a2a023c94ec1ca /deluge/ui/gtk3/mainwindow.py
parent291540b601939ffa4a1b985159004420bf82b545 (diff)
downloaddeluge-1022448e4fbd7934b69b28abb3ff0c474b7b16ec.tar.gz
deluge-1022448e4fbd7934b69b28abb3ff0c474b7b16ec.tar.bz2
deluge-1022448e4fbd7934b69b28abb3ff0c474b7b16ec.zip
[#3441|GTKUI] Add a torrentdetails tabs position menu
The tabs placement for the torrentdetails notebook might not be to everyone's liking so add a menu item to configure it. Default the position back to top.
Diffstat (limited to 'deluge/ui/gtk3/mainwindow.py')
-rw-r--r--deluge/ui/gtk3/mainwindow.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/deluge/ui/gtk3/mainwindow.py b/deluge/ui/gtk3/mainwindow.py
index daed58910..b0135bdc9 100644
--- a/deluge/ui/gtk3/mainwindow.py
+++ b/deluge/ui/gtk3/mainwindow.py
@@ -108,6 +108,7 @@ class MainWindow(component.Component):
self.window = self.main_builder.get_object('main_window')
self.window.set_icon(get_deluge_icon())
self.tabsbar_pane = self.main_builder.get_object('tabsbar_pane')
+ self.tabsbar_torrent_info = self.main_builder.get_object('torrent_info')
self.sidebar_pane = self.main_builder.get_object('sidebar_pane')
# Keep a list of components to pause and resume when changing window state.
@@ -154,6 +155,10 @@ class MainWindow(component.Component):
self.main_builder.prev_connect_signals(self.gtk_builder_signals_holder)
self.sidebar_pane.set_position(self.config['sidebar_position'])
self.tabsbar_pane.set_position(self.config['tabsbar_position'])
+ tab_pos = self.config['tabsbar_tab_pos']
+ self.tabsbar_torrent_info.set_tab_pos(
+ getattr(Gtk.PositionType, tab_pos.upper())
+ )
if not (
self.config['start_in_tray'] and self.config['enable_system_tray']