Enlightenment CVS committal
Author : devilhorns
Project : e17
Module : apps/e
Dir : e17/apps/e/src/modules/conf_theme
Modified Files:
e_int_config_theme.c
Log Message:
Use a better null trap for e_theme_config_get returning NULL. This should
allow a theme to still be set.
===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/conf_theme/e_int_config_theme.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_int_config_theme.c 29 Jul 2007 04:49:02 -0000 1.3
+++ e_int_config_theme.c 29 Jul 2007 05:02:18 -0000 1.4
@@ -475,8 +475,10 @@
/* Actually take our cfdata settings and apply them in real life */
ct = e_theme_config_get("theme");
- if (!ct) return 0;
- if (!strcmp(ct->file, cfdata->theme)) return 1;
+ if (ct)
+ {
+ if (!strcmp(ct->file, cfdata->theme)) return 1;
+ }
e_theme_config_set("theme", cfdata->theme);
e_config_save_queue();
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs