summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-icon-private.h
diff options
context:
space:
mode:
authorAlexander Larsson <alla@lysator.liu.se>2002-03-06 05:57:57 +0000
committerAlexander Larsson <alexl@src.gnome.org>2002-03-06 05:57:57 +0000
commit30258d0ac7180247290b3e788cc91b5869eeb889 (patch)
treec9ee45dd293a2a8c0396d9ce01e06b53d4ee2747 /libnautilus-private/nautilus-icon-private.h
parent07456442c1fd252a49c1466a8aa0a5e1307b028d (diff)
downloadnautilus-30258d0ac7180247290b3e788cc91b5869eeb889.tar.gz
widget_x/y ->o world_x/y
2002-03-06 Alexander Larsson <alla@lysator.liu.se> * nautilus-icon-private.h: (NautilusIconContainerDetails): widget_x/y ->o world_x/y * libnautilus-private/nautilus-icon-container.c: Fix all the coordinate system problems. Now stretching should work correctly again. There are a multitude of issues when handling this: 1) When doing rubberbanding we want to use widget-relative coordinates so that we can auto-scroll. 2) The widget events (button_press_event, button_release_event and motion_notify_event) report coordintes relative to GTK_LAYOUT(container)->bin_window, aka canvas "window coordinates" 3) The canvas item events (item_event_callback, handle_icon_button_press) report coordinates in canvas world coordinates (a change since gnome 1 i believe)
Diffstat (limited to 'libnautilus-private/nautilus-icon-private.h')
-rw-r--r--libnautilus-private/nautilus-icon-private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libnautilus-private/nautilus-icon-private.h b/libnautilus-private/nautilus-icon-private.h
index 1604c7ede..ba6b063ac 100644
--- a/libnautilus-private/nautilus-icon-private.h
+++ b/libnautilus-private/nautilus-icon-private.h
@@ -205,8 +205,8 @@ struct NautilusIconContainerDetails {
gboolean reset_scroll_region_trigger;
/* The position we are scaling to on stretch */
- int widget_x;
- int widget_y;
+ double world_x;
+ double world_y;
/* margins to follow, used for the desktop panel avoidance */
int left_margin;