Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_notebook.c ewl_row.c ewl_tree.c ewl_widget.c 


Log Message:
Check for a NULL embed on a widgets reparent. Better layout in the rows, and a
cleaner fill policy in the cell's for displaying items in the tree.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_notebook.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- ewl_notebook.c      14 Nov 2003 03:37:08 -0000      1.36
+++ ewl_notebook.c      14 Nov 2003 21:25:26 -0000      1.37
@@ -102,7 +102,6 @@
 
        DENTER_FUNCTION(DLEVEL_STABLE);
        DCHECK_PARAM_PTR("n", n);
-       DCHECK_PARAM_PTR("t", t);
        DCHECK_PARAM_PTR("p", p);
 
        w = EWL_WIDGET(n);
@@ -138,7 +137,6 @@
 
        DENTER_FUNCTION(DLEVEL_STABLE);
        DCHECK_PARAM_PTR("n", n);
-       DCHECK_PARAM_PTR("t", t);
        DCHECK_PARAM_PTR("p", p);
 
        w = EWL_WIDGET(n);
@@ -177,7 +175,6 @@
 
        DENTER_FUNCTION(DLEVEL_STABLE);
        DCHECK_PARAM_PTR("n", n);
-       DCHECK_PARAM_PTR("t", t);
        DCHECK_PARAM_PTR("p", p);
 
        w = EWL_WIDGET(n);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_row.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- ewl_row.c   12 Nov 2003 20:07:17 -0000      1.18
+++ ewl_row.c   14 Nov 2003 21:25:26 -0000      1.19
@@ -144,7 +144,13 @@
                Ewl_Container *hdr;
 
                hdr = EWL_CONTAINER(row->header);
-               ewd_list_goto_first(EWL_CONTAINER(hdr)->children);
+               align = ewd_list_goto_first(EWL_CONTAINER(hdr)->children);
+
+               if (align) {
+                       x = MAX(CURRENT_X(align), CURRENT_X(w));
+               }
+               else
+                       x = CURRENT_X(w);
 
                while ((child = ewd_list_next(c->children))) {
                        align = ewd_list_next(EWL_CONTAINER(hdr)->children);
@@ -155,8 +161,7 @@
                                        ewd_list_nodes(c->children);
                        ewl_object_place(child, x, CURRENT_Y(w), width,
                                CURRENT_H(w));
-                       x = ewl_object_get_current_x(child) +
-                               ewl_object_get_current_w(child);
+                       x += width;
                        i++;
                }
        }
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_tree.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- ewl_tree.c  12 Nov 2003 20:07:17 -0000      1.25
+++ ewl_tree.c  14 Nov 2003 21:25:26 -0000      1.26
@@ -191,6 +191,8 @@
                        break;
                }
 
+               ewl_object_set_fill_policy(EWL_OBJECT(cell),
+                               EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_HSHRINK);
                ewl_widget_show(cell);
 
                if (children[i]) {
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_widget.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -3 -r1.85 -r1.86
--- ewl_widget.c        12 Nov 2003 20:07:17 -0000      1.85
+++ ewl_widget.c        14 Nov 2003 21:25:26 -0000      1.86
@@ -1039,7 +1039,7 @@
        if (REALIZED(w)) {
                oevas = evas_object_evas_get(w->fx_clip_box);
                emb = ewl_embed_find_by_widget(w);
-               if (oevas != emb->evas)
+               if (!emb || oevas != emb->evas)
                        ewl_widget_unrealize(w);
                else {
 




-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to