[gnome-boxes/wip/ricotz/syntax: 3/3] Fix a few valac warnings



commit b13682d7ea7b674ce47a46de5ba4230c81b8f739
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu May 24 17:39:14 2018 +0200

    Fix a few valac warnings

 src/machine.vala               | 4 ++--
 src/spice-display.vala         | 2 +-
 src/wizard-downloads-page.vala | 2 +-
 src/wizard-window.vala         | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 8c2fd8ae..edae0b2d 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -214,7 +214,7 @@ protected void show_display () {
                     got_error (message);
             });
 
-            auth_failed_id = _display.auth_failed.connect (() => { delete_auth_credentials (); });
+            auth_failed_id = _display.auth_failed.connect (() => { delete_auth_credentials.begin (); });
 
             disconnected_id = _display.disconnected.connect ((failed) => {
                 message (@"display $name disconnected");
@@ -575,7 +575,7 @@ public virtual void delete (bool by_user = true) {
             ui_state_id = 0;
         }
 
-        delete_auth_credentials ();
+        delete_auth_credentials.begin ();
 
         config.delete ();
         try {
diff --git a/src/spice-display.vala b/src/spice-display.vala
index 37369a93..5dc7af29 100644
--- a/src/spice-display.vala
+++ b/src/spice-display.vala
@@ -777,7 +777,7 @@ private bool is_usb_kbd_or_mouse (uint8 class, uint8 subclass, uint8 protocol) {
 private class Boxes.SpiceChannelHandler : GLib.Object {
     private unowned SpiceDisplay display;
     private Spice.Channel channel;
-    private Display.OpenFDFunc? open_fd;
+    private unowned Display.OpenFDFunc? open_fd;
 
     public SpiceChannelHandler (SpiceDisplay display, Spice.Channel channel, Display.OpenFDFunc? open_fd = 
null) {
         this.display = display;
diff --git a/src/wizard-downloads-page.vala b/src/wizard-downloads-page.vala
index 3e3fbd65..fb30cce2 100644
--- a/src/wizard-downloads-page.vala
+++ b/src/wizard-downloads-page.vala
@@ -56,7 +56,7 @@
 
         recommended_model = new GLib.ListStore (typeof (Osinfo.Media));
         recommended_listbox.bind_model (recommended_model, create_downloads_entry);
-        populate_recommended_list ();
+        populate_recommended_list.begin ();
 
         listbox.bind_model (search.model, create_downloads_entry);
 
diff --git a/src/wizard-window.vala b/src/wizard-window.vala
index 2104f6ee..975c488b 100644
--- a/src/wizard-window.vala
+++ b/src/wizard-window.vala
@@ -118,7 +118,7 @@ public void show_downloads_page (OSDatabase os_db, owned DownloadChosenFunc down
         page = WizardWindowPage.DOWNLOADS;
         topbar.downloads_search.grab_focus ();
 
-        downloads_page.download_chosen_func = download_chosen_func;
+        downloads_page.download_chosen_func = (owned) download_chosen_func;
         downloads_page.page = WizardDownloadsPageView.RECOMMENDED;
 
         os_db.list_downloadable_oses.begin ((db, result) => {


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