diff src/gtk/misc-gtk.c @ 821:b282e346bd25

2006-10-1 Brian Masney <masneyb@gftp.org> * lib/gftp.h lib/misc.c lib/protocols.c src/gtk/misc-gtk.c src/uicommon/gftpuicallbacks.c (gftp_match_filespec) - look at the show_hidden_files option inside this function. Use the option's value to determine if the file should be shown to the user.
author masneyb
date Sun, 01 Oct 2006 18:41:43 +0000
parents 419443feddac
children afbe37351940
line wrap: on
line diff
--- a/src/gtk/misc-gtk.c	Sun Oct 01 18:25:16 2006 +0000
+++ b/src/gtk/misc-gtk.c	Sun Oct 01 18:41:43 2006 +0000
@@ -690,25 +690,19 @@
   char *tempstr, *str, *pos, *attribs;
   gftp_config_list_vars * tmplistvar;
   gftp_file_extensions * tempext;
-  intptr_t show_hidden_files;
   GdkBitmap * bitmap;
   GList * templist;
   GdkPixmap * pix;
   int clist_num;
   size_t stlen;
 
-  gftp_lookup_request_option (wdata->request, "show_hidden_files", 
-                              &show_hidden_files);
-
   if (wdata->show_selected)
     {
       fle->shown = fle->was_sel;
       if (!fle->shown)
         return;
     }
-  else if ((!show_hidden_files && *fle->file == '.' && 
-            strcmp (fle->file, "..") != 0) ||
-           !gftp_match_filespec (fle->file, wdata->filespec))
+  else if (!gftp_match_filespec (wdata->request, fle->file, wdata->filespec))
     {
       fle->shown = 0;
       fle->was_sel = 0;