[gnome-music/wip/mschraal/core: 2/118] coremodel initial commit



commit 2fb1411f10424ad4c2726b9102f85d2c83dd4e45
Author: Marinus Schraal <mschraal gnome org>
Date:   Wed May 8 15:29:05 2019 +0200

    coremodel initial commit

 gnomemusic/application.py |  3 +++
 gnomemusic/coremodel.py   | 11 +++++++++++
 2 files changed, 14 insertions(+)
---
diff --git a/gnomemusic/application.py b/gnomemusic/application.py
index 4887d8fa..5d3eb0a7 100644
--- a/gnomemusic/application.py
+++ b/gnomemusic/application.py
@@ -36,6 +36,7 @@ import logging
 from gi.repository import Gtk, Gio, GLib, Gdk, GObject
 
 from gnomemusic import log
+from gnomemusic.coremodel import CoreModel
 from gnomemusic.inhibitsuspend import InhibitSuspend
 from gnomemusic.mpris import MPRIS
 from gnomemusic.pauseonsuspend import PauseOnSuspend
@@ -62,6 +63,8 @@ class Application(Gtk.Application):
         self._init_style()
         self._window = None
 
+        coremodel = CoreModel()
+
         self._settings = Gio.Settings.new('org.gnome.Music')
         self._player = Player(self)
 
diff --git a/gnomemusic/coremodel.py b/gnomemusic/coremodel.py
new file mode 100644
index 00000000..b576f3c2
--- /dev/null
+++ b/gnomemusic/coremodel.py
@@ -0,0 +1,11 @@
+from gi.repository import GObject
+
+from gnomemusic import log
+
+
+class CoreModel(GObject.GObject):
+
+    @log
+    def __init__(self):
+        super().__init__()
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]