Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_core.c 


Log Message:
* Deregistration on close

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -3 -r1.89 -r1.90
--- entropy_core.c      5 Sep 2006 06:27:39 -0000       1.89
+++ entropy_core.c      5 Sep 2006 06:47:14 -0000       1.90
@@ -929,6 +929,26 @@
        }
 }
 
+/*Deregister a layout object..*/
+void entropy_core_layout_deregister(entropy_core* core, 
entropy_gui_component_instance* comp) 
+{
+       Ecore_Hash* hash;
+       
+       /*First, make a new hash of event types for this new layout component, 
this will be the event hash*/
+       if (comp) {
+               printf("DeRegistered layout: %p\n", comp);
+               hash = ecore_hash_get(core->layout_gui_events, comp);
+               if (hash) {
+                       ecore_hash_destroy(hash);
+                       ecore_hash_remove(core->layout_gui_events, comp);
+               }
+               //printf("DeRegistered a layout component with the core, layout 
at: %p.., new hash at %p\n", comp,hash);
+       } else {
+               //printf ("Cannot deregister a null layout container\n");
+       }
+       
+}
+
 /*Register a component to get events created by others in the same layout 
container*/
 void entropy_core_component_event_register(entropy_gui_component_instance* 
comp, char* event) {
        entropy_gui_component_instance* layout;



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to