diff options
author | Martin Wehner <martin.wehner@epost.de> | 2004-05-22 01:20:27 +0000 |
---|---|---|
committer | Martin Wehner <mwehner@src.gnome.org> | 2004-05-22 01:20:27 +0000 |
commit | 5e61c5d62be2392f903f48137b5f8281440fe229 (patch) | |
tree | f9862abfd3e3fb7d5a37cfd911fe0b4de129a70a /libnautilus-private/nautilus-icon-container.c | |
parent | 8f99b0b0b23768430ae9680be62a269ab1b0bbdd (diff) | |
download | nautilus-5e61c5d62be2392f903f48137b5f8281440fe229.tar.gz |
Convert initial drag position to canvas coordinates. Fixes #142491.
2004-05-22 Martin Wehner <martin.wehner@epost.de>
* libnautilus-private/nautilus-icon-container.c (motion_notify_event):
Convert initial drag position to canvas coordinates. Fixes #142491.
Diffstat (limited to 'libnautilus-private/nautilus-icon-container.c')
-rw-r--r-- | libnautilus-private/nautilus-icon-container.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c index 2ea67a29d..071d50d4f 100644 --- a/libnautilus-private/nautilus-icon-container.c +++ b/libnautilus-private/nautilus-icon-container.c @@ -3535,6 +3535,7 @@ motion_notify_event (GtkWidget *widget, NautilusIconContainer *container; NautilusIconContainerDetails *details; double world_x, world_y; + int canvas_x, canvas_y; container = NAUTILUS_ICON_CONTAINER (widget); details = container->details; @@ -3561,6 +3562,12 @@ motion_notify_event (GtkWidget *widget, end_renaming_mode (container, TRUE); + eel_canvas_w2c (EEL_CANVAS (container), + details->drag_x, + details->drag_y, + &canvas_x, + &canvas_y); + nautilus_icon_dnd_begin_drag (container, details->drag_state == DRAG_STATE_MOVE_OR_COPY ? (GDK_ACTION_MOVE @@ -3570,8 +3577,8 @@ motion_notify_event (GtkWidget *widget, : GDK_ACTION_ASK, details->drag_button, event, - details->drag_x, - details->drag_y); + canvas_x, + canvas_y); } break; case DRAG_STATE_STRETCH: |