mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
pygtk 2.8 fix (hopefully)
This commit is contained in:
parent
a6a5daa152
commit
77a457ad05
1 changed files with 7 additions and 2 deletions
|
@ -350,9 +350,14 @@ class DelugeGTK:
|
||||||
|
|
||||||
self.torrent_model.set_sort_func(3, long_sort, 3)
|
self.torrent_model.set_sort_func(3, long_sort, 3)
|
||||||
self.torrent_model.set_sort_func(12, long_sort, 12)
|
self.torrent_model.set_sort_func(12, long_sort, 12)
|
||||||
|
try:
|
||||||
self.torrent_view.get_selection().set_select_function(self.torrent_clicked, full=True)
|
self.torrent_view.get_selection().set_select_function(self.torrent_clicked, full=True)
|
||||||
|
except TypeError:
|
||||||
|
self.torrent_view.get_selection().set_select_function(self.old_t_click)
|
||||||
self.torrent_view.connect("button-press-event", self.torrent_view_clicked)
|
self.torrent_view.connect("button-press-event", self.torrent_view_clicked)
|
||||||
|
|
||||||
|
def old_t_click(self, path):
|
||||||
|
return self.torrent_clicked(self.torrent_view.get_selection(), self.torrent_model, path, False)
|
||||||
|
|
||||||
def torrent_clicked(self, selection, model, path, is_selected):
|
def torrent_clicked(self, selection, model, path, is_selected):
|
||||||
if is_selected:
|
if is_selected:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue