Blob Blame History Raw
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GladePalette: Glade User Interface Designer Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Glade User Interface Designer Reference Manual">
<link rel="up" href="dockables.html" title="Part III. Dockable Glade UI Widgets">
<link rel="prev" href="GladeEditorProperty.html" title="GladeEditorProperty">
<link rel="next" href="gladeui-GladeClipboardView.html" title="GladeClipboardView">
<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#GladePalette.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#GladePalette.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces">  <span class="dim">|</span> 
                  <a href="#GladePalette.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#GladePalette.properties" class="shortcut">Properties</a></span><span id="nav_signals">  <span class="dim">|</span> 
                  <a href="#GladePalette.signals" class="shortcut">Signals</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="dockables.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="GladeEditorProperty.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="gladeui-GladeClipboardView.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GladePalette"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GladePalette.top_of_page"></a>GladePalette</span></h2>
<p>GladePalette — A widget to select a <span class="type">GladeWidgetClass</span> for addition.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GladePalette.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
</td>
<td class="function_name">
<a class="link" href="GladePalette.html#glade-palette-new" title="glade_palette_new ()">glade_palette_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GladePalette.html#GladeItemAppearance" title="enum GladeItemAppearance"><span class="returnvalue">GladeItemAppearance</span></a>
</td>
<td class="function_name">
<a class="link" href="GladePalette.html#glade-palette-get-item-appearance" title="glade_palette_get_item_appearance ()">glade_palette_get_item_appearance</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GladePalette.html#glade-palette-set-item-appearance" title="glade_palette_set_item_appearance ()">glade_palette_set_item_appearance</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GladePalette.html#glade-palette-get-use-small-item-icons" title="glade_palette_get_use_small_item_icons ()">glade_palette_get_use_small_item_icons</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GladePalette.html#glade-palette-set-use-small-item-icons" title="glade_palette_set_use_small_item_icons ()">glade_palette_set_use_small_item_icons</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GladePalette.html#glade-palette-set-show-selector-button" title="glade_palette_set_show_selector_button ()">glade_palette_set_show_selector_button</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GladePalette.html#glade-palette-get-show-selector-button" title="glade_palette_get_show_selector_button ()">glade_palette_get_show_selector_button</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GladePalette.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type"><a class="link" href="GladePalette.html#GladeItemAppearance" title="enum GladeItemAppearance"><span class="type">GladeItemAppearance</span></a></td>
<td class="property_name"><a class="link" href="GladePalette.html#GladePalette--item-appearance" title="The “item-appearance” property">item-appearance</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<a class="link" href="GladeProject.html" title="GladeProject"><span class="type">GladeProject</span></a> *</td>
<td class="property_name"><a class="link" href="GladePalette.html#GladePalette--project" title="The “project” property">project</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
<td class="property_name"><a class="link" href="GladePalette.html#GladePalette--show-selector-button" title="The “show-selector-button” property">show-selector-button</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
<td class="property_name"><a class="link" href="GladePalette.html#GladePalette--use-small-item-icons" title="The “use-small-item-icons” property">use-small-item-icons</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GladePalette.signals"></a><h2>Signals</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="signals_return">
<col width="300px" class="signals_name">
<col width="200px" class="signals_flags">
</colgroup>
<tbody><tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GladePalette.html#GladePalette-refresh" title="The “refresh” signal">refresh</a></td>
<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GladePalette.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GladePalette.html#GladePalette-struct" title="struct GladePalette">GladePalette</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="GladePalette.html#GladeItemAppearance" title="enum GladeItemAppearance">GladeItemAppearance</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GladePalette.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
    <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
        <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html#GtkWidget-struct">GtkWidget</a>
            <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gtk3/GtkContainer.html#GtkContainer-struct">GtkContainer</a>
                <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gtk3/GtkBox.html#GtkBox-struct">GtkBox</a>
                    <span class="lineart">╰──</span> GladePalette
</pre>
</div>
<div class="refsect1">
<a name="GladePalette.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GladePalette implements
 AtkImplementorIface,  <a href="/usr/share/gtk-doc/html/gtk3/GtkBuildable.html#GtkBuildable-struct">GtkBuildable</a> and  <a href="/usr/share/gtk-doc/html/gtk3/gtk3-Orientable.html#GtkOrientable-struct">GtkOrientable</a>.</p>
</div>
<div class="refsect1">
<a name="GladePalette.description"></a><h2>Description</h2>
<p><a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a> is responsible for displaying the list of available
<span class="type">GladeWidgetClass</span> types and publishing the currently selected class
to the Glade core.</p>
</div>
<div class="refsect1">
<a name="GladePalette.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="glade-palette-new"></a><h3>glade_palette_new ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
glade_palette_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Creates a new <a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a> widget</p>
<div class="refsect3">
<a name="glade-palette-new.returns"></a><h4>Returns</h4>
<p> a new <a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="glade-palette-get-item-appearance"></a><h3>glade_palette_get_item_appearance ()</h3>
<pre class="programlisting"><a class="link" href="GladePalette.html#GladeItemAppearance" title="enum GladeItemAppearance"><span class="returnvalue">GladeItemAppearance</span></a>
glade_palette_get_item_appearance (<em class="parameter"><code><a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a> *palette</code></em>);</pre>
<div class="refsect3">
<a name="glade-palette-get-item-appearance.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>palette</p></td>
<td class="parameter_description"><p>a <a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="glade-palette-get-item-appearance.returns"></a><h4>Returns</h4>
<p> The appearance of the palette items</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="glade-palette-set-item-appearance"></a><h3>glade_palette_set_item_appearance ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
glade_palette_set_item_appearance (<em class="parameter"><code><a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a> *palette</code></em>,
                                   <em class="parameter"><code><a class="link" href="GladePalette.html#GladeItemAppearance" title="enum GladeItemAppearance"><span class="type">GladeItemAppearance</span></a> item_appearance</code></em>);</pre>
