mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 13:34:21 +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
3d813ea1f8
commit
9ed155c456
@ -213,8 +213,11 @@ class MainWindow(component.Component):
|
|||||||
self.config["window_pane_position"] = self.vpaned.get_position()
|
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):
|
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())
|
log.debug("Selection(s) dropped on main window %s", selection_data.data)
|
||||||
process_args(selection_data.get_uris())
|
if selection_data.get_uris():
|
||||||
|
process_args(selection_data.get_uris())
|
||||||
|
else:
|
||||||
|
process_args(selection_data.data.split())
|
||||||
drag_context.finish(True, True)
|
drag_context.finish(True, True)
|
||||||
|
|
||||||
def on_expose_event(self, widget, event):
|
def on_expose_event(self, widget, event):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user