Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

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


Modified Files:
        e_mod_main.c 


Log Message:
Allow battery to use it's own icon in Config Panel.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/battery/e_mod_main.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -3 -r1.100 -r1.101
--- e_mod_main.c        31 Oct 2007 12:44:40 -0000      1.100
+++ e_mod_main.c        31 Oct 2007 15:15:33 -0000      1.101
@@ -1410,6 +1410,8 @@
 EAPI void *
 e_modapi_init(E_Module *m)
 {
+   char buf[4096];
+
    conf_edd = E_CONFIG_DD_NEW("Battery_Config", Config);
 #undef T
 #undef D
@@ -1441,8 +1443,9 @@
    
    e_gadcon_provider_register(&_gadcon_class);
    
+   snprintf(buf, sizeof(buf), "%s/e-module-battery.edj", e_module_dir_get(m));
    e_configure_registry_category_add("advanced", 80, _("Advanced"), NULL, 
"enlightenment/advanced");
-   e_configure_registry_item_add("advanced/battery", 100, _("Battery Meter"), 
NULL, "enlightenment/battery", e_int_config_battery_module);
+   e_configure_registry_item_add("advanced/battery", 100, _("Battery Meter"), 
NULL, buf, e_int_config_battery_module);
    
    return m;
 }



-------------------------------------------------------------------------
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