[gnome-games] nintendo-ds: Pass string instead of Uri to icon extractor



commit eb173ec56cda95c7e66eedf1f5d52a60e810aaf8
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Tue Jul 24 01:29:10 2018 +0500

    nintendo-ds: Pass string instead of Uri to icon extractor
    
    Fixes icon loading.

 plugins/nintendo-ds/src/nintendo-ds-icon.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/nintendo-ds/src/nintendo-ds-icon.vala b/plugins/nintendo-ds/src/nintendo-ds-icon.vala
index 3a5d0a50..e9bd2555 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-icon.vala
+++ b/plugins/nintendo-ds/src/nintendo-ds-icon.vala
@@ -10,7 +10,7 @@ public class Games.NintendoDsIcon : Object, Icon {
                extracted = false;
        }
 
-       private static extern Gdk.Pixbuf extract (Uri uri) throws Error;
+       private static extern Gdk.Pixbuf extract (string uri) throws Error;
 
        public GLib.Icon? get_icon () {
                if (extracted)
@@ -19,7 +19,7 @@ public class Games.NintendoDsIcon : Object, Icon {
                extracted = true;
 
                try {
-                       pixbuf = extract (uri);
+                       pixbuf = extract (uri.to_string ());
                }
                catch (Error e) {
                        warning (e.message);


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