r10920 chris_y - in /trunk/netsurf/desktop: tree.c tree.h

netsurf at semichrome.net netsurf at semichrome.net
Sat Oct 30 11:43:14 BST 2010


Author: chris_y
Date: Sat Oct 30 05:43:14 2010
New Revision: 10920

URL: http://source.netsurf-browser.org?rev=10920&view=rev
Log:
If a drag is in progress that the tree can't handle, it is a TREE_UNKNOWN_DRAG not a
TREE_NO_DRAG, as the platform code might be able to deal with it.

Modified:
    trunk/netsurf/desktop/tree.c
    trunk/netsurf/desktop/tree.h

Modified: trunk/netsurf/desktop/tree.c
URL: http://source.netsurf-browser.org/trunk/netsurf/desktop/tree.c?rev=10920&r1=10919&r2=10920&view=diff
==============================================================================
--- trunk/netsurf/desktop/tree.c (original)
+++ trunk/netsurf/desktop/tree.c Sat Oct 30 05:43:14 2010
@@ -2167,6 +2167,7 @@
 
 		if (tree->flags & TREE_MOVABLE)
 			tree->drag = TREE_MOVE_DRAG;
+		else tree->drag = TREE_UNKNOWN_DRAG;
 
 		return true;
 	}
@@ -2411,6 +2412,7 @@
 
 	switch (tree->drag) {
 	case TREE_NO_DRAG:
+	case TREE_UNKNOWN_DRAG:
 		break;
 	case TREE_SELECT_DRAG:
 		tree_handle_selection_area(tree, y0, y1 - y0,

Modified: trunk/netsurf/desktop/tree.h
URL: http://source.netsurf-browser.org/trunk/netsurf/desktop/tree.h?rev=10920&r1=10919&r2=10920&view=diff
==============================================================================
--- trunk/netsurf/desktop/tree.h (original)
+++ trunk/netsurf/desktop/tree.h Sat Oct 30 05:43:14 2010
@@ -66,7 +66,8 @@
 typedef enum {
 	TREE_NO_DRAG = 0,
 	TREE_SELECT_DRAG,
-	TREE_MOVE_DRAG
+	TREE_MOVE_DRAG,
+	TREE_UNKNOWN_DRAG	/** < A drag the tree itself won't handle */
 } tree_drag_type;
 
 typedef enum {




More information about the netsurf-commits mailing list