Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_config_dialog.h e_config_dialog.c 


Log Message:
Add functions for returning an existing config dialog.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_config_dialog.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- e_config_dialog.h   20 Oct 2006 03:23:46 -0000      1.15
+++ e_config_dialog.h   30 Nov 2006 10:01:01 -0000      1.16
@@ -55,6 +55,7 @@
 
 EAPI E_Config_Dialog *e_config_dialog_new(E_Container *con, const char *title, 
const char *name, const char *class, const char *icon, int icon_size, 
E_Config_Dialog_View *view, void *data);
 EAPI int e_config_dialog_find(const char *name, const char *class);
-    
+EAPI E_Config_Dialog *e_config_dialog_get(const char *name, const char *class);
+
 #endif
 #endif
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_config_dialog.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -3 -r1.33 -r1.34
--- e_config_dialog.c   28 Nov 2006 09:59:32 -0000      1.33
+++ e_config_dialog.c   30 Nov 2006 10:01:02 -0000      1.34
@@ -112,6 +112,26 @@
    return 0;
 }
 
+EAPI E_Config_Dialog *
+e_config_dialog_get(const char *name, const char *class) 
+{
+   Evas_List *l;
+   
+   for (l = _e_config_dialog_list; l; l = l->next)
+     {
+       E_Config_Dialog *cfd;
+       
+       cfd = l->data;
+       if (!cfd) continue;
+       if ((!e_util_strcmp(name, cfd->name)) &&
+           (!e_util_strcmp(class, cfd->class)))
+         {
+            return cfd;
+         }
+     }
+   return NULL;
+}
+
 /* local subsystem functions */
 
 static void



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to