[nautilus/wip/corey/dnd_features: 42/42] dnd: Remove already removed code from headers
- From: Corey Berla <coreyberla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/corey/dnd_features: 42/42] dnd: Remove already removed code from headers
- Date: Tue, 23 Aug 2022 18:48:05 +0000 (UTC)
commit dd2ecbb8c019f576ce3425a73304bb8ef5a3993d
Author: Corey Berla <corey berla me>
Date: Thu Aug 18 13:35:01 2022 -0700
dnd: Remove already removed code from headers
src/nautilus-dnd.h | 7 -------
src/nautilus-file.h | 30 ------------------------------
2 files changed, 37 deletions(-)
---
diff --git a/src/nautilus-dnd.h b/src/nautilus-dnd.h
index a1b28d12c..1df572598 100644
--- a/src/nautilus-dnd.h
+++ b/src/nautilus-dnd.h
@@ -15,13 +15,6 @@
#define HOVER_TIMEOUT 500
-/* Drag & Drop target names. */
-#define NAUTILUS_ICON_DND_GNOME_ICON_LIST_TYPE "x-special/gnome-icon-list"
-#define NAUTILUS_ICON_DND_URI_LIST_TYPE "text/uri-list"
-#define NAUTILUS_ICON_DND_NETSCAPE_URL_TYPE "_NETSCAPE_URL"
-#define NAUTILUS_ICON_DND_ROOTWINDOW_DROP_TYPE "application/x-rootwindow-drop"
-#define NAUTILUS_ICON_DND_XDNDDIRECTSAVE_TYPE "XdndDirectSave0" /* XDS Protocol Type */
-#define NAUTILUS_ICON_DND_RAW_TYPE "application/octet-stream"
#define NAUTILUS_DRAG_SURFACE_ICON_SIZE 64
GdkDragAction nautilus_drag_drop_action_ask (GtkWidget *widget,
diff --git a/src/nautilus-file.h b/src/nautilus-file.h
index 1cd331777..eaa1eb10c 100644
--- a/src/nautilus-file.h
+++ b/src/nautilus-file.h
@@ -90,26 +90,6 @@ typedef enum {
#define NAUTILUS_THUMBNAIL_MINIMUM_ICON_SIZE 32
-/* Standard Drag & Drop types. */
-typedef enum {
- NAUTILUS_ICON_DND_GNOME_ICON_LIST,
- NAUTILUS_ICON_DND_URI_LIST,
- NAUTILUS_ICON_DND_NETSCAPE_URL,
- NAUTILUS_ICON_DND_TEXT,
- NAUTILUS_ICON_DND_XDNDDIRECTSAVE,
- NAUTILUS_ICON_DND_RAW,
- NAUTILUS_ICON_DND_ROOTWINDOW_DROP
-} NautilusIconDndTargetType;
-
-/* Item of the drag selection list */
-typedef struct {
- NautilusFile *file;
- char *uri;
- gboolean got_icon_position;
- int icon_x, icon_y;
- int icon_width, icon_height;
-} NautilusDragSelectionItem;
-
/* Emblems sometimes displayed for NautilusFiles. Do not localize. */
#define NAUTILUS_FILE_EMBLEM_NAME_SYMBOLIC_LINK "symbolic-link"
#define NAUTILUS_FILE_EMBLEM_NAME_CANT_READ "unreadable"
@@ -507,16 +487,6 @@ GList * nautilus_file_list_filter (GList
NautilusFileFilterFunc
filter_function,
gpointer
user_data);
gboolean nautilus_file_list_are_all_folders (const GList
*files);
-/* DND */
-gboolean nautilus_drag_can_accept_item (NautilusFile
*drop_target_item,
- const char
*item_uri);
-
-gboolean nautilus_drag_can_accept_items (NautilusFile
*drop_target_item,
- const GList
*items);
-
-gboolean nautilus_drag_can_accept_info (NautilusFile
*drop_target_item,
- NautilusIconDndTargetType
drag_type,
- const GList
*items);
/* Debugging */
void nautilus_file_dump (NautilusFile
*file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]