[gnome-nibbles/arnaudb/wip/gtk4: 54/62] Hide "Next Level" button.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-nibbles/arnaudb/wip/gtk4: 54/62] Hide "Next Level" button.
- Date: Fri, 19 Jun 2020 14:56:34 +0000 (UTC)
commit d27d4941d03dc6d2c0822949bc6034f5ab9feb51
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 c4a150f..1d980c5 100644
--- a/src/nibbles-window.vala
+++ b/src/nibbles-window.vala
@@ -795,7 +795,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]