• John Sullivan's avatar
    Fixed the worst part of bug 2068 (dragging icon causes · ec054c80
    John Sullivan authored
    	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:
    	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
    	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_
    	* 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.
nautilus-icon-dnd.c 37.2 KB