<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
]>
<!--ENTITY index-Objects-Grouped SYSTEM "objects_grouped.sgml"-->
<refentry id="GtkFileSelection">
<refmeta>
<refentrytitle role="top_of_page" id="GtkFileSelection.top_of_page">GtkFileSelection</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GtkFileSelection</refname>
<refpurpose>Prompt the user for a file or directory name</refpurpose>
</refnamediv>

<refsynopsisdiv id="GtkFileSelection.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>

#include &lt;gtk/gtk.h&gt;

                    <link linkend="GtkFileSelection-struct">GtkFileSelection</link>;
<link linkend="GtkWidget">GtkWidget</link>*          <link linkend="gtk-file-selection-new">gtk_file_selection_new</link>              (const <link linkend="gchar">gchar</link> *title);
<link linkend="void">void</link>                <link linkend="gtk-file-selection-set-filename">gtk_file_selection_set_filename</link>     (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel,
                                                         const <link linkend="gchar">gchar</link> *filename);
const <link linkend="gchar">gchar</link>*        <link linkend="gtk-file-selection-get-filename">gtk_file_selection_get_filename</link>     (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel);
<link linkend="void">void</link>                <link linkend="gtk-file-selection-complete">gtk_file_selection_complete</link>         (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel,
                                                         const <link linkend="gchar">gchar</link> *pattern);
<link linkend="void">void</link>                <link linkend="gtk-file-selection-show-fileop-buttons">gtk_file_selection_show_fileop_buttons</link>
                                                        (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel);
<link linkend="void">void</link>                <link linkend="gtk-file-selection-hide-fileop-buttons">gtk_file_selection_hide_fileop_buttons</link>
                                                        (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel);
<link linkend="gchar">gchar</link>**             <link linkend="gtk-file-selection-get-selections">gtk_file_selection_get_selections</link>   (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel);
<link linkend="void">void</link>                <link linkend="gtk-file-selection-set-select-multiple">gtk_file_selection_set_select_multiple</link>
                                                        (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel,
                                                         <link linkend="gboolean">gboolean</link> select_multiple);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-file-selection-get-select-multiple">gtk_file_selection_get_select_multiple</link>
                                                        (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel);
</synopsis>
</refsynopsisdiv>

<refsect1 id="GtkFileSelection.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----<link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
         +----<link linkend="GtkObject">GtkObject</link>
               +----<link linkend="GtkWidget">GtkWidget</link>
                     +----<link linkend="GtkContainer">GtkContainer</link>
                           +----<link linkend="GtkBin">GtkBin</link>
                                 +----<link linkend="GtkWindow">GtkWindow</link>
                                       +----<link linkend="GtkDialog">GtkDialog</link>
                                             +----GtkFileSelection
</synopsis>
</refsect1>



<refsect1 id="GtkFileSelection.implemented-interfaces" role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GtkFileSelection implements
 <link linkend="AtkImplementorIface">AtkImplementorIface</link> and  <link linkend="GtkBuildable">GtkBuildable</link>.</para>
</refsect1>


<refsect1 id="GtkFileSelection.properties" role="properties">
<title role="properties.title">Properties</title>
<synopsis>
  &quot;<link linkend="GtkFileSelection--filename">filename</link>&quot;                 <link linkend="gchar">gchar</link>*                : Read / Write
  &quot;<link linkend="GtkFileSelection--select-multiple">select-multiple</link>&quot;          <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkFileSelection--show-fileops">show-fileops</link>&quot;             <link linkend="gboolean">gboolean</link>              : Read / Write
</synopsis>
</refsect1>



