[gnome-games/wip/exalm/loading: 27/29] application: Provide access to GameCollection



commit f82744a064e0861c6114f18aef543814365161e7
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Nov 12 00:04:33 2019 +0500

    application: Provide access to GameCollection
    
    DisplayView will have to access it to create runners.

 src/ui/application.vala | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index a870ebaa..4f35de04 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -457,4 +457,12 @@ public class Games.Application : Gtk.Application {
 
                FileOperations.compress_dir (file_path, data_dir, database);
        }
+
+       internal GameCollection get_collection () {
+               return game_collection;
+       }
+
+       internal new static Application get_default () {
+               return GLib.Application.get_default () as Application;
+       }
 }


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