[gnome-music/wip/mschraal/core] Fix some PyGI deprecation warnings



commit d9086a4c296bfc699c956c9eb77898da414aa41d
Author: Marinus Schraal <mschraal gnome org>
Date:   Mon Jul 15 16:23:49 2019 +0200

    Fix some PyGI deprecation warnings

 gnomemusic/coremodel.py     | 6 +++---
 gnomemusic/coreselection.py | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/coremodel.py b/gnomemusic/coremodel.py
index cafedc59..a9afa6f0 100644
--- a/gnomemusic/coremodel.py
+++ b/gnomemusic/coremodel.py
@@ -362,7 +362,7 @@ class CoreModel(GObject.GObject):
     def albums(self):
         return self._album_model
 
-    @GObject.property(
+    @GObject.Property(
         type=Gio.ListStore, default=None, flags=GObject.ParamFlags.READABLE)
     def artists(self):
         return self._artist_model
@@ -378,7 +378,7 @@ class CoreModel(GObject.GObject):
     def albums_sort(self):
         return self._album_model_sort
 
-    @GObject.property(
+    @GObject.Property(
         type=Gfm.SortListModel, default=None,
         flags=GObject.ParamFlags.READABLE)
     def artists_sort(self):
@@ -408,7 +408,7 @@ class CoreModel(GObject.GObject):
     def albums_search(self):
         return self._album_search_model
 
-    @GObject.property(
+    @GObject.Property(
         type=Dazzle.ListModelFilter, default=None,
         flags=GObject.ParamFlags.READABLE)
     def artists_search(self):
diff --git a/gnomemusic/coreselection.py b/gnomemusic/coreselection.py
index 273db128..848da8bc 100644
--- a/gnomemusic/coreselection.py
+++ b/gnomemusic/coreselection.py
@@ -45,6 +45,6 @@ class CoreSelection(GObject.GObject):
 
         self.props.selected_items_count = len(self.props.selected_items)
 
-    @GObject.property
+    @GObject.Property
     def selected_items(self):
         return self._selected_items


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