Hi guys,

Since the switch to evas_table, I have issues with elm_table.
The problem can be easily reproduced with elementary_test and the
patch that you can find in attached file.

In test_photo.c I just change the layout to have 3 rows and 200 columns.
When I try elementary_test with a SVN < 42781 All images are shown on
the screen when you scroll. But after this commit the end of the table
is never shown.

On the other side, table creation is faster with evas_table, in my
test about 3 times faster.
-- 
Nicolas Aguirre
Mail: aguirre.nico...@gmail.com
Web: http://www.digital-corner.org
Index: src/bin/test_photo.c
===================================================================
--- src/bin/test_photo.c	(révision 42983)
+++ src/bin/test_photo.c	(copie de travail)
@@ -30,11 +30,11 @@
 
    tb = elm_table_add(win);
    evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-   
+   double t0 = ecore_time_get();
    n = 0;
-   for (j = 0; j < 12; j++)
+   for (j = 0; j < 3; j++)
      {
-        for (i = 0; i < 12; i++)
+        for (i = 0; i < 200; i++)
           {
              ph = elm_photo_add(win);
              snprintf(buf, sizeof(buf), "%s/images/%s",
@@ -51,7 +51,8 @@
              evas_object_show(ph);
           }
      }
-   
+   double t1 = ecore_time_get() - t0;
+   printf("Duration : %3.3f\n", t1);
    sc = elm_scroller_add(win);
    evas_object_size_hint_weight_set(sc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    elm_win_resize_object_add(win, sc);
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to