~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to docs/html/class-gtkcellview.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-06-22 16:49:42 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090622164942-19zeltp4z0u5iw72
Tags: 2.15.2-0ubuntu1
* New upstream version:
  - Rename gtk.Statusbar.remove() to gtk.Statusbar.remove_message
  - Allow pango.Context creation 
  - Make gtk.gdk.Pixbuf.add_alpha accept integers, retaining backward
    compatibility accepting also chars 
  - Protect window obj from GC in gtk.window_get_toplevels 
  - Plug huge number of memory leaks in Pango wrappers 
  - Add gtk.gdk.WINDOWING constant 
  - Wrap gdk_pixbuf_apply_embedded_orientation 
  - Modernize constructors of seven more types 
  - Don't free a string we don't own 
  - Some docs tweaking 
* debian/control.in:
  - set vcs location
* debian/patches/02_fix_get_application_info_crash.patch:
  - the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.CellView</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" 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-gtkcellrenderertoggle.html" title="gtk.CellRendererToggle"><link rel="next" href="class-gtkcheckbutton.html" title="gtk.CheckButton"></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.CellView</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkcellrenderertoggle.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkcheckbutton.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkcellview"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.CellView</h2><p>gtk.CellView — a widget displaying a single row of a <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a>
2
 
(new in PyGTK 2.6).</p></div><div class="refsect1" lang="en"><a name="id3419432"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.CellView</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a></span></span>, <span class="ooclass"><span class="classname"><a class="link" href="class-gtkcelllayout.html" title="gtk.CellLayout">gtk.CellLayout</a></span></span>):
 
2
(new in PyGTK 2.6).</p></div><div class="refsect1" lang="en"><a name="id3620266"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.CellView</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a></span></span>, <span class="ooclass"><span class="classname"><a class="link" href="class-gtkcelllayout.html" title="gtk.CellLayout">gtk.CellLayout</a></span></span>):
3
3
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtkcellview.html#constructor-gtkcellview" title="Constructor">gtk.CellView</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#method-gtkcellview--set-model" title="gtk.CellView.set_model">set_model</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>model</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#method-gtkcellview--set-displayed-row" title="gtk.CellView.set_displayed_row">set_displayed_row</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#method-gtkcellview--get-displayed-row" title="gtk.CellView.get_displayed_row">get_displayed_row</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#method-gtkcellview--get-size-of-row" title="gtk.CellView.get_size_of_row">get_size_of_row</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>requisition</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#method-gtkcellview--set-background-color" title="gtk.CellView.set_background_color">set_background_color</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>color</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#method-gtkcellview--get-cell-renderers" title="gtk.CellView.get_cell_renderers">get_cell_renderers</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table><pre class="programlisting">
4
4
<span class="bold"><strong>Functions</strong></span>
5
5
 
6
 
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#function-gtk--cell-view-new-with-text" title="gtk.cell_view_new_with_text">gtk.cell_view_new_with_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#function-gtk--cell-view-new-with-markup" title="gtk.cell_view_new_with_markup">gtk.cell_view_new_with_markup</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#function-gtk--cell-view-new-with-pixbuf" title="gtk.cell_view_new_with_pixbuf">gtk.cell_view_new_with_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>)</code></pre></div><div class="refsect1" lang="en"><a name="id3419703"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
 
6
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#function-gtk--cell-view-new-with-text" title="gtk.cell_view_new_with_text">gtk.cell_view_new_with_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#function-gtk--cell-view-new-with-markup" title="gtk.cell_view_new_with_markup">gtk.cell_view_new_with_markup</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkcellview.html#function-gtk--cell-view-new-with-pixbuf" title="gtk.cell_view_new_with_pixbuf">gtk.cell_view_new_with_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>)</code></pre></div><div class="refsect1" lang="en"><a name="id3620537"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
7
7
  +-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
8
8
    +-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
9
9
      +-- <a class="link" href="class-gtkcellview.html" title="gtk.CellView">gtk.CellView</a>
10
 
</pre></div><div class="refsect1" lang="en"><a name="id3419735"></a><h2>Implemented Interfaces</h2><p>
 
10
</pre></div><div class="refsect1" lang="en"><a name="id3620569"></a><h2>Implemented Interfaces</h2><p>
11
11
                        <a class="link" href="class-gtkcellview.html" title="gtk.CellView"><code class="classname">gtk.CellView</code></a>
12
12
                        implements 
13
13
                        <a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
15
15
                </p></div><div class="refsect1" lang="en"><a name="properties-gtkcellview"></a><h2>gtk.CellView Properties</h2><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><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"background"</td><td valign="top">Write</td><td valign="top">The background color as a string. Default value:
16
16
<code class="literal">None</code></td></tr><tr valign="top"><td valign="top">"background-gdk"</td><td valign="top">Read-Write</td><td valign="top">The background color as a <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></a>.</td></tr><tr valign="top"><td valign="top">"background-set"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, use the "background-gdk"
17
17
property to set the background color.</td></tr><tr valign="top"><td valign="top">"model"</td><td valign="top">Read-Write</td><td valign="top">The model for cell view. Available in GTK+ 2.10 and
18
 
              above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="style-properties-gtkcellview"></a><h2>gtk.CellView 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></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkcellview"></a><h2>gtk.CellView 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></div><div class="refsect1" lang="en"><a name="id3419943"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This widget is available in PyGTK 2.6 and above.</p></div><p>The <a class="link" href="class-gtkcellview.html" title="gtk.CellView"><code class="classname">gtk.CellView</code></a> is a
 
