[lightsoff/arnaudb/rework-ui: 5/9] Fix warning.




commit d7a77c19ba04a2d28b7038b6d25c26b93ec9274d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Nov 16 10:57:31 2020 +0100

    Fix warning.
    
    Relaunching first level was warning about
    using a name twice for GtkStack children.

 src/game-view-gtk.vala | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/game-view-gtk.vala b/src/game-view-gtk.vala
index 2bdfc61..f9e7766 100644
--- a/src/game-view-gtk.vala
+++ b/src/game-view-gtk.vala
@@ -31,8 +31,7 @@ private class GtkGameView : Stack, GameView
                 break;
         }
 
-        var new_level = "level %d".printf(current_level);
-        add_named ((Widget)new_board, new_level);
+        add ((Widget)new_board);
         set_visible_child ((Widget)new_board);
         ((BoardViewGtk)old_board).playable = false;
         if (Gtk.Settings.get_for_screen (((Widget)new_board).get_screen ()).gtk_enable_animations)


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