/usr/share/gtk-doc/html/pygtk/class-gtkrecentchoosermenu.html is in python-gtk2-doc 2.24.0-3.
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 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.RecentChooserMenu</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-gtkrecentchooserdialog.html" title="gtk.RecentChooserDialog"><link rel="next" href="class-gtkrecentchooserwidget.html" title="gtk.RecentChooserWidget"></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.RecentChooserMenu</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkrecentchooserdialog.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkrecentchooserwidget.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.RecentChooserMenu"><a name="class-gtkrecentchoosermenu"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.RecentChooserMenu</h2><p>gtk.RecentChooserMenu — Displays recently used files in a menu (new in PyGTK
2.10)</p></div><div class="refsect1" title="Synopsis"><a name="id3866900"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.RecentChooserMenu</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkmenu.html" title="gtk.Menu">gtk.Menu</a></span></span>, <span class="ooclass"><span class="classname"><a class="link" href="class-gtkrecentchooser.html" title="gtk.RecentChooser">gtk.RecentChooser</a></span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-gtkrecentchoosermenu.html#constructor-gtkrecentchoosermenu" title="gtk.RecentChooserMenu">gtk.RecentChooserMenu</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>manager</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtkrecentchoosermenu.html#method-gtkrecentchoosermenu--get-show-numbers" title="gtk.RecentChooserMenu.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-gtkrecentchoosermenu.html#method-gtkrecentchoosermenu--set-show-numbers" title="gtk.RecentChooserMenu.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></div><div class="refsect1" title="Ancestry"><a name="id3867014"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
+-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
+-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
+-- <a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
+-- <a class="link" href="class-gtkmenushell.html" title="gtk.MenuShell">gtk.MenuShell</a>
+-- <a class="link" href="class-gtkmenu.html" title="gtk.Menu">gtk.Menu</a>
+-- <a class="link" href="class-gtkrecentchoosermenu.html" title="gtk.RecentChooserMenu">gtk.RecentChooserMenu</a> (implements <a class="link" href="class-gtkrecentchooser.html" title="gtk.RecentChooser"><code class="classname">gtk.RecentChooser</code></a>)
</pre></div><div class="refsect1" title="Implemented Interfaces"><a name="id3867080"></a><h2>Implemented Interfaces</h2><p>
<a class="link" href="class-gtkrecentchoosermenu.html" title="gtk.RecentChooserMenu"><code class="classname">gtk.RecentChooserMenu</code></a>
implements
<a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
</p></div><div class="refsect1" title="gtk.RecentChooserMenu Properties"><a name="properties-gtkrecentchoosermenu"></a><h2>gtk.RecentChooserMenu Properties</h2><p><a class="link" href="class-gtkrecentchooser.html#properties-gtkrecentchooser" title="gtk.RecentChooser Properties">gtk.RecentChooser Properties</a></p><p><a class="link" href="class-gtkobject.html#properties-gtkobject" title="gtk.Object Properties">gtk.Object Properties</a></p><p><a class="link" href="class-gtkwidget.html#properties-gtkwidget" title="gtk.Widget Properties">gtk.Widget Properties</a></p><p><a class="link" href="class-gtkcontainer.html#properties-gtkcontainer" title="gtk.Container Properties">gtk.Container Properties</a></p><p><a class="link" href="class-gtkmenushell.html#properties-gtkmenushell" title="gtk.MenuShell Properties">gtk.MenuShell Properties</a></p><p><a class="link" href="class-gtkmenu.html#properties-gtkmenu" title="gtk.Menu Properties">gtk.Menu 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="3.5in"></colgroup><tbody><tr valign="top"><td valign="top">"show-numbers"</td><td valign="top">Read-Write</td><td valign="top">Whether the first ten items in the menu should be prepended by
a number acting as a unique mnemonic.
This property is available in GTK+ 2.10 and above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="gtk.RecentChooserMenu Style Properties"><a name="style-properties-gtkrecentchoosermenu"></a><h2>gtk.RecentChooserMenu Style Properties</h2><p><a class="link" href="class-gtkwidget.html#style-properties-gtkwidget" title="gtk.Widget Style Properties">gtk.Widget Style Properties</a></p><p><a class="link" href="class-gtkmenu.html#style-properties-gtkmenu" title="gtk.Menu Style Properties">gtk.Menu Style Properties</a></p></div><div class="refsect1" title="gtk.RecentChooserMenu Child Properties"><a name="child-properties-gtkrecentchoosermenu"></a><h2>gtk.RecentChooserMenu Child Properties</h2><p><a class="link" href="class-gtkmenu.html#child-properties-gtkmenu" title="gtk.Menu Child Properties">gtk.Menu Child Properties</a></p></div><div class="refsect1" title="gtk.RecentChooserMenu Signal Prototypes"><a name="signal-prototypes-gtkrecentchoosermenu"></a><h2>gtk.RecentChooserMenu Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><p><a class="link" href="class-gtkobject.html#signal-prototypes-gtkobject" title="gtk.Object Signal Prototypes">gtk.Object Signal Prototypes</a></p><p><a class="link" href="class-gtkwidget.html#signal-prototypes-gtkwidget" title="gtk.Widget Signal Prototypes">gtk.Widget Signal Prototypes</a></p><p><a class="link" href="class-gtkcontainer.html#signal-prototypes-gtkcontainer" title="gtk.Container Signal Prototypes">gtk.Container Signal Prototypes</a></p><p><a class="link" href="class-gtkmenushell.html#signal-prototypes-gtkmenushell" title="gtk.MenuShell Signal Prototypes">gtk.MenuShell Signal Prototypes</a></p><p><a class="link" href="class-gtkmenu.html#signal-prototypes-gtkmenu" title="gtk.Menu Signal Prototypes">gtk.Menu Signal Prototypes</a></p><p><a class="link" href="class-gtkrecentchooser.html#signal-prototypes-gtkrecentchooser" title="gtk.RecentChooser Signal Prototypes">gtk.RecentChooser Signal Prototypes</a></p></div><div class="refsect1" title="Description"><a name="id3867342"></a><h2>Description</h2><p>
<a class="link" href="class-gtkrecentchoosermenu.html" title="gtk.RecentChooserMenu"><code class="classname">gtk.RecentChooserMenu</code></a> is a widget suitable for displaying recently used files
inside a menu. It can be used to set a sub-menu of a <a class="link" href="class-gtkmenuitem.html" title="gtk.MenuItem"><code class="classname">gtk.MenuItem</code></a> using
<a class="link" href="class-gtkmenuitem.html#method-gtkmenuitem--set-submenu" title="gtk.MenuItem.set_submenu"><code class="methodname">gtk.MenuItem.set_submenu()</code></a>, or as the menu of a <a class="link" href="class-gtkmenutoolbutton.html" title="gtk.MenuToolButton"><code class="classname">gtk.MenuToolButton</code></a>.
</p><p>
Note that <a class="link" href="class-gtkrecentchoosermenu.html" title="gtk.RecentChooserMenu"><code class="classname">gtk.RecentChooserMenu</code></a> does not have any methods of its own. Instead,
you should use the functions that work on a <a class="link" href="class-gtkrecentchooser.html" title="gtk.RecentChooser"><code class="classname">gtk.RecentChooser</code></a>.
</p><p>
Recently used files are supported since GTK+ 2.10.
</p></div><div class="refsect1" title="Constructor"><a name="id3867411"></a><h2>Constructor</h2><div class="refsect2" title="gtk.RecentChooserMenu"><a name="constructor-gtkrecentchoosermenu"></a><h3>gtk.RecentChooserMenu</h3><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtk.RecentChooserMenu</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>manager</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>manager</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkrecentmanager.html" title="gtk.RecentManager"><code class="classname">gtk.RecentManager</code></a></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-gtkrecentchoosermenu.html" title="gtk.RecentChooserMenu"><code class="classname">gtk.RecentChooserMenu</code></a>, bound to <em class="parameter"><code>manager</code></em>.</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.10 and above.</p></div><p>Creates a new <a class="link" href="class-gtkrecentchoosermenu.html" title="gtk.RecentChooserMenu"><code class="classname">gtk.RecentChooserMenu</code></a> widget using <em class="parameter"><code>manager</code></em> as
the underlying recently used resources manager.</p><p>This is useful if you have implemented your own recent manager,
or if you have a customized instance of a <a class="link" href="class-gtkrecentmanager.html" title="gtk.RecentManager"><code class="classname">gtk.RecentManager</code></a>
object or if you wish to share a common <a class="link" href="class-gtkrecentmanager.html" title="gtk.RecentManager"><code class="classname">gtk.RecentManager</code></a> object
among multiple <a class="link" href="class-gtkrecentchooser.html" title="gtk.RecentChooser"><code class="classname">gtk.RecentChooser</code></a> widgets.</p></div></div><div class="refsect1" title="Methods"><a name="id3867571"></a><h2>Methods</h2><div class="refsect2" title="gtk.RecentChooserMenu.get_show_numbers"><a name="method-gtkrecentchoosermenu--get-show-numbers"></a><h3>gtk.RecentChooserMenu.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.10 and above.</p></div><p>Returns the value set by <a class="link" href="class-gtkrecentchoosermenu.html#method-gtkrecentchoosermenu--set-show-numbers" title="gtk.RecentChooserMenu.set_show_numbers"><code class="methodname">gtk.RecentChooserMenu.set_show_numbers()</code></a>.</p></div><div class="refsect2" title="gtk.RecentChooserMenu.set_show_numbers"><a name="method-gtkrecentchoosermenu--set-show-numbers"></a><h3>gtk.RecentChooserMenu.set_show_numbers</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">set_show_numbers</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show_numbers</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>show_numbers</code></strong> :</span></p></td><td>whether to show numbers</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.10 and above.</p></div><p>Sets whether a number should be added to the items of <em class="parameter"><code>menu</code></em>. The
numbers are shown to provide a unique character for a mnemonic to
be used inside the menu item's label. Only the first the items
get a number to avoid clashes.</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-gtkrecentchooserdialog.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-gtkrecentchooserwidget.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.RecentChooserDialog </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.RecentChooserWidget</td></tr></table></div></body></html>
|