summaryrefslogtreecommitdiff
path: root/eel/eel-canvas.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-12-31 01:33:08 -0500
committerlukefromdc <[email protected]>2016-12-31 01:38:17 -0500
commitdbce9dbdf16b7d8afc8e0c1b6166b26221e1466f (patch)
tree9afd8539587e690198d7b5f8f2aaad08ce0ab50e /eel/eel-canvas.c
parentf604ba59b9a1e45c1fc45c0e94869e416f5a94b0 (diff)
downloadcaja-dbce9dbdf16b7d8afc8e0c1b6166b26221e1466f.tar.bz2
caja-dbce9dbdf16b7d8afc8e0c1b6166b26221e1466f.tar.xz
Single click navigation: keep hand cursor when opening folder...
and it comes to rest on a new folder displayed in the same icon position. Note that this is only in single click navigation, as double clicking always reverts the cursor to the arrow Same as GNOME/nautilus commit https://git.gnome.org/browse/nautilus/commit/?id=d486af277f491ff5cfcfa254ebce618cd41a3edb
Diffstat (limited to 'eel/eel-canvas.c')
-rw-r--r--eel/eel-canvas.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c
index 97aad908..4f040074 100644
--- a/eel/eel-canvas.c
+++ b/eel/eel-canvas.c
@@ -2877,9 +2877,11 @@ eel_canvas_button (GtkWidget *widget, GdkEventButton *event)
/* Pick the current item as if the button were not pressed, and
* then process the event.
*/
+ event->state ^= mask;
canvas->state = event->state;
pick_current_item (canvas, (GdkEvent *) event);
- canvas->state ^= mask;
+ event->state ^= mask;
+ canvas->state = event->state;
retval = emit_event (canvas, (GdkEvent *) event);
break;