[gnome-nibbles/arnaudb/wip/gtk4: 37/40] Hide "Next Level" button.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/wip/gtk4: 37/40] Hide "Next Level" button.
- Date: Tue, 16 Jun 2020 16:35:06 +0000 (UTC)
commit 149eca7766ff4781110ddee9eabf3151b08200da
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]