Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1,22 @@
// cargo-deps: gtk
extern crate gtk;
use gtk::traits::*;
use gtk::{Window, WindowType, WindowPosition};
use gtk::signal::Inhibit;
fn main() {
gtk::init().unwrap();
let window = Window::new(WindowType::Toplevel).unwrap();
window.set_title("Goodbye, World!");
window.set_border_width(10);
window.set_window_position(WindowPosition::Center);
window.set_default_size(350, 70);
window.connect_delete_event(|_,_| {
gtk::main_quit();
Inhibit(false)
});
window.show_all();
gtk::main();
}