[Xfce4-commits] <exo:master> Set anchor item if the cursor is set.

Nick Schermer noreply at xfce.org
Tue Oct 2 19:42:03 CEST 2012


Updating branch refs/heads/master
         to 9c5d44de644c9abbfea06689495eb97c5eac82a4 (commit)
       from f66e8b37093ee65df842e1ca22ebbf33cdcc2ae2 (commit)

commit 9c5d44de644c9abbfea06689495eb97c5eac82a4
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Oct 2 19:39:09 2012 +0200

    Set anchor item if the cursor is set.
    
    If an application forces the cursor on a new position, also
    reset the anchor item to avoid strange selection behaviours.

 exo/exo-icon-view.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/exo/exo-icon-view.c b/exo/exo-icon-view.c
index 47b040d..41792b9 100644
--- a/exo/exo-icon-view.c
+++ b/exo/exo-icon-view.c
@@ -5888,6 +5888,7 @@ exo_icon_view_set_cursor (ExoIconView     *icon_view,
 
   /* place the cursor on the item */
   exo_icon_view_set_cursor_item (icon_view, item, cell_pos);
+  icon_view->priv->anchor_item = item;
 
   /* scroll to the item (maybe delayed) */
   exo_icon_view_scroll_to_path (icon_view, path, FALSE, 0.0f, 0.0f);


More information about the Xfce4-commits mailing list