Module: deluge Branch: 1.3-stable Commit: fa209dfd5ffc6cd6b8bb4803fea8c75d4f4641f0
Author: Calum Lind <calumlind+del...@gmail.com> Date: Fri Jul 8 23:15:15 2011 +0100 Add handler for drag_data_received to supress warning --- deluge/ui/gtkui/torrentview.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/deluge/ui/gtkui/torrentview.py b/deluge/ui/gtkui/torrentview.py index 451150f..e324d76 100644 --- a/deluge/ui/gtkui/torrentview.py +++ b/deluge/ui/gtkui/torrentview.py @@ -273,6 +273,7 @@ class TorrentView(listview.ListView, component.Component): self.on_selection_changed) self.treeview.connect("drag-drop", self.on_drag_drop) + self.treeview.connect("drag_data_received", self.on_drag_data_received) self.treeview.connect("key-press-event", self.on_key_press_event) client.register_event_handler("TorrentStateChangedEvent", self.on_torrentstatechanged_event) @@ -536,6 +537,9 @@ class TorrentView(listview.ListView, component.Component): def on_drag_drop(self, widget, drag_context, x, y, timestamp): widget.stop_emission("drag-drop") + def on_drag_data_received(self, widget, drag_context, x, y, selection_data, info, timestamp): + widget.stop_emission("drag_data_received") + def on_torrentadded_event(self, torrent_id): self.add_row(torrent_id) self.mark_dirty(torrent_id) -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to deluge-commit@googlegroups.com. To unsubscribe from this group, send email to deluge-commit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.