@@ -11,6 +11,7 @@ public class MainWindow : Gtk.Window {
1111 private Views . Playlists playlists_view;
1212 private Views . Favorites favorites_view;
1313 private Views . Playlist playlist_view;
14+ private Views . Artist artist_view;
1415
1516 private Views . Album album_view;
1617
@@ -53,6 +54,7 @@ public class MainWindow : Gtk.Window {
5354 playlists_view = new Views .Playlists ();
5455 favorites_view = new Views .Favorites ();
5556 playlist_view = new Views .Playlist ();
57+ artist_view = new Views .Artist ();
5658
5759 library_stack. add_named (home_view, " home_view" );
5860 library_stack. add_named (albums_view, " albums_view" );
@@ -63,6 +65,7 @@ public class MainWindow : Gtk.Window {
6365 library_stack. add_named (playlists_view, " playlists_view" );
6466 library_stack. add_named (favorites_view, " favorites_view" );
6567 library_stack. add_named (playlist_view, " playlist_view" );
68+ library_stack. add_named (artist_view, " artist_view" );
6669
6770 var library_view = new Gtk .Box (Gtk . Orientation . VERTICAL , 0 );
6871 library_view. pack_start (media_control, false , false , 0 );
@@ -176,7 +179,6 @@ public class MainWindow : Gtk.Window {
176179
177180 home_view. go_artists_view. connect (() = > {
178181 library_stack. visible_child_name = " artists_view" ;
179- artists_view. get_all_artists ();
180182 });
181183
182184 home_view. go_radios_view. connect (() = > {
@@ -195,7 +197,14 @@ public class MainWindow : Gtk.Window {
195197 quick_find. reveal = ! quick_find. reveal_child;
196198 });
197199
200+ artists_view. go_artist. connect ((artist) = > {
201+ library_stack. visible_child_name = " artist_view" ;
202+ artist_view. artist = artist;
203+ });
198204
205+ artist_view. go_back. connect (() = > {
206+ library_stack. visible_child_name = " artists_view" ;
207+ });
199208
200209 Byte . database. reset_library. connect (() = > {
201210 main_stack. visible_child_name = " welcome_view" ;
0 commit comments