<?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="GtkAppChooserWidget">
<refmeta>
<refentrytitle role="top_of_page" id="GtkAppChooserWidget.top_of_page">GtkAppChooserWidget</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkAppChooserWidget</refname>
<refpurpose>Application chooser widget that can be embedded in other widgets</refpurpose>
</refnamediv>

<refsect1 id="GtkAppChooserWidget.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-widget-new">gtk_app_chooser_widget_new</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-widget-set-show-default">gtk_app_chooser_widget_set_show_default</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-app-chooser-widget-get-show-default">gtk_app_chooser_widget_get_show_default</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-widget-set-show-recommended">gtk_app_chooser_widget_set_show_recommended</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-app-chooser-widget-get-show-recommended">gtk_app_chooser_widget_get_show_recommended</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-widget-set-show-fallback">gtk_app_chooser_widget_set_show_fallback</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-app-chooser-widget-get-show-fallback">gtk_app_chooser_widget_get_show_fallback</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-widget-set-show-other">gtk_app_chooser_widget_set_show_other</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-app-chooser-widget-get-show-other">gtk_app_chooser_widget_get_show_other</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-widget-set-show-all">gtk_app_chooser_widget_set_show_all</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-app-chooser-widget-get-show-all">gtk_app_chooser_widget_get_show_all</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-widget-set-default-text">gtk_app_chooser_widget_set_default_text</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-widget-get-default-text">gtk_app_chooser_widget_get_default_text</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkAppChooserWidget.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="gchar"><type>gchar</type></link>&#160;*</entry><entry role="property_name"><link linkend="GtkAppChooserWidget--default-text">default-text</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gboolean"><type>gboolean</type></link></entry><entry role="property_name"><link linkend="GtkAppChooserWidget--show-all">show-all</link></entry><entry role="property_flags">Read / Write / Construct</entry></row>
<row><entry role="property_type"><link linkend="gboolean"><type>gboolean</type></link></entry><entry role="property_name"><link linkend="GtkAppChooserWidget--show-default">show-default</link></entry><entry role="property_flags">Read / Write / Construct</entry></row>
<row><entry role="property_type"><link linkend="gboolean"><type>gboolean</type></link></entry><entry role="property_name"><link linkend="GtkAppChooserWidget--show-fallback">show-fallback</link></entry><entry role="property_flags">Read / Write / Construct</entry></row>
<row><entry role="property_type"><link linkend="gboolean"><type>gboolean</type></link></entry><entry role="property_name"><link linkend="GtkAppChooserWidget--show-other">show-other</link></entry><entry role="property_flags">Read / Write / Construct</entry></row>
<row><entry role="property_type"><link linkend="gboolean"><type>gboolean</type></link></entry><entry role="property_name"><link linkend="GtkAppChooserWidget--show-recommended">show-recommended</link></entry><entry role="property_flags">Read / Write / Construct</entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkAppChooserWidget.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="GtkAppChooserWidget-application-activated">application-activated</link></entry><entry role="signal_flags"><link linkend="G-SIGNAL-RUN-FIRST:CAPS">Run First</link></entry></row>
<row><entry role="signal_type"><link linkend="void"><returnvalue>void</returnvalue></link></entry><entry role="signal_name"><link linkend="GtkAppChooserWidget-application-selected">application-selected</link></entry><entry role="signal_flags"><link linkend="G-SIGNAL-RUN-FIRST:CAPS">Run First</link></entry></row>

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

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkAppChooserWidget.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> GtkAppChooserWidget
</screen>
</refsect1>
<refsect1 id="GtkAppChooserWidget.implemented-interfaces" role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GtkAppChooserWidget implements
 <link linkend="AtkImplementorIface">AtkImplementorIface</link>,  <link linkend="GtkBuildable">GtkBuildable</link>,  <link linkend="GtkConstraintTarget">GtkConstraintTarget</link> and  <link linkend="GtkAppChooser">GtkAppChooser</link>.</para>

</refsect1>

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

