[five-or-more/arnaudb/code-improvements: 4/10] Move a method.
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more/arnaudb/code-improvements: 4/10] Move a method.
- Date: Sat, 9 May 2020 16:13:09 +0000 (UTC)
commit d2dd664fa9621b159ea42f1f42d0ba511b7c84d0
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri May 8 21:23:01 2020 +0200
Move a method.
src/main.vala | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/main.vala b/src/main.vala
index 41a2b3d..911bd1d 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -60,11 +60,6 @@ private class FiveOrMoreApp: Gtk.Application
Object (application_id: "org.gnome.five-or-more", flags: ApplicationFlags.FLAGS_NONE);
}
- protected override void activate ()
- {
- window.show ();
- }
-
protected override void startup ()
{
base.startup ();
@@ -79,6 +74,11 @@ private class FiveOrMoreApp: Gtk.Application
set_accels_for_action ("app.help", { "F1" });
}
+ protected override void activate ()
+ {
+ window.present ();
+ }
+
private void help_cb ()
{
try
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]