diff options
author | Joris | 2024-11-17 11:07:01 +0100 |
---|---|---|
committer | Joris | 2024-11-17 11:07:01 +0100 |
commit | 0fad55124684989ec9fd9a742b5731359d0238ce (patch) | |
tree | f90d3d4ffc1b1f5e87dbaf0cc29adad069612545 /src/gui/mod.rs | |
parent | 36cd29b459bb41bff1cf6d079fd30100bd89cec1 (diff) |
Upgrade dependencies
Diffstat (limited to 'src/gui/mod.rs')
-rw-r--r-- | src/gui/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<Connection>, 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, |