<refsect1 id="GtkAppChooserWidget.description" role="desc">
<title role="desc.title">Description</title>
<para><link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> is a widget for selecting applications.
It is the main building block for <link linkend="GtkAppChooserDialog"><type>GtkAppChooserDialog</type></link>. Most
applications only need to use the latter; but you can use
this widget as part of a larger widget if you have special needs.</para>
<para><link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> offers detailed control over what applications
are shown, using the
<link linkend="GtkAppChooserWidget--show-default"><type>“show-default”</type></link>,
<link linkend="GtkAppChooserWidget--show-recommended"><type>“show-recommended”</type></link>,
<link linkend="GtkAppChooserWidget--show-fallback"><type>“show-fallback”</type></link>,
<link linkend="GtkAppChooserWidget--show-other"><type>“show-other”</type></link> and
<link linkend="GtkAppChooserWidget--show-all"><type>“show-all”</type></link>
properties. See the <link linkend="GtkAppChooser"><type>GtkAppChooser</type></link> documentation for more information
about these groups of applications.</para>
<para>To keep track of the selected application, use the
<link linkend="GtkAppChooserWidget-application-selected"><type>“application-selected”</type></link> and <link linkend="GtkAppChooserWidget-application-activated"><type>“application-activated”</type></link> signals.</para>
<refsect2><title>CSS nodes</title><para>GtkAppChooserWidget has a single CSS node with name appchooser.</para>
</refsect2>

</refsect1>
<refsect1 id="GtkAppChooserWidget.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-app-chooser-widget-new" role="function">
<title>gtk_app_chooser_widget_new&#160;()</title>
<indexterm zone="gtk-app-chooser-widget-new"><primary>gtk_app_chooser_widget_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_app_chooser_widget_new (<parameter>const <link linkend="gchar"><type>gchar</type></link> *content_type</parameter>);</programlisting>
<para>Creates a new <link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> for applications
that can handle content of the given type.</para>
<refsect3 id="gtk-app-chooser-widget-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>content_type</para></entry>
<entry role="parameter_description"><para>the content type to show applications for</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-app-chooser-widget-new.returns" role="returns">
<title>Returns</title>
<para> a newly created <link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-widget-set-show-default" role="function">
<title>gtk_app_chooser_widget_set_show_default&#160;()</title>
<indexterm zone="gtk-app-chooser-widget-set-show-default"><primary>gtk_app_chooser_widget_set_show_default</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_app_chooser_widget_set_show_default
                               (<parameter><link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> *self</parameter>,
                                <parameter><link linkend="gboolean"><type>gboolean</type></link> setting</parameter>);</programlisting>
<para>Sets whether the app chooser should show the default handler
for the content type in a separate section.</para>
<refsect3 id="gtk-app-chooser-widget-set-show-default.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="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>setting</para></entry>
<entry role="parameter_description"><para>the new value for <link linkend="GtkAppChooserWidget--show-default"><type>“show-default”</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-widget-get-show-default" role="function">
<title>gtk_app_chooser_widget_get_show_default&#160;()</title>
<indexterm zone="gtk-app-chooser-widget-get-show-default"><primary>gtk_app_chooser_widget_get_show_default</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_app_chooser_widget_get_show_default
                               (<parameter><link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> *self</parameter>);</programlisting>
<para>Returns the current value of the <link linkend="GtkAppChooserWidget--show-default"><type>“show-default”</type></link>
property.</para>
<refsect3 id="gtk-app-chooser-widget-get-show-default.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="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-app-chooser-widget-get-show-default.returns" role="returns">
<title>Returns</title>
<para> the value of <link linkend="GtkAppChooserWidget--show-default"><type>“show-default”</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-widget-set-show-recommended" role="function">
<title>gtk_app_chooser_widget_set_show_recommended&#160;()</title>
<indexterm zone="gtk-app-chooser-widget-set-show-recommended"><primary>gtk_app_chooser_widget_set_show_recommended</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_app_chooser_widget_set_show_recommended
                               (<parameter><link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> *self</parameter>,
                                <parameter><link linkend="gboolean"><type>gboolean</type></link> setting</parameter>);</programlisting>
<para>Sets whether the app chooser should show recommended applications
for the content type in a separate section.</para>
<refsect3 id="gtk-app-chooser-widget-set-show-recommended.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="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>setting</para></entry>
<entry role="parameter_description"><para>the new value for <link linkend="GtkAppChooserWidget--show-recommended"><type>“show-recommended”</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-widget-get-show-recommended" role="function">
<title>gtk_app_chooser_widget_get_show_recommended&#160;()</title>
<indexterm zone="gtk-app-chooser-widget-get-show-recommended"><primary>gtk_app_chooser_widget_get_show_recommended</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_app_chooser_widget_get_show_recommended
                               (<parameter><link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> *self</parameter>);</programlisting>
