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()
|
||||
|
||||
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…
Reference in New Issue