/usr/share/gtk-doc/html/pygtk/class-gtkrecentaction.html is in python-gtk2-doc 2.24.0-5.1ubuntu2.
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 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.RecentAction</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-gtkrcstyle.html" title="gtk.RcStyle"><link rel="next" href="class-gtkrecentchooserdialog.html" title="gtk.RecentChooserDialog"></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">gtk.RecentAction</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkrcstyle.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkrecentchooserdialog.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.RecentAction"><a name="class-gtkrecentaction"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.RecentAction</h2><p>gtk.RecentAction — An action of which represents a list of recently used files (new in PyGTK 2.12)</p></div><div class="refsect1" title="Synopsis"><a name="id3864890"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.RecentAction</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkaction.html" title="gtk.Action">gtk.Action</a></span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-gtkrecentaction.html#constructor-gtkrecentaction" title="gtk.RecentAction">gtk.RecentAction</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>stock_id</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkrecentaction.html#method-gtkrecentaction--get-show-numbers" title="gtk.RecentAction.get_show_numbers">get_show_numbers</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkrecentaction.html#method-gtkrecentaction--set-show-numbers" title="gtk.RecentAction.set_show_numbers">set_show_numbers</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show_numbers</code></strong></span></span>)</code><br></pre></td></tr></table><pre class="programlisting">
<span class="bold"><strong>Functions</strong></span>
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkrecentaction.html#function-gtk--recent-action-new-for-manager" title="gtk.recent_action_new_for_manager">gtk.recent_action_new_for_manager</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>stock_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>manager</code></strong></span></span>)</code></pre></div><div class="refsect1" title="Ancestry"><a name="id3865131"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
+-- <a class="link" href="class-gtkaction.html" title="gtk.Action">gtk.Action</a>
+-- <a class="link" href="class-gtkrecentaction.html" title="gtk.RecentAction">gtk.RecentAction</a>
</pre></div><div class="refsect1" title="gtk.RecentAction Properties"><a name="properties-gtkrecentaction"></a><h2>gtk.RecentAction Properties</h2><p><a class="link" href="class-gtkaction.html#properties-gtkaction" title="gtk.Action Properties">gtk.Action Properties</a></p><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"show-numbers"</td><td valign="top">Read-Write</td><td valign="top">Whether the items should be displayed with a number.
Default value: <code class="literal">False</code></td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="Description"><a name="id3865252"></a><h2>Description</h2><p>
A <a class="link" href="class-gtkrecentaction.html" title="gtk.RecentAction">gtk.RecentAction</a> represents a list
of recently used files, which can be shown by widgets such as
<a class="link" href="class-gtkrecentchooserdialog.html" title="gtk.RecentChooserDialog">gtk.RecentChooserDialog</a> or
<a class="link" href="class-gtkrecentchoosermenu.html" title="gtk.RecentChooserMenu">gtk.RecentChooserMenu</a>.
</p><p>
To construct a submenu showing recently used files, use a
<a class="link" href="class-gtkrecentaction.html" title="gtk.RecentAction">gtk.RecentAction</a>
as the action for a <menuitem>. To construct a menu toolbutton showing
the recently used files in the popup menu, use a
<a class="link" href="class-gtkrecentaction.html" title="gtk.RecentAction">gtk.RecentAction</a>
as the action for a <toolitem> element.
</p></div><div class="refsect1" title="Constructor"><a name="id3865307"></a><h2>Constructor</h2><div class="refsect2" title="gtk.RecentAction"><a name="constructor-gtkrecentaction"></a><h3>gtk.RecentAction</h3><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtk.RecentAction</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>stock_id</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>a unique name for the action </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>label</code></strong> :</span></p></td><td>the label displayed in menu items and on buttons, or <code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip</code></strong> :</span></p></td><td>a tooltip for the action, or <code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>stock_id</code></strong> :</span></p></td><td>the stock icon to display in widgets representing the action, or <code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new
<a class="link" href="class-gtkrecentaction.html" title="gtk.RecentAction"><code class="classname">gtk.RecentAction</code></a>
</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This constructor is available in PyGTK 2.12 and above.</p></div><p>
Creates a new
<a class="link" href="class-gtkrecentaction.html" title="gtk.RecentAction"><code class="classname">gtk.RecentAction</code></a>
object. To add the action to a
<a class="link" href="class-gtkactiongroup.html" title="gtk.ActionGroup"><code class="classname">gtk.ActionGroup</code></a>
and set the accelerator for the action, call
<code class="methodname"><a class="link" href="class-gtkactiongroup.html#method-gtkactiongroup--add-action-with-accel" title="gtk.ActionGroup.add_action_with_accel">gtk.ActionGroup.add_action_with_accel</a></code>().
</p></div></div><div class="refsect1" title="Methods"><a name="id3865562"></a><h2>Methods</h2><div class="refsect2" title="gtk.RecentAction.get_show_numbers"><a name="method-gtkrecentaction--get-show-numbers"></a><h3>gtk.RecentAction.get_show_numbers</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_show_numbers</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if numbers should be shown.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.12 and above.</p></div><p>
The <code class="methodname">get_show_numbers</code>() method returns the value set by
<code class="methodname"><a class="link" href="class-gtkrecentaction.html#method-gtkrecentaction--set-show-numbers" title="gtk.RecentAction.set_show_numbers">gtk.RecentAction.set_show_numbers</a></code>().
</p></div><div class="refsect2" title="gtk.RecentAction.set_show_numbers"><a name="method-gtkrecentaction--set-show-numbers"></a><h3>gtk.RecentAction.set_show_numbers</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_show_numbers</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>show_numbers</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"><strong class="parameter"><code>show_numbers</code></strong> :</span></p></td><td><code class="literal">True</code> if the shown items should be numbered.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.12 and above.</p></div><p>
The <code class="methodname">set_show_numbers</code>() method sets whether a number
should be added to the items shown by the widgets representing action.
The numbers are shown to provide a unique character for a mnemonic to be
used inside the menu item's label. Only the first ten items get a number to avoid clashes.
</p></div></div><div class="refsect1" title="Functions"><a name="id3865742"></a><h2>Functions</h2><div class="refsect2" title="gtk.recent_action_new_for_manager"><a name="function-gtk--recent-action-new-for-manager"></a><h3>gtk.recent_action_new_for_manager</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">recent_action_new_for_manager</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>name</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>label</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>tooltip</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>stock_id</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>manager</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"><strong class="parameter"><code>name</code></strong> :</span></p></td><td>a unique name for the action </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>label</code></strong> :</span></p></td><td>the label displayed in menu items and on buttons, or <code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>tooltip</code></strong> :</span></p></td><td>a tooltip for the action, or <code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>stock_id</code></strong> :</span></p></td><td>the stock icon to display in widgets representing the action, or <code class="literal">None</code>.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>manager</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkrecentmanager.html" title="gtk.RecentManager">gtk.RecentManager</a>, or
<code class="literal">None</code> for using the default
<a class="link" href="class-gtkrecentmanager.html" title="gtk.RecentManager">gtk.RecentManager</a></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.12 and above.</p></div><p>
The <code class="methodname">recent_action_new_for_manager</code>() function creates a new
<a class="link" href="class-gtkrecentaction.html" title="gtk.RecentAction">gtk.RecentAction</a> object. To add the action to a
<a class="link" href="class-gtkactiongroup.html" title="gtk.ActionGroup">gtk.ActionGroup</a> and set the accelerator for the action, call
<code class="methodname"><a class="link" href="class-gtkactiongroup.html#method-gtkactiongroup--add-action-with-accel" title="gtk.ActionGroup.add_action_with_accel">gtk.ActionGroup.add_action_with_accel</a></code>().
</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-gtkrcstyle.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-gtkrecentchooserdialog.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.RcStyle </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.RecentChooserDialog</td></tr></table></div></body></html>
|