[gnome-music/wip/jfelder/clean-albumsview: 2/4] views: Fix header_bar subtitle property
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/clean-albumsview: 2/4] views: Fix header_bar subtitle property
- Date: Sun, 1 Apr 2018 14:02:45 +0000 (UTC)
commit af9650bf0d5fbc51fd8df58e878bdd7c90e022cf
Author: Jean Felder <jfelder src gnome org>
Date: Sun Apr 1 15:38:35 2018 +0200
views: Fix header_bar subtitle property
Property name is 'subtitle' and not 'sub_title'.
gnomemusic/views/albumsview.py | 4 ++--
gnomemusic/views/searchview.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/views/albumsview.py b/gnomemusic/views/albumsview.py
index a753d603..c93a7542 100644
--- a/gnomemusic/views/albumsview.py
+++ b/gnomemusic/views/albumsview.py
@@ -116,13 +116,13 @@ class AlbumsView(BaseView):
self._header_bar.set_state(ToolbarState.CHILD_VIEW)
self._header_bar.header_bar.set_title(self._escaped_title)
- self._header_bar.header_bar.sub_title = self._artist
+ self._header_bar.header_bar.set_subtitle(self._artist)
self.set_visible_child(self._album_widget)
@log
def update_title(self):
self._header_bar.header_bar.set_title(self._escaped_title)
- self._header_bar.header_bar.sub_title = self._artist
+ self._header_bar.header_bar.set_subtitle(self._artist)
@log
def populate(self):
diff --git a/gnomemusic/views/searchview.py b/gnomemusic/views/searchview.py
index 3f65347a..eb63e258 100644
--- a/gnomemusic/views/searchview.py
+++ b/gnomemusic/views/searchview.py
@@ -122,7 +122,7 @@ class SearchView(BaseView):
self._header_bar.set_state(ToolbarState.SEARCH_VIEW)
self._header_bar.header_bar.set_title(title)
- self._header_bar.header_bar.sub_title = artist
+ self._header_bar.header_bar.set_subtitle(artist)
self.set_visible_child(self._album_widget)
self._header_bar.searchbar.reveal(False)
elif self.model[_iter][12] == 'artist':
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]