mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Update to the DnD windows fix
Found that the original fix worked fine with GTK v2.24 but with v2.16 on Windows get_uris is empty
This commit is contained in:
parent
a779a4a7ea
commit
d9193fcc4f
1 changed files with 5 additions and 2 deletions
|
@ -284,8 +284,11 @@ class MainWindow(component.Component):
|
|||
self.config["window_pane_position"] = self.vpaned.get_position()
|
||||
|
||||
def on_drag_data_received_event(self, widget, drag_context, x, y, selection_data, info, timestamp):
|
||||
log.debug("Selection(s) dropped on main window %s", selection_data.get_uris())
|
||||
process_args(selection_data.get_uris())
|
||||
log.debug("Selection(s) dropped on main window %s", selection_data.data)
|
||||
if selection_data.get_uris():
|
||||
process_args(selection_data.get_uris())
|
||||
else:
|
||||
process_args(selection_data.data.split())
|
||||
drag_context.finish(True, True)
|
||||
|
||||
def on_expose_event(self, widget, event):
|
||||
|
|
Loading…
Add table
Reference in a new issue