Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_fm.c 


Log Message:


and ignore dot files where appropriate

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_fm.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -3 -r1.91 -r1.92
--- e_fm.c      15 Oct 2006 23:20:15 -0000      1.91
+++ e_fm.c      15 Oct 2006 23:24:57 -0000      1.92
@@ -3796,6 +3796,8 @@
        if ((!strcmp(dp->d_name, ".")) || (!strcmp(dp->d_name, ".."))) return 1;
        /* skip dotfiles if we're not showing hidden files */
        if (dp->d_name[0] == '.' && !sd->show_hidden_files) return 1;
+       /* always hide .order files */
+       if (!strcmp(dp->d_name[0], ".order")) return 1;
        _e_fm2_file_add(data, dp->d_name, sd->order_file, NULL, 0);
      }
    return 1;
@@ -4879,26 +4881,31 @@
      {
       case FILE_ADD:
        /* new file to sort in place */
-       _e_fm2_file_add(obj, a->file, 1, a->file2, a->flags);
+       if (!((a->file[0] == '.') && (!sd->show_hidden_files)))
+         _e_fm2_file_add(obj, a->file, 1, a->file2, a->flags);
        break;
       case FILE_DEL:
-       _e_fm2_file_del(obj, a->file);
+       if (!((a->file[0] == '.') && (!sd->show_hidden_files)))
+         _e_fm2_file_del(obj, a->file);
        sd->live.deletions = 1;
        break;
       case FILE_CHANGE:
-       for (l = sd->icons; l; l = l->next)
+       if (!((a->file[0] == '.') && (!sd->show_hidden_files)))
          {
-            ic = l->data;
-            if (!strcmp(ic->info.file, a->file))
+            for (l = sd->icons; l; l = l->next)
               {
-                 int realized;
-                 
-                 realized = ic->realized;
-                 if (realized) _e_fm2_icon_unrealize(ic);
-                 _e_fm2_icon_unfill(ic);
-                 _e_fm2_icon_fill(ic);
-                 if (realized) _e_fm2_icon_realize(ic);
-                 break;
+                 ic = l->data;
+                 if (!strcmp(ic->info.file, a->file))
+                   {
+                      int realized;
+                      
+                      realized = ic->realized;
+                      if (realized) _e_fm2_icon_unrealize(ic);
+                      _e_fm2_icon_unfill(ic);
+                      _e_fm2_icon_fill(ic);
+                      if (realized) _e_fm2_icon_realize(ic);
+                      break;
+                   }
               }
          }
        break;



-------------------------------------------------------------------------
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