This file is indexed.

/usr/share/doc/python-gtk2-tutorial/html/sec-Viewports.html is in python-gtk2-tutorial 2.4-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
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>10.8. Viewports</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="PyGTK 2.0 Tutorial"><link rel="up" href="ch-ContainerWidgets.html" title="Chapter 10. Container Widgets"><link rel="previous" href="sec-PanedWindowWidgets.html" title="10.7. Paned Window Widgets"><link rel="next" href="sec-ScrolledWindows.html" title="10.9. Scrolled Windows"></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">10.8. Viewports</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="sec-PanedWindowWidgets.html">Prev</a> </td><th width="60%" align="center">Chapter 10. Container Widgets</th><td width="20%" align="right"> <a accesskey="n" href="sec-ScrolledWindows.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sec-Viewports"></a>10.8. Viewports</h2></div></div><div></div></div><p>It is unlikely that you will ever need to use the
<tt class="classname">Viewport</tt> widget directly. You are much more likely to
use the <tt class="classname">ScrolledWindow</tt> widget *see <a href="sec-ScrolledWindows.html" title="10.9. Scrolled Windows">Section 10.9, &#8220;Scrolled Windows&#8221;</a>) which in turn uses the
<tt class="classname">Viewport</tt>.</p><p>A viewport widget allows you to place a larger widget within it
such that you can view a part of it at a time. It uses
<tt class="classname">Adjustment</tt> object (see <a href="ch-Adjustments.html" title="Chapter 7. Adjustments">Chapter 7, <i>Adjustments</i></a>) to define the area that is currently in
view.</p><p>A <tt class="classname">Viewport</tt> is created with the
function:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">
  viewport = gtk.Viewport(<b class="parameter"><tt>hadjustment</tt></b>=None, <b class="parameter"><tt>vadjustment</tt></b>=None)
</pre></td></tr></table><p>As you can see you can specify the horizontal and vertical
<tt class="classname">Adjustment</tt> objects that the widget is to use when you
create the widget. It will create its own if you pass
<tt class="literal">None</tt> as the value of the arguments or pass no
arguments.</p><p>You can get and set the adjustments after the widget has been
created using the following four methods:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">
  viewport.get_hadjustment()

  viewport.get_vadjustment()

  viewport.set_hadjustment(<b class="parameter"><tt>adjustment</tt></b>)

  viewport.set_vadjustment(<b class="parameter"><tt>adjustment</tt></b>)
</pre></td></tr></table><p>The only other viewport method is used to alter its
appearance:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">
  viewport.set_shadow_type(<b class="parameter"><tt>type</tt></b>)
</pre></td></tr></table><p>Possible values for the <i class="parameter"><tt>type</tt></i> parameter
are:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">
  SHADOW_NONE
  SHADOW_IN
  SHADOW_OUT
  SHADOW_ETCHED_IN
  SHADOW_ETCHED_OUT
</pre></td></tr></table></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="sec-PanedWindowWidgets.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch-ContainerWidgets.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="sec-ScrolledWindows.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">10.7. Paned Window Widgets </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 10.9. Scrolled Windows</td></tr></table></div></body></html>