<refsect1 id="GtkFileSelection.description" role="desc">
<title role="desc.title">Description</title>
<para>
<link linkend="GtkFileSelection"><type>GtkFileSelection</type></link> has been superseded by the newer <link linkend="GtkFileChooser"><type>GtkFileChooser</type></link> family
of widgets.
</para>
<para>
<link linkend="GtkFileSelection"><type>GtkFileSelection</type></link> should be used to retrieve file or directory names from
the user. It will create a new dialog window containing a directory list,
and a file list corresponding to the current working directory. The filesystem
can be navigated using the directory list or the drop-down history menu.
Alternatively, the TAB key can be used to navigate using filename
completion - common in text based editors such as emacs and jed.
</para>
<para>
File selection dialogs are created with a call to <link linkend="gtk-file-selection-new"><function>gtk_file_selection_new()</function></link>.
</para>
<para>
The default filename can be set using <link linkend="gtk-file-selection-set-filename"><function>gtk_file_selection_set_filename()</function></link> and the selected filename retrieved using <link linkend="gtk-file-selection-get-filename"><function>gtk_file_selection_get_filename()</function></link>.
</para>
<para>
Use <link linkend="gtk-file-selection-complete"><function>gtk_file_selection_complete()</function></link> to display files and directories
that match a given pattern. This can be used for example, to show only
*.txt files, or only files beginning with gtk*.
</para>
<para>
Simple file operations; create directory, delete file, and rename file, are available from buttons at the top of the dialog. These can be hidden using <link linkend="gtk-file-selection-hide-fileop-buttons"><function>gtk_file_selection_hide_fileop_buttons()</function></link> and shown again using <link linkend="gtk-file-selection-show-fileop-buttons"><function>gtk_file_selection_show_fileop_buttons()</function></link>.
</para>
<para>
<example>
<title>Getting a filename from the user.</title>
<programlisting>
/* The file selection widget and the string to store the chosen filename */
void store_filename (GtkWidget *widget, gpointer user_data) {
   GtkWidget *file_selector = GTK_WIDGET (user_data);
   const gchar *selected_filename;
   selected_filename = gtk_file_selection_get_filename (GTK_FILE_SELECTION (file_selector));
   g_print ("Selected filename: &percnt;s\n", selected_filename);
}
void create_file_selection (void) {
   GtkWidget *file_selector;
   /* Create the selector */
   file_selector = gtk_file_selection_new ("Please select a file for editing.");
   g_signal_connect (GTK_FILE_SELECTION (file_selector)->ok_button,
                     "clicked",
                     G_CALLBACK (store_filename),
                     file_selector);
   /* Ensure that the dialog box is destroyed when the user clicks a button. */
   g_signal_connect_swapped (GTK_FILE_SELECTION (file_selector)->ok_button,
                             "clicked",
                             G_CALLBACK (gtk_widget_destroy),
                             file_selector);
   g_signal_connect_swapped (GTK_FILE_SELECTION (file_selector)->cancel_button,
                             "clicked",
                             G_CALLBACK (gtk_widget_destroy),
                             file_selector);
   /* Display that dialog */
   gtk_widget_show (file_selector);
}
</programlisting>
</example>
</para>
</refsect1>

