Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_border.c ewl_border.h ewl_checkbutton.c ewl_checkbutton.h 
        ewl_notebook.c 


Log Message:
- containers cleanup their children, so there is no reason for me to do it

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_border.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_border.c        9 Dec 2004 01:43:34 -0000       1.6
+++ ewl_border.c        9 Dec 2004 02:09:55 -0000       1.7
@@ -56,9 +56,6 @@
        ewl_container_redirect_set(EWL_CONTAINER(b), EWL_CONTAINER(b->body));
        ewl_widget_appearance_set(EWL_WIDGET(b), "border");
 
-       ewl_callback_append(EWL_WIDGET(b), EWL_CALLBACK_DESTROY,
-                                               ewl_border_destroy_cb, NULL);
-
        DRETURN_INT(TRUE, DLEVEL_STABLE);
 }
 
@@ -193,19 +190,4 @@
        DRETURN_INT(align, DLEVEL_STABLE);
 }
 
-void 
-ewl_border_destroy_cb(Ewl_Widget *w, void *ev_data, void *user_data)
-{
-       Ewl_Border *b;
-
-       b = EWL_BORDER(w);
-
-       if (b->label)
-               ewl_widget_destroy(b->label);
-
-       if (b->body)
-               ewl_widget_destroy(b->body);
-}
-
-
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_border.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_border.h        9 Dec 2004 01:43:34 -0000       1.3
+++ ewl_border.h        9 Dec 2004 02:09:55 -0000       1.4
@@ -50,11 +50,6 @@
                                                unsigned int align);
 unsigned int    ewl_border_label_alignment_get(Ewl_Border *b);
 
-/*
- * Internally used callbacks.
- */
-void            ewl_border_destroy_cb(Ewl_Widget *w, void *ev_data, 
-                                                       void *user_data);
 
 #endif                         /* __EWL_BORDER_H__ */
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_checkbutton.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -3 -r1.44 -r1.45
--- ewl_checkbutton.c   9 Dec 2004 01:55:44 -0000       1.44
+++ ewl_checkbutton.c   9 Dec 2004 02:09:55 -0000       1.45
@@ -46,8 +46,6 @@
        ewl_object_fill_policy_set(EWL_OBJECT(w), EWL_FLAG_FILL_NONE);
        ewl_callback_append(w, EWL_CALLBACK_CLICKED,
                                ewl_checkbutton_clicked_cb, NULL);
-       ewl_callback_append(w, EWL_CALLBACK_DESTROY,
-                               ewl_checkbutton_destroy_cb, NULL);
 
        cb->label_position = EWL_POSITION_RIGHT;
 
@@ -127,14 +125,4 @@
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
 
-void
-ewl_checkbutton_destroy_cb(Ewl_Widget * w, void *ev_data, void *user_data)
-{
-       Ewl_CheckButton *ck;
-
-       ck = EWL_CHECKBUTTON(w);
-       if (ck->check)
-               ewl_widget_destroy(ck->check);
-}
-
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_checkbutton.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- ewl_checkbutton.h   9 Dec 2004 01:55:44 -0000       1.22
+++ ewl_checkbutton.h   9 Dec 2004 02:09:55 -0000       1.23
@@ -65,8 +65,6 @@
 
 void            ewl_checkbutton_clicked_cb(Ewl_Widget * w, void *ev_data,
                                           void *user_data);
-void            ewl_checkbutton_destroy_cb(Ewl_Widget * w, void *ev_data,
-                                    void *user_data);
 
 /**
  * @}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_notebook.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -3 -r1.53 -r1.54
--- ewl_notebook.c      8 Dec 2004 21:35:24 -0000       1.53
+++ ewl_notebook.c      9 Dec 2004 02:09:55 -0000       1.54
@@ -596,30 +596,6 @@
 
        n = EWL_NOTEBOOK(w);
 
-       if (n->tab_box) {
-               ewl_widget_destroy(n->tab_box);
-               n->tab_box = NULL;
-       }
-
-       if (n->page_box) {
-               ewl_widget_destroy(n->page_box);
-               n->page_box = NULL;
-       }
-       n->visible_page = NULL;
-
-       ecore_list_goto_index(n->pages, 0);
-       while((p = ecore_list_next(n->pages))) {
-               if (!p) continue;
-
-               p->page = NULL;
-               if (p->tab)
-                       ewl_widget_destroy(p->tab);
-
-               if (p->page)
-                       ewl_widget_destroy(p->page);
-
-               FREE(p);
-       }
        ecore_list_destroy(n->pages);
        n->pages = NULL;        
 }




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to