Commit 31f4a93c authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson
Browse files

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)
parent 8423147a
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:
......
......@@ -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,
......
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