From 0fad55124684989ec9fd9a742b5731359d0238ce Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 17 Nov 2024 11:07:01 +0100 Subject: Upgrade dependencies --- src/gui/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/mod.rs') diff --git a/src/gui/mod.rs b/src/gui/mod.rs index e7f457f..078c4b2 100644 --- a/src/gui/mod.rs +++ b/src/gui/mod.rs @@ -7,7 +7,7 @@ mod utils; use gtk4 as gtk; use gtk::gdk::Display; -use gtk::prelude::*; +use gtk4::prelude::{ApplicationExt, ApplicationExtManual}; use rusqlite::Connection; use std::rc::Rc; @@ -35,8 +35,8 @@ fn build_ui(conn: Rc, app: >k::Application) { fn load_style() { let provider = gtk::CssProvider::new(); - provider.load_from_data(include_bytes!("style.css")); - gtk::StyleContext::add_provider_for_display( + provider.load_from_data(include_str!("style.css")); + gtk::style_context_add_provider_for_display( &Display::default().expect("Error initializing gtk css provider."), &provider, gtk::STYLE_PROVIDER_PRIORITY_APPLICATION, -- cgit v1.2.3