princeamd pushed a commit to branch enlightenment-0.17.

commit 862c8dcfe3606118cb0959c505b9ae5a806156c7
Author: Christopher Michael <[email protected]>
Date:   Tue Feb 19 10:55:39 2013 +0000

    Backport: 6b1168b :: Add list of monitors to smart_data structure. Add code 
to delete the monitors when randr gets deleted.
    
    Signed-off-by: Christopher Michael <[email protected]>
    
    SVN revision: 84128
    Signed-off-by: Deon Thomas <[email protected]>
---
 src/modules/conf_randr/e_smart_randr.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/modules/conf_randr/e_smart_randr.c 
b/src/modules/conf_randr/e_smart_randr.c
index 1f49df6..79aa869 100644
--- a/src/modules/conf_randr/e_smart_randr.c
+++ b/src/modules/conf_randr/e_smart_randr.c
@@ -12,6 +12,9 @@ struct _E_Smart_Data
 
    /* visible flag */
    Eina_Bool visible : 1;
+
+   /* list of monitors */
+   Eina_List *monitors;
 };
 
 /* local function prototypes */
@@ -80,10 +83,15 @@ static void
 _e_smart_del(Evas_Object *obj)
 {
    E_Smart_Data *sd;
+   Evas_Object *mon;
 
    /* try to get the objects smart data */
    if (!(sd = evas_object_smart_data_get(obj))) return;
 
+   /* free the monitors */
+   EINA_LIST_FREE(sd->monitors, mon)
+     evas_object_del(mon);
+
    /* delete the layout object */
    if (sd->o_layout) evas_object_del(sd->o_layout);
 

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to