[gnome-boxes/use-spice-main-channel-file-copy-async] spice-display: spice_main_file_copy_async() has been deprecated



commit f0b53a667a2acdefba6206d8030a8e35b0e60ff9
Author: Felipe Borges <felipeborges gnome org>
Date:   Sat Aug 11 19:15:22 2018 +0200

    spice-display: spice_main_file_copy_async() has been deprecated
    
    spice_main_file_copy_async has been deprecated since version 0.35
    and should not be used in newly-written code.
    
    We now use spice_main_channel_file_copy_async ().
    
    In order to verify whether this commit introduces any regression,
    you can transfer a file from your host to a guest.

 src/spice-display.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/spice-display.vala b/src/spice-display.vala
index f5d6e7bd..f55503fb 100644
--- a/src/spice-display.vala
+++ b/src/spice-display.vala
@@ -319,7 +319,7 @@ public override void transfer_files (GLib.List<string> uris) {
         }
         files += null;
 
-        main_file_copy_async.begin (main_channel, files, FileCopyFlags.NONE, null, null);
+        main_channel.file_copy_async.begin (files, FileCopyFlags.NONE, null, null);
     }
 
     private void on_new_file_transfer (Spice.MainChannel main_channel, Object transfer_task) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]