/usr/share/gtk-doc/html/caja-python/class-caja-python-location-widget-provider.html is in python-caja-common 1.12.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 15 16 17 18 19 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Caja.LocationWidgetProvider</title><link rel="stylesheet" type="text/css" href="style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="caja-python Reference Manual"><link rel="up" href="caja-python-provider-reference.html" title="Provider Interfaces"><link rel="prev" href="class-caja-python-info-provider.html" title="Caja.InfoProvider"><link rel="next" href="class-caja-python-menu-provider.html" title="Caja.MenuProvider"></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.LocationWidgetProvider</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-caja-python-info-provider.html">Prev</a> </td><th width="60%" align="center">Provider Interfaces</th><td width="20%" align="right"> <a accesskey="n" href="class-caja-python-menu-provider.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="class-caja-python-location-widget-provider"></a><div class="titlepage"></div><div class="refnamediv"><h2>Caja.LocationWidgetProvider</h2><p>Caja.LocationWidgetProvider — Caja.LocationWidgetProvider Reference</p></div><div class="refsect1"><a name="idp44253024"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">Caja.LocationWidgetProvider</span></span>:
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-caja-python-location-widget-provider.html#method-caja-location-widget-provider--get-widget" title="Caja.LocationWidgetProvider.get_widget">get_widget</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>uri</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1"><a name="description-location-widget-provider"></a><h2>Description</h2><p>
If subclassed, Caja will request a widget to be displayed at the top of the directory listing.
</p><div class="example"><a name="idp48732880"></a><p class="title"><b>Example 4. Caja.LocationWidgetProvider Example</b></p><div class="example-contents"><pre class="programlisting">
from gi.repository import Caja, GObject, Gtk
class ColumnExtension(GObject.GObject, Caja.LocationWidgetProvider):
def __init__(self):
pass
def get_widget(self, uri, window):
entry = Gtk.Entry()
entry.set_text(uri)
entry.show()
return entry
</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idp41776048"></a><h2>Passive Methods</h2><div class="refsect2"><a name="method-caja-location-widget-provider--get-widget"></a><h3>Caja.LocationWidgetProvider.get_widget</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_widget</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>uri</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</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>uri</code></strong> :</span></p></td><td>the current folder uri</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>the current <code class="classname">gtk.Window</code> instance</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <code class="classname">gtk.Widget</code> object</td></tr></tbody></table><p>
This function is called by Caja when it wants a location widget from the extension.
It is called in the main thread before a directory listing is shown, so it should return quickly.
</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-info-provider.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="caja-python-provider-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-caja-python-menu-provider.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Caja.InfoProvider </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Caja.MenuProvider</td></tr></table></div></body></html>
|