Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Commit

Permalink
release gradio 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
haecker-felix committed Sep 10, 2017
1 parent 4f946bd commit 3e8502a
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 88 deletions.
6 changes: 6 additions & 0 deletions data/de.haeckerfelix.gradio.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
</content_rating>
<releases>

<release version="6.0" date="2017-09-10">
<description>
<p>Group your stations into collections, Everything is now sortable, Extended search page, Stations can be created and edited, New details sidebar, New selection system</p>
</description>
</release>

<release version="5.0.0" date="2016-12-24">
<description>
<p>New grid/list view, new right click menu, background playback, redesigned discover page</p>
Expand Down
4 changes: 1 addition & 3 deletions de.haeckerfelix.gradio.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"app-id": "de.haeckerfelix.gradio",
"runtime": "org.gnome.Platform",
"runtime-version": "3.20",
"runtime-version": "3.24",
"sdk": "org.gnome.Sdk",
"command": "gradio",
"tags": ["nightly"],
"desktop-file-name-prefix": "(Development) ",
"finish-args": [
"--share=ipc", "--socket=x11",
"--socket=wayland",
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project('gradio', ['vala', 'C'], version : '5.9.0')
project('gradio', ['vala', 'C'], version : '6.0')

i18n = import('i18n')

Expand Down
3 changes: 1 addition & 2 deletions src/gradio-library.vala
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ namespace Gradio{

private void open_database(){
message("Open database...");
message(newdb.get_path());

int return_code = Sqlite.Database.open (newdb.get_path(), out db);
if (return_code!= Sqlite.OK) {
Expand Down Expand Up @@ -412,8 +413,6 @@ namespace Gradio{
}catch(GLib.IOError error){
critical("Could not migrate old database: %s", error.message);
}


}

private bool is_old_database (){
Expand Down
10 changes: 6 additions & 4 deletions src/page/gradio-collections-page.vala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ namespace Gradio{
mainbox.set_model(Library.collection_model);
mainbox.selection_changed.connect(() => {selection_changed();});
mainbox.selection_mode_request.connect(() => {selection_mode_enabled();});

ScrollViewport.add(mainbox);

mainbox.item_activated.connect((t,a) => {
Expand All @@ -48,12 +47,15 @@ namespace Gradio{
}
});

Library.collection_model.items_changed.connect(() => {
if(Library.collection_model.get_n_items() == 0)
Library.collection_model.items_changed.connect(update_page);
update_page();
}

private void update_page(){
if(Library.collection_model.get_n_items() == 0)
CollectionsStack.set_visible_child_name("empty");
else
CollectionsStack.set_visible_child_name("items");
});
}

public void set_selection_mode(bool b){
Expand Down
72 changes: 0 additions & 72 deletions src/page/gradio-discover-page.vala

This file was deleted.

15 changes: 9 additions & 6 deletions src/page/gradio-library-page.vala
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,15 @@ namespace Gradio{

ScrollViewport.add(mainbox);

Library.station_model.items_changed.connect(() => {
if(Library.station_model.get_n_items() == 0)
LibraryStack.set_visible_child_name("empty");
else
LibraryStack.set_visible_child_name("items");
});
Library.station_model.items_changed.connect(update_page);
update_page();
}

private void update_page(){
if(Library.station_model.get_n_items() == 0)
LibraryStack.set_visible_child_name("empty");
else
LibraryStack.set_visible_child_name("items");
}

public void set_selection_mode(bool b){
Expand Down

0 comments on commit 3e8502a

Please sign in to comment.