diff options
author | Alexander Larsson <alla@lysator.liu.se> | 2002-04-14 06:42:20 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2002-04-14 06:42:20 +0000 |
commit | 4cba30654e961af6012d06074857bae67d45d765 (patch) | |
tree | 133da2691fef93459c10ae3f50822ae8da7bcea0 | |
parent | 516f65d074706dacc9524d69f65b25cc95a3a774 (diff) | |
download | nautilus-4cba30654e961af6012d06074857bae67d45d765.tar.gz |
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.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | libnautilus-private/nautilus-icon-container.c | 7 |
2 files changed, 13 insertions, 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: diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c index 2a01f3e2a..bb3c64046 100644 --- a/libnautilus-private/nautilus-icon-container.c +++ b/libnautilus-private/nautilus-icon-container.c @@ -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); |