diff options
author | Alexander Larsson <alexl@redhat.com> | 2004-10-22 07:57:29 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2004-10-22 07:57:29 +0000 |
commit | c379079e9814c76a63376328cda3a678c5429906 (patch) | |
tree | 878fe35bf8721a882c6e0ccc46a28a63eb6bb388 /libnautilus-private/nautilus-icon-container.c | |
parent | d461e26e52ea5c9a8019642e47e02d8762a55192 (diff) | |
download | nautilus-c379079e9814c76a63376328cda3a678c5429906.tar.gz |
Fix moving of unpositioned icons, the canvas items start at <0, 0>, not
2004-10-22 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-container.c (icon_set_position):
Fix moving of unpositioned icons, the canvas items start at
<0, 0>, not <-1,-1>
Diffstat (limited to 'libnautilus-private/nautilus-icon-container.c')
-rw-r--r-- | libnautilus-private/nautilus-icon-container.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c index 7427e2e26..e6cf8676d 100644 --- a/libnautilus-private/nautilus-icon-container.c +++ b/libnautilus-private/nautilus-icon-container.c @@ -325,6 +325,13 @@ icon_set_position (NautilusIcon *icon, } } + if (icon->x == ICON_UNPOSITIONED_VALUE) { + icon->x = 0; + } + if (icon->y == ICON_UNPOSITIONED_VALUE) { + icon->y = 0; + } + eel_canvas_item_move (EEL_CANVAS_ITEM (icon->item), x - icon->x, y - icon->y); |