[gnome-games/wip/exalm/rebrand: 85/124] game: Add title property




commit 07f52564d827feeee9920b9f90ef91e76696e199
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Mar 30 14:56:16 2021 +0500

    game: Add title property
    
    FIXME this should be before media title

 src/core/game.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/core/game.vala b/src/core/game.vala
index d77d6cb1..be055753 100644
--- a/src/core/game.vala
+++ b/src/core/game.vala
@@ -10,7 +10,7 @@ public class Games.Game : Object {
                                return _name;
 
                        try {
-                               _name = game_title.get_title ();
+                               _name = title.get_title ();
                        }
                        catch (Error e) {
                                warning (e.message);
@@ -23,6 +23,7 @@ public class Games.Game : Object {
                }
        }
 
+       public Title title { get; private set; }
        public Uid uid { get; private set; }
        public Uri uri { get; private set; }
        public Platform platform { get; private set; }
@@ -30,14 +31,13 @@ public class Games.Game : Object {
        public bool is_favorite { get; set; }
        public DateTime? last_played { get; set; }
 
-       private Title game_title;
        private Icon game_icon;
        private Cover game_cover;
 
        public Game (Uid uid, Uri uri, Title title, Platform platform) {
                this.uid = uid;
                this.uri = uri;
-               game_title = title;
+               this.title = title;
                this.platform = platform;
        }
 


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