[gnome-music/wip/jfelder/searchview-new-style: 7/14] 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/14] searchview: Update song results style
- Date: Sat, 3 Aug 2019 19:13:47 +0000 (UTC)
commit c4f1fa8d16584970ae21c6b80c684aafb7011492
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 caa91766..a51f612a 100644
--- a/data/ui/SearchView.ui
+++ b/data/ui/SearchView.ui
@@ -38,6 +38,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 5a8adfe6..1a3a64b2 100644
--- a/gnomemusic/views/searchview.py
+++ b/gnomemusic/views/searchview.py
@@ -129,7 +129,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",
@@ -138,8 +139,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]