1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 A button to launch a file selection dialog
7 <!-- ##### SECTION Long_Description ##### -->
9 The #GtkFileChooserButton is a widget that lets the user select a
10 file. It implements the #GtkFileChooser interface. Visually, it is a
11 file name with a button to bring up a #GtkFileChooserDialog.
12 The user can then use that dialog to change the file associated with
13 that button. This widget does not support setting the "select-multiple"
18 <title>Create a button to let the user select a file in /etc</title>
23 button = gtk_file_chooser_button_new (_("Select a file"));
24 gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (button),
31 The #GtkFileChooserButton supports the #GtkFileChooserAction<!--
32 -->s %GTK_FILE_CHOOSER_ACTION_OPEN and %GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER.
37 The #GtkFileChooserButton will ellipsize the label,
38 and thus will thus request little horizontal space. To give the button
39 more space, you should call gtk_widget_size_request(),
40 gtk_file_chooser_button_set_width_chars(), or pack the button in
41 such a way that other interface elements give space to the widget.
45 <!-- ##### SECTION See_Also ##### -->
50 <!-- ##### STRUCT GtkFileChooserButton ##### -->
52 This should not be accessed directly. Use the accessor functions below.
56 <!-- ##### ARG GtkFileChooserButton:dialog ##### -->
61 <!-- ##### ARG GtkFileChooserButton:title ##### -->
66 <!-- ##### ARG GtkFileChooserButton:width-chars ##### -->
71 <!-- ##### FUNCTION gtk_file_chooser_button_new ##### -->
81 <!-- ##### FUNCTION gtk_file_chooser_button_new_with_backend ##### -->
92 <!-- ##### FUNCTION gtk_file_chooser_button_new_with_dialog ##### -->
101 <!-- ##### FUNCTION gtk_file_chooser_button_get_title ##### -->
110 <!-- ##### FUNCTION gtk_file_chooser_button_set_title ##### -->
119 <!-- ##### FUNCTION gtk_file_chooser_button_get_width_chars ##### -->
128 <!-- ##### FUNCTION gtk_file_chooser_button_set_width_chars ##### -->