[gnome-music/wip/jfelder/songwidget-contextmenu: 10/10] songwidget: Make it not selectable
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/songwidget-contextmenu: 10/10] songwidget: Make it not selectable
- Date: Fri, 21 May 2021 12:35:01 +0000 (UTC)
commit 0f9553b13fe2c82221e34b5d8f68c00391721bf5
Author: Jean Felder <jfelder src gnome org>
Date: Mon May 10 19:14:55 2021 +0200
songwidget: Make it not selectable
PlaylistContextMenu relied on the SongWidget being selectable in order
to work. With the rework from the previous work, 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 | 9 ---------
data/ui/SongWidget.ui | 1 +
2 files changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/data/org.gnome.Music.css b/data/org.gnome.Music.css
index dce3226ee..b4a6f0138 100644
--- a/data/org.gnome.Music.css
+++ b/data/org.gnome.Music.css
@@ -162,11 +162,6 @@ https://gitlab.gnome.org/GNOME/gtk/issues/694 */
background-color: @theme_base_color;
}
-.songs-list > row:selected label {
- color: @theme_fg_color;
-}
-
-
.disc-list-box > row {
padding: 0px;
}
@@ -183,10 +178,6 @@ padding: 0px;
border-bottom: none;
}
-.songs-list > row:selected {
- color: @theme_fg_color;
-}
-
.playlistdialog-row:selected {
color: @theme_fg_color;
background-color: @theme_insensitive_bg_color;
diff --git a/data/ui/SongWidget.ui b/data/ui/SongWidget.ui
index 0ad4365ab..1bb14f17a 100644
--- a/data/ui/SongWidget.ui
+++ b/data/ui/SongWidget.ui
@@ -5,6 +5,7 @@
<template class="SongWidget" parent="GtkListBoxRow">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="selectable">False</property>
<signal name="drag_data_received" handler="_on_drag_data_received"/>
<child>
<object class="GtkBox" id="box1">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]