Enlightenment CVS committal

Author  : ravenlock
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/conf_theme


Modified Files:
        e_int_config_theme.c 


Log Message:
Allow users to modify the base theme from the advanced dialog.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/conf_theme/e_int_config_theme.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- e_int_config_theme.c        13 Sep 2007 21:16:33 -0000      1.7
+++ e_int_config_theme.c        30 Oct 2007 16:09:08 -0000      1.8
@@ -605,12 +605,15 @@
        E_Config_Theme *theme, *newtheme = NULL;
 
        category = cats->data;
-       /* Not interested in adding "base" and "base/theme" */
-       if (strcmp(category, "base") && strcmp(category, "base/theme"))
+       /* Not interested in adding "base" */
+       if (strcmp(category, "base"))
          { 
             newtheme = (E_Config_Theme *)malloc(sizeof(E_Config_Theme));
             if (!newtheme) break;
-            newtheme->category = strdup(category);
+            if (!strcmp(category, "base/theme"))
+              newtheme->category = strdup("base/theme/Base Theme");
+            else
+              newtheme->category = strdup(category);
             newtheme->file = NULL;
 
             for (themes = e_config->themes; themes; themes = themes->next)
@@ -1118,6 +1121,8 @@
        E_Config_Theme *theme, *ec_theme;
 
        theme = themes->data;
+       if (!strcmp(theme->category, "base/theme/Base Theme"))
+             theme->category = strdup("base/theme");
        for (ec_themes = e_config->themes; ec_themes; ec_themes = 
ec_themes->next)
          {
             ec_theme = ec_themes->data;



-------------------------------------------------------------------------
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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to