/usr/share/gtk-doc/html/caja-python/class-caja-python-column-provider.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 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Caja.ColumnProvider</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-provider-reference.html" title="Provider Interfaces"><link rel="prev" href="caja-python-provider-reference.html" title="Provider Interfaces"><link rel="next" href="class-caja-python-info-provider.html" title="Caja.InfoProvider"></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.ColumnProvider</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="caja-python-provider-reference.html">Prev</a> </td><th width="60%" align="center">Provider Interfaces</th><td width="20%" align="right"> <a accesskey="n" href="class-caja-python-info-provider.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="class-caja-python-column-provider"></a><div class="titlepage"></div><div class="refnamediv"><h2>Caja.ColumnProvider</h2><p>Caja.ColumnProvider — Caja.ColumnProvider Reference</p></div><div class="refsect1"><a name="idm861"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">Caja.ColumnProvider</span></span>:
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-caja-python-column-provider.html#method-caja-column-provider--get-columns" title="Caja.ColumnProvider.get_columns">get_columns</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1"><a name="description-column-provider"></a><h2>Description</h2><p>
If subclassed, Caja will request a list of <a class="link" href="class-caja-python-column.html" title="Caja.Column"><code class="classname">Caja.Column</code></a>
objects, which are then displayed when the user is in <code class="literal">List</code> mode.
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3>An extension sub-classing <a class="link" href="class-caja-python-column-provider.html" title="Caja.ColumnProvider"><code class="classname">Caja.ColumnProvider</code></a>
will almost always want to sub-class <code class="classname">Caja.InfoProvider</code>
as well, since that is how an extension provides information for each item in a directory listing.
</div><p>
</p><div class="example"><a name="idm881"></a><p class="title"><b>Example 2. Caja.ColumnProvider Example</b></p><div class="example-contents"><pre class="programlisting">
import os
import urllib
from gi.repository import Caja, GObject
class ColumnExtension(GObject.GObject, Caja.ColumnProvider, Caja.InfoProvider):
def __init__(self):
pass
def get_columns(self):
return Caja.Column(name="CajaPython::block_size_column",
attribute="block_size",
label="Block size",
description="Get the block size"),
def update_file_info(self, file):
if file.get_uri_scheme() != 'file':
return
filename = urllib.unquote(file.get_uri()[7:])
file.add_string_attribute('block_size', str(os.stat(filename).st_blksize))
</pre></div></div><br class="example-break"></div><div class="refsect1"><a name="idm884"></a><h2>Passive Methods</h2><div class="refsect2"><a name="method-caja-column-provider--get-columns"></a><h3>Caja.ColumnProvider.get_columns</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_columns</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>a list of <code class="literal">Caja.Column</code></td></tr></tbody></table><p>
The <code class="methodname">get_columns</code>() method returns a list of
<a class="link" href="class-caja-python-column.html" title="Caja.Column"><code class="classname">Caja.Column</code></a>.
</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="caja-python-provider-reference.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-info-provider.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Provider Interfaces </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Caja.InfoProvider</td></tr></table></div></body></html>
|