summaryrefslogtreecommitdiff
path: root/desktop/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/tree.c')
-rw-r--r--desktop/tree.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/desktop/tree.c b/desktop/tree.c
index 3ea3dbeda..566781ef7 100644
--- a/desktop/tree.c
+++ b/desktop/tree.c
@@ -40,13 +40,6 @@
#include "utils/utils.h"
#include "utils/url.h"
-typedef enum {
- TREE_NO_DRAG = 0,
- TREE_SELECT_DRAG,
- TREE_MOVE_DRAG
-} tree_drag_type;
-
-
#define MAXIMUM_URL_LENGTH 1024
#define TREE_ICON_SIZE 16
@@ -1431,6 +1424,18 @@ bool tree_is_edited(struct tree *tree)
/**
+ * Get the drag state of a tree
+ *
+ * \param tree the tree to get the state of
+ * \return drag type (defined in desktop/tree.h)
+ */
+tree_drag_type tree_drag_status(struct tree *tree)
+{
+ return tree->drag;
+}
+
+
+/**
* Returns the first child of a node
*
* \param node the node to get the child of