GtkFileChooserButton: GtkFileChooserButton
Description
A button to launch a file selection dialogMethods and Functions
gtkFileChooserButtonNew(title, action, show = TRUE)
gtkFileChooserButtonNewWithBackend(title, action, backend, show = TRUE)
gtkFileChooserButtonNewWithDialog(dialog)
gtkFileChooserButtonGetTitle(object)
gtkFileChooserButtonSetTitle(object, title)
gtkFileChooserButtonGetWidthChars(object)
gtkFileChooserButtonSetWidthChars(object, n.chars)
gtkFileChooserButton(title, action, backend, show = TRUE)
Hierarchy
\link{GObject}
+----\link{GtkObject}
+----\link{GtkWidget}
+----\link{GtkContainer}
+----\link{GtkBox}
+----\link{GtkHBox}
+----GtkFileChooserButtonInterfaces
GtkFileChooserButton implements
AtkImplementorIface and GtkFileChooser
.Detailed Description
The GtkFileChooserButton
is a widget that lets the user select a
file. It implements the GtkFileChooser
interface. Visually, it is a
file name with a button to bring up a GtkFileChooserDialog
.
The user can then use that dialog to change the file associated with
that button. This widget does not support setting the "select-multiple"
property to TRUE
.
# Create a button to let the user select a file in /etc
button <- gtkFileChooserButton("Select a file", "open")
button$setCurrentFolder("/etc")
The GtkFileChooserButton
supports the GtkFileChooserAction
s GTK_FILE_CHOOSER_ACTION_OPEN
and GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER
.
PLEASE NOTE:
The GtkFileChooserButton
will ellipsize the label,
and thus will thus request little horizontal space. To give the button
more space, you should call gtkWidgetSizeRequest
,
gtkFileChooserButtonSetWidthChars
, or pack the button in
such a way that other interface elements give space to the widget.References
http://developer.gnome.org/doc/API/2.0/gtk/GtkFileChooserButton.html