[gnome-boxes/wip/silence-some-build-warnings: 2/3] spice-display: spice_main_file_copy_async() has been deprecated



commit becb8d01c9fe25316c7d8b5c7f525601fb7ce61a
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 5dc7af29..235b183f 100644
--- a/src/spice-display.vala
+++ b/src/spice-display.vala
@@ -501,7 +501,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]