mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
Avoid gnome-canvas move to top operation if there is no rubber-band
2002-04-14 Alexander Larsson <alla@lysator.liu.se> * libnautilus-private/nautilus-icon-container.c (nautilus_icon_container_add): Avoid gnome-canvas move to top operation if there is no rubber-band selection, because the new item will be on top already, and the extra move_to_top was showing up badly on profiles.
This commit is contained in:
parent
516f65d074
commit
4cba30654e
2 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2002-04-14 Alexander Larsson <alla@lysator.liu.se>
|
||||
|
||||
* libnautilus-private/nautilus-icon-container.c (nautilus_icon_container_add):
|
||||
Avoid gnome-canvas move to top operation if there is no
|
||||
rubber-band selection, because the new item will be on top already,
|
||||
and the extra move_to_top was showing up badly on profiles.
|
||||
|
||||
2002-04-13 Alexander Larsson <alla@lysator.liu.se>
|
||||
|
||||
* components/text/Makefile.am:
|
||||
|
|
|
@ -3937,6 +3937,7 @@ nautilus_icon_container_add (NautilusIconContainer *container,
|
|||
{
|
||||
NautilusIconContainerDetails *details;
|
||||
NautilusIcon *icon;
|
||||
GnomeCanvasItem *band, *item;
|
||||
|
||||
g_return_val_if_fail (NAUTILUS_IS_ICON_CONTAINER (container), FALSE);
|
||||
g_return_val_if_fail (data != NULL, FALSE);
|
||||
|
@ -3962,7 +3963,11 @@ nautilus_icon_container_add (NautilusIconContainer *container,
|
|||
icon->item->user_data = icon;
|
||||
|
||||
/* Make sure the icon is under the selection_rectangle */
|
||||
icon_raise (icon);
|
||||
item = GNOME_CANVAS_ITEM (icon->item);
|
||||
band = NAUTILUS_ICON_CONTAINER (item->canvas)->details->rubberband_info.selection_rectangle;
|
||||
if (band) {
|
||||
eel_gnome_canvas_item_send_behind (item, band);
|
||||
}
|
||||
|
||||
/* Put it on both lists. */
|
||||
details->icons = g_list_prepend (details->icons, icon);
|
||||
|
|
Loading…
Reference in a new issue