Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : apps/entice
Dir : e17/apps/entice/src/bin
Modified Files:
entice.c
Log Message:
work our way backwards in the list if we're at the last element
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/entice.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- entice.c 9 Jan 2004 04:55:05 -0000 1.30
+++ entice.c 9 Jan 2004 05:42:45 -0000 1.31
@@ -513,7 +513,13 @@
if ((o = evas_hash_find(entice->thumb.hash, buf)))
{
entice->thumb.hash = evas_hash_del(entice->thumb.hash, buf, o);
-
+
+ /* scroll backwards in the list, if we're at the tail */
+ if (evas_list_count(entice->thumb.list) > 2)
+ {
+ if (entice->thumb.current == evas_list_last(entice->thumb.list))
+ entice->thumb.current = evas_list_prev(entice->thumb.current);
+ }
if (!(entice->thumb.current = evas_list_prev(entice->thumb.current)))
{
entice->thumb.current = evas_list_last(entice->thumb.list);
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs