window: Implement drag and drop

The main page is no longer a lie.
This commit is contained in:
Christopher Davis 2021-12-27 15:03:31 -08:00
parent 5d9567507c
commit be70bdafe5
5 changed files with 67 additions and 11 deletions

View file

@ -81,7 +81,7 @@ mod imp {
fn open(&self, application: &Self::Type, files: &[gio::File], _hint: &str) {
for file in files {
let win = LpWindow::new(application);
win.set_image_from_file(file);
win.set_image_from_file(file, true);
win.show();
}
}