[gnome-klotski] Remove a method.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-klotski] Remove a method.
- Date: Mon, 10 Feb 2020 17:19:15 +0000 (UTC)
commit 8cc8ff6c2783a9832762c900930ae00c65a79dad
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Feb 10 12:57:39 2020 +0100
Remove a method.
src/gnome-klotski.vala | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/src/gnome-klotski.vala b/src/gnome-klotski.vala
index 27126ae..d9d00ec 100644
--- a/src/gnome-klotski.vala
+++ b/src/gnome-klotski.vala
@@ -35,13 +35,13 @@ private class Klotski : Gtk.Application
private const GLib.ActionEntry action_entries [] =
{
- {"help", help_cb},
- {"about", about_cb},
- {"quit", quit_cb}
+ { "help", help_cb },
+ { "about", about_cb },
+ { "quit", quit }
};
/*\
- * * Application init
+ * * application life
\*/
private static int main (string [] args)
@@ -106,8 +106,14 @@ private class Klotski : Gtk.Application
window.present ();
}
+ protected override void shutdown ()
+ {
+ window.destroy ();
+ base.shutdown ();
+ }
+
/*\
- * * App-menu callbacks
+ * * help and about
\*/
private void help_cb ()
@@ -167,9 +173,4 @@ private class Klotski : Gtk.Application
"translator-credits", _("translator-credits"),
"website", "https://wiki.gnome.org/Apps/Klotski");
}
-
- private void quit_cb ()
- {
- window.destroy ();
- }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]