[four-in-a-row/KaKnife/four-in-a-row-vala: 50/65] moved some global vars to classes
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row/KaKnife/four-in-a-row-vala: 50/65] moved some global vars to classes
- Date: Sun, 16 Dec 2018 03:24:11 +0000 (UTC)
commit 4cd279d49e37b025f647c0c4a2e31d639c76820a
Author: Jacob Humphrey <jacob ryan humphrey gmail com>
Date: Sat Dec 15 01:16:37 2018 -0600
moved some global vars to classes
src/four-in-a-row.vala | 3 +++
src/main.vala | 7 -------
2 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/four-in-a-row.vala b/src/four-in-a-row.vala
index 81339be..c0199a0 100644
--- a/src/four-in-a-row.vala
+++ b/src/four-in-a-row.vala
@@ -22,6 +22,9 @@
const string APPNAME_LONG = "Four-in-a-row";
class FourInARow : Gtk.Application {
+ SimpleAction hint_action;
+ SimpleAction undo_action;
+ SimpleAction new_game_action;
public bool gameover;
public bool player_active;
PlayerID player;
diff --git a/src/main.vala b/src/main.vala
index 7081ce7..8a8ca31 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -72,18 +72,11 @@ public enum SoundID {
COLUMN_FULL
}
-
-
-SimpleAction hint_action;
-SimpleAction undo_action;
-SimpleAction new_game_action;
-
FourInARow? application;
Gtk.ApplicationWindow window;
Settings settings;
Prefs p;
-
public int main(string[] argv) {
Intl.setlocale();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]