<p>Sets the appearance of the palette items.</p>
<div class="refsect3">
<a name="glade-palette-set-item-appearance.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>palette</p></td>
<td class="parameter_description"><p>a <a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>item_appearance</p></td>
<td class="parameter_description"><p>the item appearance</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="glade-palette-get-use-small-item-icons"></a><h3>glade_palette_get_use_small_item_icons ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
glade_palette_get_use_small_item_icons
                               (<em class="parameter"><code><a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a> *palette</code></em>);</pre>
<div class="refsect3">
<a name="glade-palette-get-use-small-item-icons.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>palette</p></td>
<td class="parameter_description"><p>a <a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="glade-palette-get-use-small-item-icons.returns"></a><h4>Returns</h4>
<p> Whether small item icons are used</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="glade-palette-set-use-small-item-icons"></a><h3>glade_palette_set_use_small_item_icons ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
glade_palette_set_use_small_item_icons
                               (<em class="parameter"><code><a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a> *palette</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_small_item_icons</code></em>);</pre>
<p>Sets whether to use small item icons.</p>
<div class="refsect3">
<a name="glade-palette-set-use-small-item-icons.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>palette</p></td>
<td class="parameter_description"><p>a <a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>use_small_item_icons</p></td>
<td class="parameter_description"><p>Whether to use small item icons</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="glade-palette-set-show-selector-button"></a><h3>glade_palette_set_show_selector_button ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
glade_palette_set_show_selector_button
                               (<em class="parameter"><code><a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a> *palette</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> show_selector_button</code></em>);</pre>
<p>Sets whether to show the internal widget selector button</p>
<div class="refsect3">
<a name="glade-palette-set-show-selector-button.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>palette</p></td>
<td class="parameter_description"><p>a <a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>show_selector_button</p></td>
<td class="parameter_description"><p>whether to show selector button</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="glade-palette-get-show-selector-button"></a><h3>glade_palette_get_show_selector_button ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
glade_palette_get_show_selector_button
                               (<em class="parameter"><code><a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a> *palette</code></em>);</pre>
<div class="refsect3">
<a name="glade-palette-get-show-selector-button.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>palette</p></td>
<td class="parameter_description"><p>a <a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="glade-palette-get-show-selector-button.returns"></a><h4>Returns</h4>
<p> Whether the selector button is visible</p>
</div>
</div>
</div>
<div class="refsect1">
<a name="GladePalette.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GladePalette-struct"></a><h3>struct GladePalette</h3>
<pre class="programlisting">struct GladePalette;</pre>
</div>
<hr>
<div class="refsect2">
<a name="GladeItemAppearance"></a><h3>enum GladeItemAppearance</h3>
<div class="refsect3">
<a name="GladeItemAppearance.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="GLADE-ITEM-ICON-AND-LABEL:CAPS"></a>GLADE_ITEM_ICON_AND_LABEL</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GLADE-ITEM-ICON-ONLY:CAPS"></a>GLADE_ITEM_ICON_ONLY</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GLADE-ITEM-LABEL-ONLY:CAPS"></a>GLADE_ITEM_LABEL_ONLY</p></td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="GladePalette.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GladePalette--item-appearance"></a><h3>The <code class="literal">“item-appearance”</code> property</h3>
<pre class="programlisting">  “item-appearance”          <a class="link" href="GladePalette.html#GladeItemAppearance" title="enum GladeItemAppearance"><span class="type">GladeItemAppearance</span></a></pre>
<p>The appearance of the palette items.</p>
<p>Flags: Read / Write</p>
<p>Default value: GLADE_ITEM_ICON_ONLY</p>
</div>
<hr>
<div class="refsect2">
<a name="GladePalette--project"></a><h3>The <code class="literal">“project”</code> property</h3>
<pre class="programlisting">  “project”                  <a class="link" href="GladeProject.html" title="GladeProject"><span class="type">GladeProject</span></a> *</pre>
<p>This palette's current project.</p>
<p>Flags: Read / Write</p>
</div>
<hr>
<div class="refsect2">
<a name="GladePalette--show-selector-button"></a><h3>The <code class="literal">“show-selector-button”</code> property</h3>
<pre class="programlisting">  “show-selector-button”     <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>Whether to show the internal selector button.</p>
<p>Flags: Read / Write</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="GladePalette--use-small-item-icons"></a><h3>The <code class="literal">“use-small-item-icons”</code> property</h3>
<pre class="programlisting">  “use-small-item-icons”     <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>Whether to use small icons to represent items.</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
</div>
<div class="refsect1">
<a name="GladePalette.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="GladePalette-refresh"></a><h3>The <code class="literal">“refresh”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GladePalette.html" title="GladePalette"><span class="type">GladePalette</span></a> *gladepalette,
               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>      user_data)</pre>
<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.28</div>
</body>
</html>