Enlightenment CVS committal

Author  : onefang
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_desktop


Modified Files:
        Ecore_Desktop.h ecore_desktop.c 


Log Message:
raster wants mime types, raster gets mime types.

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_desktop/Ecore_Desktop.h,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -3 -r1.37 -r1.38
--- Ecore_Desktop.h     29 Sep 2006 12:25:39 -0000      1.37
+++ Ecore_Desktop.h     12 Oct 2006 13:47:10 -0000      1.38
@@ -34,7 +34,7 @@
     * space and cycles that just covers up bugs.  On the other hand, it makes 
     * for a more robust library, and it's used everywhere else in ecore.
     */
-   Ecore_Hash         *data, *group, *Categories, *OnlyShowIn, *NotShowIn;
+   Ecore_Hash         *data, *group, *Categories, *OnlyShowIn, *NotShowIn, 
*MimeTypes, *Actions;
    char               *original_path;
    char               *original_lang;
    char               *eap_name;
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_desktop/ecore_desktop.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -3 -r1.56 -r1.57
--- ecore_desktop.c     4 Oct 2006 06:17:00 -0000       1.56
+++ ecore_desktop.c     12 Oct 2006 13:47:10 -0000      1.57
@@ -424,6 +424,14 @@
                    }
               }
 
+            value = ecore_hash_get(result->group, "MimeType");
+            if (value)
+              result->MimeTypes =
+                 ecore_desktop_paths_to_hash(value);
+            value = ecore_hash_get(result->group, "Actions");
+            if (value)
+              result->Actions =
+                 ecore_desktop_paths_to_hash(value);
             value = ecore_hash_get(result->group, "OnlyShowIn");
             if (value)
               result->OnlyShowIn =
@@ -447,7 +455,6 @@
             value = ecore_hash_get(result->group, "Hidden");
             if (value)
               result->hidden = (strcmp(value, "true") == 0);
-
          }
        else
          {
@@ -625,7 +632,7 @@
        else
           ecore_hash_remove(desktop->group, "Hidden");
 
-       /* FIXME: deal with the ShowIn's. */
+       /* FIXME: deal with the ShowIn's and mime stuff. */
 
        if (desktop->path)
           ecore_hash_set(desktop->group, strdup("Path"),
@@ -778,6 +785,8 @@
    if (desktop->NotShowIn) ecore_hash_destroy(desktop->NotShowIn);
    if (desktop->OnlyShowIn) ecore_hash_destroy(desktop->OnlyShowIn);
    if (desktop->Categories) ecore_hash_destroy(desktop->Categories);
+   if (desktop->MimeTypes) ecore_hash_destroy(desktop->MimeTypes);
+   if (desktop->Actions) ecore_hash_destroy(desktop->Actions);
    if (desktop->data)
      {
        ecore_hash_destroy(desktop->data);



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to