From bb0c61bb3f037ff10729460a4087700a775af0e6 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 5 Nov 2018 08:38:54 +0000 Subject: [PATCH] [GTK3] Replace deprecated `set_data` with attribute assignment --- deluge/plugins/Blocklist/deluge/plugins/blocklist/gtkui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/plugins/Blocklist/deluge/plugins/blocklist/gtkui.py b/deluge/plugins/Blocklist/deluge/plugins/blocklist/gtkui.py index 24f7060fd..b6e5d5508 100644 --- a/deluge/plugins/Blocklist/deluge/plugins/blocklist/gtkui.py +++ b/deluge/plugins/Blocklist/deluge/plugins/blocklist/gtkui.py @@ -213,7 +213,7 @@ class GtkUI(Gtk3PluginBase): self.whitelist_model = Gtk.ListStore(str, bool) renderer = Gtk.CellRendererText() renderer.connect('edited', self.on_cell_edited, self.whitelist_model) - renderer.set_data('ip', 0) + renderer.ip = 0 column = Gtk.TreeViewColumn('IPs', renderer, text=0, editable=1) column.set_expand(True)