diff options
author | John Sullivan <sullivan@src.gnome.org> | 2000-10-02 23:53:59 +0000 |
---|---|---|
committer | John Sullivan <sullivan@src.gnome.org> | 2000-10-02 23:53:59 +0000 |
commit | ec054c80981e26b71c8bb2e6853b035dc2063e7d (patch) | |
tree | 1236a9995762e0431de408a599bbc0c712c9daa5 /libnautilus-private/nautilus-icon-private.h | |
parent | 8edfc9ca6a527b6c0c5730242cab61fe46b7d80c (diff) | |
download | nautilus-ec054c80981e26b71c8bb2e6853b035dc2063e7d.tar.gz |
Fixed the worst part of bug 2068 (dragging icon causes
immediate update of scroll area). Some related bugs
remain, which I'll write up separately
* libnautilus-extensions/nautilus-gnome-extensions.h:
* libnautilus-extensions/nautilus-gnome-extensions.c:
(nautilus_gnome_canvas_set_scroll_region_include_visible_area):
New function, sets scroll region to given parameters,
also forcing visible area to be included.
* libnautilus-extensions/nautilus-icon-container.c:
(update_scroll_region): New function, extracted from
nautilus_icon_container_update_scroll_region, now takes
boolean for whether to include the visible area.
(nautilus_icon_container_update_scroll_region): Now calls
update_scroll_region.
(nautilus_icon_container_update_scroll_region_include_visible_area):
New function, calls update_scroll_region.
(size_allocate): Do no work if allocation hasn't changed. This
didn't help with bug 2068 but is a worthwhile optimization.
* libnautilus-extensions/nautilus-icon-private.h:
Prototype for nautilus_icon_container_update_scroll_region_
include_visible_area
* libnautilus-extensions/nautilus-icon-dnd.c: (handle_local_move):
call ..._include_visible_area when updating scroll region after
drag & drop, instead of just ..._update_scroll_region, so no
origin-shifting occurs.
Diffstat (limited to 'libnautilus-private/nautilus-icon-private.h')
-rw-r--r-- | libnautilus-private/nautilus-icon-private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-icon-private.h b/libnautilus-private/nautilus-icon-private.h index 6ce9c89c1..274eca872 100644 --- a/libnautilus-private/nautilus-icon-private.h +++ b/libnautilus-private/nautilus-icon-private.h @@ -219,6 +219,8 @@ void nautilus_icon_container_scroll (NautilusIconC int delta_x, int delta_y); void nautilus_icon_container_update_scroll_region (NautilusIconContainer *container); +void nautilus_icon_container_update_scroll_region_include_visible_area + (NautilusIconContainer *container); /* label color for items */ guint32 nautilus_icon_container_get_label_color (NautilusIconContainer *container, |