Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_paned.c ewl_paned.h
Log Message:
- freeup list on destroy
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_paned.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- ewl_paned.c 22 Dec 2006 19:24:59 -0000 1.36
+++ ewl_paned.c 22 Dec 2006 19:29:53 -0000 1.37
@@ -125,6 +125,9 @@
p->new_panes = ecore_list_new();
+ ewl_callback_append(w, EWL_CALLBACK_DESTROY,
+ ewl_paned_cb_destroy, NULL);
+
ewl_callback_append(w, EWL_CALLBACK_CONFIGURE,
ewl_paned_cb_configure, NULL);
@@ -1025,3 +1028,18 @@
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
+
+void
+ewl_paned_cb_destroy(Ewl_Widget *w, void *ev __UNUSED__, void *data __UNUSED__)
+{
+ Ewl_Paned *p;
+
+ DENTER_FUNCTION(DLEVEL_STABLE);
+ DCHECK_PARAM_PTR("p", p);
+
+ p = w;
+ IF_FREE_LIST(p->new_panes);
+
+ DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_paned.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- ewl_paned.h 6 Dec 2006 20:14:52 -0000 1.22
+++ ewl_paned.h 22 Dec 2006 19:29:53 -0000 1.23
@@ -66,6 +66,7 @@
void ewl_paned_cb_child_hide(Ewl_Container *c, Ewl_Widget *w);
void ewl_paned_cb_configure(Ewl_Widget *w, void *ev, void *data);
+void ewl_paned_cb_destroy(Ewl_Widget *w, void *ev, void *data);
/*
* Ewl_Paned_Grabber stuff
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs