mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-13 04:51:15 +00:00
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:
parent
8423147a0d
commit
31f4a93c15
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue