/usr/share/gtk-doc/html/caja-python/class-caja-python-menu-item.html is in python-caja-common 1.20.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Caja.MenuItem</title><link rel="stylesheet" type="text/css" href="style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.79.1"><link rel="home" href="index.html" title="caja-python Reference Manual"><link rel="up" href="caja-python-class-reference.html" title="Available Classes"><link rel="prev" href="class-caja-python-menu.html" title="Caja.Menu"><link rel="next" href="class-caja-python-property-page.html" title="Caja.PropertyPage"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Caja.MenuItem</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-caja-python-menu.html">Prev</a> </td><th width="60%" align="center">Available Classes</th><td width="20%" align="right"> <a accesskey="n" href="class-caja-python-property-page.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="class-caja-python-menu-item"></a><div class="titlepage"></div><div class="refnamediv"><h2>Caja.MenuItem</h2><p>Caja.MenuItem — Caja.MenuItem Reference</p></div><div class="refsect1"><a name="idm573"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">Caja.MenuItem</span></span>(<span class="ooclass"><span class="classname">gobject.GObject</span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-caja-python-menu-item.html#constructor-caja-menu-item" title="Constructor">Caja.MenuItem</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>label</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-caja-python-menu-item.html#method-caja-python-menu-item--activate" title="Caja.MenuItem.activate">activate</a></span>()</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-caja-python-menu-item.html#method-caja-python-menu-item--set_submenu" title="Caja.MenuItem.set_submenu">set_submenu</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1"><a name="idm600"></a><h2>Ancestry</h2><pre class="synopsis">+-- gobject.GObject
+-- <a class="link" href="class-caja-python-menu-item.html" title="Caja.MenuItem">Caja.MenuItem</a>
</pre></div><div class="refsect1"><a name="description-menu-item"></a><h2>Description</h2><p>
<a class="link" href="class-caja-python-menu-item.html" title="Caja.MenuItem"><code class="classname">Caja.MenuItem</code></a> objects are appended to lists to create menus and submenus.
</p></div><div class="refsect1"><a name="idm610"></a><h2>Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table class="informaltable" width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"icon"</td><td valign="top">Name of the icon to display in the menu item. Default value: None</td><td valign="top">Read-Write</td></tr><tr valign="top"><td valign="top">"label"</td><td valign="top">The label to display to the user. Default value: None</td><td valign="top">Read-Write</td></tr><tr valign="top"><td valign="top">"menu"</td><td valign="top">The <a class="link" href="class-caja-python-menu.html" title="Caja.Menu">Caja.Menu</a> menu object belonging to this item. May be None.</td><td valign="top">Read-Write</td></tr><tr valign="top"><td valign="top">"name"</td><td valign="top">The name of the item. Default value: None</td><td valign="top">Read-Write-ConstructOnly</td></tr><tr valign="top"><td valign="top">"priority"</td><td valign="top">Whether or not to show priority text in toolbars. Default value: True</td><td valign="top">Read-Write</td></tr><tr valign="top"><td valign="top">"sensitive"</td><td valign="top">Whether or not the menu item is sensitive. Default value: True</td><td valign="top">Read-Write</td></tr><tr valign="top"><td valign="top">"tip"</td><td valign="top">The tooltip for the menu item. Default value: None</td><td valign="top">Read-Write</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1"><a name="idm655"></a><h2>Signals</h2><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><a class="link" href="class-caja-python-menu-item.html#signal-caja-python-menu-item--activate" title='The "activate" Caja.MenuItem Signal'>"activate"</a></span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>item</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1"><a name="constructor-caja-menu-item"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">Caja.MenuItem</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>label</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltip</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>name</code></strong> :</span></p></td><td>identifier of the item</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>label</code></strong> :</span></p></td><td>the user-visible label for the item</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip</code></strong> :</span></p></td><td>the user-visible tooltip for the item</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>icon</code></strong> :</span></p></td><td>Name of the icon to display in the item</td></tr></tbody></table><p>
Creates a new <a class="link" href="class-caja-python-menu-item.html" title="Caja.MenuItem"><code class="classname">Caja.MenuItem</code></a> object.
</p></div><div class="refsect1"><a name="idm707"></a><h2>Public Methods</h2><div class="refsect2"><a name="method-caja-python-menu-item--activate"></a><h3>Caja.MenuItem.activate</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">activate</span>()</code></pre><p>
Generates the "<a class="link" href="class-caja-python-menu-item.html#signal-caja-python-menu-item--activate" title='The "activate" Caja.MenuItem Signal'>activate</a>" signal for this <a class="link" href="class-caja-python-menu-item.html" title="Caja.MenuItem"><code class="classname">Caja.MenuItem</code></a>.
</p></div><div class="refsect2"><a name="method-caja-python-menu-item--set_submenu"></a><h3>Caja.MenuItem.set_submenu</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_submenu</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>menu</code></strong> :</span></p></td><td>a <a class="link" href="class-caja-python-menu.html" title="Caja.Menu"><code class="classname">Caja.Menu</code></a></td></tr></tbody></table><p>
Attaches a <a class="link" href="class-caja-python-menu.html" title="Caja.Menu"><code class="classname">Caja.Menu</code></a> as the submenu for this <a class="link" href="class-caja-python-menu-item.html" title="Caja.MenuItem"><code class="classname">Caja.MenuItem</code></a>.
</p></div></div><div class="refsect1"><a name="idm738"></a><h2>Signal Details</h2><div class="refsect2"><a name="signal-caja-python-menu-item--activate"></a><h3>The "activate" Caja.MenuItem Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>item</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td><td>the <a class="link" href="class-caja-python-menu-item.html" title="Caja.MenuItem"><code class="classname">Caja.MenuItem</code></a> being activated</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>User-defined parameter the user attaches to the signal connector</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>Additional parameter(s) the user attaches to the signal connector</td></tr></tbody></table><p>
Emits the "<a class="link" href="class-caja-python-menu-item.html#signal-caja-python-menu-item--activate" title='The "activate" Caja.MenuItem Signal'>activate</a>" signal.
</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-caja-python-menu.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="caja-python-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-caja-python-property-page.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Caja.Menu </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Caja.PropertyPage</td></tr></table></div></body></html>
|