mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-20 15:18:20 +00:00
pygtk 2.8 fix (hopefully)
This commit is contained in:
parent
84e3725229
commit
a6a5daa152
@ -235,15 +235,13 @@ class DelugeGTK:
|
|||||||
try:
|
try:
|
||||||
self.plugin_view.get_selection().set_select_function(self.plugin_clicked, full=True)
|
self.plugin_view.get_selection().set_select_function(self.plugin_clicked, full=True)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
self.plugin_view.get_selection().set_select_function(self.old_pi_click, data=('foo'))
|
self.plugin_view.get_selection().set_select_function(self.old_pi_click)
|
||||||
name_col = dgtk.add_text_column(self.plugin_view, _("Plugin"), 0)
|
name_col = dgtk.add_text_column(self.plugin_view, _("Plugin"), 0)
|
||||||
name_col.set_expand(True)
|
name_col.set_expand(True)
|
||||||
dgtk.add_toggle_column(self.plugin_view, _("Enabled"), 1, toggled_signal=self.plugin_toggled)
|
dgtk.add_toggle_column(self.plugin_view, _("Enabled"), 1, toggled_signal=self.plugin_toggled)
|
||||||
self.prf_glade.signal_autoconnect({'plugin_pref': self.plugin_pref})
|
self.prf_glade.signal_autoconnect({'plugin_pref': self.plugin_pref})
|
||||||
|
|
||||||
def old_pi_click(self, path, data):
|
def old_pi_click(self, path):
|
||||||
print path
|
|
||||||
print data
|
|
||||||
return self.plugin_clicked(self.plugin_view.get_selection(), self.plugin_store,
|
return self.plugin_clicked(self.plugin_view.get_selection(), self.plugin_store,
|
||||||
path, False)
|
path, False)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user