<?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="GtkAppChooserDialog">
<refmeta>
<refentrytitle role="top_of_page" id="GtkAppChooserDialog.top_of_page">GtkAppChooserDialog</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkAppChooserDialog</refname>
<refpurpose>An application chooser dialog</refpurpose>
</refnamediv>

<refsect1 id="GtkAppChooserDialog.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-app-chooser-dialog-new">gtk_app_chooser_dialog_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-app-chooser-dialog-new-for-content-type">gtk_app_chooser_dialog_new_for_content_type</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-app-chooser-dialog-get-widget">gtk_app_chooser_dialog_get_widget</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-app-chooser-dialog-set-heading">gtk_app_chooser_dialog_set_heading</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-app-chooser-dialog-get-heading">gtk_app_chooser_dialog_get_heading</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkAppChooserDialog.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="GFile"><type>GFile</type></link>&#160;*</entry><entry role="property_name"><link linkend="GtkAppChooserDialog--gfile">gfile</link></entry><entry role="property_flags">Read / Write / Construct&#160;Only</entry></row>
<row><entry role="property_type"><link linkend="gchar"><type>gchar</type></link>&#160;*</entry><entry role="property_name"><link linkend="GtkAppChooserDialog--heading">heading</link></entry><entry role="property_flags">Read / Write</entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkAppChooserDialog.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="GtkAppChooserDialog-struct">GtkAppChooserDialog</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkAppChooserDialog.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> <link linkend="GtkWindow">GtkWindow</link>
                <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GtkDialog">GtkDialog</link>
                    <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> GtkAppChooserDialog
</screen>
</refsect1>
<refsect1 id="GtkAppChooserDialog.implemented-interfaces" role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GtkAppChooserDialog implements
 <link linkend="AtkImplementorIface">AtkImplementorIface</link>,  <link linkend="GtkBuildable">GtkBuildable</link>,  <link linkend="GtkConstraintTarget">GtkConstraintTarget</link>,  <link linkend="GtkNative">GtkNative</link>,  <link linkend="GtkShortcutManager">GtkShortcutManager</link>,  <link linkend="GtkRoot">GtkRoot</link> and  <link linkend="GtkAppChooser">GtkAppChooser</link>.</para>

</refsect1>

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

<refsect1 id="GtkAppChooserDialog.description" role="desc">
<title role="desc.title">Description</title>
<para><link linkend="GtkAppChooserDialog"><type>GtkAppChooserDialog</type></link> shows a <link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> inside a <link linkend="GtkDialog"><type>GtkDialog</type></link>.</para>
<para>Note that <link linkend="GtkAppChooserDialog"><type>GtkAppChooserDialog</type></link> does not have any interesting methods
of its own. Instead, you should get the embedded <link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link>
using <link linkend="gtk-app-chooser-dialog-get-widget"><function>gtk_app_chooser_dialog_get_widget()</function></link> and call its methods if
the generic <link linkend="GtkAppChooser"><type>GtkAppChooser</type></link> interface is not sufficient for your needs.</para>
<para>To set the heading that is shown above the <link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link>,
use <link linkend="gtk-app-chooser-dialog-set-heading"><function>gtk_app_chooser_dialog_set_heading()</function></link>.</para>

</refsect1>
<refsect1 id="GtkAppChooserDialog.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-app-chooser-dialog-new" role="function">
<title>gtk_app_chooser_dialog_new&#160;()</title>
<indexterm zone="gtk-app-chooser-dialog-new"><primary>gtk_app_chooser_dialog_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_app_chooser_dialog_new (<parameter><link linkend="GtkWindow"><type>GtkWindow</type></link> *parent</parameter>,
                            <parameter><link linkend="GtkDialogFlags"><type>GtkDialogFlags</type></link> flags</parameter>,
                            <parameter><link linkend="GFile"><type>GFile</type></link> *file</parameter>);</programlisting>
<para>Creates a new <link linkend="GtkAppChooserDialog"><type>GtkAppChooserDialog</type></link> for the provided <link linkend="GFile"><type>GFile</type></link>,
to allow the user to select an application for it.</para>
<refsect3 id="gtk-app-chooser-dialog-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>parent</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkWindow"><type>GtkWindow</type></link>, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>allow-none</acronym>]</emphasis></entry></row>
<row><entry role="parameter_name"><para>flags</para></entry>
<entry role="parameter_description"><para>flags for this dialog</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>file</para></entry>
<entry role="parameter_description"><para>a <link linkend="GFile"><type>GFile</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-app-chooser-dialog-new.returns" role="returns">
<title>Returns</title>
<para> a newly created <link linkend="GtkAppChooserDialog"><type>GtkAppChooserDialog</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-dialog-new-for-content-type" role="function">
<title>gtk_app_chooser_dialog_new_for_content_type&#160;()</title>
<indexterm zone="gtk-app-chooser-dialog-new-for-content-type"><primary>gtk_app_chooser_dialog_new_for_content_type</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_app_chooser_dialog_new_for_content_type
                               (<parameter><link linkend="GtkWindow"><type>GtkWindow</type></link> *parent</parameter>,
                                <parameter><link linkend="GtkDialogFlags"><type>GtkDialogFlags</type></link> flags</parameter>,
                                <parameter>const <link linkend="gchar"><type>gchar</type></link> *content_type</parameter>);</programlisting>
