Commit d9086a4c authored by Marinus Schraal's avatar Marinus Schraal

Fix some PyGI deprecation warnings

parent b5e8bad3
......@@ -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):
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment