<?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 pi "&#960;">
<!ENTITY solidus "&#8260;">
]>
<refentry id="GtkFileChooserButton">
<refmeta>
<refentrytitle role="top_of_page" id="GtkFileChooserButton.top_of_page">GtkFileChooserButton</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkFileChooserButton</refname>
<refpurpose>A button to launch a file chooser dialog</refpurpose>
</refnamediv>

<refsect1 id="GtkFileChooserButton.functions" role="functions_proto">
<title role="functions_proto.title">Functions</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="functions_proto_type" colwidth="150px"/>
<colspec colname="functions_proto_name"/>
<tbody>
<row><entry role="function_type"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-file-chooser-button-new">gtk_file_chooser_button_new</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-file-chooser-button-new-with-dialog">gtk_file_chooser_button_new_with_dialog</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-file-chooser-button-get-title">gtk_file_chooser_button_get_title</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-file-chooser-button-set-title">gtk_file_chooser_button_set_title</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gint"><returnvalue>gint</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-file-chooser-button-get-width-chars">gtk_file_chooser_button_get_width_chars</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-file-chooser-button-set-width-chars">gtk_file_chooser_button_set_width_chars</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-file-chooser-button-get-modal">gtk_file_chooser_button_get_modal</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-file-chooser-button-set-modal">gtk_file_chooser_button_set_modal</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkFileChooserButton.properties" role="properties">
<title role="properties.title">Properties</title>
<informaltable frame="none">
<tgroup cols="3">
<colspec colname="properties_type" colwidth="150px"/>
<colspec colname="properties_name" colwidth="300px"/>
<colspec colname="properties_flags" colwidth="200px"/>
<tbody>
<row><entry role="property_type"><link linkend="GtkFileChooser"><type>GtkFileChooser</type></link>&#160;*</entry><entry role="property_name"><link linkend="GtkFileChooserButton--dialog">dialog</link></entry><entry role="property_flags">Write / Construct&#160;Only</entry></row>
<row><entry role="property_type"><link linkend="gboolean"><type>gboolean</type></link></entry><entry role="property_name"><link linkend="GtkFileChooserButton--modal">modal</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gchar"><type>gchar</type></link>&#160;*</entry><entry role="property_name"><link linkend="GtkFileChooserButton--title">title</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gint"><type>gint</type></link></entry><entry role="property_name"><link linkend="GtkFileChooserButton--width-chars">width-chars</link></entry><entry role="property_flags">Read / Write</entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkFileChooserButton.signals" role="signal_proto">
<title role="signal_proto.title">Signals</title>
<informaltable frame="none">
<tgroup cols="3">
<colspec colname="signal_proto_type" colwidth="150px"/>
<colspec colname="signal_proto_name" colwidth="300px"/>
<colspec colname="signal_proto_flags" colwidth="200px"/>
<tbody>
<row><entry role="signal_type"><link linkend="void"><returnvalue>void</returnvalue></link></entry><entry role="signal_name"><link linkend="GtkFileChooserButton-file-set">file-set</link></entry><entry role="signal_flags"><link linkend="G-SIGNAL-RUN-FIRST:CAPS">Run First</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkFileChooserButton.other" role="other_proto">
<title role="other_proto.title">Types and Values</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="other_proto_type" colwidth="150px"/>
<colspec colname="other_proto_name"/>
<tbody>
<row><entry role="datatype_keyword"></entry><entry role="function_name"><link linkend="GtkFileChooserButton-struct">GtkFileChooserButton</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkFileChooserButton.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<screen>    <link linkend="GObject">GObject</link>
    <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
        <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GtkWidget">GtkWidget</link>
            <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> GtkFileChooserButton
</screen>
</refsect1>
<refsect1 id="GtkFileChooserButton.implemented-interfaces" role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GtkFileChooserButton implements
 <link linkend="AtkImplementorIface">AtkImplementorIface</link>,  <link linkend="GtkBuildable">GtkBuildable</link>,  <link linkend="GtkConstraintTarget">GtkConstraintTarget</link> and  <link linkend="GtkFileChooser">GtkFileChooser</link>.</para>

</refsect1>

<refsect1 id="GtkFileChooserButton.includes"><title>Includes</title><synopsis>#include &lt;gtk/gtk.h&gt;
</synopsis></refsect1>

