[gnome-music/wip/jfelder/searchview-new-style: 7/21] searchview: Update song results style
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/searchview-new-style: 7/21] searchview: Update song results style
- Date: Mon, 5 Aug 2019 00:18:22 +0000 (UTC)
commit 66cb2af90b30d7107530fc84ea68ded5a7e055a3
Author: Jean Felder <jfelder src gnome org>
Date: Wed Jul 31 23:08:15 2019 +0200
searchview: Update song results style
data/ui/SearchView.ui | 3 +++
gnomemusic/views/searchview.py | 5 ++---
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/data/ui/SearchView.ui b/data/ui/SearchView.ui
index f75c7ce8..f1ee58c6 100644
--- a/data/ui/SearchView.ui
+++ b/data/ui/SearchView.ui
@@ -39,6 +39,9 @@
<child>
<object class="GtkListBox" id="_songs_listbox">
<property name="visible">True</property>
+ <style>
+ <class name="songs-list"/>
+ </style>
</object>
</child>
</object>
diff --git a/gnomemusic/views/searchview.py b/gnomemusic/views/searchview.py
index 610ae992..73f645c8 100644
--- a/gnomemusic/views/searchview.py
+++ b/gnomemusic/views/searchview.py
@@ -126,7 +126,8 @@ class SearchView(Gtk.Stack):
return False
def _create_song_widget(self, coresong):
- song_widget = SongWidget(coresong)
+ song_widget = SongWidget(coresong, False, True)
+ song_widget.props.show_song_number = False
self.bind_property(
"selection-mode", song_widget, "selection-mode",
@@ -135,8 +136,6 @@ class SearchView(Gtk.Stack):
song_widget.connect('button-release-event', self._song_activated)
- song_widget.show_all()
-
return song_widget
def _create_album_widget(self, corealbum):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]