Skip to content

Commit

Permalink
A few fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Aug 12, 2024
1 parent e8fbf25 commit 6d9fe60
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions data/ui/window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ using Gtk 4.0;
using He 1;
using Bis 1;

template VictrolaMainWindow : He.ApplicationWindow {
template $VictrolaMainWindow : He.ApplicationWindow {
visible: true;
default-width: 1024;
default-height: 600;
Expand Down Expand Up @@ -66,7 +66,7 @@ template VictrolaMainWindow : He.ApplicationWindow {
}

SearchBar search_bar {
key-capture-widget: VictrolaMainWindow;
key-capture-widget: template;
child: SearchEntry search_entry {
hexpand: true;
margin-start: 18;
Expand Down
2 changes: 1 addition & 1 deletion src/application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ namespace Victrola {
accent_color.parse ("#F7812B");
default_accent_color = He.from_gdk_rgba (accent_color);
override_accent_color = true;
scheme_factory = new He.ContentScheme ();
scheme_factory = He.SchemeVariant.CONTENT;

resource_base_path = "/com/fyralabs/Victrola";

Expand Down
12 changes: 6 additions & 6 deletions src/window.vala
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ namespace Victrola {
factory.bind.connect (on_bind_cell);
list_view1.factory = factory;
list_view1.model = new Gtk.NoSelection (app.album_list);
list_view1.activate.connect ((index) => {
app.current_item = (int) index;
});
//list_view1.activate.connect ((index) => {
// app.current_item = (int) index;
//});
num1 = list_view1.get_model ().get_n_items ();

var factory2 = new Gtk.SignalListItemFactory ();
Expand All @@ -164,9 +164,9 @@ namespace Victrola {
factory2.bind.connect (on_bind_item);
list_view2.factory = factory2;
list_view2.model = new Gtk.NoSelection (app.song_list);
list_view2.activate.connect ((index) => {
app.current_item = (int) index;
});
// list_view2.activate.connect ((index) => {
// app.current_item = (int) index;
// });
num2 = list_view2.get_model ().get_n_items ();

var factory3 = new Gtk.SignalListItemFactory ();
Expand Down

0 comments on commit 6d9fe60

Please sign in to comment.