Enlightenment CVS committal
Author : ningerso
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/theme
Modified Files:
ewl_theme.c
Log Message:
Make theme key lookup return values consistent to prevent memory leaks and
improve cache performance.
Add theme reset to clear cached values on specified widgets.
Update theme test to cache API change.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/theme/ewl_theme.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_theme.c 17 Jan 2007 12:56:48 -0000 1.6
+++ ewl_theme.c 28 Feb 2007 12:24:46 -0000 1.7
@@ -117,6 +117,7 @@
snprintf(theme_filename, sizeof(theme_filename),
PACKAGE_DATA_DIR "/ewl/themes/%s", (char *)data);
+ ewl_theme_data_reset(notebook);
ewl_theme_data_str_set(notebook, "/file", theme_filename);
if (selected_theme) free(selected_theme);
-------------------------------------------------------------------------
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