[nautilus] Store the correct current_item if it has changed. It is incorrect to ignore the new current item jus



commit fabea8532911c2e38d91aa6230136cff5e52f095
Author: Srinivasa Ragavan <srinivasa ragavan venkateswaran intel com>
Date:   Wed Jul 17 19:15:39 2013 +0530

    Store the correct current_item if it has changed. It is incorrect to
    ignore the new current item just because the mouse is down. It is
    later used for right click.
    
    Fixes bgo #704289.

 eel/eel-canvas.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c
index 7ebd6cc..c929727 100644
--- a/eel/eel-canvas.c
+++ b/eel/eel-canvas.c
@@ -2593,6 +2593,7 @@ pick_current_item (EelCanvas *canvas, GdkEvent *event)
        /* new_current_item may have been set to NULL during the call to emit_event() above */
 
        if ((canvas->new_current_item != canvas->current_item) && button_down) {
+               canvas->current_item = canvas->new_current_item;        
                canvas->left_grabbed_item = TRUE;
                return retval;
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]