<refsect1 id="GtkFileChooserButton.description" role="desc">
<title role="desc.title">Description</title>
<para>The <link linkend="GtkFileChooserButton"><type>GtkFileChooserButton</type></link> is a widget that lets the user select a
file.  It implements the <link linkend="GtkFileChooser"><type>GtkFileChooser</type></link> interface.  Visually, it is a
file name with a button to bring up a <link linkend="GtkFileChooserDialog"><type>GtkFileChooserDialog</type></link>.
The user can then use that dialog to change the file associated with
that button.  This widget does not support setting the
<link linkend="GtkFileChooser--select-multiple"><type>“select-multiple”</type></link> property to <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>.</para>
<refsect3><title>Create a button to let the user select a file in /etc</title><informalexample><programlisting role="example"><![CDATA[
{
  GtkWidget *button;
  GFile *cwd = g_file_new_for_path ("/etc");

  button = gtk_file_chooser_button_new (_("Select a file"),
                                        GTK_FILE_CHOOSER_ACTION_OPEN);
  gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (button), cwd);
  g_object_unref (cwd);
}
]]></programlisting></informalexample>
<para></para>
<para>The <link linkend="GtkFileChooserButton"><type>GtkFileChooserButton</type></link> supports the <link linkend="GtkFileChooserActions"><type>GtkFileChooserActions</type></link>
<link linkend="GTK-FILE-CHOOSER-ACTION-OPEN:CAPS"><literal>GTK_FILE_CHOOSER_ACTION_OPEN</literal></link> and <link linkend="GTK-FILE-CHOOSER-ACTION-SELECT-FOLDER:CAPS"><literal>GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER</literal></link>.</para>
<blockquote>
<para>The <link linkend="GtkFileChooserButton"><type>GtkFileChooserButton</type></link> will ellipsize the label, and will thus
request little horizontal space.  To give the button more space,
you should call <link linkend="gtk-widget-get-preferred-size"><function>gtk_widget_get_preferred_size()</function></link>,
<link linkend="gtk-file-chooser-button-set-width-chars"><function>gtk_file_chooser_button_set_width_chars()</function></link>, or pack the button in
such a way that other interface elements give space to the
widget.</para>
</blockquote>
</refsect3>
<refsect2><title>CSS nodes</title><para>GtkFileChooserButton has a single CSS node with the name “filechooserbutton”.</para>
</refsect2>

</refsect1>
<refsect1 id="GtkFileChooserButton.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-file-chooser-button-new" role="function">
<title>gtk_file_chooser_button_new&#160;()</title>
<indexterm zone="gtk-file-chooser-button-new"><primary>gtk_file_chooser_button_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_file_chooser_button_new (<parameter>const <link linkend="gchar"><type>gchar</type></link> *title</parameter>,
                             <parameter><link linkend="GtkFileChooserAction"><type>GtkFileChooserAction</type></link> action</parameter>);</programlisting>
<para>Creates a new file-selecting button widget.</para>
<refsect3 id="gtk-file-chooser-button-new.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>title</para></entry>
<entry role="parameter_description"><para>the title of the browse dialog.</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>action</para></entry>
<entry role="parameter_description"><para>the open mode for the widget.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-file-chooser-button-new.returns" role="returns">
<title>Returns</title>
<para> a new button widget.</para>
</refsect3></refsect2>
<refsect2 id="gtk-file-chooser-button-new-with-dialog" role="function">
<title>gtk_file_chooser_button_new_with_dialog&#160;()</title>
<indexterm zone="gtk-file-chooser-button-new-with-dialog"><primary>gtk_file_chooser_button_new_with_dialog</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_file_chooser_button_new_with_dialog
                               (<parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *dialog</parameter>);</programlisting>
<para>Creates a <link linkend="GtkFileChooserButton"><type>GtkFileChooserButton</type></link> widget which uses <parameter>dialog</parameter>
 as its
file-picking window.</para>
<para>Note that <parameter>dialog</parameter>
 must be a <link linkend="GtkDialog"><type>GtkDialog</type></link> (or subclass) which
