Re: GtkFileChooserButton



On Mon, 2006-09-04 at 17:55 -0700, cruiseoveride wrote:
> 
> How do I get the filename of the file chosen with the GtkFileChooserButton?
> What type of singal do I need?
> I want the button to allow my user to select a file, once he selects the
> file and says "Open" I then use the file for my application.

You can use the entire GtkFileChooser API on the button (think of it as
a file dialog in it's own right):

http://developer.gnome.org/doc/API/2.0/gtk/GtkFileChooser.html

You probably want to listen to "selection-changed" and call
_get_filename() or get_uri() when your handler is called.

-- 
Peace,

James Cape
http://blog.ignore-your.tv/
http://ignore-your.tv/

"People who shut their eyes to reality simply invite their
 own destruction, and anyone who insists on remaining in a
 state of innocence long after that innocence is dead turns
 himself into a monster."
                 -- James Baldwin, "Stranger in the Village"

Attachment: signature.asc
Description: This is a digitally signed message part



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