Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_gui.c plugin_helper.c 


Log Message:
* Entropy list view actually works.  Also added a 'view' menu so you can pick 
your layout. Beware of warnings on directory change in list view.

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_gui.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- entropy_gui.c       8 Dec 2005 09:01:34 -0000       1.1
+++ entropy_gui.c       30 Dec 2005 06:47:30 -0000      1.2
@@ -4,3 +4,11 @@
        entropy_gui_component_instance* inst = 
entropy_malloc(sizeof(entropy_gui_component_instance));
        inst->active = COMPONENT_ACTIVE;
 }
+
+void entropy_gui_component_instance_disable(entropy_gui_component_instance* 
instance) {
+       instance->active = COMPONENT_INACTIVE;
+}
+
+void entropy_gui_component_instance_enable(entropy_gui_component_instance* 
instance) {
+       instance->active = COMPONENT_ACTIVE;
+}
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/plugin_helper.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- plugin_helper.c     22 Dec 2005 04:34:41 -0000      1.2
+++ plugin_helper.c     30 Dec 2005 06:47:30 -0000      1.3
@@ -63,7 +63,16 @@
 
 }
 
-Ecore_List* entropy_plugins_type_get(int type) {
+
+char* entropy_plugin_plugin_identify(entropy_plugin* plugin) {
+       char* (*entropy_plugin_identify)(void);
+       entropy_plugin_identify = dlsym(plugin->dl_ref, 
"entropy_plugin_identify");
+       
+       return (*entropy_plugin_identify)();
+}
+
+
+Ecore_List* entropy_plugins_type_get(int type, int subtype) {
        entropy_plugin* list_item;
 
        Ecore_List* plugins = entropy_core_get_core()->plugin_list;
@@ -77,7 +86,8 @@
        ecore_list_goto_first(plugins);
        while ( (list_item = ecore_list_next(plugins)) ) {
                /*printf("Scanning plugin: %s\n", list_item->filename);*/
-               if (list_item->type == type) {
+               if (list_item->type == type && 
+                  (subtype == ENTROPY_PLUGIN_SUB_TYPE_ALL || subtype == 
list_item->subtype)) {
                        ecore_list_append(plugin_list, list_item);
                }
        }




-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to