mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-12 19:28:42 +00:00
Fix drag n' drop in windows
This commit is contained in:
parent
e10a02b4e2
commit
9402ab1781
2 changed files with 6 additions and 1 deletions
|
@ -6,11 +6,13 @@ Deluge 0.9.05 - "1.0.0_RC5" (In Development)
|
||||||
|
|
||||||
GtkUI:
|
GtkUI:
|
||||||
* Handle shutting down more cleanly
|
* Handle shutting down more cleanly
|
||||||
* Add translators to credits
|
|
||||||
|
|
||||||
Plugins:
|
Plugins:
|
||||||
* Improve the Blocklist plugin preferences page.
|
* Improve the Blocklist plugin preferences page.
|
||||||
|
|
||||||
|
Windows:
|
||||||
|
* Fix drag n' drop support
|
||||||
|
|
||||||
Deluge 0.9.04 - "1.0.0_RC4" (29 July 2008)
|
Deluge 0.9.04 - "1.0.0_RC4" (29 July 2008)
|
||||||
Core:
|
Core:
|
||||||
* Fix building with gcc 4.3
|
* Fix building with gcc 4.3
|
||||||
|
|
|
@ -193,6 +193,9 @@ class MainWindow(component.Component):
|
||||||
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):
|
||||||
args = []
|
args = []
|
||||||
for uri in selection_data.data.split():
|
for uri in selection_data.data.split():
|
||||||
|
if deluge.common.windows_check():
|
||||||
|
uri = uri[7:]
|
||||||
|
uri = urllib.url2pathname(uri).strip("\r\n\x00")
|
||||||
args.append(urllib.unquote(urlparse(uri).path))
|
args.append(urllib.unquote(urlparse(uri).path))
|
||||||
process_args(args)
|
process_args(args)
|
||||||
drag_context.finish(True, True)
|
drag_context.finish(True, True)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue