[gnome-games] dummy: Add DummyUid
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] dummy: Add DummyUid
- Date: Thu, 19 Jul 2018 09:17:58 +0000 (UTC)
commit 91669d5e7fd7c7f7652dfd744ae1980a4d98527f
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Tue Jul 10 18:47:51 2018 +0500
dummy: Add DummyUid
This will be used in subsequent commits to represent empty uid.
src/dummy/dummy-uid.vala | 7 +++++++
src/meson.build | 1 +
2 files changed, 8 insertions(+)
---
diff --git a/src/dummy/dummy-uid.vala b/src/dummy/dummy-uid.vala
new file mode 100644
index 0000000..e627626
--- /dev/null
+++ b/src/dummy/dummy-uid.vala
@@ -0,0 +1,7 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+public class Games.DummyUid : Object, Uid {
+ public string get_uid () {
+ return "";
+ }
+}
diff --git a/src/meson.build b/src/meson.build
index 535b387..2875ad0 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -45,6 +45,7 @@ vala_sources = [
'dummy/dummy-game.vala',
'dummy/dummy-icon.vala',
'dummy/dummy-runner.vala',
+ 'dummy/dummy-uid.vala',
'gameinfo/gameinfo-doc.vala',
'gameinfo/gameinfo-error.vala',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]