<refsect1 id="GtkFileSelection.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="GtkFileSelection-struct" role="struct">
<title>GtkFileSelection</title>
<indexterm zone="GtkFileSelection-struct" role="deprecated"><primary sortas="FileSelection">GtkFileSelection</primary></indexterm><programlisting>typedef struct {
  GtkWidget *dir_list;
  GtkWidget *file_list;
  GtkWidget *selection_entry;
  GtkWidget *selection_text;
  GtkWidget *main_vbox;
  GtkWidget *ok_button;
  GtkWidget *cancel_button;
  GtkWidget *help_button;
  GtkWidget *history_pulldown;
  GtkWidget *history_menu;
  GList     *history_list;
  GtkWidget *fileop_dialog;
  GtkWidget *fileop_entry;
  gchar     *fileop_file;
  gpointer   cmpl_state;
  
  GtkWidget *fileop_c_dir;
  GtkWidget *fileop_del_file;
  GtkWidget *fileop_ren_file;
  
  GtkWidget *button_area;
  GtkWidget *action_area;
} GtkFileSelection;
</programlisting>
<warning><para><literal>GtkFileSelection</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
The <link linkend="GtkFileSelection"><type>GtkFileSelection</type></link> struct contains the following <link linkend="GtkWidget"><type>GtkWidget</type></link> fields:
</para><variablelist role="struct">
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>dir_list</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>file_list</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>selection_entry</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>selection_text</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>main_vbox</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>ok_button</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>cancel_button</structfield>;</term>
<listitem><simpara>the two main buttons that signals should be connected 
    to in order to perform an action when the user hits either OK or
    Cancel.
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>help_button</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>history_pulldown</structfield>;</term>
<listitem><simpara>the <link linkend="GtkOptionMenu"><type>GtkOptionMenu</type></link> used to create the drop-down 
    directory history.
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>history_menu</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GList">GList</link>&#160;*<structfield>history_list</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>fileop_dialog</structfield>;</term>
<listitem><simpara>the dialog box used to display the <link linkend="GtkFileSelection"><type>GtkFileSelection</type></link>. 
   It can be customized by adding/removing widgets from it using the
   standard <link linkend="GtkDialog"><type>GtkDialog</type></link> functions.
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>fileop_entry</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="gchar">gchar</link>&#160;*<structfield>fileop_file</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="gpointer">gpointer</link>&#160;<structfield>cmpl_state</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>fileop_c_dir</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>fileop_del_file</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>fileop_ren_file</structfield>;</term>
<listitem><simpara>the buttons that appear at the top of the file 
    selection dialog. These "operation buttons" can be hidden and
    redisplayed with <link linkend="gtk-file-selection-hide-fileop-buttons"><function>gtk_file_selection_hide_fileop_buttons()</function></link> and
    <link linkend="gtk-file-selection-show-fileop-buttons"><function>gtk_file_selection_show_fileop_buttons()</function></link> respectively.
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>button_area</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry>
<term><link linkend="GtkWidget">GtkWidget</link>&#160;*<structfield>action_area</structfield>;</term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-file-selection-new" role="function" condition="deprecated:Use gtk_file_chooser_dialog_new() instead">
<title>gtk_file_selection_new ()</title>
<indexterm zone="gtk-file-selection-new" role="deprecated"><primary sortas="file_selection_new">gtk_file_selection_new</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link>*          gtk_file_selection_new              (const <link linkend="gchar">gchar</link> *title);</programlisting>
<warning><para><literal>gtk_file_selection_new</literal> is deprecated and should not be used in newly-written code. Use <link linkend="gtk-file-chooser-dialog-new"><function>gtk_file_chooser_dialog_new()</function></link> instead</para></warning>
<para>
Creates a new file selection dialog box. By default it will contain a <link linkend="GtkTreeView"><type>GtkTreeView</type></link> of the application's current working directory, and a file listing. Operation buttons that allow the user to create a directory, delete files and rename files, are also present.
</para><variablelist role="params">
<varlistentry><term><parameter>title</parameter>&#160;:</term>
<listitem><simpara>a message that will be placed in the file requestor's titlebar.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>the new file selection.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-file-selection-set-filename" role="function" condition="deprecated:">
<title>gtk_file_selection_set_filename ()</title>
<indexterm zone="gtk-file-selection-set-filename" role="deprecated"><primary sortas="file_selection_set_filename">gtk_file_selection_set_filename</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_file_selection_set_filename     (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel,
                                                         const <link linkend="gchar">gchar</link> *filename);</programlisting>
