From 6d9fe60f898d1c8342d1861def079bb7c2a75c52 Mon Sep 17 00:00:00 2001 From: lainsce Date: Mon, 12 Aug 2024 15:46:53 -0300 Subject: [PATCH] A few fixes --- data/ui/window.blp | 4 ++-- src/application.vala | 2 +- src/window.vala | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/data/ui/window.blp b/data/ui/window.blp index 996ff2b..e4cc411 100644 --- a/data/ui/window.blp +++ b/data/ui/window.blp @@ -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; @@ -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; diff --git a/src/application.vala b/src/application.vala index 362d13a..4214f36 100644 --- a/src/application.vala +++ b/src/application.vala @@ -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"; diff --git a/src/window.vala b/src/window.vala index 9c7bbd4..cc03a64 100644 --- a/src/window.vala +++ b/src/window.vala @@ -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 (); @@ -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 ();