<?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="GtkFontButton">
<refmeta>
<refentrytitle role="top_of_page" id="GtkFontButton.top_of_page">GtkFontButton</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkFontButton</refname>
<refpurpose>A button to launch a font chooser dialog</refpurpose>
</refnamediv>

<refsect1 id="GtkFontButton.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-font-button-new">gtk_font_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-font-button-new-with-font">gtk_font_button_new_with_font</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-font-button-set-use-font">gtk_font_button_set_use_font</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-font-button-get-use-font">gtk_font_button_get_use_font</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-font-button-set-use-size">gtk_font_button_set_use_size</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-font-button-get-use-size">gtk_font_button_get_use_size</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-font-button-set-title">gtk_font_button_set_title</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-font-button-get-title">gtk_font_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-font-button-set-modal">gtk_font_button_set_modal</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-font-button-get-modal">gtk_font_button_get_modal</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkFontButton.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="gboolean"><type>gboolean</type></link></entry><entry role="property_name"><link linkend="GtkFontButton--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="GtkFontButton--title">title</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="GtkFontButton--use-font">use-font</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="GtkFontButton--use-size">use-size</link></entry><entry role="property_flags">Read / Write</entry></row>

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

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

</refsect1>

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

<refsect1 id="GtkFontButton.description" role="desc">
<title role="desc.title">Description</title>
<para>The <link linkend="GtkFontButton"><type>GtkFontButton</type></link> is a button which displays the currently selected
font an allows to open a font chooser dialog to change the font.
It is suitable widget for selecting a font in a preference dialog.</para>
<refsect2><title>CSS nodes</title><para>GtkFontButton has a single CSS node with name fontbutton.</para>
</refsect2>

</refsect1>
<refsect1 id="GtkFontButton.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-font-button-new" role="function">
<title>gtk_font_button_new&#160;()</title>
<indexterm zone="gtk-font-button-new"><primary>gtk_font_button_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_font_button_new (<parameter><type>void</type></parameter>);</programlisting>
<para>Creates a new font picker widget.</para>
<refsect3 id="gtk-font-button-new.returns" role="returns">
<title>Returns</title>
<para> a new font picker widget.</para>
</refsect3></refsect2>
<refsect2 id="gtk-font-button-new-with-font" role="function">
<title>gtk_font_button_new_with_font&#160;()</title>
<indexterm zone="gtk-font-button-new-with-font"><primary>gtk_font_button_new_with_font</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_font_button_new_with_font (<parameter>const <link linkend="gchar"><type>gchar</type></link> *fontname</parameter>);</programlisting>
<para>Creates a new font picker widget.</para>
<refsect3 id="gtk-font-button-new-with-font.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>fontname</para></entry>
<entry role="parameter_description"><para>Name of font to display in font chooser dialog</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-font-button-new-with-font.returns" role="returns">
<title>Returns</title>
<para> a new font picker widget.</para>
</refsect3></refsect2>
<refsect2 id="gtk-font-button-set-use-font" role="function">
<title>gtk_font_button_set_use_font&#160;()</title>
<indexterm zone="gtk-font-button-set-use-font"><primary>gtk_font_button_set_use_font</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_font_button_set_use_font (<parameter><link linkend="GtkFontButton"><type>GtkFontButton</type></link> *font_button</parameter>,
                              <parameter><link linkend="gboolean"><type>gboolean</type></link> use_font</parameter>);</programlisting>
<para>If <parameter>use_font</parameter>
 is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, the font name will be written using the selected font.</para>
<refsect3 id="gtk-font-button-set-use-font.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>font_button</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkFontButton"><type>GtkFontButton</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>use_font</para></entry>
<entry role="parameter_description"><para>If <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, font name will be written using font chosen.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-font-button-get-use-font" role="function">
<title>gtk_font_button_get_use_font&#160;()</title>
<indexterm zone="gtk-font-button-get-use-font"><primary>gtk_font_button_get_use_font</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_font_button_get_use_font (<parameter><link linkend="GtkFontButton"><type>GtkFontButton</type></link> *font_button</parameter>);</programlisting>
<para>Returns whether the selected font is used in the label.</para>
<refsect3 id="gtk-font-button-get-use-font.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>font_button</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkFontButton"><type>GtkFontButton</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-font-button-get-use-font.returns" role="returns">
<title>Returns</title>
<para> whether the selected font is used in the label.</para>
</refsect3></refsect2>
<refsect2 id="gtk-font-button-set-use-size" role="function">
<title>gtk_font_button_set_use_size&#160;()</title>
<indexterm zone="gtk-font-button-set-use-size"><primary>gtk_font_button_set_use_size</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_font_button_set_use_size (<parameter><link linkend="GtkFontButton"><type>GtkFontButton</type></link> *font_button</parameter>,
                              <parameter><link linkend="gboolean"><type>gboolean</type></link> use_size</parameter>);</programlisting>
<para>If <parameter>use_size</parameter>
 is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, the font name will be written using the selected size.</para>
<refsect3 id="gtk-font-button-set-use-size.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>font_button</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkFontButton"><type>GtkFontButton</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>use_size</para></entry>
<entry role="parameter_description"><para>If <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, font name will be written using the selected size.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-font-button-get-use-size" role="function">
<title>gtk_font_button_get_use_size&#160;()</title>
<indexterm zone="gtk-font-button-get-use-size"><primary>gtk_font_button_get_use_size</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_font_button_get_use_size (<parameter><link linkend="GtkFontButton"><type>GtkFontButton</type></link> *font_button</parameter>);</programlisting>
<para>Returns whether the selected size is used in the label.</para>
<refsect3 id="gtk-font-button-get-use-size.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>font_button</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkFontButton"><type>GtkFontButton</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-font-button-get-use-size.returns" role="returns">
<title>Returns</title>
<para> whether the selected size is used in the label.</para>
</refsect3></refsect2>
<refsect2 id="gtk-font-button-set-title" role="function">
<title>gtk_font_button_set_title&#160;()</title>
<indexterm zone="gtk-font-button-set-title"><primary>gtk_font_button_set_title</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_font_button_set_title (<parameter><link linkend="GtkFontButton"><type>GtkFontButton</type></link> *font_button</parameter>,
                           <parameter>const <link linkend="gchar"><type>gchar</type></link> *title</parameter>);</programlisting>
