.directory files are .desktops to.
authorDavid Walter Seikel <onefang@gmail.com>
Sat, 14 Oct 2006 12:20:52 +0000 (12:20 +0000)
committerDavid Walter Seikel <onefang@gmail.com>
Sat, 14 Oct 2006 12:20:52 +0000 (12:20 +0000)
SVN revision: 26604

src/bin/e_apps.c
src/bin/e_fm.c
src/bin/e_thumb_main.c

index 1c7bd97..fca3a91 100644 (file)
@@ -2698,7 +2698,7 @@ _e_app_is_eapp(const char *path)
      return 0;
 
    p++;
-   if (strcasecmp(p, "desktop"))
+   if ((strcasecmp(p, "desktop") != 0) && (strcasecmp(p, "desktop") != 0))
      return 0;
 
    return 1;
index 2e58b20..d835990 100644 (file)
@@ -1393,7 +1393,7 @@ _e_fm2_icon_new(E_Fm2_Smart_Data *sd, char *file)
        if (mime) ic->info.mime = evas_stringshare_add(mime);
      }
    
-   if (e_util_glob_case_match(ic->info.file, "*.desktop"))
+   if ((e_util_glob_case_match(ic->info.file, "*.desktop")) || (e_util_glob_case_match(ic->info.file, "*.directory")))
      _e_fm2_icon_desktop_load(ic);
    evas_event_freeze(evas_object_evas_get(sd->obj));
    edje_freeze();
@@ -1809,9 +1809,7 @@ _e_fm2_icon_icon_direct_set(E_Fm2_Icon *ic, Evas_Object *o, void (*gen_func) (vo
                                                 gen_func, data);
                  _e_fm2_icon_thumb(ic, oic, force_gen);
               }
-            else if (
-                     (e_util_glob_case_match(ic->info.file, "*.desktop"))
-                     )
+            else if ((e_util_glob_case_match(ic->info.file, "*.desktop")) || (e_util_glob_case_match(ic->info.file, "*.directory")))
               {
                  E_App *app;
                  
index 76bc1b2..9588059 100644 (file)
@@ -336,7 +336,7 @@ _e_thumb_generate(E_Thumb *eth)
        alpha = 1;
        ext = strrchr(eth->file, '.');
 
-       if ((ext) && (!strcasecmp(ext, ".desktop")))
+       if ( (ext) && ((!strcasecmp(ext, ".desktop")) || (!strcasecmp(ext, ".directory"))) )
          {
             Ecore_Desktop *desktop;