Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_grid.c 


Log Message:
fix position_get() and set the preferred size correct

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_grid.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- ewl_grid.c  24 Jul 2006 05:50:19 -0000      1.24
+++ ewl_grid.c  6 Aug 2006 22:02:41 -0000       1.25
@@ -467,8 +467,8 @@
                /*
                 * and now find the current position
                 */
-               ecore_dlist_goto_first(EWL_CONTAINER(w)->children);
-               while ((c = ecore_dlist_next(EWL_CONTAINER(w)->children))
+               ecore_dlist_goto_first(EWL_CONTAINER(g)->children);
+               while ((c = ecore_dlist_next(EWL_CONTAINER(g)->children))
                                && c != w) {
                        if (!ewl_widget_data_get(w, g))
                                go_next(g, &col, &row);
@@ -1189,7 +1189,7 @@
                rel = 0.0;
                fixed = 0;
                for (i = 0; i < g->rows; i++) {
-                       switch (g->col_size[i].resize_type) {
+                       switch (g->row_size[i].resize_type) {
                                case EWL_GRID_RESIZE_RELATIVE:
                                        rel += g->row_size[i].user.rel_size;
                                        break;



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to