<para>Returns the current value of the <link linkend="GtkAppChooserWidget--show-recommended"><type>“show-recommended”</type></link>
property.</para>
<refsect3 id="gtk-app-chooser-widget-get-show-recommended.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="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-app-chooser-widget-get-show-recommended.returns" role="returns">
<title>Returns</title>
<para> the value of <link linkend="GtkAppChooserWidget--show-recommended"><type>“show-recommended”</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-widget-set-show-fallback" role="function">
<title>gtk_app_chooser_widget_set_show_fallback&#160;()</title>
<indexterm zone="gtk-app-chooser-widget-set-show-fallback"><primary>gtk_app_chooser_widget_set_show_fallback</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_app_chooser_widget_set_show_fallback
                               (<parameter><link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> *self</parameter>,
                                <parameter><link linkend="gboolean"><type>gboolean</type></link> setting</parameter>);</programlisting>
<para>Sets whether the app chooser should show related applications
for the content type in a separate section.</para>
<refsect3 id="gtk-app-chooser-widget-set-show-fallback.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="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>setting</para></entry>
<entry role="parameter_description"><para>the new value for <link linkend="GtkAppChooserWidget--show-fallback"><type>“show-fallback”</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-widget-get-show-fallback" role="function">
<title>gtk_app_chooser_widget_get_show_fallback&#160;()</title>
<indexterm zone="gtk-app-chooser-widget-get-show-fallback"><primary>gtk_app_chooser_widget_get_show_fallback</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_app_chooser_widget_get_show_fallback
                               (<parameter><link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> *self</parameter>);</programlisting>
<para>Returns the current value of the <link linkend="GtkAppChooserWidget--show-fallback"><type>“show-fallback”</type></link>
property.</para>
<refsect3 id="gtk-app-chooser-widget-get-show-fallback.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="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-app-chooser-widget-get-show-fallback.returns" role="returns">
<title>Returns</title>
<para> the value of <link linkend="GtkAppChooserWidget--show-fallback"><type>“show-fallback”</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-widget-set-show-other" role="function">
<title>gtk_app_chooser_widget_set_show_other&#160;()</title>
<indexterm zone="gtk-app-chooser-widget-set-show-other"><primary>gtk_app_chooser_widget_set_show_other</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_app_chooser_widget_set_show_other (<parameter><link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> *self</parameter>,
                                       <parameter><link linkend="gboolean"><type>gboolean</type></link> setting</parameter>);</programlisting>
<para>Sets whether the app chooser should show applications
which are unrelated to the content type.</para>
<refsect3 id="gtk-app-chooser-widget-set-show-other.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="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>setting</para></entry>
<entry role="parameter_description"><para>the new value for <link linkend="GtkAppChooserWidget--show-other"><type>“show-other”</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-widget-get-show-other" role="function">
<title>gtk_app_chooser_widget_get_show_other&#160;()</title>
<indexterm zone="gtk-app-chooser-widget-get-show-other"><primary>gtk_app_chooser_widget_get_show_other</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_app_chooser_widget_get_show_other (<parameter><link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> *self</parameter>);</programlisting>
<para>Returns the current value of the <link linkend="GtkAppChooserWidget--show-other"><type>“show-other”</type></link>
property.</para>
<refsect3 id="gtk-app-chooser-widget-get-show-other.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="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-app-chooser-widget-get-show-other.returns" role="returns">
<title>Returns</title>
<para> the value of <link linkend="GtkAppChooserWidget--show-other"><type>“show-other”</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-widget-set-show-all" role="function">
<title>gtk_app_chooser_widget_set_show_all&#160;()</title>
<indexterm zone="gtk-app-chooser-widget-set-show-all"><primary>gtk_app_chooser_widget_set_show_all</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_app_chooser_widget_set_show_all (<parameter><link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> *self</parameter>,
                                     <parameter><link linkend="gboolean"><type>gboolean</type></link> setting</parameter>);</programlisting>
