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>GladeWidgetAction: 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="core.html" title="Part II. Glade Core">
<link rel="prev" href="gladeui-GladePropertyClass.html" title="GladePropertyClass">
<link rel="next" href="gladeui-glade-command.html" title="GladeCommand">
<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="#GladeWidgetAction.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#GladeWidgetAction.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#GladeWidgetAction.properties" class="shortcut">Properties</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="core.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="gladeui-GladePropertyClass.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="gladeui-glade-command.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GladeWidgetAction"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GladeWidgetAction.top_of_page"></a>GladeWidgetAction</span></h2>
<p>GladeWidgetAction — Context menu and toolbar actions.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GladeWidgetAction.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">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GladeWidgetAction.html#glade-widget-action-class-free" title="glade_widget_action_class_free ()">glade_widget_action_class_free</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GladeWidgetAction.html#GWActionClass" title="struct GWActionClass"><span class="returnvalue">GWActionClass</span></a> *
</td>
<td class="function_name">
<a class="link" href="GladeWidgetAction.html#glade-widget-action-class-clone" title="glade_widget_action_class_clone ()">glade_widget_action_class_clone</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="GladeWidgetAction.html#glade-widget-action-set-sensitive" title="glade_widget_action_set_sensitive ()">glade_widget_action_set_sensitive</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GladeWidgetAction.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 href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></td>
<td class="property_name"><a class="link" href="GladeWidgetAction.html#GladeWidgetAction--class" title="The “class” property">class</a></td>
<td class="property_flags">Write / Construct Only</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="GladeWidgetAction.html#GladeWidgetAction--sensitive" title="The “sensitive” property">sensitive</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="GladeWidgetAction.html#GladeWidgetAction--visible" title="The “visible” property">visible</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GladeWidgetAction.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="GladeWidgetAction.html#GWActionClass" title="struct GWActionClass">GWActionClass</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GladeWidgetAction.html#GladeWidgetAction-struct" title="struct GladeWidgetAction">GladeWidgetAction</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GladeWidgetAction.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> GladeWidgetAction
</pre>
</div>
<div class="refsect1">
<a name="GladeWidgetAction.description"></a><h2>Description</h2>
<p>Use <a class="link" href="GladeWidgetAction.html" title="GladeWidgetAction"><span class="type">GladeWidgetAction</span></a> to create custom routines to operate
on widgets you add to glade, when running <a class="link" href="gladeui-glade-widget-adaptor.html#GladeActionActivateFunc" title="GladeActionActivateFunc ()"><span class="type">GladeActionActivateFunc</span></a> functions
you should make sure to use <a class="link" href="gladeui-glade-command.html#GladeCommand"><span class="type">GladeCommand</span></a>.</p>
</div>
<div class="refsect1">
<a name="GladeWidgetAction.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="glade-widget-action-class-free"></a><h3>glade_widget_action_class_free ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
glade_widget_action_class_free (<em class="parameter"><code><a class="link" href="GladeWidgetAction.html#GWActionClass" title="struct GWActionClass"><span class="type">GWActionClass</span></a> *action</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="glade-widget-action-class-clone"></a><h3>glade_widget_action_class_clone ()</h3>
<pre class="programlisting"><a class="link" href="GladeWidgetAction.html#GWActionClass" title="struct GWActionClass"><span class="returnvalue">GWActionClass</span></a> *
glade_widget_action_class_clone (<em class="parameter"><code><a class="link" href="GladeWidgetAction.html#GWActionClass" title="struct GWActionClass"><span class="type">GWActionClass</span></a> *action</code></em>);</pre>
<div class="refsect3">
<a name="glade-widget-action-class-clone.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>action</p></td>
<td class="parameter_description"><p>a GWActionClass</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="glade-widget-action-class-clone.returns"></a><h4>Returns</h4>
<p> a newlly allocated copy of <em class="parameter"><code>action</code></em>
.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="glade-widget-action-set-sensitive"></a><h3>glade_widget_action_set_sensitive ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
glade_widget_action_set_sensitive (<em class="parameter"><code><a class="link" href="GladeWidgetAction.html" title="GladeWidgetAction"><span class="type">GladeWidgetAction</span></a> *action</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> sensitive</code></em>);</pre>
<p>Set whether or not this action is sensitive.</p>
<div class="refsect3">
<a name="glade-widget-action-set-sensitive.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>action</p></td>
<td class="parameter_description"><p>a <a class="link" href="GladeWidgetAction.html" title="GladeWidgetAction"><span class="type">GladeWidgetAction</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="GladeWidgetAction.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GWActionClass"></a><h3>struct GWActionClass</h3>
<pre class="programlisting">struct GWActionClass {
  const gchar    *id;     /* The identifier of this action in the action tree */
  gchar          *path;	  /* Full action path  */
  gchar          *label;  /* A translated label to show in the UI for this action */
  gchar          *stock;  /* If set, this stock item will be shown in the UI along side
			   * the label */
  gboolean        important;  /* If this action is important */

  GList          *actions;/* Recursive list of child actions */
};
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GladeWidgetAction-struct"></a><h3>struct GladeWidgetAction</h3>
<pre class="programlisting">struct GladeWidgetAction;</pre>
</div>
</div>
<div class="refsect1">
<a name="GladeWidgetAction.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GladeWidgetAction--class"></a><h3>The <code class="literal">“class”</code> property</h3>
<pre class="programlisting">  “class”                    <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></pre>
<p>GladeWidgetActionClass structure pointer.</p>
<p>Flags: Write / Construct Only</p>
</div>
<hr>
<div class="refsect2">
<a name="GladeWidgetAction--sensitive"></a><h3>The <code class="literal">“sensitive”</code> property</h3>
<pre class="programlisting">  “sensitive”                <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>Whether this action is sensitive.</p>
<p>Flags: Read / Write</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="GladeWidgetAction--visible"></a><h3>The <code class="literal">“visible”</code> property</h3>
<pre class="programlisting">  “visible”                  <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>Whether this action is visible.</p>
<p>Flags: Read / Write</p>
<p>Default value: TRUE</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.28</div>
</body>
</html>