Commited, thanks

2007-11-12  Edward Hervey  <[EMAIL PROTECTED]>

        Patch by: Tommy <yobbobandana at yahoo dot co dot nz>

        * pitivi/ui/sourcefactories.py:
        unquote urls from drag and drop, this should fix some issues when
        DnD'ing files from Nautilus for ex.



On Sat, 2007-11-10 at 10:16 +1300, Tommy wrote:
> It's just an additional line to properly unquote the file URI so I'll
> post it here. If I end up making any more changes I'll post them on the
> bug tracker :).
> 
> 
> Tommy
> 
> 
> Index: pitivi/ui/sourcefactories.py
> ===================================================================
> --- pitivi/ui/sourcefactories.py    (revision 1085)
> +++ pitivi/ui/sourcefactories.py    (working copy)
> @@ -505,6 +505,7 @@
>          directories = []
>          if targetType == dnd.TYPE_URI_LIST:
>              incoming = [x.strip('\x00') for x in
> selection.data.strip().split("\r\n") if x.strip('\x00')]
> +            incoming = [unquote(x) for x in incoming]
>              filenames = [x for x in incoming if isfile(x)]
>              directories = [x for x in incoming if not isfile(x)]
>          elif targetType == dnd.TYPE_TEXT_PLAIN:
> 
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Pitivi-pitivi mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pitivi-pitivi

Reply via email to