~jeremywootten/pantheon-files/vala-icon-renderer

« back to all changes in this revision

Viewing changes to libcore/DndHandler.vala

  • Committer: Jeremy Wootten
  • Date: 2016-09-18 15:48:52 UTC
  • mfrom: (2229.1.2 vala-clipboard-manager)
  • Revision ID: jeremy@elementaryos.org-20160918154852-3bga4wv1ohijir6z
Merge updates from vala-clipboard-manager

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
                                                              string? prefix = "") {
274
274
 
275
275
            GLib.StringBuilder sb = new GLib.StringBuilder (prefix);
 
276
            bool in_recent = file_list.data.is_recent_uri_scheme ();
276
277
 
277
278
            file_list.@foreach ((file) => {
278
 
                sb.append (file.get_target_location ().get_uri ());
 
279
                var target = in_recent ? file.get_display_target_uri () : file.get_target_location ().get_uri ();
 
280
                sb.append (target);
279
281
                sb.append ("\r\n");  /* Drop onto Filezilla does not work without the "\r" */
280
282
            });
281
283
 
282
284
            selection_data.@set (selection_data.get_target (),
283
285
                                 8,
284
286
                                 sb.data);
 
287
 
285
288
        }
286
289
    }
287
290
}