From eaf8a8623262fc6e83ca01892d631a9388ac4d75 Mon Sep 17 00:00:00 2001 From: psykose Date: Wed, 16 Oct 2024 20:25:56 +0200 Subject: [PATCH] use style autoloading avoids a deprecation warning; the function is not even deprecated, the vala bindings just have a bug here, but this also fixes it --- src/audrey.gresource.xml | 2 +- src/{audrey.css => style.css} | 0 src/ui/window.vala | 5 ----- 3 files changed, 1 insertion(+), 6 deletions(-) rename src/{audrey.css => style.css} (100%) diff --git a/src/audrey.gresource.xml b/src/audrey.gresource.xml index d4fa1ec..de54e33 100644 --- a/src/audrey.gresource.xml +++ b/src/audrey.gresource.xml @@ -1,7 +1,7 @@ - audrey.css + style.css gtk/help-overlay.ui ui/play_queue.ui ui/setup.ui diff --git a/src/audrey.css b/src/style.css similarity index 100% rename from src/audrey.css rename to src/style.css diff --git a/src/ui/window.vala b/src/ui/window.vala index b8763e8..7f141ce 100644 --- a/src/ui/window.vala +++ b/src/ui/window.vala @@ -31,11 +31,6 @@ class Ui.Window : Adw.ApplicationWindow { public Window (Gtk.Application app) { Object (application: app); - - var provider = new Gtk.CssProvider (); - provider.load_from_resource("/eu/callcc/audrey/audrey.css"); - - Gtk.StyleContext.add_provider_for_display (Gdk.Display.get_default (), provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); } construct {