<para>Sets the title for the font chooser dialog.</para>
<refsect3 id="gtk-font-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>font_button</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkFontButton"><type>GtkFontButton</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>title</para></entry>
<entry role="parameter_description"><para>a string containing the font chooser dialog title</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-font-button-get-title" role="function">
<title>gtk_font_button_get_title&#160;()</title>
<indexterm zone="gtk-font-button-get-title"><primary>gtk_font_button_get_title</primary></indexterm>
<programlisting language="C">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
gtk_font_button_get_title (<parameter><link linkend="GtkFontButton"><type>GtkFontButton</type></link> *font_button</parameter>);</programlisting>
<para>Retrieves the title of the font chooser dialog.</para>
<refsect3 id="gtk-font-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>font_button</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkFontButton"><type>GtkFontButton</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-font-button-get-title.returns" role="returns">
<title>Returns</title>
<para> an internal copy of the title string which must not be freed.</para>
</refsect3></refsect2>
<refsect2 id="gtk-font-button-set-modal" role="function">
<title>gtk_font_button_set_modal&#160;()</title>
<indexterm zone="gtk-font-button-set-modal"><primary>gtk_font_button_set_modal</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_font_button_set_modal (<parameter><link linkend="GtkFontButton"><type>GtkFontButton</type></link> *font_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-font-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>font_button</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkFontButton"><type>GtkFontButton</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>
<refsect2 id="gtk-font-button-get-modal" role="function">
<title>gtk_font_button_get_modal&#160;()</title>
<indexterm zone="gtk-font-button-get-modal"><primary>gtk_font_button_get_modal</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_font_button_get_modal (<parameter><link linkend="GtkFontButton"><type>GtkFontButton</type></link> *font_button</parameter>);</programlisting>
<para>Gets whether the dialog is modal.</para>
<refsect3 id="gtk-font-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>font_button</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkFontButton"><type>GtkFontButton</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-font-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>

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

</refsect1>
<refsect1 id="GtkFontButton.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkFontButton--modal" role="property"><title>The <literal>“modal”</literal> property</title>
<indexterm zone="GtkFontButton--modal"><primary>GtkFontButton:modal</primary></indexterm>
<programlisting>  “modal”                    <link linkend="gboolean"><type>gboolean</type></link></programlisting>
<para>Whether the dialog is modal.</para><para>Owner: GtkFontButton</para>
<para>Flags: Read / Write</para>
<para>Default value: TRUE</para>
</refsect2>
<refsect2 id="GtkFontButton--title" role="property"><title>The <literal>“title”</literal> property</title>
<indexterm zone="GtkFontButton--title"><primary>GtkFontButton:title</primary></indexterm>
<programlisting>  “title”                    <link linkend="gchar"><type>gchar</type></link>&#160;*</programlisting>
<para>The title of the font chooser dialog.</para>
<para>Owner: GtkFontButton</para>
<para>Flags: Read / Write</para>
<para>Default value: "Pick a Font"</para>
</refsect2>
<refsect2 id="GtkFontButton--use-font" role="property"><title>The <literal>“use-font”</literal> property</title>
<indexterm zone="GtkFontButton--use-font"><primary>GtkFontButton:use-font</primary></indexterm>
<programlisting>  “use-font”                 <link linkend="gboolean"><type>gboolean</type></link></programlisting>
<para>If this property is set to <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, the label will be drawn

in the selected font.</para>
<para>Owner: GtkFontButton</para>
<para>Flags: Read / Write</para>
<para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkFontButton--use-size" role="property"><title>The <literal>“use-size”</literal> property</title>
<indexterm zone="GtkFontButton--use-size"><primary>GtkFontButton:use-size</primary></indexterm>
<programlisting>  “use-size”                 <link linkend="gboolean"><type>gboolean</type></link></programlisting>
<para>If this property is set to <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, the label will be drawn

with the selected font size.</para>
<para>Owner: GtkFontButton</para>
<para>Flags: Read / Write</para>
<para>Default value: FALSE</para>
</refsect2>

</refsect1>
<refsect1 id="GtkFontButton.signal-details" role="signals">
<title role="signals.title">Signal Details</title>
<refsect2 id="GtkFontButton-font-set" role="signal"><title>The <literal>“font-set”</literal> signal</title>
<indexterm zone="GtkFontButton-font-set"><primary>GtkFontButton::font-set</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
user_function (<link linkend="GtkFontButton"><type>GtkFontButton</type></link> *widget,
               <link linkend="gpointer"><type>gpointer</type></link>       user_data)</programlisting>
<para>The ::font-set signal is emitted when the user selects a font.

When handling this signal, use <link linkend="gtk-font-chooser-get-font"><function>gtk_font_chooser_get_font()</function></link>
to find out which font was just selected.</para>
<para>Note that this signal is only emitted when the user
changes the font. If you need to react to programmatic font changes
as well, use the notify::font signal.</para>
<refsect3 id="GtkFontButton-font-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="GtkFontButton.see-also">
<title>See Also</title>
<para><link linkend="GtkFontChooserDialog"><type>GtkFontChooserDialog</type></link>, <link linkend="GtkColorButton"><type>GtkColorButton</type></link>.</para>

</refsect1>

</refentry>
