Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_config_modules.c 


Log Message:

add an about button to the modules config

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_config_modules.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_int_config_modules.c      20 Dec 2005 02:05:01 -0000      1.4
+++ e_int_config_modules.c      20 Dec 2005 02:38:47 -0000      1.5
@@ -30,7 +30,7 @@
    Evas_Object *mod_name;
    struct
      {
-      Evas_Object *configure, *enable, *disable;
+      Evas_Object *configure, *enable, *disable, *about;
       Evas_Object *load, *unload, *loaded, *unloaded;
      } gui;
 };
@@ -116,7 +116,7 @@
         {
            e_widget_disabled_set( cfdata->gui.enable, 1);
            e_widget_disabled_set( cfdata->gui.disable, 0);
-           if(m->func.config)
+           if(m->func.config) 
              e_widget_disabled_set( cfdata->gui.configure, 0);
            else
              e_widget_disabled_set( cfdata->gui.configure, 1);
@@ -127,6 +127,11 @@
            e_widget_disabled_set( cfdata->gui.enable, 0);
            e_widget_disabled_set( cfdata->gui.disable, 1);
         }
+
+       if(m->func.about) 
+        e_widget_disabled_set( cfdata->gui.about, 0);
+       else
+        e_widget_disabled_set( cfdata->gui.about, 1);
      }
    else /* Load / Unload menu */
      {
@@ -228,6 +233,23 @@
      printf("Can't run config no module!!!\n");// Debug!!    
 }
 
+void *
+_module_about(void *data, void *data2)
+{
+   E_Config_Dialog *cfd;
+   CFData *cfdata;
+   E_Module *m;
+   
+   cfd = data;
+   m = cfd->data;
+   cfdata = cfd->cfdata;
+   if(m->func.about)
+   {
+      m->func.about(m);
+   }
+   else   
+     printf("Can't run about no module!!!\n");// Debug!!    
+}
 
 
 /**--CREATE--**/
@@ -347,6 +369,11 @@
    cfdata->gui.configure=ob;
    e_widget_disabled_set(ob, 1);
    e_widget_frametable_object_append(of, ob, 0, 2, 1, 1, 32, 32, 1, 1);
+   
+   ob = e_widget_button_add(evas, "About", NULL, _module_about, cfd, NULL);
+   cfdata->gui.about=ob;
+   e_widget_disabled_set(ob, 1);
+   e_widget_frametable_object_append(of, ob, 0, 3, 1, 1, 32, 32, 1, 1);
 
    e_widget_list_object_append(o, of, 1, 1, 0.5);
    return o;




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to