Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

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


Modified Files:
        e_mod_config.c e_mod_config.h e_mod_main.c e_mod_main.h 


Log Message:


errrr. commit? did the last one work?

===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/dropshadow/e_mod_config.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- e_mod_config.c      12 Aug 2007 02:28:20 -0000      1.16
+++ e_mod_config.c      31 Oct 2007 12:23:13 -0000      1.17
@@ -18,13 +18,15 @@
 static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, 
E_Config_Dialog_Data *cfdata);
 static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data 
*cfdata);
 
-void
-_config_dropshadow_module(E_Container *con, Dropshadow *ds) 
+EAPI E_Config_Dialog *
+e_int_config_dropshadow_module(E_Container *con, const char *params __UNUSED__)
 {
    E_Config_Dialog *cfd;
    E_Config_Dialog_View *v;
    char buf[4096];
+   Dropshadow *ds;
 
+   ds = dropshadow_mod->data;
    if (e_config_dialog_find("E", "_e_mod_dropshadow_config_dialog")) return;   
    v = E_NEW(E_Config_Dialog_View, 1);
    
===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/dropshadow/e_mod_config.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_mod_config.h      8 Jan 2006 10:24:37 -0000       1.4
+++ e_mod_config.h      31 Oct 2007 12:23:13 -0000      1.5
@@ -3,6 +3,6 @@
 #ifndef E_MOD_CONFIG_H
 #define E_MOD_CONFIG_H
 #include "e_mod_main.h"
-void _config_dropshadow_module(E_Container *con, Dropshadow *ds);
+EAPI E_Config_Dialog *e_int_config_dropshadow_module(E_Container *con, const 
char *params __UNUSED__);
 #endif
 #endif
===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/dropshadow/e_mod_main.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -3 -r1.46 -r1.47
--- e_mod_main.c        28 Dec 2006 14:36:45 -0000      1.46
+++ e_mod_main.c        31 Oct 2007 12:23:13 -0000      1.47
@@ -76,48 +76,20 @@
    "Dropshadow"
 };
 
+EAPI E_Module *dropshadow_mod = NULL;
+
 EAPI void *
 e_modapi_init(E_Module *m)
 {
    Dropshadow *ds;
    
    ds = _ds_init(m);
-#if 0
-     {
-       Shpix *sh;
-       double t1, t2;
-       int i;
-       
-       sh = _ds_shpix_new(1000, 1000);
-       t1 = ecore_time_get();
-       for (i = 0; i < 100; i++)
-         {
-            _ds_shpix_blur(sh, 0, 0, 1000, 100, ds->table.gauss, 
ds->conf->blur_size, 1);
-         }
-       t2 = ecore_time_get();
-       printf("blur time: %3.3f\n", t2 -t1);
-       _ds_shpix_free(sh);
-       
-       sh = _ds_shpix_new(1000, 1000);
-       t1 = ecore_time_get();
-       for (i = 0; i < 100; i++)
-         {
-            _ds_shpix_blur(sh, 0, 0, 1000, 100, ds->table.gauss, 
ds->conf->blur_size, 2);
-         }
-       t2 = ecore_time_get();
-       printf("blur time: %3.3f\n", t2 -t1);
-       
-       sh = _ds_shpix_new(1000, 1000);
-       t1 = ecore_time_get();
-       for (i = 0; i < 100; i++)
-         {
-            _ds_shpix_blur(sh, 0, 0, 1000, 100, ds->table.gauss, 
ds->conf->blur_size, 4);
-         }
-       t2 = ecore_time_get();
-       printf("blur time: %3.3f\n", t2 -t1);
-       _ds_shpix_free(sh);
-     }
-#endif   
+   
+   e_configure_registry_category_add("appearance", 10, _("Appearance"), NULL, 
"enlightenment/appearance");
+   e_configure_registry_item_add("appearance/dropshadow", 150, 
_("Dropshadow"), NULL, "enlightenment/dropshadow", 
e_int_config_dropshadow_module);
+   
+   dropshadow_mod = m;
+   
    return ds;
 }
 
@@ -126,6 +98,9 @@
 {
    Dropshadow *ds;
    
+   e_configure_registry_item_del("appearance/dropshadow");
+   e_configure_registry_category_del("appearance");
+   
    ds = m->data;
    if (ds) 
      {
@@ -135,7 +110,7 @@
             ds->config_dialog = NULL;
          }
        _ds_shutdown(ds);
-     }
+     }   
    return 1;
 }
 
@@ -146,29 +121,6 @@
    
    ds = m->data;
    e_config_domain_save("module.dropshadow", ds->conf_edd, ds->conf);
-   return 1;
-}
-
-EAPI int
-e_modapi_about(E_Module *m)
-{
-   e_module_dialog_show(m, _("Enlightenment Dropshadow Module"),
-                       _("This is the dropshadow module that allows 
dropshadows to be cast<br>"
-                         "on the desktop background - without special X-Server 
extensions<br>"
-                         "or hardware acceleration."));
-   return 1;
-}
-
-EAPI int
-e_modapi_config(E_Module *m) 
-{
-   Dropshadow *ds;
-   E_Container *con;
-   
-   ds = m->data;
-   if (!ds) return 0;
-   con = e_container_current_get(e_manager_current_get());
-   _config_dropshadow_module(con, ds);
    return 1;
 }
 
===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/dropshadow/e_mod_main.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e_mod_main.h        6 Jan 2006 21:28:29 -0000       1.13
+++ e_mod_main.h        31 Oct 2007 12:23:14 -0000      1.14
@@ -98,14 +98,14 @@
    int redraw : 1;
 };
 
+extern E_Module *dropshadow_mod;
+
 EAPI extern E_Module_Api e_modapi;
 
 EAPI void *e_modapi_init     (E_Module *m);
 EAPI int   e_modapi_shutdown (E_Module *m);
 EAPI int   e_modapi_save     (E_Module *m);
 EAPI int   e_modapi_info     (E_Module *m);
-EAPI int   e_modapi_about    (E_Module *m);
-EAPI int   e_modapi_config   (E_Module *m);
 
 void  _dropshadow_cb_config_updated(void *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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to