Skip to content

Commit e17c8c5

Browse files
author
Alain M
committed
Add new Artist view and other things
1 parent 92aaa72 commit e17c8c5

33 files changed

+992
-193
lines changed

data/com.github.alainm23.byte.appdata.xml.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
<binary>com.github.alainm23.byte</binary>
2424
</provides>
2525
​<releases>
26+
<release version="0.1.3" date="2019-08-10">
27+
<description>
28+
<p>Fix some error and performance improvement</p>
29+
<ul>
30+
<li>Now you can update and delete your playlist</li>
31+
</ul>
32+
</description>
33+
</release>
2634
<release version="0.1.2" date="2019-08-10">
2735
<description>
2836
<p>Fix some error and performance improvement</p>

data/com.github.alainm23.byte.gschema.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<enum id="com.github.alainm23.byte.repeat-mode">
44
<value nick="off" value="0" />
55
<value nick="all" value="1" />
6-
<value nick="one" value="2" />
6+
<value nick="one" value="2" />
77
</enum>
88

99
<enum id="com.github.alainm23.byte.tracks-sort-mode">

data/resources/byte-album-symbolic.svg

Lines changed: 6 additions & 6 deletions
Loading

data/stylesheet.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ selection {
169169
.quick-find-cancel {
170170
color: @colorAccent;
171171
font-weight: bold;
172+
padding-right: 0px;
172173
}
173174

174175
.queue {

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
project('com.github.alainm23.byte',
22
'vala', 'c',
3-
version: '0.1.2')
3+
version: '0.1.3')
44

55
gnome = import('gnome')
66
i18n = import('i18n')

src/Dialogs/Settings.vala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ public class Dialogs.Settings : Gtk.Dialog {
127127
var settings_04_label = new Gtk.Label (_("Music folder location"));
128128

129129
var library_filechooser = new Gtk.FileChooserButton (_("Select Music Folder…"), Gtk.FileChooserAction.SELECT_FOLDER);
130+
library_filechooser.valign = Gtk.Align.CENTER;
130131

131132
File library_path = File.new_for_uri (Byte.settings.get_string ("library-location"));
132133
library_filechooser.set_current_folder (library_path.get_path ());

src/MainWindow.vala

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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";

src/Objects/Radio.vala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public class Objects.Radio : GLib.Object {
77
public string favicon { get; set; default = ""; }
88
public string country { get; set; default = ""; }
99
public string state { get; set; default = ""; }
10+
public string votes { get; set; default = ""; }
1011

1112
public Radio () {
1213
}

0 commit comments

Comments
 (0)