Fix layout bug on desktop (#153519)

2006-02-06  Alexander Larsson  <alexl@redhat.com>

	* libnautilus-private/nautilus-icon-container.c (lay_down_icons_tblr):
	Fix layout bug on desktop (#153519)
This commit is contained in:
Alexander Larsson 2006-02-06 16:48:08 +00:00 committed by Alexander Larsson
parent 8423147a0d
commit 31f4a93c15
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2006-02-06 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-container.c (lay_down_icons_tblr):
Fix layout bug on desktop (#153519)
2006-02-06 Alexander Larsson <alexl@redhat.com>
* nautilus-folder-handler.desktop.in:

View file

@ -1481,11 +1481,9 @@ lay_down_icons_tblr (NautilusIconContainer *container, GList *icons)
icon = p->data;
icon_rect = nautilus_icon_canvas_item_get_icon_rectangle (icon->item);
icon_get_bounding_box (icon,
&x1, &y1, &x2, &y2);
/* Start the icon in the first column */
x = DESKTOP_PAD_HORIZONTAL + SNAP_SIZE_X - ((x2 - x1) / 2);
/* Start the icon in the first column */
x = DESKTOP_PAD_HORIZONTAL + (SNAP_SIZE_X / 2) - ((icon_rect.x1 - icon_rect.x0) / 2);
y = DESKTOP_PAD_VERTICAL + SNAP_SIZE_Y - (icon_rect.y1 - icon_rect.y0);
find_empty_location (container,