[gnome-games] retro: Simplify construction of MediaSet in RetroRunner



commit 12121bc5ca1507bafc612683bc44a41ce65add09
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu Jun 1 10:49:18 2017 +0200

    retro: Simplify construction of MediaSet in RetroRunner
    
    https://bugzilla.gnome.org/show_bug.cgi?id=783319

 src/retro/retro-runner.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index d63c0b2..8d7d5f8 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -79,7 +79,8 @@ public class Games.RetroRunner : Object, Runner {
                this.core_descriptor = null;
                var game_media = new Media ();
                game_media.add_uri (uri);
-               _media_set = new MediaSet ({ game_media });
+               _media_set = new MediaSet ();
+               _media_set.add_media (game_media);
 
                this.uid = uid;
                this.core_source = core_source;
@@ -109,7 +110,7 @@ public class Games.RetroRunner : Object, Runner {
 
                this.core_descriptor = core_descriptor;
                this.core_source = null;
-               this._media_set = new MediaSet ({});
+               this._media_set = new MediaSet ();
                this.uid = uid;
                this.input_capabilities = null;
                this.game_title = game_title;


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