<para>Sets whether the app chooser should show all applications
in a flat list.</para>
<refsect3 id="gtk-app-chooser-widget-set-show-all.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="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>setting</para></entry>
<entry role="parameter_description"><para>the new value for <link linkend="GtkAppChooserWidget--show-all"><type>“show-all”</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-widget-get-show-all" role="function">
<title>gtk_app_chooser_widget_get_show_all&#160;()</title>
<indexterm zone="gtk-app-chooser-widget-get-show-all"><primary>gtk_app_chooser_widget_get_show_all</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_app_chooser_widget_get_show_all (<parameter><link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> *self</parameter>);</programlisting>
<para>Returns the current value of the <link linkend="GtkAppChooserWidget--show-all"><type>“show-all”</type></link>
property.</para>
<refsect3 id="gtk-app-chooser-widget-get-show-all.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="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-app-chooser-widget-get-show-all.returns" role="returns">
<title>Returns</title>
<para> the value of <link linkend="GtkAppChooserWidget--show-all"><type>“show-all”</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-widget-set-default-text" role="function">
<title>gtk_app_chooser_widget_set_default_text&#160;()</title>
<indexterm zone="gtk-app-chooser-widget-set-default-text"><primary>gtk_app_chooser_widget_set_default_text</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_app_chooser_widget_set_default_text
                               (<parameter><link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> *self</parameter>,
                                <parameter>const <link linkend="gchar"><type>gchar</type></link> *text</parameter>);</programlisting>
<para>Sets the text that is shown if there are not applications
that can handle the content type.</para>
<refsect3 id="gtk-app-chooser-widget-set-default-text.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="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>text</para></entry>
<entry role="parameter_description"><para>the new value for <link linkend="GtkAppChooserWidget--default-text"><type>“default-text”</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-app-chooser-widget-get-default-text" role="function">
<title>gtk_app_chooser_widget_get_default_text&#160;()</title>
<indexterm zone="gtk-app-chooser-widget-get-default-text"><primary>gtk_app_chooser_widget_get_default_text</primary></indexterm>
<programlisting language="C">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
gtk_app_chooser_widget_get_default_text
                               (<parameter><link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> *self</parameter>);</programlisting>
<para>Returns the text that is shown if there are not applications
that can handle the content type.</para>
<refsect3 id="gtk-app-chooser-widget-get-default-text.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="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-app-chooser-widget-get-default-text.returns" role="returns">
<title>Returns</title>
<para> the value of <link linkend="GtkAppChooserWidget--default-text"><type>“default-text”</type></link></para>
</refsect3></refsect2>

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