implements the <link linkend="GtkFileChooser"><type>GtkFileChooser</type></link> interface and must not have
<link linkend="GTK-DIALOG-DESTROY-WITH-PARENT:CAPS"><literal>GTK_DIALOG_DESTROY_WITH_PARENT</literal></link> set.</para>
<para>Also note that the dialog needs to have its confirmative button
added with response <link linkend="GTK-RESPONSE-ACCEPT:CAPS"><literal>GTK_RESPONSE_ACCEPT</literal></link> or <link linkend="GTK-RESPONSE-OK:CAPS"><literal>GTK_RESPONSE_OK</literal></link> in
order for the button to take over the file selected in the dialog.</para>
<refsect3 id="gtk-file-chooser-button-new-with-dialog.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>dialog</para></entry>
<entry role="parameter_description"><para>the widget to use as dialog. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>type</acronym> Gtk.Dialog]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-file-chooser-button-new-with-dialog.returns" role="returns">
<title>Returns</title>
<para> a new button widget.</para>
</refsect3></refsect2>
<refsect2 id="gtk-file-chooser-button-get-title" role="function">
<title>gtk_file_chooser_button_get_title&#160;()</title>
<indexterm zone="gtk-file-chooser-button-get-title"><primary>gtk_file_chooser_button_get_title</primary></indexterm>
<programlisting language="C">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
gtk_file_chooser_button_get_title (<parameter><link linkend="GtkFileChooserButton"><type>GtkFileChooserButton</type></link> *button</parameter>);</programlisting>
<para>Retrieves the title of the browse dialog used by <parameter>button</parameter>
. The returned value
should not be modified or freed.</para>
<refsect3 id="gtk-file-chooser-button-get-title.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>button</para></entry>
<entry role="parameter_description"><para>the button widget to examine.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-file-chooser-button-get-title.returns" role="returns">
<title>Returns</title>
<para> a pointer to the browse dialog’s title.</para>
</refsect3></refsect2>
<refsect2 id="gtk-file-chooser-button-set-title" role="function">
<title>gtk_file_chooser_button_set_title&#160;()</title>
<indexterm zone="gtk-file-chooser-button-set-title"><primary>gtk_file_chooser_button_set_title</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_file_chooser_button_set_title (<parameter><link linkend="GtkFileChooserButton"><type>GtkFileChooserButton</type></link> *button</parameter>,
                                   <parameter>const <link linkend="gchar"><type>gchar</type></link> *title</parameter>);</programlisting>
<para>Modifies the <parameter>title</parameter>
 of the browse dialog used by <parameter>button</parameter>
.</para>
<refsect3 id="gtk-file-chooser-button-set-title.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>button</para></entry>
<entry role="parameter_description"><para>the button widget to modify.</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>title</para></entry>
<entry role="parameter_description"><para>the new browse dialog title.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-file-chooser-button-get-width-chars" role="function">
<title>gtk_file_chooser_button_get_width_chars&#160;()</title>
<indexterm zone="gtk-file-chooser-button-get-width-chars"><primary>gtk_file_chooser_button_get_width_chars</primary></indexterm>
<programlisting language="C"><link linkend="gint"><returnvalue>gint</returnvalue></link>
gtk_file_chooser_button_get_width_chars
                               (<parameter><link linkend="GtkFileChooserButton"><type>GtkFileChooserButton</type></link> *button</parameter>);</programlisting>
<para>Retrieves the width in characters of the <parameter>button</parameter>
 widget’s entry and/or label.</para>
<refsect3 id="gtk-file-chooser-button-get-width-chars.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>button</para></entry>
<entry role="parameter_description"><para>the button widget to examine.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-file-chooser-button-get-width-chars.returns" role="returns">
<title>Returns</title>
<para> an integer width (in characters) that the button will use to size itself.</para>
</refsect3></refsect2>
<refsect2 id="gtk-file-chooser-button-set-width-chars" role="function">
<title>gtk_file_chooser_button_set_width_chars&#160;()</title>
<indexterm zone="gtk-file-chooser-button-set-width-chars"><primary>gtk_file_chooser_button_set_width_chars</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_file_chooser_button_set_width_chars
                               (<parameter><link linkend="GtkFileChooserButton"><type>GtkFileChooserButton</type></link> *button</parameter>,
                                <parameter><link linkend="gint"><type>gint</type></link> n_chars</parameter>);</programlisting>
<para>Sets the width (in characters) that <parameter>button</parameter>
 will use to <parameter>n_chars</parameter>
.</para>
<refsect3 id="gtk-file-chooser-button-set-width-chars.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>button</para></entry>
<entry role="parameter_description"><para>the button widget to examine.</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>n_chars</para></entry>
<entry role="parameter_description"><para>the new width, in characters.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-file-chooser-button-get-modal" role="function">
<title>gtk_file_chooser_button_get_modal&#160;()</title>
<indexterm zone="gtk-file-chooser-button-get-modal"><primary>gtk_file_chooser_button_get_modal</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_file_chooser_button_get_modal (<parameter><link linkend="GtkFileChooserButton"><type>GtkFileChooserButton</type></link> *button</parameter>);</programlisting>
<para>Gets whether the dialog is modal.</para>
<refsect3 id="gtk-file-chooser-button-get-modal.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>button</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkFileChooserButton"><type>GtkFileChooserButton</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-file-chooser-button-get-modal.returns" role="returns">
<title>Returns</title>
<para> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the dialog is modal</para>
</refsect3></refsect2>
<refsect2 id="gtk-file-chooser-button-set-modal" role="function">
<title>gtk_file_chooser_button_set_modal&#160;()</title>
<indexterm zone="gtk-file-chooser-button-set-modal"><primary>gtk_file_chooser_button_set_modal</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_file_chooser_button_set_modal (<parameter><link linkend="GtkFileChooserButton"><type>GtkFileChooserButton</type></link> *button</parameter>,
                                   <parameter><link linkend="gboolean"><type>gboolean</type></link> modal</parameter>);</programlisting>