<para>Creates a new <link linkend="GtkAppChooserDialog"><type>GtkAppChooserDialog</type></link> for the provided content type,
to allow the user to select an application for it.</para>
<refsect3 id="gtk-app-chooser-dialog-new-for-content-type.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>parent</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkWindow"><type>GtkWindow</type></link>, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>allow-none</acronym>]</emphasis></entry></row>
<row><entry role="parameter_name"><para>flags</para></entry>
<entry role="parameter_description"><para>flags for this dialog</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>content_type</para></entry>
<entry role="parameter_description"><para>a content type string</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-app-chooser-dialog-new-for-content-type.returns" role="returns">
<title>Returns</title>
<para> a newly created <link linkend="GtkAppChooserDialog"><type>GtkAppChooserDialog</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-dialog-get-widget" role="function">
<title>gtk_app_chooser_dialog_get_widget&#160;()</title>
<indexterm zone="gtk-app-chooser-dialog-get-widget"><primary>gtk_app_chooser_dialog_get_widget</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_app_chooser_dialog_get_widget (<parameter><link linkend="GtkAppChooserDialog"><type>GtkAppChooserDialog</type></link> *self</parameter>);</programlisting>
<para>Returns the <link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> of this dialog.</para>
<refsect3 id="gtk-app-chooser-dialog-get-widget.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>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAppChooserDialog"><type>GtkAppChooserDialog</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-app-chooser-dialog-get-widget.returns" role="returns">
<title>Returns</title>
<para>the <link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> of <parameter>self</parameter>
. </para>
<para><emphasis role="annotation">[<acronym>transfer none</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-dialog-set-heading" role="function">
<title>gtk_app_chooser_dialog_set_heading&#160;()</title>
<indexterm zone="gtk-app-chooser-dialog-set-heading"><primary>gtk_app_chooser_dialog_set_heading</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_app_chooser_dialog_set_heading (<parameter><link linkend="GtkAppChooserDialog"><type>GtkAppChooserDialog</type></link> *self</parameter>,
                                    <parameter>const <link linkend="gchar"><type>gchar</type></link> *heading</parameter>);</programlisting>
<para>Sets the text to display at the top of the dialog.
If the heading is not set, the dialog displays a default text.</para>
<refsect3 id="gtk-app-chooser-dialog-set-heading.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>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAppChooserDialog"><type>GtkAppChooserDialog</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>heading</para></entry>
<entry role="parameter_description"><para>a string containing Pango markup</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-dialog-get-heading" role="function">
<title>gtk_app_chooser_dialog_get_heading&#160;()</title>
<indexterm zone="gtk-app-chooser-dialog-get-heading"><primary>gtk_app_chooser_dialog_get_heading</primary></indexterm>
<programlisting language="C">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
gtk_app_chooser_dialog_get_heading (<parameter><link linkend="GtkAppChooserDialog"><type>GtkAppChooserDialog</type></link> *self</parameter>);</programlisting>
<para>Returns the text to display at the top of the dialog.</para>
<refsect3 id="gtk-app-chooser-dialog-get-heading.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>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAppChooserDialog"><type>GtkAppChooserDialog</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-app-chooser-dialog-get-heading.returns" role="returns">
<title>Returns</title>
<para>the text to display at the top of the dialog, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>, in which
case a default text is displayed. </para>
<para><emphasis role="annotation">[<acronym>nullable</acronym>]</emphasis></para>
</refsect3></refsect2>

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

</refsect1>
<refsect1 id="GtkAppChooserDialog.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkAppChooserDialog--gfile" role="property"><title>The <literal>“gfile”</literal> property</title>
<indexterm zone="GtkAppChooserDialog--gfile"><primary>GtkAppChooserDialog:gfile</primary></indexterm>
<programlisting>  “gfile”                    <link linkend="GFile"><type>GFile</type></link>&#160;*</programlisting>
<para>The GFile used by the <link linkend="GtkAppChooserDialog"><type>GtkAppChooserDialog</type></link>.
The dialog's <link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> content type will be guessed from the
file, if present.</para>
<para>Owner: GtkAppChooserDialog</para>
<para>Flags: Read / Write / Construct&#160;Only</para>
</refsect2>
<refsect2 id="GtkAppChooserDialog--heading" role="property"><title>The <literal>“heading”</literal> property</title>
<indexterm zone="GtkAppChooserDialog--heading"><primary>GtkAppChooserDialog:heading</primary></indexterm>
<programlisting>  “heading”                  <link linkend="gchar"><type>gchar</type></link>&#160;*</programlisting>
<para>The text to show at the top of the dialog.
The string may contain Pango markup.</para>
<para>Owner: GtkAppChooserDialog</para>
<para>Flags: Read / Write</para>
<para>Default value: NULL</para>
</refsect2>

</refsect1>

</refentry>
