Commit c379079e authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

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>
parent d461e26e
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>
2004-10-21 Alexander Larsson <alexl@redhat.com>
* src/nautilus-spatial-window.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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment