[lightsoff/arnaudb/rework-ui: 5/5] Fix warning.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lightsoff/arnaudb/rework-ui: 5/5] Fix warning.
- Date: Mon, 16 Nov 2020 12:03:43 +0000 (UTC)
commit 6fe551f55d59911e217c74bf50d663872cac5099
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]