[gnome-music/wip/jfelder/songwidget-contextmenu: 3/3] songwidget: Make it not selectable




commit 658a6d06e96a233af5c3b7df5245976259375cb7
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 ea6952c00..3c634250d 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]