Don't like ads? PRO users don't see any ads ;-)
Guest

pastie-nognomevfs.patch

By: a guest on Dec 3rd, 2010  |  syntax: Diff  |  size: 0.67 KB  |  hits: 113  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff -uNr a/pastielib/history.py b/pastielib/history.py
  2. --- a/pastielib/history.py      2010-10-01 02:48:02.000000000 +0800
  3. +++ b/pastielib/history.py      2010-12-04 03:24:48.662999949 +0800
  4. @@ -17,7 +17,6 @@
  5.  import gobject
  6.  import gtk
  7.  import gtk.gdk
  8. -import gnomevfs
  9.  import os.path
  10.  from fractions import Fraction
  11.  
  12. @@ -206,7 +205,7 @@
  13.                         files = path.split("\n")
  14.                         file_paths = []
  15.                         for copied_file in files:
  16. -                               file_path = gnomevfs.escape_path_string(copied_file)
  17. +                               file_path = copied_file
  18.                                 file_paths.append('file://' + file_path)
  19.                         selectiondata.set_uris(file_paths)
  20.                         selectiondata.set('x-special/gnome-copied-files', 8, 'copy\n' + '\n'.join(file_paths))