summaryrefslogtreecommitdiffstats
path: root/src/nautilus-dnd.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:39:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:39:48 +0000
commit3ade071f273aaa973e44bf95d6b1d4913a18f03b (patch)
treee2f99d267ae18427645404f215b984afbe73098d /src/nautilus-dnd.h
parentInitial commit. (diff)
downloadnautilus-3ade071f273aaa973e44bf95d6b1d4913a18f03b.tar.xz
nautilus-3ade071f273aaa973e44bf95d6b1d4913a18f03b.zip
Adding upstream version 43.2.upstream/43.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/nautilus-dnd.h')
-rw-r--r--src/nautilus-dnd.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/nautilus-dnd.h b/src/nautilus-dnd.h
new file mode 100644
index 0000000..1df5725
--- /dev/null
+++ b/src/nautilus-dnd.h
@@ -0,0 +1,26 @@
+/* nautilus-dnd.h - Common Drag & drop handling code
+ *
+ * Authors: Pavel Cisler <pavel@eazel.com>,
+ * Ettore Perazzoli <ettore@gnu.org>
+ * Copyright (C) 2000 Eazel, Inc.
+ * Copyright (C) 2022 The GNOME project contributors
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#pragma once
+
+#include <gtk/gtk.h>
+#include "nautilus-file.h"
+
+#define HOVER_TIMEOUT 500
+
+#define NAUTILUS_DRAG_SURFACE_ICON_SIZE 64
+
+GdkDragAction nautilus_drag_drop_action_ask (GtkWidget *widget,
+ GdkDragAction possible_actions);
+
+GdkDragAction nautilus_dnd_get_preferred_action (NautilusFile *target_file,
+ GFile *dropped);
+GdkPaintable * get_paintable_for_drag_selection (GList *selection,
+ int scale);