[gnome-games] collection-icon-view: Simplify add_game()



commit a421795c952fd6bbe32ab379b4d6cccae6c7a02e
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Feb 11 04:27:39 2020 +0500

    collection-icon-view: Simplify add_game()

 src/ui/collection-icon-view.vala | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/ui/collection-icon-view.vala b/src/ui/collection-icon-view.vala
index 6164aee4..3d2e6069 100644
--- a/src/ui/collection-icon-view.vala
+++ b/src/ui/collection-icon-view.vala
@@ -164,12 +164,7 @@ private class Games.CollectionIconView : Gtk.Bin {
        }
 
        private Gtk.Widget add_game (Object item) {
-               var game = item as Game;
-
-               var game_view = new GameIconView (game);
-               game_view.show ();
-
-               return game_view;
+               return new GameIconView (item as Game);
        }
 
        public void invalidate_filter () {


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