Commits

Erik Grinaker committed 8650886

fixed a tree dragndrop bug which broke dragging to folders directly before/after the source entry

Comments (0)

Files changed (3)

 
 	* wrote more ui module unit tests
 
+	* fixed a treeview drag'n'drop bug which broke dropping into
+	folders directly before or after the source entry
+
 
 ---------------[ 2005-01-24 : 0.4.0-pre1 ]---------------
 
 - place Revelation under Accessories in the GNOME menu (Utility category)
 - build authmanager module with position-independent code
 - don't install authmanager module into bindir
+- allow entry drag'n'drop to folder directly before/after entry
 
 Code changes:
 - updated unit tests for ui module

src/revelation.in

 				context.finish(False, False, time)
 				return
 
-			elif pos in ( gtk.TREE_VIEW_DROP_INTO_OR_BEFORE, gtk.TREE_VIEW_DROP_BEFORE ) and sourcepath[:-1] == destpath[:-1] and sourcepath[-1] == destpath[-1] - 1:
+			elif pos == gtk.TREE_VIEW_DROP_BEFORE and sourcepath[:-1] == destpath[:-1] and sourcepath[-1] == destpath[-1] - 1:
 				context.finish(False, False, time)
 				return
 
-			elif pos in ( gtk.TREE_VIEW_DROP_INTO_OR_AFTER, gtk.TREE_VIEW_DROP_AFTER ) and sourcepath[:-1] == destpath[:-1] and sourcepath[-1] == destpath[-1] + 1:
+			elif pos == gtk.TREE_VIEW_DROP_AFTER and sourcepath[:-1] == destpath[:-1] and sourcepath[-1] == destpath[-1] + 1:
 				context.finish(False, False, time)
 				return