<?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="GtkShortcutLabel">
<refmeta>
<refentrytitle role="top_of_page" id="GtkShortcutLabel.top_of_page">GtkShortcutLabel</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkShortcutLabel</refname>
<refpurpose>Displays a keyboard shortcut</refpurpose>
</refnamediv>

<refsect1 id="GtkShortcutLabel.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-shortcut-label-new">gtk_shortcut_label_new</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-shortcut-label-get-accelerator">gtk_shortcut_label_get_accelerator</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-shortcut-label-set-accelerator">gtk_shortcut_label_set_accelerator</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-shortcut-label-get-disabled-text">gtk_shortcut_label_get_disabled_text</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-shortcut-label-set-disabled-text">gtk_shortcut_label_set_disabled_text</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkShortcutLabel.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="GtkShortcutLabel--accelerator">accelerator</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="GtkShortcutLabel--disabled-text">disabled-text</link></entry><entry role="property_flags">Read / Write</entry></row>

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

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

</refsect1>

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

<refsect1 id="GtkShortcutLabel.description" role="desc">
<title role="desc.title">Description</title>
<para><link linkend="GtkShortcutLabel"><type>GtkShortcutLabel</type></link> is a widget that represents a single keyboard shortcut or gesture
in the user interface.</para>

</refsect1>
<refsect1 id="GtkShortcutLabel.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-shortcut-label-new" role="function">
<title>gtk_shortcut_label_new&#160;()</title>
<indexterm zone="gtk-shortcut-label-new"><primary>gtk_shortcut_label_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_shortcut_label_new (<parameter>const <link linkend="gchar"><type>gchar</type></link> *accelerator</parameter>);</programlisting>
<para>Creates a new <link linkend="GtkShortcutLabel"><type>GtkShortcutLabel</type></link> with <parameter>accelerator</parameter>
 set.</para>
<refsect3 id="gtk-shortcut-label-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>accelerator</para></entry>
<entry role="parameter_description"><para>the initial accelerator</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-shortcut-label-new.returns" role="returns">
<title>Returns</title>
<para>a newly-allocated <link linkend="GtkShortcutLabel"><type>GtkShortcutLabel</type></link>. </para>
<para><emphasis role="annotation">[<acronym>transfer full</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="gtk-shortcut-label-get-accelerator" role="function">
<title>gtk_shortcut_label_get_accelerator&#160;()</title>
<indexterm zone="gtk-shortcut-label-get-accelerator"><primary>gtk_shortcut_label_get_accelerator</primary></indexterm>
<programlisting language="C">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
gtk_shortcut_label_get_accelerator (<parameter><link linkend="GtkShortcutLabel"><type>GtkShortcutLabel</type></link> *self</parameter>);</programlisting>
<para>Retrieves the current accelerator of <parameter>self</parameter>
.</para>
<refsect3 id="gtk-shortcut-label-get-accelerator.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="GtkShortcutLabel"><type>GtkShortcutLabel</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-shortcut-label-get-accelerator.returns" role="returns">
<title>Returns</title>
<para>the current accelerator. </para>
<para><emphasis role="annotation">[<acronym>transfer none</acronym>][<acronym>nullable</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="gtk-shortcut-label-set-accelerator" role="function">
<title>gtk_shortcut_label_set_accelerator&#160;()</title>
<indexterm zone="gtk-shortcut-label-set-accelerator"><primary>gtk_shortcut_label_set_accelerator</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_shortcut_label_set_accelerator (<parameter><link linkend="GtkShortcutLabel"><type>GtkShortcutLabel</type></link> *self</parameter>,
                                    <parameter>const <link linkend="gchar"><type>gchar</type></link> *accelerator</parameter>);</programlisting>
<para>Sets the accelerator to be displayed by <parameter>self</parameter>
.</para>
<refsect3 id="gtk-shortcut-label-set-accelerator.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="GtkShortcutLabel"><type>GtkShortcutLabel</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>accelerator</para></entry>
<entry role="parameter_description"><para>the new accelerator</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-shortcut-label-get-disabled-text" role="function">
<title>gtk_shortcut_label_get_disabled_text&#160;()</title>
<indexterm zone="gtk-shortcut-label-get-disabled-text"><primary>gtk_shortcut_label_get_disabled_text</primary></indexterm>
<programlisting language="C">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
gtk_shortcut_label_get_disabled_text (<parameter><link linkend="GtkShortcutLabel"><type>GtkShortcutLabel</type></link> *self</parameter>);</programlisting>
<para>Retrieves the text that is displayed when no accelerator is set.</para>
<refsect3 id="gtk-shortcut-label-get-disabled-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="GtkShortcutLabel"><type>GtkShortcutLabel</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-shortcut-label-get-disabled-text.returns" role="returns">
<title>Returns</title>
<para>the current text displayed when no
accelerator is set. </para>
<para><emphasis role="annotation">[<acronym>transfer none</acronym>][<acronym>nullable</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="gtk-shortcut-label-set-disabled-text" role="function">
<title>gtk_shortcut_label_set_disabled_text&#160;()</title>
<indexterm zone="gtk-shortcut-label-set-disabled-text"><primary>gtk_shortcut_label_set_disabled_text</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_shortcut_label_set_disabled_text (<parameter><link linkend="GtkShortcutLabel"><type>GtkShortcutLabel</type></link> *self</parameter>,
                                      <parameter>const <link linkend="gchar"><type>gchar</type></link> *disabled_text</parameter>);</programlisting>
<para>Sets the text to be displayed by <parameter>self</parameter>
 when no accelerator is set.</para>
<refsect3 id="gtk-shortcut-label-set-disabled-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="GtkShortcutLabel"><type>GtkShortcutLabel</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>disabled_text</para></entry>
<entry role="parameter_description"><para>the text to be displayed when no accelerator is set</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>

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

</refsect1>
<refsect1 id="GtkShortcutLabel.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkShortcutLabel--accelerator" role="property"><title>The <literal>“accelerator”</literal> property</title>
<indexterm zone="GtkShortcutLabel--accelerator"><primary>GtkShortcutLabel:accelerator</primary></indexterm>
<programlisting>  “accelerator”              <link linkend="gchar"><type>gchar</type></link>&#160;*</programlisting>
<para>The accelerator that <parameter>self</parameter>
 displays. See <link linkend="GtkShortcutsShortcut--accelerator"><type>“accelerator”</type></link>
for the accepted syntax.</para>
<para>Owner: GtkShortcutLabel</para>
<para>Flags: Read / Write</para>
<para>Default value: NULL</para>
</refsect2>
<refsect2 id="GtkShortcutLabel--disabled-text" role="property"><title>The <literal>“disabled-text”</literal> property</title>
<indexterm zone="GtkShortcutLabel--disabled-text"><primary>GtkShortcutLabel:disabled-text</primary></indexterm>
<programlisting>  “disabled-text”            <link linkend="gchar"><type>gchar</type></link>&#160;*</programlisting>
<para>The text that is displayed when no accelerator is set.</para>
<para>Owner: GtkShortcutLabel</para>
<para>Flags: Read / Write</para>
<para>Default value: NULL</para>
</refsect2>

</refsect1>
<refsect1 id="GtkShortcutLabel.see-also">
<title>See Also</title>
<para><link linkend="GtkCellRendererAccel"><type>GtkCellRendererAccel</type></link></para>

</refsect1>

</refentry>