</refsect1>
<refsect1 id="GtkAppChooserWidget.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkAppChooserWidget--default-text" role="property"><title>The <literal>“default-text”</literal> property</title>
<indexterm zone="GtkAppChooserWidget--default-text"><primary>GtkAppChooserWidget:default-text</primary></indexterm>
<programlisting>  “default-text”             <link linkend="gchar"><type>gchar</type></link>&#160;*</programlisting>
<para>The <link linkend="GtkAppChooserWidget--default-text"><type>“default-text”</type></link> property determines the text
that appears in the widget when there are no applications for the
given content type.
See also <link linkend="gtk-app-chooser-widget-set-default-text"><function>gtk_app_chooser_widget_set_default_text()</function></link>.</para>
<para>Owner: GtkAppChooserWidget</para>
<para>Flags: Read / Write</para>
<para>Default value: NULL</para>
</refsect2>
<refsect2 id="GtkAppChooserWidget--show-all" role="property"><title>The <literal>“show-all”</literal> property</title>
<indexterm zone="GtkAppChooserWidget--show-all"><primary>GtkAppChooserWidget:show-all</primary></indexterm>
<programlisting>  “show-all”                 <link linkend="gboolean"><type>gboolean</type></link></programlisting>
<para>If the <link linkend="GtkAppChooserWidget--show-all"><type>“show-all”</type></link> property is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, the app
chooser presents all applications in a single list, without
subsections for default, recommended or related applications.</para>
<para>Owner: GtkAppChooserWidget</para>
<para>Flags: Read / Write / Construct</para>
<para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkAppChooserWidget--show-default" role="property"><title>The <literal>“show-default”</literal> property</title>
<indexterm zone="GtkAppChooserWidget--show-default"><primary>GtkAppChooserWidget:show-default</primary></indexterm>
<programlisting>  “show-default”             <link linkend="gboolean"><type>gboolean</type></link></programlisting>
<para>The ::show-default property determines whether the app chooser
should show the default handler for the content type in a
separate section. If <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>, the default handler is listed
among the recommended applications.</para>
<para>Owner: GtkAppChooserWidget</para>
<para>Flags: Read / Write / Construct</para>
<para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkAppChooserWidget--show-fallback" role="property"><title>The <literal>“show-fallback”</literal> property</title>
<indexterm zone="GtkAppChooserWidget--show-fallback"><primary>GtkAppChooserWidget:show-fallback</primary></indexterm>
<programlisting>  “show-fallback”            <link linkend="gboolean"><type>gboolean</type></link></programlisting>
<para>The <link linkend="GtkAppChooserWidget--show-fallback"><type>“show-fallback”</type></link> property determines whether
the app chooser should show a section for fallback applications.
If <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>, the fallback applications are listed among the other
applications.</para>
<para>Owner: GtkAppChooserWidget</para>
<para>Flags: Read / Write / Construct</para>
<para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkAppChooserWidget--show-other" role="property"><title>The <literal>“show-other”</literal> property</title>
<indexterm zone="GtkAppChooserWidget--show-other"><primary>GtkAppChooserWidget:show-other</primary></indexterm>
<programlisting>  “show-other”               <link linkend="gboolean"><type>gboolean</type></link></programlisting>
<para>The <link linkend="GtkAppChooserWidget--show-other"><type>“show-other”</type></link> property determines whether
the app chooser should show a section for other applications.</para>
<para>Owner: GtkAppChooserWidget</para>
<para>Flags: Read / Write / Construct</para>
<para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkAppChooserWidget--show-recommended" role="property"><title>The <literal>“show-recommended”</literal> property</title>
<indexterm zone="GtkAppChooserWidget--show-recommended"><primary>GtkAppChooserWidget:show-recommended</primary></indexterm>
<programlisting>  “show-recommended”         <link linkend="gboolean"><type>gboolean</type></link></programlisting>
<para>The <link linkend="GtkAppChooserWidget--show-recommended"><type>“show-recommended”</type></link> property determines
whether the app chooser should show a section for recommended
applications. If <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>, the recommended applications are listed
among the other applications.</para>
<para>Owner: GtkAppChooserWidget</para>
<para>Flags: Read / Write / Construct</para>
<para>Default value: TRUE</para>
</refsect2>

</refsect1>
<refsect1 id="GtkAppChooserWidget.signal-details" role="signals">
<title role="signals.title">Signal Details</title>
<refsect2 id="GtkAppChooserWidget-application-activated" role="signal"><title>The <literal>“application-activated”</literal> signal</title>
<indexterm zone="GtkAppChooserWidget-application-activated"><primary>GtkAppChooserWidget::application-activated</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
user_function (<link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> *self,
               <link linkend="GAppInfo"><type>GAppInfo</type></link>            *application,
               <link linkend="gpointer"><type>gpointer</type></link>             user_data)</programlisting>
<para>Emitted when an application item is activated from the widget's list.</para>
<para>This usually happens when the user double clicks an item, or an item
is selected and the user presses one of the keys Space, Shift+Space,
Return or Enter.</para>
<refsect3 id="GtkAppChooserWidget-application-activated.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>the object which received the signal</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>application</para></entry>
<entry role="parameter_description"><para>the activated <link linkend="GAppInfo"><type>GAppInfo</type></link></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><refsect2 id="GtkAppChooserWidget-application-selected" role="signal"><title>The <literal>“application-selected”</literal> signal</title>
<indexterm zone="GtkAppChooserWidget-application-selected"><primary>GtkAppChooserWidget::application-selected</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
user_function (<link linkend="GtkAppChooserWidget"><type>GtkAppChooserWidget</type></link> *self,
               <link linkend="GAppInfo"><type>GAppInfo</type></link>            *application,
               <link linkend="gpointer"><type>gpointer</type></link>             user_data)</programlisting>
<para>Emitted when an application item is selected from the widget's list.</para>
<refsect3 id="GtkAppChooserWidget-application-selected.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>the object which received the signal</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>application</para></entry>
<entry role="parameter_description"><para>the selected <link linkend="GAppInfo"><type>GAppInfo</type></link></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>

</refentry>
