diff options
Diffstat (limited to 'libnautilus-private/nautilus-file.h')
-rw-r--r-- | libnautilus-private/nautilus-file.h | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-file.h b/libnautilus-private/nautilus-file.h index 40d060baa..447eb727b 100644 --- a/libnautilus-private/nautilus-file.h +++ b/libnautilus-private/nautilus-file.h @@ -82,7 +82,27 @@ typedef enum { NAUTILUS_FILE_ICON_FLAGS_USE_ONE_EMBLEM = (1<<7) } NautilusFileIconFlags; -/* Emblems sometimes displayed for NautilusFiles. Do not localize. */ +/* 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" #define NAUTILUS_FILE_EMBLEM_NAME_CANT_WRITE "readonly" @@ -458,6 +478,16 @@ GList * nautilus_file_list_filter (GList GList **failed, NautilusFileFilterFunc filter_function, gpointer user_data); +/* 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); |