[gnome-nibbles/arnaudb/wip/gtk4: 172/188] Hide "Next Level" button.




commit 69b01b3d78f38d712dcd080fcb0633f1f11305cc
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Jun 16 17:37:07 2020 +0200

    Hide "Next Level" button.
    
    Else it is more complicated.

 src/nibbles-window.vala | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/nibbles-window.vala b/src/nibbles-window.vala
index 8d17c22..6f0a0a4 100644
--- a/src/nibbles-window.vala
+++ b/src/nibbles-window.vala
@@ -891,7 +891,11 @@ private class NibblesWindow : ApplicationWindow
         button.get_style_context ().add_class ("suggested-action");
 //        button.set_can_default (true);
         button.clicked.connect (() => {
+            label.hide ();
+            label.unparent ();
             label.destroy ();
+            button.hide ();
+            button.unparent ();
             button.destroy ();
 
             /* Translators: title of the headerbar, while a game is running; the %d is replaced by the level 
number */


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