<para>Sets whether the dialog should be modal.</para>
<refsect3 id="gtk-file-chooser-button-set-modal.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>button</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkFileChooserButton"><type>GtkFileChooserButton</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>modal</para></entry>
<entry role="parameter_description"><para><link linkend="TRUE:CAPS"><literal>TRUE</literal></link> to make the dialog modal</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>

</refsect1>
<refsect1 id="GtkFileChooserButton.other_details" role="details">
<title role="details.title">Types and Values</title>
<refsect2 id="GtkFileChooserButton-struct" role="struct">
<title>GtkFileChooserButton</title>
<indexterm zone="GtkFileChooserButton-struct"><primary>GtkFileChooserButton</primary></indexterm>
<programlisting language="C">typedef struct _GtkFileChooserButton GtkFileChooserButton;</programlisting>
</refsect2>

</refsect1>
<refsect1 id="GtkFileChooserButton.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkFileChooserButton--dialog" role="property"><title>The <literal>“dialog”</literal> property</title>
<indexterm zone="GtkFileChooserButton--dialog"><primary>GtkFileChooserButton:dialog</primary></indexterm>
<programlisting>  “dialog”                   <link linkend="GtkFileChooser"><type>GtkFileChooser</type></link>&#160;*</programlisting>
<para>Instance of the <link linkend="GtkFileChooserDialog"><type>GtkFileChooserDialog</type></link> associated with the button.</para>
<para>Owner: GtkFileChooserButton</para>
<para>Flags: Write / Construct&#160;Only</para>
</refsect2>
<refsect2 id="GtkFileChooserButton--modal" role="property"><title>The <literal>“modal”</literal> property</title>
<indexterm zone="GtkFileChooserButton--modal"><primary>GtkFileChooserButton:modal</primary></indexterm>
<programlisting>  “modal”                    <link linkend="gboolean"><type>gboolean</type></link></programlisting>
<para>Whether to make the dialog modal.</para><para>Owner: GtkFileChooserButton</para>
<para>Flags: Read / Write</para>
<para>Default value: TRUE</para>
</refsect2>
<refsect2 id="GtkFileChooserButton--title" role="property"><title>The <literal>“title”</literal> property</title>
<indexterm zone="GtkFileChooserButton--title"><primary>GtkFileChooserButton:title</primary></indexterm>
<programlisting>  “title”                    <link linkend="gchar"><type>gchar</type></link>&#160;*</programlisting>
<para>Title to put on the <link linkend="GtkFileChooserDialog"><type>GtkFileChooserDialog</type></link> associated with the button.</para>
<para>Owner: GtkFileChooserButton</para>
<para>Flags: Read / Write</para>
<para>Default value: "Select a File"</para>
</refsect2>
<refsect2 id="GtkFileChooserButton--width-chars" role="property"><title>The <literal>“width-chars”</literal> property</title>
<indexterm zone="GtkFileChooserButton--width-chars"><primary>GtkFileChooserButton:width-chars</primary></indexterm>
<programlisting>  “width-chars”              <link linkend="gint"><type>gint</type></link></programlisting>
<para>The width of the entry and label inside the button, in characters.</para>
<para>Owner: GtkFileChooserButton</para>
<para>Flags: Read / Write</para>
<para>Allowed values: &gt;= -1</para>
<para>Default value: -1</para>
</refsect2>

</refsect1>
<refsect1 id="GtkFileChooserButton.signal-details" role="signals">
<title role="signals.title">Signal Details</title>
<refsect2 id="GtkFileChooserButton-file-set" role="signal"><title>The <literal>“file-set”</literal> signal</title>
<indexterm zone="GtkFileChooserButton-file-set"><primary>GtkFileChooserButton::file-set</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
user_function (<link linkend="GtkFileChooserButton"><type>GtkFileChooserButton</type></link> *widget,
               <link linkend="gpointer"><type>gpointer</type></link>              user_data)</programlisting>
<para>The ::file-set signal is emitted when the user selects a file.</para>
<para>Note that this signal is only emitted when the user
changes the file.</para>
<refsect3 id="GtkFileChooserButton-file-set.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>widget</para></entry>
<entry role="parameter_description"><para>the object which received the signal.</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><simpara>user_data</simpara></entry>
<entry role="parameter_description"><simpara>user data set when the signal handler was connected.</simpara></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><para>Flags: <link linkend="G-SIGNAL-RUN-FIRST:CAPS">Run First</link></para>
</refsect2>
</refsect1>
<refsect1 id="GtkFileChooserButton.see-also">
<title>See Also</title>
<para><link linkend="GtkFileChooserDialog"><type>GtkFileChooserDialog</type></link></para>

</refsect1>

</refentry>
