[gnome-music/wip/mschraal/gtk4-v3: 239/248] coremodel: Remove SongListStore
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4-v3: 239/248] coremodel: Remove SongListStore
- Date: Mon, 14 Feb 2022 02:24:03 +0000 (UTC)
commit 3f60676e57d7bda03d6a345ab19929c3c3965bbb
Author: Marinus Schraal <mschraal gnome org>
Date: Mon Feb 14 00:55:37 2022 +0100
coremodel: Remove SongListStore
gnomemusic/coremodel.py | 10 +---
gnomemusic/songliststore.py | 117 --------------------------------------------
2 files changed, 2 insertions(+), 125 deletions(-)
---
diff --git a/gnomemusic/coremodel.py b/gnomemusic/coremodel.py
index a248cd955..447a1268e 100644
--- a/gnomemusic/coremodel.py
+++ b/gnomemusic/coremodel.py
@@ -33,7 +33,6 @@ from gnomemusic.coreartist import CoreArtist
from gnomemusic.coresong import CoreSong
from gnomemusic.grilowrappers.grltrackerplaylists import Playlist
from gnomemusic.player import PlayerPlaylist
-from gnomemusic.songliststore import SongListStore
from gnomemusic.widgets.songwidget import SongWidget
if typing.TYPE_CHECKING:
from gnomemusic.application import Application
@@ -284,9 +283,9 @@ class CoreModel(GObject.GObject):
songs_added.append(song)
elif playlist_type == PlayerPlaylist.Type.SONGS:
- self._current_playlist_model = self._songliststore.props.model
+ self._current_playlist_model = self._songs_model
- for song in self._songliststore.props.model:
+ for song in self._songs_model:
songs_added.append(song)
if song.props.state == SongWidget.State.PLAYING:
@@ -469,11 +468,6 @@ class CoreModel(GObject.GObject):
def artists_search_proxy(self) -> Gio.ListStore:
return self._artists_search_proxy
- @GObject.Property(
- type=Gtk.ListStore, default=None, flags=GObject.ParamFlags.READABLE)
- def songs_gtkliststore(self):
- return self._songliststore
-
@GObject.Property(
type=Gio.ListStore, default=None, flags=GObject.ParamFlags.READABLE)
def playlists(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]