From be70bdafe504f3209dc44c8e2343cc83aa9bc8f3 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Mon, 27 Dec 2021 15:03:31 -0800 Subject: [PATCH] window: Implement drag and drop The main page is no longer a lie. --- Cargo.toml | 1 + data/gtk/window.ui | 5 +++++ src/application.rs | 2 +- src/util.rs | 25 ++++++++++++++++++------- src/window.rs | 45 ++++++++++++++++++++++++++++++++++++++++++--- 5 files changed, 67 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e5094ed..562e554 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,7 @@ features = ["feature_gtk4"] [dependencies.gtk] package = "gtk4" git = "https://github.com/gtk-rs/gtk4-rs" +features = ["v4_6"] [dependencies.adw] package = "libadwaita" diff --git a/data/gtk/window.ui b/data/gtk/window.ui index 682a9a4..510d42f 100644 --- a/data/gtk/window.ui +++ b/data/gtk/window.ui @@ -61,6 +61,11 @@ + + + copy + +