Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_box.c ewl_box.h ewl_cell.c ewl_cell.h ewl_container.c 
        ewl_container.h ewl_entry.c ewl_entry.h ewl_grid.c ewl_grid.h 
        ewl_menu_base.c ewl_menu_base.h ewl_misc.c ewl_notebook.c 
        ewl_notebook.h ewl_overlay.c ewl_overlay.h ewl_progressbar.c 
        ewl_progressbar.h ewl_row.c ewl_row.h ewl_scrollpane.c 
        ewl_scrollpane.h ewl_seeker.c ewl_selectionbar.c ewl_spinner.c 
        ewl_spinner.h ewl_table.c ewl_tree.c ewl_tree.h ewl_widget.c 


Log Message:
Some container callback renaming and addition of some new hooks. Will
hopefully be more flexible.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_box.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -3 -r1.62 -r1.63
--- ewl_box.c   26 Feb 2004 05:38:30 -0000      1.62
+++ ewl_box.c   18 Mar 2004 03:41:22 -0000      1.63
@@ -106,18 +106,20 @@
         * Initialize the container portion of the box
         */
        if (o == EWL_ORIENTATION_HORIZONTAL) {
-               if (!ewl_container_init(EWL_CONTAINER(b), "hbox",
-                                       ewl_box_add_cb, ewl_box_child_resize_cb,
-                                       ewl_box_remove_cb))
+               if (!ewl_container_init(EWL_CONTAINER(b), "hbox"))
                        DRETURN_INT(FALSE, DLEVEL_STABLE);
        }
        else {
-               if (!ewl_container_init(EWL_CONTAINER(b), "vbox",
-                                       ewl_box_add_cb, ewl_box_child_resize_cb,
-                                       ewl_box_remove_cb))
+               if (!ewl_container_init(EWL_CONTAINER(b), "vbox"))
                        DRETURN_INT(FALSE, DLEVEL_STABLE);
        }
 
+       ewl_container_add_notify(EWL_CONTAINER(b), ewl_box_child_add_cb);
+       ewl_container_remove_notify(EWL_CONTAINER(b), ewl_box_child_remove_cb);
+       ewl_container_resize_notify(EWL_CONTAINER(b), ewl_box_child_resize_cb);
+       ewl_container_show_notify(EWL_CONTAINER(b), ewl_box_child_show_cb);
+       ewl_container_hide_notify(EWL_CONTAINER(b), ewl_box_child_hide_cb);
+
        ewl_callback_append(w, EWL_CALLBACK_CONFIGURE, ewl_box_configure_cb,
                        NULL);
 
@@ -641,11 +643,21 @@
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
 
+void
+ewl_box_child_add_cb(Ewl_Container * c, Ewl_Widget * w)
+{
+}
+
+void
+ewl_box_child_remove_cb(Ewl_Container * c, Ewl_Widget * w)
+{
+}
+
 /*
  * When a child gets added to the box update it's size.
  */
 void
-ewl_box_add_cb(Ewl_Container * c, Ewl_Widget * w)
+ewl_box_child_show_cb(Ewl_Container * c, Ewl_Widget * w)
 {
        int             space = 0;
 
@@ -675,7 +687,7 @@
 }
 
 void
-ewl_box_remove_cb(Ewl_Container * c, Ewl_Widget * w)
+ewl_box_child_hide_cb(Ewl_Container * c, Ewl_Widget * w)
 {
        int space = 0;
        Ewl_Box *b = EWL_BOX(c);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_box.h,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- ewl_box.h   13 Feb 2004 06:25:20 -0000      1.30
+++ ewl_box.h   18 Mar 2004 03:41:23 -0000      1.31
@@ -66,10 +66,13 @@
 /*
  * Internally used callbacks, override at your own risk.
  */
-void            ewl_box_add_cb(Ewl_Container * c, Ewl_Widget * w);
-void            ewl_box_remove_cb(Ewl_Container * c, Ewl_Widget * w);
+void            ewl_box_child_add_cb(Ewl_Container * c, Ewl_Widget * w);
+void            ewl_box_child_remove_cb(Ewl_Container * c, Ewl_Widget * w);
 void            ewl_box_child_resize_cb(Ewl_Container * c, Ewl_Widget * w,
                                        int size, Ewl_Orientation o);
+void            ewl_box_child_show_cb(Ewl_Container * c, Ewl_Widget * w);
+void            ewl_box_child_hide_cb(Ewl_Container * c, Ewl_Widget * w);
+
 void            ewl_box_configure_cb(Ewl_Widget * w, void *ev_data,
                                     void *user_data);
 void            ewl_box_configure_homogeneous_cb(Ewl_Widget *w, void *ev_data,
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_cell.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- ewl_cell.c  3 Jan 2004 21:23:11 -0000       1.11
+++ ewl_cell.c  18 Mar 2004 03:41:23 -0000      1.12
@@ -35,12 +35,14 @@
 
        DCHECK_PARAM_PTR_RET("cell", cell, FALSE);
 
-       if (!ewl_container_init(EWL_CONTAINER(cell), "cell", ewl_cell_add_cb,
-                       ewl_cell_child_resize_cb, NULL))
+       if (!ewl_container_init(EWL_CONTAINER(cell), "cell"))
                DRETURN_INT(FALSE, DLEVEL_STABLE);
 
+       ewl_container_show_notify(EWL_CONTAINER(cell), ewl_cell_child_show_cb);
+       ewl_container_resize_notify(EWL_CONTAINER(cell),
+                                   ewl_cell_child_resize_cb);
        ewl_callback_append(EWL_WIDGET(cell), EWL_CALLBACK_CONFIGURE,
-                       ewl_cell_configure_cb, NULL);
+                           ewl_cell_configure_cb, NULL);
 
        DRETURN_INT(TRUE, DLEVEL_STABLE);
 }