<warning><para><literal>gtk_file_selection_set_filename</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
Sets a default path for the file requestor. If <parameter>filename</parameter> includes a
directory path, then the requestor will open with that path as its
current working directory.
</para>
<para>
This has the consequence that in order to open the requestor with a 
working directory and an empty filename, <parameter>filename</parameter> must have a trailing
directory separator.
</para>
<para>
The encoding of <parameter>filename</parameter> is preferred GLib file name encoding, which
may not be UTF-8. See <link linkend="g-filename-from-utf8"><function>g_filename_from_utf8()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>filesel</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkFileSelection"><type>GtkFileSelection</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>filename</parameter>&#160;:</term>
<listitem><simpara>  a string to set as the default file name.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-file-selection-get-filename" role="function" condition="deprecated:">
<title>gtk_file_selection_get_filename ()</title>
<indexterm zone="gtk-file-selection-get-filename" role="deprecated"><primary sortas="file_selection_get_filename">gtk_file_selection_get_filename</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link>*        gtk_file_selection_get_filename     (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel);</programlisting>
<warning><para><literal>gtk_file_selection_get_filename</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
This function returns the selected filename in the GLib file name
encoding. To convert to UTF-8, call <link linkend="g-filename-to-utf8"><function>g_filename_to_utf8()</function></link>. The
returned string points to a statically allocated buffer and should
be copied if you plan to keep it around.
</para>
<para>
If no file is selected then the selected directory path is returned.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>filesel</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkFileSelection"><type>GtkFileSelection</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> currently-selected filename in the on-disk encoding.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-file-selection-complete" role="function" condition="deprecated:">
<title>gtk_file_selection_complete ()</title>
<indexterm zone="gtk-file-selection-complete" role="deprecated"><primary sortas="file_selection_complete">gtk_file_selection_complete</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_file_selection_complete         (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel,
                                                         const <link linkend="gchar">gchar</link> *pattern);</programlisting>
<warning><para><literal>gtk_file_selection_complete</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
Will attempt to match <parameter>pattern</parameter> to a valid filenames or subdirectories in the current directory. If a match can be made, the matched filename will appear in the text entry field of the file selection dialog.
If a partial match can be made, the "Files" list will contain those
file names which have been partially matched, and the "Folders"
list those directories which have been partially matched.
</para><variablelist role="params">
<varlistentry><term><parameter>filesel</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GtkFileSelection"><type>GtkFileSelection</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>pattern</parameter>&#160;:</term>
<listitem><simpara>a string of characters which may or may not match any filenames in the current directory.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-file-selection-show-fileop-buttons" role="function" condition="deprecated:">
<title>gtk_file_selection_show_fileop_buttons ()</title>
<indexterm zone="gtk-file-selection-show-fileop-buttons" role="deprecated"><primary sortas="file_selection_show_fileop_buttons">gtk_file_selection_show_fileop_buttons</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_file_selection_show_fileop_buttons
                                                        (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel);</programlisting>
<warning><para><literal>gtk_file_selection_show_fileop_buttons</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
Shows the file operation buttons, if they have previously been hidden. The rest of the widgets in the dialog will be resized accordingly.
</para><variablelist role="params">
<varlistentry><term><parameter>filesel</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GtkFileSelection"><type>GtkFileSelection</type></link>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-file-selection-hide-fileop-buttons" role="function" condition="deprecated:">
<title>gtk_file_selection_hide_fileop_buttons ()</title>
<indexterm zone="gtk-file-selection-hide-fileop-buttons" role="deprecated"><primary sortas="file_selection_hide_fileop_buttons">gtk_file_selection_hide_fileop_buttons</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_file_selection_hide_fileop_buttons
                                                        (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel);</programlisting>
