Enlightenment CVS committal
Author : balony
Project : e17
Module : proto
Dir : e17/proto/exhibit/src/bin
Modified Files:
exhibit_slideshow.c exhibit_slideshow.h
Log Message:
Now updating on statusbar as slideshow runs.
Need latest etk for this.
===================================================================
RCS file: /cvs/e/e17/proto/exhibit/src/bin/exhibit_slideshow.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- exhibit_slideshow.c 10 Aug 2006 17:05:48 -0000 1.4
+++ exhibit_slideshow.c 14 Aug 2006 16:34:52 -0000 1.5
@@ -1,3 +1,6 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
#include "exhibit.h"
void
@@ -29,23 +32,14 @@
_ex_slideshow_next(void *data)
{
Exhibit *e;
- Etk_Tree_Row *row, *first_row, *last_row, *count;
- int i;
+ Etk_Tree_Row *row, *last_row;
+ int i = 0;
+ int n = 0;
+ char string[80];
e = data;
row = etk_tree_selected_row_get(ETK_TREE(e->cur_tab->itree));
last_row = etk_tree_last_row_get(ETK_TREE(e->cur_tab->itree), ETK_FALSE,
ETK_FALSE);
- first_row = etk_tree_first_row_get(ETK_TREE(e->cur_tab->itree));
-
- /* FIXME
- * Need an etk function for this, this isnt even working
properly.
- * Would be nice to display slideshow image x of maximages in
sbar.
- */
- for (count = etk_tree_first_row_get(ETK_TREE(e->cur_tab->itree)), i =
0;
- count && count != row; i++)
- count = etk_tree_next_row_get(count, ETK_FALSE, ETK_FALSE);
-
- D(("Rownumber: %d\n", i));
if(!row || row == last_row)
row = etk_tree_first_row_get(ETK_TREE(e->cur_tab->itree));
@@ -54,6 +48,11 @@
etk_tree_row_select(row);
etk_tree_row_scroll_to(row, ETK_FALSE);
-
+
+ i = etk_tree_num_rows_get(ETK_TREE(e->cur_tab->itree));
+ n = 1 + etk_tree_row_num_get(ETK_TREE(e->cur_tab->itree), row);
+ sprintf(string, "Slideshow picture %d of %d", n, i);
+ etk_statusbar_push(ETK_STATUSBAR(e->statusbar[3]), string, 0);
+
return 1;
}
===================================================================
RCS file: /cvs/e/e17/proto/exhibit/src/bin/exhibit_slideshow.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- exhibit_slideshow.h 2 Jan 2006 14:47:45 -0000 1.1
+++ exhibit_slideshow.h 14 Aug 2006 16:34:52 -0000 1.2
@@ -1,3 +1,6 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
#ifndef _EX_SLIDESHOW_H
#define _EX_SLIDESHOW_H
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs