[gnome-games/wip/aplazas/781334-refactor-game-sources] core: Move GameCallback to its own file
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/aplazas/781334-refactor-game-sources] core: Move GameCallback to its own file
- Date: Sun, 7 May 2017 11:35:05 +0000 (UTC)
commit 7af893e7327a732432c68c8468a6b3e037dbe07f
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sun May 7 13:25:24 2017 +0200
core: Move GameCallback to its own file
This is needed to remove GameSource.
src/Makefile.am | 1 +
src/core/game-callback.vala | 3 +++
src/core/game-source.vala | 2 --
3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index aab8cd2..5e15258 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -43,6 +43,7 @@ gnome_games_SOURCES = \
\
core/cover.vala \
core/game.vala \
+ core/game-callback.vala \
core/game-collection.vala \
core/game-source.vala \
core/game-uri-adapter.vala \
diff --git a/src/core/game-callback.vala b/src/core/game-callback.vala
new file mode 100644
index 0000000..e745792
--- /dev/null
+++ b/src/core/game-callback.vala
@@ -0,0 +1,3 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+public delegate void Games.GameCallback (Game game);
diff --git a/src/core/game-source.vala b/src/core/game-source.vala
index 1156b1d..27fe565 100644
--- a/src/core/game-source.vala
+++ b/src/core/game-source.vala
@@ -3,5 +3,3 @@
public interface Games.GameSource : Object {
public abstract async void each_game (GameCallback callback);
}
-
-public delegate void Games.GameCallback (Game game);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]