Enlightenment CVS committal
Author : essiene
Project : e17
Module : proto
Dir : e17/proto/entrance_edit_gui/src/smarts
Modified Files:
entrance_smart.c
Log Message:
- Started work on proper object managing overall. I've had some object
corruption issues that seems to be caused by lost pointers. Time to byte this
bullet.
- Theme and Background dialog now will only ever create one instance, no matter
how many times you try to launch it.
- Prompted by entrance bloat issues, cleaned up some very silly memory usages.
Its amazing the what you gain just by watching top while clicking away at your
app. Awesome stuff.
===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/smarts/entrance_smart.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- entrance_smart.c 23 Aug 2006 02:10:49 -0000 1.1
+++ entrance_smart.c 27 Sep 2006 21:45:47 -0000 1.2
@@ -85,8 +85,11 @@
Evas *e = evas_object_evas_get(o);
if(!e)
return;
+ if(es->background)
+ evas_object_del(es->background);
+
es->background = edje_object_add(e);
- if(!es->background)
+ if(es->background == NULL)
return;
if(!edje_object_file_set(es->background, file, "Background"))
@@ -103,8 +106,12 @@
Evas *e = evas_object_evas_get(o);
if(!e)
return;
+
+ if(es->main)
+ evas_object_del(es->main);
+
es->main = edje_object_add(e);
- if(!es->main)
+ if(es->main == NULL)
return;
if(!edje_object_file_set(es->main, file, "Main"))
-------------------------------------------------------------------------
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