<warning><para><literal>gtk_file_selection_hide_fileop_buttons</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
Hides the file operation buttons that normally appear at the top of the dialog. Useful if you wish to create a custom file selector, based on <link linkend="GtkFileSelection"><type>GtkFileSelection</type></link>.
</para><variablelist role="params">
<varlistentry><term><parameter>filesel</parameter>&#160;:</term>
<listitem><simpara>a <link linkend="GtkFileSelection"><type>GtkFileSelection</type></link>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-file-selection-get-selections" role="function" condition="deprecated:">
<title>gtk_file_selection_get_selections ()</title>
<indexterm zone="gtk-file-selection-get-selections" role="deprecated"><primary sortas="file_selection_get_selections">gtk_file_selection_get_selections</primary></indexterm><programlisting><link linkend="gchar">gchar</link>**             gtk_file_selection_get_selections   (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel);</programlisting>
<warning><para><literal>gtk_file_selection_get_selections</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
Retrieves the list of file selections the user has made in the dialog box.
This function is intended for use when the user can select multiple files
in the file list. 
</para>
<para>
The filenames are in the GLib file name encoding. To convert to
UTF-8, call <link linkend="g-filename-to-utf8"><function>g_filename_to_utf8()</function></link> on each string.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>filesel</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkFileSelection"><type>GtkFileSelection</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a newly-allocated <link linkend="NULL--CAPS"><literal>NULL</literal></link>-terminated array of strings. Use
<link linkend="g-strfreev"><function>g_strfreev()</function></link> to free it.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-file-selection-set-select-multiple" role="function" condition="deprecated:">
<title>gtk_file_selection_set_select_multiple ()</title>
<indexterm zone="gtk-file-selection-set-select-multiple" role="deprecated"><primary sortas="file_selection_set_select_multiple">gtk_file_selection_set_select_multiple</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_file_selection_set_select_multiple
                                                        (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel,
                                                         <link linkend="gboolean">gboolean</link> select_multiple);</programlisting>
<warning><para><literal>gtk_file_selection_set_select_multiple</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
Sets whether the user is allowed to select multiple files in the file list.
Use <link linkend="gtk-file-selection-get-selections"><function>gtk_file_selection_get_selections()</function></link> to get the list of selected files.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>filesel</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkFileSelection"><type>GtkFileSelection</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>select_multiple</parameter>&#160;:</term>
<listitem><simpara> whether or not the user is allowed to select multiple
files in the file list.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-file-selection-get-select-multiple" role="function" condition="deprecated:">
<title>gtk_file_selection_get_select_multiple ()</title>
<indexterm zone="gtk-file-selection-get-select-multiple" role="deprecated"><primary sortas="file_selection_get_select_multiple">gtk_file_selection_get_select_multiple</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_file_selection_get_select_multiple
                                                        (<link linkend="GtkFileSelection">GtkFileSelection</link> *filesel);</programlisting>
<warning><para><literal>gtk_file_selection_get_select_multiple</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
Determines whether or not the user is allowed to select multiple files in
the file list. See <link linkend="gtk-file-selection-set-select-multiple"><function>gtk_file_selection_set_select_multiple()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>filesel</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkFileSelection"><type>GtkFileSelection</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if the user is allowed to select multiple files in the
file list
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1 id="GtkFileSelection.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkFileSelection--filename" role="property"><title>The <literal>&quot;filename&quot;</literal> property</title>
<indexterm zone="GtkFileSelection--filename"><primary sortas="FileSelection:filename">GtkFileSelection:filename</primary></indexterm><programlisting>  &quot;filename&quot;                 <link linkend="gchar">gchar</link>*                : Read / Write</programlisting>
<para>The currently selected filename.</para><para>Default value: NULL</para>
</refsect2>
<refsect2 id="GtkFileSelection--select-multiple" role="property"><title>The <literal>&quot;select-multiple&quot;</literal> property</title>
<indexterm zone="GtkFileSelection--select-multiple"><primary sortas="FileSelection:select-multiple">GtkFileSelection:select-multiple</primary></indexterm><programlisting>  &quot;select-multiple&quot;          <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>Whether to allow multiple files to be selected.</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkFileSelection--show-fileops" role="property"><title>The <literal>&quot;show-fileops&quot;</literal> property</title>
<indexterm zone="GtkFileSelection--show-fileops"><primary sortas="FileSelection:show-fileops">GtkFileSelection:show-fileops</primary></indexterm><programlisting>  &quot;show-fileops&quot;             <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>Whether buttons for creating/manipulating files should be displayed.</para><para>Default value: TRUE</para>
</refsect2>
</refsect1>



<refsect1 id="GtkFileSelection.see-also">
<title>See Also</title>
<para>
<variablelist>
<varlistentry>
<term><link linkend="GtkDialog"><type>GtkDialog</type></link></term>
<listitem><para>Add your own widgets into the <link linkend="GtkFileSelection"><type>GtkFileSelection</type></link>.</para></listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>

</refentry>
