Re: List of files matching a filter expression.

"Adrian E. Feiguin" <[email protected]>
Newsgroups gmane.comp.scigraphica.gtkextra
Message-ID <[email protected]>
Hi Fabio, there are two functions that you can use:

path = gtk_file_list_get_path(GTK_FILE_LIST(filesel->file_list));
file = gtk_file_list_get_filename(GTK_FILE_LIST(filesel->file_list));

As an example, take a look a testgtkfilesel.c in the distro. If you run 
the program, select a file, click "OK" and see the results.
Enjoy! saludos,
<ADRIAN>

Fabio C.S. da Silva wrote:

>Hello!
>
>I am trying to make a small program that reads files with a certain extension 
>and does some data extraction using GTK Extra. I noticed that there is a very 
>powerful widget, "gtkfilelist",  that adds a lot of functionality to the 
>"file selection dialog" widget of GTK. Normally, I can extract the path and 
>the file name selected by the user, but I didn't see in the wdiget's 
>definition on gtkfilelist.h, a field in the structure GtkFileList where I 
>could acess all the files matching a certain filter expression. Is there a 
>simple way to do that?
>
>	Thanks,
>
>		Fabio.
>
>  
>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.