@@ -67,7 +69,7 @@
 }
 
 void
-ewl_cell_add_cb(Ewl_Container *c, Ewl_Widget *w)
+ewl_cell_child_show_cb(Ewl_Container *c, Ewl_Widget *w)
 {
        Ewl_Widget *child;
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_cell.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ewl_cell.h  25 Nov 2003 07:47:29 -0000      1.8
+++ ewl_cell.h  18 Mar 2004 03:41:23 -0000      1.9
@@ -34,7 +34,7 @@
  * Internally used callbacks, override at your own risk.
  */
 void ewl_cell_configure_cb(Ewl_Widget * w, void *ev_data, void *user_data);
-void ewl_cell_add_cb(Ewl_Container *c, Ewl_Widget *w);
+void ewl_cell_child_show_cb(Ewl_Container *c, Ewl_Widget *w);
 void ewl_cell_child_resize_cb(Ewl_Container *c, Ewl_Widget *w, int size,
                Ewl_Orientation o);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_container.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -3 -r1.61 -r1.62
--- ewl_container.c     26 Feb 2004 05:38:31 -0000      1.61
+++ ewl_container.c     18 Mar 2004 03:41:23 -0000      1.62
@@ -14,8 +14,7 @@
  * widget fields of the container, so the @a appearance string is necessary.
  */
 int 
-ewl_container_init(Ewl_Container * c, char *appearance, Ewl_Child_Add add,
-                  Ewl_Child_Resize rs, Ewl_Child_Remove remove)
+ewl_container_init(Ewl_Container * c, char *appearance)
 {
        Ewl_Widget     *w;
 
@@ -36,9 +35,6 @@
         * Initialize the fields specific to the container class.
         */
        c->children = ewd_list_new();
-       c->child_add = add;
-       c->child_remove = remove;
-       c->child_resize = rs;
 
        /*
         * All containers need to perform the function of updating the
@@ -117,6 +113,46 @@
 }
 
 /**
+ * @param container: the container to change the show notifier
+ * @param show: the new show notifier for the container
+ * @return Returns no value.
+ * @brief Set the function to be called when showing children
+ *
+ * Changes the show notifier function of @a container to @a show.
+ */
+void
+ewl_container_show_notify(Ewl_Container * container, Ewl_Child_Show show)
+{
+       DENTER_FUNCTION(DLEVEL_STABLE);
+
+       DCHECK_PARAM_PTR("container", container);
+
+       container->child_show = show;
+
+       DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
+/**
+ * @param container: the container to change the hide notifier
+ * @param hide: the new show notifier for the container
+ * @return Returns no value.
+ * @brief Set the function to be called when hideing children
+ *
+ * Changes the hide notifier function of @a container to @a hide.
+ */
+void
+ewl_container_hide_notify(Ewl_Container * container, Ewl_Child_Hide hide)
+{
+       DENTER_FUNCTION(DLEVEL_STABLE);
+
+       DCHECK_PARAM_PTR("container", container);
+
+       container->child_hide = hide;
+
+       DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
+/**
  * @param pc: the parent container that will hold the child
  * @param child: the child to add to the container
  * @return Returns no value.
@@ -143,6 +179,7 @@
 
        ewd_list_append(pc->children, child);
        ewl_widget_set_parent(child, EWL_WIDGET(pc));
+       ewl_container_call_child_add(pc, child);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
@@ -175,6 +212,7 @@
 
        ewd_list_prepend(pc->children, child);
        ewl_widget_set_parent(child, EWL_WIDGET(pc));
+       ewl_container_call_child_add(pc, child);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
@@ -211,6 +249,7 @@
        ewd_list_goto_index(pc->children, index);
        ewd_list_insert(pc->children, child);
        ewl_widget_set_parent(child, EWL_WIDGET(pc));
+       ewl_container_call_child_add(pc, child);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
@@ -628,6 +667,42 @@
 }
 
 /**
+ * @param c: the container receiving a new child widget
+ * @param w: the child widget shown in the container
+ * @return Returns no value.
+ * @brief Triggers the child_show callback for the container @a c.
+ */
+void ewl_container_call_child_show(Ewl_Container *c, Ewl_Widget *w)
+{
+       DENTER_FUNCTION(DLEVEL_STABLE);
+
+       if (c->child_show && VISIBLE(w) && REALIZED(w))
+               c->child_show(c, w);
+
+       ewl_widget_configure(EWL_WIDGET(c));
+
+       DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
+/**
+ * @param c: the container receiving a new child widget
+ * @param w: the child widget hidden in the container
+ * @return Returns no value.
+ * @brief Triggers the child_hide callback for the container @a c.
+ */
+void ewl_container_call_child_hide(Ewl_Container *c, Ewl_Widget *w)
+{
+       DENTER_FUNCTION(DLEVEL_STABLE);
+
+       if (c->child_hide && VISIBLE(w) && REALIZED(w))
+               c->child_hide(c, w);
+
+       ewl_widget_configure(EWL_WIDGET(c));
+
+       DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
+/**
  * @param c: the container to destroy children
  * @return Returns no value.
  * @brief Destroy all the sub-children of the container.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_container.h,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- ewl_container.h     14 Jan 2004 20:42:54 -0000      1.30
+++ ewl_container.h     18 Mar 2004 03:41:23 -0000      1.31
@@ -44,6 +44,20 @@
                                     int size, Ewl_Orientation o);
 
 /**
+ * A typedef to shorten the definition of the child_show callbacks. This
+ * callback is container specific and is triggered when an Ewl_Widget is shown
+ * to the Ewl_Container.
+ */
+typedef void    (*Ewl_Child_Show) (Ewl_Container * c, Ewl_Widget * w);
+
+/**
+ * A typedef to shorten the definition of the child_hide callbacks. This
+ * callback is container specific and is triggered when an Ewl_Widget is hidden
+ * from the Ewl_Container.
+ */
+typedef void    (*Ewl_Child_Hide) (Ewl_Container * c, Ewl_Widget * w);
+
+/**
  * @struct Ewl_Container
  * Inherits from the Ewl_Widget and expands to allow for placing child widgets
  * within the available space. Also adds notifiers for various child events.
@@ -51,24 +65,33 @@
 struct Ewl_Container
 {
        Ewl_Widget       widget; /**< Inherit the basics of the widget. */
+
        Ewd_List        *children; /**< List of children that are contained. */
-       Ewd_List        *hidden; /**< Invisible children that are contained. */
+
        Evas_Object     *clip_box; /**< Clip box to bound widgets inside. */
+
+       Ewl_Container   *redirect; /**< Non-internal widgets placed here */
+
        Ewl_Child_Add    child_add; /**< Function called on child add */
-       Ewl_Child_Add    child_remove; /**< Function called on child remove */
+       Ewl_Child_Remove child_remove; /**< Function called on child remove */
        Ewl_Child_Resize child_resize; /**< Function called on child resize */
-       Ewl_Container   *redirect; /**< Non-internal widgets placed here */
+       Ewl_Child_Show   child_show; /**< Function called on child hide */
+       Ewl_Child_Hide   child_hide; /**< Function called on child hide */
 };
 
-int             ewl_container_init(Ewl_Container * widget, char *appearance,
-                                  Ewl_Child_Add add, Ewl_Child_Resize rs,
-                                  Ewl_Child_Remove remove);
+int             ewl_container_init(Ewl_Container * container, char *appearance);
+
 void            ewl_container_add_notify(Ewl_Container * container,
                                         Ewl_Child_Add add);
 void            ewl_container_remove_notify(Ewl_Container * container,
-                                        Ewl_Child_Add add);
+                                        Ewl_Child_Remove remove);
 void            ewl_container_resize_notify(Ewl_Container * container,
                                            Ewl_Child_Resize resize);
+void            ewl_container_show_notify(Ewl_Container * container,
+                                        Ewl_Child_Show show);
+void            ewl_container_hide_notify(Ewl_Container * container,
+                                        Ewl_Child_Hide show);
+
 void            ewl_container_append_child(Ewl_Container * parent,
                                           Ewl_Widget * child);
 void            ewl_container_prepend_child(Ewl_Container * parent,
@@ -79,6 +102,7 @@
                                           Ewl_Widget * child);
 void            ewl_container_resize_child(Ewl_Widget * w, int size,
                                           Ewl_Orientation o);
+
 void            ewl_container_destroy(Ewl_Container * c);
 void            ewl_container_reset(Ewl_Container * c);
 void            ewl_container_notify_callback(Ewl_Container *c,
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_entry.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -3 -r1.82 -r1.83
--- ewl_entry.c 8 Mar 2004 06:10:29 -0000       1.82
+++ ewl_entry.c 18 Mar 2004 03:41:23 -0000      1.83
@@ -39,11 +39,13 @@
 
        w = EWL_WIDGET(e);
 
-       if (!ewl_container_init(EWL_CONTAINER(w), "entry",
-                               ewl_entry_child_add_cb,
-                               ewl_entry_child_resize_cb, NULL))
+       if (!ewl_container_init(EWL_CONTAINER(w), "entry"))
                DRETURN_INT(FALSE, DLEVEL_STABLE);
 
+       ewl_container_show_notify(EWL_CONTAINER(w), ewl_entry_child_show_cb);
+       ewl_container_resize_notify(EWL_CONTAINER(w),
+                                   ewl_entry_child_resize_cb);
+
        ewl_object_set_fill_policy(EWL_OBJECT(w), EWL_FLAG_FILL_HSHRINK |
                        EWL_FLAG_FILL_HFILL);
        ewl_container_intercept_callback(EWL_CONTAINER(w), EWL_CALLBACK_SELECT);
@@ -624,7 +626,7 @@
 }
 
 void
-ewl_entry_child_add_cb(Ewl_Container * c, Ewl_Widget * w)
+ewl_entry_child_show_cb(Ewl_Container * c, Ewl_Widget * w)
 {
        Ewl_Entry *e;
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_entry.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- ewl_entry.h 8 Mar 2004 06:10:29 -0000       1.31
+++ ewl_entry.h 18 Mar 2004 03:41:23 -0000      1.32
@@ -71,7 +71,7 @@
 
 void ewl_entry_update_selected_region_cb(Ewl_Widget * w, void *user_data,
                                         void *ev_data);
-void ewl_entry_child_add_cb(Ewl_Container * c, Ewl_Widget * w);
+void ewl_entry_child_show_cb(Ewl_Container * c, Ewl_Widget * w);
 void ewl_entry_child_resize_cb(Ewl_Container * entry, Ewl_Widget * text,
                               int size, Ewl_Orientation o);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_grid.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- ewl_grid.c  26 Feb 2004 05:38:34 -0000      1.16
+++ ewl_grid.c  18 Mar 2004 03:41:23 -0000      1.17
@@ -1,5 +1,6 @@
 #include <Ewl.h>
 
+static void ewl_grid_resize(Ewl_Grid * g);
 
 /**
  * ewl_grid_new - create a new grid
@@ -42,10 +43,12 @@
        /*
         * Initialize the grids inherited fields
         */
-       if (!ewl_container_init(EWL_CONTAINER(g), "vbox", ewl_grid_add_cb,
-                               ewl_grid_auto_resize_cb, NULL))
+       if (!ewl_container_init(EWL_CONTAINER(g), "vbox"))
                DRETURN_INT(FALSE, DLEVEL_STABLE);
 
+       ewl_container_show_notify(EWL_CONTAINER(g), ewl_grid_child_show_cb);
+       ewl_container_resize_notify(EWL_CONTAINER(g), ewl_grid_child_resize_cb);
+
        /*
         * Initialize the lists that keep track of the
         * horisontal and vertical size of cols/rows
@@ -369,7 +372,7 @@
        }
 
 
-       ewl_grid_resize_cb(g);
+       ewl_grid_resize(g);
 
        c_x = CURRENT_X(EWL_OBJECT(w));
        c_y = CURRENT_Y(EWL_OBJECT(w));
@@ -412,7 +415,7 @@
 
 
 
-void ewl_grid_resize_cb(Ewl_Grid * g)
+static void ewl_grid_resize(Ewl_Grid * g)
 {
        int             w_flag = 0, h_flag = 0;
        int             i, new_w = 0, new_h = 0;
@@ -492,7 +495,7 @@
 /*
  * Notify the grid that a child has been added.
  */
-void ewl_grid_add_cb(Ewl_Container * p, Ewl_Widget * c)
+void ewl_grid_child_show_cb(Ewl_Container * p, Ewl_Widget * c)
 {
        int             i;
        int             temp;
@@ -586,7 +589,7 @@
  * Catch notification of child resizes.
  */
 void
-ewl_grid_auto_resize_cb(Ewl_Container * p, Ewl_Widget * child, int size,
+ewl_grid_child_resize_cb(Ewl_Container * p, Ewl_Widget * child, int size,
                        Ewl_Orientation o)
 {
        int             give;
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_grid.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_grid.h  14 Jan 2004 20:42:54 -0000      1.6
+++ ewl_grid.h  18 Mar 2004 03:41:23 -0000      1.7
@@ -76,9 +76,8 @@
                         void *user_data);
 void ewl_grid_configure_cb(Ewl_Widget * w, void *ev_data,
                           void *user_data);
-void ewl_grid_resize_cb(Ewl_Grid * g);
-void ewl_grid_add_cb(Ewl_Container * p, Ewl_Widget * c);
-void ewl_grid_auto_resize_cb(Ewl_Container * p, Ewl_Widget * child,
+void ewl_grid_child_show_cb(Ewl_Container * p, Ewl_Widget * c);
+void ewl_grid_child_resize_cb(Ewl_Container * p, Ewl_Widget * child,
                             int size, Ewl_Orientation o);
 
 #endif                         /* __EWL_GRID_H__ */
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_menu_base.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- ewl_menu_base.c     4 Mar 2004 00:29:21 -0000       1.26
+++ ewl_menu_base.c     18 Mar 2004 03:41:23 -0000      1.27
@@ -92,10 +92,13 @@
        /*
         * Initialize the inherited container fields.
         */
-       if (!ewl_container_init(EWL_CONTAINER(item), "menuitem",
-                               ewl_menu_item_add_cb, ewl_menu_item_resize_cb,
-                               NULL))
+       if (!ewl_container_init(EWL_CONTAINER(item), "menuitem"))
                DRETURN_INT(FALSE, DLEVEL_STABLE);
+
+       ewl_container_show_notify(EWL_CONTAINER(item),
+                                 ewl_menu_item_child_show_cb);
+       ewl_container_resize_notify(EWL_CONTAINER(item),
+                                 ewl_menu_item_child_resize_cb);
        ewl_object_set_fill_policy(EWL_OBJECT(item), EWL_FLAG_FILL_HFILL);
 
        ewl_callback_append(EWL_WIDGET(item), EWL_CALLBACK_CONFIGURE,
@@ -230,7 +233,7 @@
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
 
-void ewl_menu_item_add_cb(Ewl_Container *parent, Ewl_Widget *child)
+void ewl_menu_item_child_show_cb(Ewl_Container *parent, Ewl_Widget *child)
 {
        DENTER_FUNCTION(DLEVEL_STABLE);
 
@@ -242,8 +245,8 @@
 }
 
 void
-ewl_menu_item_resize_cb(Ewl_Container *parent, Ewl_Widget *child, int size,
-               Ewl_Orientation o)
+ewl_menu_item_child_resize_cb(Ewl_Container *parent, Ewl_Widget *child,
+                             int size, Ewl_Orientation o)
 {
        DENTER_FUNCTION(DLEVEL_STABLE);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_menu_base.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- ewl_menu_base.h     4 Mar 2004 00:29:21 -0000       1.13
+++ ewl_menu_base.h     18 Mar 2004 03:41:23 -0000      1.14
@@ -95,9 +95,8 @@
 void ewl_menu_popup_hold_cb(Ewl_Widget * w, void *ev_data, void *user_data);
 
 void ewl_menu_item_configure_cb(Ewl_Widget *w, void *ev_data, void *user_data);
-void ewl_menu_add_cb(Ewl_Container * parent, Ewl_Widget * child);
-void ewl_menu_item_add_cb(Ewl_Container *parent, Ewl_Widget *child);
-void ewl_menu_item_resize_cb(Ewl_Container *parent, Ewl_Widget *child,
+void ewl_menu_item_child_show_cb(Ewl_Container *parent, Ewl_Widget *child);
+void ewl_menu_item_child_resize_cb(Ewl_Container *parent, Ewl_Widget *child,
                             int size, Ewl_Orientation o);
 
 /**
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_misc.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -3 -r1.67 -r1.68
--- ewl_misc.c  8 Mar 2004 06:10:30 -0000       1.67
+++ ewl_misc.c  18 Mar 2004 03:41:23 -0000      1.68
@@ -640,8 +640,8 @@
         */
        while ((w = ewd_list_remove_first(child_add_list))) {
                if (w->parent)
-                       ewl_container_call_child_add(EWL_CONTAINER(w->parent),
-                                                    w);
+                       ewl_container_call_child_show(EWL_CONTAINER(w->parent),
+                                                     w);
        }
 
        ewl_exit_realize_phase();
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_notebook.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- ewl_notebook.c      14 Jan 2004 20:42:54 -0000      1.43
+++ ewl_notebook.c      18 Mar 2004 03:41:23 -0000      1.44
@@ -39,11 +39,16 @@
         * Initialize the container portion of the notebook and set the fill
         * policy to fill the area available.
         */
-       if (!ewl_container_init(EWL_CONTAINER(w), "tnotebook",
-                               ewl_notebook_add_cb, ewl_notebook_resize_cb,
-                               ewl_notebook_add_cb))
+       if (!ewl_container_init(EWL_CONTAINER(w), "tnotebook"))
                DRETURN_INT(FALSE, DLEVEL_STABLE);
 
+       ewl_container_show_notify(EWL_CONTAINER(w),
+                                 ewl_notebook_child_show_cb);
+       ewl_container_resize_notify(EWL_CONTAINER(w),
+                                   ewl_notebook_child_resize_cb);
+       ewl_container_hide_notify(EWL_CONTAINER(w),
+                                 ewl_notebook_child_show_cb);
+
        ewl_object_set_fill_policy(EWL_OBJECT(w), EWL_FLAG_FILL_FILL);
 
        /*
@@ -768,7 +773,7 @@
 }
 
 void
-ewl_notebook_add_cb(Ewl_Container *c, Ewl_Widget *w)
+ewl_notebook_child_show_cb(Ewl_Container *c, Ewl_Widget *w)
 {
        Ewl_Notebook *n;
 
@@ -812,7 +817,7 @@
 }
 
 void
-ewl_notebook_resize_cb(Ewl_Container *c, Ewl_Widget *w, int size,
+ewl_notebook_child_resize_cb(Ewl_Container *c, Ewl_Widget *w, int size,
                Ewl_Orientation o)
 {
        Ewl_Notebook *n;
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_notebook.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- ewl_notebook.h      14 Jan 2004 20:42:54 -0000      1.19
+++ ewl_notebook.h      18 Mar 2004 03:41:23 -0000      1.20
@@ -61,8 +61,8 @@
                                               void *user_data);
 void            ewl_notebook_configure_right_cb(Ewl_Widget * w, void *ev_data,
                                                void *user_data);
-void            ewl_notebook_add_cb(Ewl_Container *c, Ewl_Widget *w);
-void            ewl_notebook_resize_cb(Ewl_Container *c, Ewl_Widget *w,
+void            ewl_notebook_child_show_cb(Ewl_Container *c, Ewl_Widget *w);
+void            ewl_notebook_child_resize_cb(Ewl_Container *c, Ewl_Widget *w,
                                       int size, Ewl_Orientation o);
 
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_overlay.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_overlay.c       21 Feb 2004 04:50:45 -0000      1.2
+++ ewl_overlay.c       18 Mar 2004 03:41:23 -0000      1.3
@@ -37,11 +37,13 @@
        /*
         * Initialize the fields of the inherited container class
         */
-       if (!ewl_container_init(EWL_CONTAINER(w), "overlay",
-                               ewl_overlay_child_add_cb,
-                               ewl_overlay_child_resize_cb, NULL))
+       if (!ewl_container_init(EWL_CONTAINER(w), "overlay"))
                DRETURN_INT(FALSE, DLEVEL_STABLE);
 
+       ewl_container_show_notify(EWL_CONTAINER(w), ewl_overlay_child_show_cb);
+       ewl_container_resize_notify(EWL_CONTAINER(w),
+                                   ewl_overlay_child_resize_cb);
+
        ewl_object_set_fill_policy(EWL_OBJECT(w), EWL_FLAG_FILL_NONE);
        ewl_object_set_toplevel(EWL_OBJECT(w), EWL_FLAG_PROPERTY_TOPLEVEL);
 
@@ -85,7 +87,7 @@
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
 
-void ewl_overlay_child_add_cb(Ewl_Container * o, Ewl_Widget * child)
+void ewl_overlay_child_show_cb(Ewl_Container * o, Ewl_Widget * child)
 {
        int size;
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_overlay.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_overlay.h       12 Feb 2004 06:34:12 -0000      1.1
+++ ewl_overlay.h       18 Mar 2004 03:41:23 -0000      1.2
@@ -44,7 +44,7 @@
  */
 void ewl_overlay_configure_cb(Ewl_Widget *w, void *ev_data, void *user_data);
 
-void ewl_overlay_child_add_cb(Ewl_Container * emb, Ewl_Widget * child);
+void ewl_overlay_child_show_cb(Ewl_Container * emb, Ewl_Widget * child);
 void ewl_overlay_child_resize_cb(Ewl_Container *c, Ewl_Widget *w, int size,
                               Ewl_Orientation o);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_progressbar.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ewl_progressbar.c   19 Nov 2003 20:18:35 -0000      1.8
+++ ewl_progressbar.c   18 Mar 2004 03:41:23 -0000      1.9
@@ -35,10 +35,13 @@
 
        w = EWL_WIDGET(p);
 
-       ewl_container_init(EWL_CONTAINER(w), "progressbar",
-                       ewl_progressbar_child_add_cb, 
-                       ewl_progressbar_child_resize_cb, 
-                       NULL);
+       if (!ewl_container_init(EWL_CONTAINER(w), "progressbar"))
+               DRETURN(DLEVEL_STABLE);
+
+       ewl_container_show_notify(EWL_CONTAINER(w),
+                                 ewl_progressbar_child_show_cb);
+       ewl_container_resize_notify(EWL_CONTAINER(w),
+                                   ewl_progressbar_child_resize_cb);
 
        p->bar = NEW(Ewl_Widget, 1);
        if (!p->bar)
@@ -279,7 +282,7 @@
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
 
-void ewl_progressbar_child_add_cb(Ewl_Container *c, Ewl_Widget *w)
+void ewl_progressbar_child_show_cb(Ewl_Container *c, Ewl_Widget *w)
 {
        DENTER_FUNCTION(DLEVEL_STABLE);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_progressbar.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_progressbar.h   10 Dec 2003 21:52:51 -0000      1.6
+++ ewl_progressbar.h   18 Mar 2004 03:41:23 -0000      1.7
@@ -62,7 +62,7 @@
  */
 void ewl_progressbar_configure_cb(Ewl_Widget * w, void *ev_data,
                                  void *user_data);
-void ewl_progressbar_child_add_cb(Ewl_Container *c, Ewl_Widget *w);
+void ewl_progressbar_child_show_cb(Ewl_Container *c, Ewl_Widget *w);
 void ewl_progressbar_child_resize_cb(Ewl_Container *c, Ewl_Widget *w, int size,
                                     Ewl_Orientation o);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_row.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- ewl_row.c   9 Dec 2003 21:24:03 -0000       1.23
+++ ewl_row.c   18 Mar 2004 03:41:23 -0000      1.24
@@ -1,9 +1,8 @@
 #include <Ewl.h>
 
 /**
- * ewl_row_new - allocate and initialize a new row
- *
- * Returns a newly allocated row on success, NULL on failure.
+ * @return Returns a newly allocated row on success, NULL on failure.
+ * @brief Allocate and initialize a new row
  */
 Ewl_Widget *ewl_row_new()
 {
@@ -24,11 +23,11 @@
 }
 
 /**
- * ewl_row_init - initialize the row fields of an inheriting object
- * @row: the row object to initialize
+ * @param row: the row object to initialize
+ * @return Returns TRUE on success, FALSE on failure.
+ * @brief Initialize the row fields of an inheriting object
  *
- * Returns TRUE on success, FALSE on failure. The fields of the @row object
- * are initialized to their defaults.
+ * The fields of the @row object are initialized to their defaults.
  */
 int ewl_row_init(Ewl_Row *row)
 {
@@ -36,8 +35,12 @@
 
        DCHECK_PARAM_PTR_RET("row", row, FALSE);
 
-       ewl_container_init(EWL_CONTAINER(row), "row", ewl_row_add_cb,
-                       ewl_row_resize_cb, NULL);
+       if (ewl_container_init(EWL_CONTAINER(row), "row"))
+               DRETURN_INT(FALSE, DLEVEL_STABLE);
+       
+       ewl_container_show_notify(EWL_CONTAINER(row), ewl_row_child_show_cb);
+       ewl_container_resize_notify(EWL_CONTAINER(row), ewl_row_resize_cb);
+
        ewl_object_set_fill_policy(EWL_OBJECT(row), EWL_FLAG_FILL_HFILL |
                        EWL_FLAG_FILL_HSHRINK);
 
@@ -92,12 +95,10 @@
 }
 
 /**
- * ewl_row_get_column - retrieve the widget at a specified column
- * @row: the row to retrieve a columns widget from
- * @n: the column containing the desired widget
- *
- * Returns the widget located in column @n in @row on success, NULL on
- * failure.
+ * @param row: the row to retrieve a columns widget from
+ * @param n: the column containing the desired widget
+ * @return Returns widget located in column @n in @row on success.
+ * @brief Retrieve the widget at a specified column
  */
 Ewl_Widget *
 ewl_row_get_column(Ewl_Row *row, short n)
@@ -226,7 +227,7 @@
 }
 
 void
-ewl_row_add_cb(Ewl_Container *c, Ewl_Widget *w)
+ewl_row_child_show_cb(Ewl_Container *c, Ewl_Widget *w)
 {
        Ewl_Row *row;
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_row.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- ewl_row.h   14 Jan 2004 20:42:54 -0000      1.14
+++ ewl_row.h   18 Mar 2004 03:41:23 -0000      1.15
@@ -34,7 +34,7 @@
 void ewl_row_header_destroy_cb(Ewl_Widget * w, void *ev_data,
                               void *user_data);
 
-void ewl_row_add_cb(Ewl_Container *c, Ewl_Widget *w);
+void ewl_row_child_show_cb(Ewl_Container *c, Ewl_Widget *w);
 void ewl_row_resize_cb(Ewl_Container *c, Ewl_Widget *w, int size,
                       Ewl_Orientation o);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_scrollpane.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- ewl_scrollpane.c    24 Feb 2004 04:25:38 -0000      1.31
+++ ewl_scrollpane.c    18 Mar 2004 03:41:23 -0000      1.32
@@ -26,18 +26,22 @@
  *
  * Sets up default callbacks and field values for the scrollpane @a s.
  */
-void ewl_scrollpane_init(Ewl_ScrollPane * s)
+int ewl_scrollpane_init(Ewl_ScrollPane * s)
 {
        Ewl_Widget     *w;
 
        DENTER_FUNCTION(DLEVEL_UNSTABLE);
-       DCHECK_PARAM_PTR("s", s);
+       DCHECK_PARAM_PTR_RET("s", s, FALSE);
 
        w = EWL_WIDGET(s);
 
-       ewl_container_init(EWL_CONTAINER(s), "scrollpane",
-                          ewl_scrollpane_add_cb,
-                          ewl_scrollpane_child_resize_cb, NULL);
+       if (!ewl_container_init(EWL_CONTAINER(s), "scrollpane"))
+               DRETURN_INT(FALSE, DLEVEL_STABLE);
+
+       ewl_container_show_notify(EWL_CONTAINER(s),
+                                 ewl_scrollpane_child_show_cb);
+       ewl_container_resize_notify(EWL_CONTAINER(s),
+                                   ewl_scrollpane_child_resize_cb);
        ewl_object_set_fill_policy(EWL_OBJECT(s), EWL_FLAG_FILL_FILL |
                        EWL_FLAG_FILL_SHRINK);
 
@@ -87,7 +91,7 @@
        ewl_callback_append(s->vscrollbar, EWL_CALLBACK_VALUE_CHANGED,
                            ewl_scrollpane_vscroll_cb, s);
 
-       DLEAVE_FUNCTION(DLEVEL_UNSTABLE);
+       DRETURN_INT(FALSE, DLEVEL_STABLE);
 }
 
 /**
@@ -376,7 +380,7 @@
 /*
  * Actually add the child to the box rather than the scrollpane itself.
  */
-void ewl_scrollpane_add_cb(Ewl_Container * parent, Ewl_Widget * child)
+void ewl_scrollpane_child_show_cb(Ewl_Container * parent, Ewl_Widget * child)
 {
        int pw, ph;
        Ewl_ScrollPane *s;
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_scrollpane.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ewl_scrollpane.h    24 Feb 2004 04:25:39 -0000      1.10
+++ ewl_scrollpane.h    18 Mar 2004 03:41:23 -0000      1.11
@@ -41,7 +41,7 @@
 };
 
 Ewl_Widget     *ewl_scrollpane_new(void);
-void            ewl_scrollpane_init(Ewl_ScrollPane * s);
+int             ewl_scrollpane_init(Ewl_ScrollPane * s);
 
 void            ewl_scrollpane_set_hscrollbar_flag(Ewl_ScrollPane * s,
                                                   Ewl_ScrollBar_Flags f);
@@ -70,7 +70,7 @@
 void            ewl_scrollpane_vscroll_cb(Ewl_Widget * w, void *ev_data,
                                          void *user_data);
 
-void            ewl_scrollpane_add_cb(Ewl_Container * parent,
+void            ewl_scrollpane_child_show_cb(Ewl_Container * parent,
                                      Ewl_Widget * child);
 void            ewl_scrollpane_child_resize_cb(Ewl_Container * parent,
                                               Ewl_Widget * child, int size,
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_seeker.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- ewl_seeker.c        26 Feb 2004 05:38:39 -0000      1.51
+++ ewl_seeker.c        18 Mar 2004 03:41:23 -0000      1.52
@@ -45,15 +45,15 @@
         * type
         */
        if (orientation == EWL_ORIENTATION_HORIZONTAL) {
-               ewl_container_init(EWL_CONTAINER(w), "hseeker",
-                               NULL, NULL, NULL);
+               if (!ewl_container_init(EWL_CONTAINER(w), "hseeker"))
+                       DRETURN_INT(FALSE, DLEVEL_STABLE);
 
                ewl_object_set_fill_policy(EWL_OBJECT(w), EWL_FLAG_FILL_HFILL |
                                EWL_FLAG_FILL_HSHRINK);
        }
        else {
-               ewl_container_init(EWL_CONTAINER(w), "vseeker", NULL, NULL,
-                                  NULL);
+               if (!ewl_container_init(EWL_CONTAINER(w), "vseeker"))
+                       DRETURN_INT(FALSE, DLEVEL_STABLE);
 
                ewl_object_set_fill_policy(EWL_OBJECT(w),
                                EWL_FLAG_FILL_VFILL |
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_selectionbar.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- ewl_selectionbar.c  26 Feb 2004 05:38:40 -0000      1.16
+++ ewl_selectionbar.c  18 Mar 2004 03:41:23 -0000      1.17
@@ -61,8 +61,9 @@
        if (!s->bar)
                DRETURN(DLEVEL_STABLE);
 
-       ewl_container_init(EWL_CONTAINER(s->bar), "/selectionbar", NULL, NULL,
-                       NULL);
+       if (!ewl_container_init(EWL_CONTAINER(s->bar), "selectionbar"))
+               DRETURN_INT(FALSE, DLEVEL_STABLE);
+
        ewl_object_set_fill_policy(EWL_OBJECT(s->bar), EWL_FLAG_FILL_HFILL |
                                   EWL_FLAG_FILL_HSHRINK);
        ewl_container_append_child(EWL_CONTAINER(w), EWL_WIDGET(s->bar));
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_spinner.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -3 -r1.46 -r1.47
--- ewl_spinner.c       26 Feb 2004 05:38:40 -0000      1.46
+++ ewl_spinner.c       18 Mar 2004 03:41:23 -0000      1.47
@@ -36,9 +36,13 @@
 
        w = EWL_WIDGET(s);
 
-       ewl_container_init(EWL_CONTAINER(w), "spinner",
-                       ewl_spinner_child_add_cb, ewl_spinner_child_resize_cb,
-                       NULL);
+       if (!ewl_container_init(EWL_CONTAINER(w), "spinner"))
+               DRETURN_INT(FALSE, DLEVEL_STABLE);
+
+       ewl_container_show_notify(EWL_CONTAINER(w), ewl_spinner_child_show_cb);
+       ewl_container_resize_notify(EWL_CONTAINER(w),
+                                   ewl_spinner_child_resize_cb);
+
        ewl_object_set_fill_policy(EWL_OBJECT(w), EWL_FLAG_FILL_HFILL);
 
        ewl_callback_append(w, EWL_CALLBACK_REALIZE, ewl_spinner_realize_cb,
@@ -200,7 +204,7 @@
 }
 
 void
-ewl_spinner_child_add_cb(Ewl_Container *c, Ewl_Widget *w)
+ewl_spinner_child_show_cb(Ewl_Container *c, Ewl_Widget *w)
 {
        Ewl_Spinner *s = EWL_SPINNER(c);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_spinner.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- ewl_spinner.h       25 Nov 2003 07:47:29 -0000      1.20
+++ ewl_spinner.h       18 Mar 2004 03:41:23 -0000      1.21
@@ -55,7 +55,7 @@
 /*
  * Internally used callbacks, override at your own risk.
  */
-void ewl_spinner_child_add_cb(Ewl_Container *c, Ewl_Widget *w);
+void ewl_spinner_child_show_cb(Ewl_Container *c, Ewl_Widget *w);
 void ewl_spinner_child_resize_cb(Ewl_Container *c, Ewl_Widget *w,
                                 int size, Ewl_Orientation o);
 void ewl_spinner_realize_cb(Ewl_Widget * widget, void *ev_data,
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_table.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- ewl_table.c 13 Feb 2004 06:25:20 -0000      1.39
+++ ewl_table.c 18 Mar 2004 03:41:23 -0000      1.40
@@ -49,7 +49,8 @@
        /*
         * Iniitialize the tables inherited fields
         */
-       ewl_container_init(EWL_CONTAINER(t), "table", NULL, NULL, NULL);
+       if (!ewl_container_init(EWL_CONTAINER(t), "table"))
+               DRETURN_INT(FALSE, DLEVEL_STABLE);
        ewl_object_set_fill_policy(EWL_OBJECT(t), EWL_FLAG_FILL_FILL);
 
        /*
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_tree.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -3 -r1.33 -r1.34
--- ewl_tree.c  26 Jan 2004 02:46:48 -0000      1.33
+++ ewl_tree.c  18 Mar 2004 03:41:23 -0000      1.34
@@ -426,8 +426,15 @@
 
        DCHECK_PARAM_PTR_RET("node", node, FALSE);
 
-       ewl_container_init(EWL_CONTAINER(node), "node", ewl_tree_node_add_cb,
-                       ewl_tree_node_resize_cb, ewl_tree_node_remove_cb);
+       if (!ewl_container_init(EWL_CONTAINER(node), "node"))
+               DRETURN_INT(FALSE, DLEVEL_STABLE);
+       
+       ewl_container_show_notify(EWL_CONTAINER(node),
+                                 ewl_tree_node_child_show_cb);
+       ewl_container_resize_notify(EWL_CONTAINER(node),
+                                   ewl_tree_node_resize_cb);
+       ewl_container_remove_notify(EWL_CONTAINER(node),
+                                   ewl_tree_node_child_hide_cb);
 
        ewl_object_set_fill_policy(EWL_OBJECT(node), EWL_FLAG_FILL_HFILL |
                        EWL_FLAG_FILL_HSHRINK);
@@ -569,7 +576,7 @@
 }
 
 void
-ewl_tree_node_add_cb(Ewl_Container *c, Ewl_Widget *w)
+ewl_tree_node_child_show_cb(Ewl_Container *c, Ewl_Widget *w)
 {
        int width;
        Ewl_Tree_Node *node;
@@ -595,7 +602,7 @@
 }
 
 void
-ewl_tree_node_remove_cb(Ewl_Container *c, Ewl_Widget *w)
+ewl_tree_node_child_hide_cb(Ewl_Container *c, Ewl_Widget *w)
 {
        int width;
        Ewl_Tree_Node *node;
@@ -605,7 +612,7 @@
        node = EWL_TREE_NODE(c);
 
        ewl_object_set_preferred_h(EWL_OBJECT(c), PREFERRED_H(c) -
-                               ewl_object_get_preferred_h(EWL_OBJECT(w)));
+                                  ewl_object_get_preferred_h(EWL_OBJECT(w)));
 
        width = ewl_object_get_preferred_w(EWL_OBJECT(w));
        if (PREFERRED_W(c) >= width)
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_tree.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- ewl_tree.h  26 Jan 2004 02:46:48 -0000      1.18
+++ ewl_tree.h  18 Mar 2004 03:41:23 -0000      1.19
@@ -98,8 +98,8 @@
 void ewl_tree_node_clicked_cb(Ewl_Widget * w, void *ev_data,
                           void *user_data);
 
-void ewl_tree_node_add_cb(Ewl_Container *c, Ewl_Widget *w);
-void ewl_tree_node_remove_cb(Ewl_Container *c, Ewl_Widget *w);
+void ewl_tree_node_child_show_cb(Ewl_Container *c, Ewl_Widget *w);
+void ewl_tree_node_child_hide_cb(Ewl_Container *c, Ewl_Widget *w);
 void ewl_tree_node_resize_cb(Ewl_Container *c, Ewl_Widget *w, int size,
                             Ewl_Orientation o);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_widget.c,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -3 -r1.108 -r1.109
--- ewl_widget.c        8 Mar 2004 06:10:30 -0000       1.108
+++ ewl_widget.c        18 Mar 2004 03:41:23 -0000      1.109
@@ -201,7 +201,7 @@
 
        pc = EWL_CONTAINER(w->parent);
        if (pc)
-               ewl_container_call_child_remove(pc, w);
+               ewl_container_call_child_hide(pc, w);
 
        ewl_object_remove_visible(EWL_OBJECT(w), EWL_FLAG_VISIBLE_SHOWN);
        ewl_callback_call(w, EWL_CALLBACK_HIDE);
@@ -546,7 +546,7 @@
                if (VISIBLE(w)) {
                        if (REALIZED(w)) {
                                ewl_callback_call(w, EWL_CALLBACK_REPARENT);
-                               ewl_container_call_child_add(EWL_CONTAINER(p),
+                               ewl_container_call_child_show(EWL_CONTAINER(p),
                                                             w);
                        }
                        else {




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to