[gnome-music/wip/jfelder/songwidget-contextmenu: 8/8] playlistswidget: Make SongWidget not selectable
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/songwidget-contextmenu: 8/8] playlistswidget: Make SongWidget not selectable
- Date: Sat, 22 May 2021 15:29:46 +0000 (UTC)
commit 14014d64fadb963443ef5e7e86919f7385deb39a
Author: Jean Felder <jfelder src gnome org>
Date: Mon May 10 19:14:55 2021 +0200
playlistswidget: Make SongWidget not selectable
PlaylistContextMenu relied on the SongWidget being selectable in order
to work. With the rework from the previous commit, this is not needed
anymore.
This also allows to remove some css rules which prevented labels and
images from being hidden when a SongWidget was selected.
data/org.gnome.Music.css | 5 -----
gnomemusic/widgets/playlistswidget.py | 1 -
2 files changed, 6 deletions(-)
---
diff --git a/data/org.gnome.Music.css b/data/org.gnome.Music.css
index 4659aec06..5214c21c9 100644
--- a/data/org.gnome.Music.css
+++ b/data/org.gnome.Music.css
@@ -159,11 +159,6 @@ list {
padding: 0px;
}
-.content > row:selected {
- background-color: @theme_base_color;
- color: @theme_fg_color;
-}
-
.playlistdialog-row:selected {
color: @theme_fg_color;
background-color: @theme_insensitive_bg_color;
diff --git a/gnomemusic/widgets/playlistswidget.py b/gnomemusic/widgets/playlistswidget.py
index 862721d8e..2f1f88e26 100644
--- a/gnomemusic/widgets/playlistswidget.py
+++ b/gnomemusic/widgets/playlistswidget.py
@@ -87,7 +87,6 @@ class PlaylistsWidget(Gtk.Box):
self, coresong: CoreSong, playlist: Playlist) -> Gtk.ListBoxRow:
can_dnd = not playlist.props.is_smart
song_widget = SongWidget(coresong, can_dnd, True)
- song_widget.props.selectable = True
song_widget.props.show_song_number = False
if can_dnd is True:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]