18
              above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="style-properties-gtkcellview"></a><h2>gtk.CellView 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></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkcellview"></a><h2>gtk.CellView 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></div><div class="refsect1" lang="en"><a name="id3620777"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This widget is available in PyGTK 2.6 and above.</p></div><p>The <a class="link" href="class-gtkcellview.html" title="gtk.CellView"><code class="classname">gtk.CellView</code></a> is a
19
19
widget that displays one row of a <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a>. <a class="link" href="class-gtkcellview.html" title="gtk.CellView"><code class="classname">gtk.CellView</code></a>
20
20
implements the <a class="link" href="class-gtkcelllayout.html" title="gtk.CellLayout"><code class="classname">gtk.CellLayout</code></a>
21
21
interface that provides for the addition and management of <a class="link" href="class-gtkcellrenderer.html" title="gtk.CellRenderer"><code class="classname">gtk.CellRenderer</code></a>
22
22
objects.</p></div><div class="refsect1" lang="en"><a name="constructor-gtkcellview"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.CellView</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 new <a class="link" href="class-gtkcellview.html" title="gtk.CellView"><code class="classname">gtk.CellView</code></a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This constructor is available in PyGTK 2.6 and above.</p></div><p>Creates a new <a class="link" href="class-gtkcellview.html" title="gtk.CellView"><code class="classname">gtk.CellView</code></a>
23
 
widget.</p></div><div class="refsect1" lang="en"><a name="id3420056"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkcellview--set-model"></a><h3>gtk.CellView.set_model</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_model</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>model</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>model</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a> or <code class="literal">None</code></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.6 and above.</p></div><p>The <code class="methodname">set_model</code>() method sets the <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a>
 
23
widget.</p></div><div class="refsect1" lang="en"><a name="id3620890"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkcellview--set-model"></a><h3>gtk.CellView.set_model</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_model</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>model</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>model</code></strong> :</span></p></td><td>a <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a> or <code class="literal">None</code></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.6 and above.</p></div><p>The <code class="methodname">set_model</code>() method sets the <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a>
24
24
used by the cell view to that specified by <em class="parameter"><code>model</code></em>. If
25
25
<em class="parameter"><code>model</code></em> is <code class="literal">None</code> the cell view's
26
26
model will be unset.</p></div><div class="refsect2" lang="en"><a name="method-gtkcellview--set-displayed-row"></a><h3>gtk.CellView.set_displayed_row</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_displayed_row</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>path</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>path</code></strong> :</span></p></td><td>a tree path or <code class="literal">None</code> to unset
42
42
specified by <em class="parameter"><code>color</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtkcellview--get-cell-renderers"></a><h3>gtk.CellView.get_cell_renderers</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_cell_renderers</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 the <a class="link" href="class-gtkcellrenderer.html" title="gtk.CellRenderer"><code class="classname">gtk.CellRenderer</code></a>
43
43
objects of the cell view.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.6 and above.</p></div><p>The <code class="methodname">get_cell_renderers</code>() method returns
44
44
a list containing the <a class="link" href="class-gtkcellrenderer.html" title="gtk.CellRenderer"><code class="classname">gtk.CellRenderer</code></a>
45
 
objects used by the cell view.</p></div></div><div class="refsect1" lang="en"><a name="id3420563"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--cell-view-new-with-text"></a><h3>gtk.cell_view_new_with_text</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.cell_view_new_with_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</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>text</code></strong> :</span></p></td><td>a string</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-gtkcellview.html" title="gtk.CellView"><code class="classname">gtk.CellView</code></a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.6 and above.</p></div><p>The <code class="function">gtk.cell_view_new_with_text</code>() function
 
45
objects used by the cell view.</p></div></div><div class="refsect1" lang="en"><a name="id3621398"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--cell-view-new-with-text"></a><h3>gtk.cell_view_new_with_text</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.cell_view_new_with_text</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</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>text</code></strong> :</span></p></td><td>a string</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-gtkcellview.html" title="gtk.CellView"><code class="classname">gtk.CellView</code></a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.6 and above.</p></div><p>The <code class="function">gtk.cell_view_new_with_text</code>() function
46
46
creates a new <a class="link" href="class-gtkcellview.html" title="gtk.CellView"><code class="classname">gtk.CellView</code></a> with
47
47
a <a class="link" href="class-gtkcellrenderertext.html" title="gtk.CellRendererText"><code class="classname">gtk.CellRendererText</code></a>
48
48
displaying the string specified by <em class="parameter"><code>text</code></em>.</p></div><div class="refsect2" lang="en"><a name="function-gtk--cell-view-new-with-markup"></a><h3>gtk.cell_view_new_with_markup</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.cell_view_new_with_markup</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup</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>markup</code></strong> :</span></p></td><td>a string containing Pango markup to be