Leading '.' filenames in gtkfilesel.c (fwd)




  I'm working on an app (gtk frontend to mec's mconfig Linux kernel
configurer) which would like to be able to show ^\..* files in the
file_selection widget. Unfortunately, it appears that this code in
gtkfilesel.c:

/* The arguments used by all fnmatch() calls below
 */
#define FNMATCH_FLAGS (FNM_PATHNAME | FNM_PERIOD)

does not allow it, according to fnmatch.c:

#define	FNM_PERIOD	(1 << 2) /* Leading `.' is matched only
explicitly.  */

  I would like some way to override this. It would be trivial with a
flag, and I imagine I could hack one in if someone suggested where to keep
state (use gtk_object_{get/set}_data, or add a guint flags to struct
_GtkFileSelection).

--Jim	 http://as220.org/jb

            "			"
	     \   ____/|        / 
	      \  \ o.O|      /
	       \  =(_)=    /
		\   U    /       
		 \  |  / 
		  \ #/
	
              ACK! PHTHPHTH!
	   "I am not a crook!"




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]