Use libhandy for the main window

This also reverts a part of the changes from the last commit. They will
be replaced by a new solution.
This commit is contained in:
Elias Projahn 2020-09-28 20:51:56 +02:00
parent 21ad91d9a9
commit af1d7c4a01
4 changed files with 147 additions and 123 deletions

View file

@ -18,6 +18,9 @@ mod window;
use window::Window;
fn main() {
gtk::init().expect("Failed to initialize GTK!");
libhandy::init();
let bytes = glib::Bytes::from(include_bytes!("../res/resources.gresource").as_ref());
let resource = gio::Resource::from_data(&bytes).expect("Failed to load resources!");
gio::resources_register(&resource);