This file is indexed.

/usr/share/gtk-doc/html/pygtksourceview2/class-gtksourceview2.html is in python-gtksourceview2 2.10.1-2.

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
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtksourceview2.View</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="PyGtksourceview2 Reference Manual"><link rel="up" href="index.html" title="PyGtksourceview2 Reference Manual"><link rel="prev" href="index.html" title="PyGtksourceview2 Reference Manual"><link rel="next" href="class-gtksourcebuffer2.html" title="gtksourceview2.Buffer"></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">gtksourceview2.View</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="index.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="class-gtksourcebuffer2.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtksourceview2.View"><a name="class-gtksourceview2"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtksourceview2.View</h2><p>gtksourceview2.View — a widget that displays the source code</p></div><div class="refsect1" title="Synopsis"><a name="idp6687056"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtksourceview2.View</span></span>(<span class="ooclass"><span class="classname">gtk.TextView</span></span>):
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtksourceview2.html#constructor-gtksourceview" title="Constructor">gtksourceview2.View</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-auto-indent" title="gtksourceview2.View.get_auto_indent">get_auto_indent</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-draw-spaces" title="gtksourceview2.View.get_draw_spaces">get_draw_spaces</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-gutter" title="gtksourceview2.View.get_gutter">get_gutter</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-highlight-current-line" title="gtksourceview2.View.get_highlight_current_line">get_highlight_current_line</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-indent-on-tab" title="gtksourceview2.View.get_indent_on_tab">get_indent_on_tab</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-indent-width" title="gtksourceview2.View.get_indent_width">get_indent_width</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-insert-spaces-instead-of-tabs" title="gtksourceview2.View.get_insert_spaces_instead_of_tabs">get_insert_spaces_instead_of_tabs</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-mark-category-background" title="gtksourceview2.View.get_mark_category_background">get_mark_category_background</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-mark-category-pixbuf" title="gtksourceview2.View.get_mark_category_pixbuf">get_mark_category_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-mark-category-priority" title="gtksourceview2.View.get_mark_category_priority">get_mark_category_priority</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-right-margin-position" title="gtksourceview2.View.get_right_margin_position">get_right_margin_position</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-show-line-marks" title="gtksourceview2.View.get_show_line_marks">get_show_line_marks</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-show-line-numbers" title="gtksourceview2.View.get_show_line_numbers">get_show_line_numbers</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-show-right-margin" title="gtksourceview2.View.get_show_right_margin">get_show_right_margin</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-smart-home-end" title="gtksourceview2.View.get_smart_home_end">get_smart_home_end</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--get-tab-width" title="gtksourceview2.View.get_tab_width">get_tab_width</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-auto-indent" title="gtksourceview2.View.set_auto_indent">set_auto_indent</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>enable</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-draw-spaces" title="gtksourceview2.View.set_draw_spaces">set_draw_spaces</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>flags</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-highlight-current-line" title="gtksourceview2.View.set_highlight_current_line">set_highlight_current_line</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-indent-on-tab" title="gtksourceview2.View.set_indent_on_tab">set_indent_on_tab</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>enable</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-indent-width" title="gtksourceview2.View.set_indent_width">set_indent_width</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-insert-spaces-instead-of-tabs" title="gtksourceview2.View.set_insert_spaces_instead_of_tabs">set_insert_spaces_instead_of_tabs</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>enable</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-mark-category-pixbuf" title="gtksourceview2.View.set_mark_category_pixbuf">set_mark_category_icon_from_icon_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-mark-category-pixbuf" title="gtksourceview2.View.set_mark_category_pixbuf">set_mark_category_icon_from_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-mark-category-pixbuf" title="gtksourceview2.View.set_mark_category_pixbuf">set_mark_category_icon_from_stock</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-mark-category-background" title="gtksourceview2.View.set_mark_category_background">set_mark_category_background</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>dest</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-mark-category-pixbuf" title="gtksourceview2.View.set_mark_category_pixbuf">set_mark_category_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-mark-category-priority" title="gtksourceview2.View.set_mark_category_priority">set_mark_category_priority</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>priority</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-mark-category-tooltip-func" title="gtksourceview2.View.set_mark_category_tooltip_func">set_mark_category_tooltip_func</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname">set_mark_category_tooltip_markup_func</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup_func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-right-margin-position" title="gtksourceview2.View.set_right_margin_position">set_right_margin_position</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pos</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-show-line-marks" title="gtksourceview2.View.set_show_line_marks">set_show_line_marks</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-show-line-numbers" title="gtksourceview2.View.set_show_line_numbers">set_show_line_numbers</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-show-right-margin" title="gtksourceview2.View.set_show_right_margin">set_show_right_margin</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-smart-home-end" title="gtksourceview2.View.set_smart_home_end">set_smart_home_end</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>smart_he</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-tab-width" title="gtksourceview2.View.set_tab_width">set_tab_width</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="idp6956992"></a><h2>Ancestry</h2><pre class="synopsis">+-- <a
href="../pygobject/class-gobject.html"
>gobject.GObject</a>
    +-- gtk.Object
        +-- gtk.Widget
            +-- gtk.Container
                +-- gtk.TextView
                    +-- <a class="link" href="class-gtksourceview2.html" title="gtksourceview2.View">gtksourceview2.View</a>
</pre></div><div class="refsect1" title="Virtual Methods"><a name="idp6963952"></a><h2>Virtual Methods</h2><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="4in"></colgroup><tbody><tr valign="top"><td valign="top"><code class="methodname">do_redo</code></td><td valign="top">Method that can be overridden to implement a custom redo.</td></tr><tr valign="top"><td valign="top"><code class="methodname">do_undo</code></td><td valign="top">Method that can be overridden to implement a custom undo.</td></tr><tr valign="top"><td valign="top"><code class="methodname">do_line_mark_activated</code></td><td valign="top">Method that can be overridden to implement a custom line number activation.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="Properties"><a name="idp6975616"></a><h2>Properties</h2><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="4in"></colgroup><tbody><tr valign="top"><td valign="top">"auto-indent"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code> enable auto indentation. Default value: False.</td></tr><tr valign="top"><td valign="top">"highlight-current-line"</td><td valign="top">Read-Write</td><td valign="top">Whether to highlight the current line. Default value: False.</td></tr><tr valign="top"><td valign="top">"indent-on-tab"</td><td valign="top">Read-Write</td><td valign="top">Whether to indent the selected text when the tab key is pressed. Default value: True.</td></tr><tr valign="top"><td valign="top">"indent-width"</td><td valign="top">Read-Write</td><td valign="top">Width of an indentation step expressed in number of spaces. Allowed values: [-1,32]. Default value: -1.</td></tr><tr valign="top"><td valign="top">"insert-spaces-instead-of-tabs"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code> spaces will be inserted instead of tabs. Default value: False</td></tr><tr valign="top"><td valign="top">"right-margin-position"</td><td valign="top">Read-Write</td><td valign="top">Position of the right margin. Allowed values: [1,200]. Default value: 80</td></tr><tr valign="top"><td valign="top">"show-line-marks"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the display line marks pixbufs will be shown. Default value: False.</td></tr><tr valign="top"><td valign="top">"show-line-numbers"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the line numbers will be shown. Default value: False.</td></tr><tr valign="top"><td valign="top">"show-right-margin"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the right margin will be shown. Default value: False.</td></tr><tr valign="top"><td valign="top">"smart-home-end"</td><td valign="top">Read-Write</td><td valign="top">Set the behavior of the <span class="keycap"><strong>HOME</strong></span> and <span class="keycap"><strong>END</strong></span> keys. Default value: gtksourceview2.SMART_HOME_END_DISABLED.</td></tr><tr valign="top"><td valign="top">"tabs-width"</td><td valign="top">Read-Write</td><td valign="top">Width of an tab character expressed in number of spaces. Allowed values: [1,32]. Default value: 8.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="Signal Prototypes"><a name="idp7010736"></a><h2>Signal Prototypes</h2><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><a class="link" href="class-gtksourceview2.html#signal-gtksourceview--redo" title='The "redo" gtksourceview2.View Signal'>"redo"</a></span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>sourceview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term"><a class="link" href="class-gtksourceview2.html#signal-gtksourceview--undo" title='The "undo" gtksourceview2.View Signal'>"undo"</a></span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>sourceview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"line-mark-activated"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>sourceview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>iter</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>event</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" title="Description"><a name="description-gtktextview"></a><h2>Description</h2><p>
        A <a class="link" href="class-gtksourceview2.html" title="gtksourceview2.View"><code class="classname">gtksourceview2.View</code></a>
        is a text widget that extends the standard <code class="classname">gtk.TextView</code>
        It improves the <code class="classname">gtk.TextView</code> by implementing syntax highlighting
        and other features typical of a source editor.</p></div><div class="refsect1" title="Constructor"><a name="constructor-gtksourceview"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtksourceview2.View</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>buffer</code></strong></span><span class="initializer">=None</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>buffer</code></strong> :</span></p></td><td>a <a class="link" href="class-gtksourcebuffer2.html" title="gtksourceview2.Buffer"><code class="classname">gtksourceview2.Buffer</code></a>
          or <code class="literal">None</code></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-gtksourceview2.html" title="gtksourceview2.View"><code class="classname">gtksourceview2.View</code></a>.
          </td></tr></tbody></table><p>
      Creates a new <a class="link" href="class-gtksourceview2.html" title="gtksourceview2.View"><code class="classname">gtksourceview2.View</code></a> widget displaying the
      <a class="link" href="class-gtksourcebuffer2.html" title="gtksourceview2.Buffer"><code class="classname">gtksourceview2.Buffer</code></a> specified by
      <em class="parameter"><code>buffer</code></em>. If <em class="parameter"><code>buffer</code></em> is <code class="literal">None</code>, a new
      <a class="link" href="class-gtksourcebuffer2.html" title="gtksourceview2.Buffer"><code class="classname">gtksourceview2.Buffer</code></a> will be created.
      One sourcebuffer can be shared among many widgets.
    </p></div><div class="refsect1" title="Methods"><a name="idp7059584"></a><h2>Methods</h2><div class="refsect2" title="gtksourceview2.View.get_auto_indent"><a name="method-gtksourceview2--get-auto-indent"></a><h3>gtksourceview2.View.get_auto_indent</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_auto_indent</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 auto indentation is enabled,
          <code class="literal">False</code> otherwise.</td></tr></tbody></table><p>
        The <code class="methodname">get_auto_indent</code>() method returns whether
        auto indentation of text is enabled.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_draw_spaces"><a name="method-gtksourceview2--get-draw-spaces"></a><h3>gtksourceview2.View.get_draw_spaces</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_draw_spaces</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>One of gtksourceview2.DRAW_SPACES_SPACE, gtksourceview2.DRAW_SPACES_TAB
          gtksourceview2.DRAW_SPACES_NEWLINE or gtksourceview2.DRAW_SPACES_ALL.</td></tr></tbody></table><p>
        The <code class="methodname">get_draw_spaces</code>() method returns one of the flags
        specifying if and how spaces should be displayed for this view.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_gutter"><a name="method-gtksourceview2--get-gutter"></a><h3>gtksourceview2.View.get_gutter</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_gutter</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>the <a class="link" href="class-gtksourcegutter2.html" title="gtksourceview2.Gutter">gtksourceview2.Gutter</a>. 
          </td></tr></tbody></table><p>
        The <code class="methodname">get_gutter</code>() method returns the
        <a class="link" href="class-gtksourcegutter2.html" title="gtksourceview2.Gutter">gtksourceview2.Gutter</a> object
        associated with window_type for view. Only gtk.TEXT_WINDOW_LEFT and gtk.TEXT_WINDOW_RIGHT
        are supported, respectively corresponding to the left and right gutter. The line numbers
        and mark category icons are rendered in the gutter corresponding to gtk.TEXT_WINDOW_LEFT.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_highlight_current_line"><a name="method-gtksourceview2--get-highlight-current-line"></a><h3>gtksourceview2.View.get_highlight_current_line</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_highlight_current_line</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 the current line is highlighted,
          <code class="literal">False</code> otherwise.</td></tr></tbody></table><p>
        The <code class="methodname">get_highlight_current_line</code>() method returns
        whether the current line is highlighted.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_indent_on_tab"><a name="method-gtksourceview2--get-indent-on-tab"></a><h3>gtksourceview2.View.get_indent_on_tab</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_indent_on_tab</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 the selection is indented when tab is pressed.
          <code class="literal">False</code> otherwise.</td></tr></tbody></table><p>
        The <code class="methodname">get_indent_on_tab</code>() method returns
        whether when the tab key is pressed the current selection should get
        indented instead of replaced with the \t character.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_indent_width"><a name="method-gtksourceview2--get-indent-width"></a><h3>gtksourceview2.View.get_indent_width</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_indent_width</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>the indent width.</td></tr></tbody></table><p>
        The <code class="methodname">get_indent_width</code>() method returns
        the number of spaces to use for each step of indent.
        See <code class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-indent-width" title="gtksourceview2.View.set_indent_width">gtksourceview2.View.set_indent_width</a></code>()
        for details.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_insert_spaces_instead_of_tabs"><a name="method-gtksourceview2--get-insert-spaces-instead-of-tabs"></a><h3>gtksourceview2.View.get_insert_spaces_instead_of_tabs</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_insert_spaces_instead_of_tabs</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 spaces are inserted instead of tabs.
          <code class="literal">False</code> otherwise.</td></tr></tbody></table><p>
        The <code class="methodname">get_insert_spaces_instead_of_tabs</code>() method returns
        whether when inserting a tabulator character it should be replaced by a
        group of space characters.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_mark_category_background"><a name="method-gtksourceview2--get-mark-category-background"></a><h3>gtksourceview2.View.get_mark_category_background</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_mark_category_background</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</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>category</code></strong> :</span></p></td><td>a marker category.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <code class="classname">gtk.gdk.Color</code>
          if found, or <code class="literal">None</code> if not found.</td></tr></tbody></table><p>
        The <code class="methodname">get_marker_category_pixbuf</code>() method gets the pixbuf which
        is associated with the given category.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_mark_category_pixbuf"><a name="method-gtksourceview2--get-mark-category-pixbuf"></a><h3>gtksourceview2.View.get_mark_category_pixbuf</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_mark_category_pixbuf</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</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>category</code></strong> :</span></p></td><td>a marker category.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <code class="classname">gtk.gdk.Pixbuf</code>
          if found, or <code class="literal">None</code> if not found.</td></tr></tbody></table><p>
        The <code class="methodname">get_marker_category_pixbuf</code>() method gets the pixbuf which
        is associated with the given category.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_mark_category_priority"><a name="method-gtksourceview2--get-mark-category-priority"></a><h3>gtksourceview2.View.get_mark_category_priority</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_mark_category_priority</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</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>category</code></strong> :</span></p></td><td>a marker category.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <code class="classname">gtk.gdk.Pixbuf</code>
          if found, or <code class="literal">None</code> if not found.</td></tr></tbody></table><p>
        The <code class="methodname">get_mark_category_priority</code>() method gets
        the priority which is associated with the given category.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_right_margin_position"><a name="method-gtksourceview2--get-right-margin-position"></a><h3>gtksourceview2.View.get_right_margin_position</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_right_margin_position</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>the position of the right margin.</td></tr></tbody></table><p>
        The <code class="methodname">get_right_margin_position</code>() method
        gets the position of the right margin.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_show_line_marks"><a name="method-gtksourceview2--get-show-line-marks"></a><h3>gtksourceview2.View.get_show_line_marks</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_show_line_marks</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 the line marks are displayed.
          <code class="literal">False</code> otherwise.</td></tr></tbody></table><p>
        The <code class="methodname">get_show_line_marks</code>() method returns
        whether line marks are displayed beside the text.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_show_line_numbers"><a name="method-gtksourceview2--get-show-line-numbers"></a><h3>gtksourceview2.View.get_show_line_numbers</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_show_line_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 the line numbers are displayed.
          <code class="literal">False</code> otherwise.</td></tr></tbody></table><p>
        The <code class="methodname">get_show_line_numbers</code>() method returns
        whether line numbers are displayed beside the text.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_show_right_margin"><a name="method-gtksourceview2--get-show-right-margin"></a><h3>gtksourceview2.View.get_show_right_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_show_right_margin</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 the right margin is displayed.
          <code class="literal">False</code> otherwise.</td></tr></tbody></table><p>
        The <code class="methodname">get_show_right_margin</code>() method returns
        whether a right margin is displayed.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_smart_home_end"><a name="method-gtksourceview2--get-smart-home-end"></a><h3>gtksourceview2.View.get_smart_home_end</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_smart_home_end</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 GtkSourceSmartHomeEndType value specifying how the
          cursor will move when <span class="keycap"><strong>HOME</strong></span> and <span class="keycap"><strong>END</strong></span>
          keys are pressed.</td></tr></tbody></table><p>
        The <code class="methodname">get_smart_home_end</code>() method returns
        a value specifying how the cursor will move when <span class="keycap"><strong>HOME</strong></span>
        and <span class="keycap"><strong>END</strong></span> keys are pressed.
      </p></div><div class="refsect2" title="gtksourceview2.View.get_tab_width"><a name="method-gtksourceview2--get-tab-width"></a><h3>gtksourceview2.View.get_tab_width</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_tab_width</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>the width of tab.</td></tr></tbody></table><p>
        The <code class="methodname">get_tab_width</code>() method returns
        the width of tabulation in characters.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_auto_indent"><a name="method-gtksourceview2--set-auto-indent"></a><h3>gtksourceview2.View.set_auto_indent</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_auto_indent</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>enabled</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>enabled</code></strong> :</span></p></td><td>if <code class="literal">True</code> auto indentation of text is enabled.</td></tr></tbody></table><p>
        The <code class="methodname">set_auto_indent</code>() method sets whether to enable auto indentation.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_draw_spaces"><a name="method-gtksourceview2--set-draw-spaces"></a><h3>gtksourceview2.View.set_draw_spaces</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_draw_spaces</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>flags</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>flags</code></strong> :</span></p></td><td>one of gtksourceview2.DRAW_SPACES_SPACE, gtksourceview2.DRAW_SPACES_TAB
          gtksourceview2.DRAW_SPACES_NEWLINE or gtksourceview2.DRAW_SPACES_ALL,
          specifing how white spaces should be displayed.</td></tr></tbody></table><p>
        The <code class="methodname">set_draw_spaces</code>() method set if and how the
        spaces should be visualized. Specifying flags as 0 will disable display of spaces.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_highlight_current_line"><a name="method-gtksourceview2--set-highlight-current-line"></a><h3>gtksourceview2.View.set_highlight_current_line</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_highlight_current_line</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show</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</code></strong> :</span></p></td><td>if <code class="literal">True</code> the current line is highlighted.</td></tr></tbody></table><p>
        The <code class="methodname">set_highlight_current_line</code>() method sets
        whether to highlight the current line.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_indent_on_tab"><a name="method-gtksourceview2--set-indent-on-tab"></a><h3>gtksourceview2.View.set_indent_on_tab</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_indent_on_tab</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>enabled</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>enabled</code></strong> :</span></p></td><td>if <code class="literal">True</code> indent a block when tab is pressed.</td></tr></tbody></table><p>
        The <code class="methodname">set_indent_on_tab</code>() method sets
        when the tab key is pressed and there is a selection, the selected
        text is indented of one level instead of being replaced with the \t
        characters. Shift+Tab unindents the selection.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_indent_width"><a name="method-gtksourceview2--set-indent-width"></a><h3>gtksourceview2.View.set_indent_width</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_indent_width</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</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>width</code></strong> :</span></p></td><td>indent width in characters.</td></tr></tbody></table><p>
        The <code class="methodname">set_indent_width</code>() method sets
        the number of spaces to use for each step of indent. If width is -1,
        the value of the GtkSourceView::tab-width property will be used.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_insert_spaces_instead_of_tabs"><a name="method-gtksourceview2--set-insert-spaces-instead-of-tabs"></a><h3>gtksourceview2.View.set_insert_spaces_instead_of_tabs</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_insert_spaces_instead_of_tabs</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>enabled</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>enabled</code></strong> :</span></p></td><td>if <code class="literal">True</code> insert spaces instead of tabs.</td></tr></tbody></table><p>
        The <code class="methodname">set_insert_spaces_instead_of_tabs</code>() method sets
        whether any tabulator character inserted is replaced by a group of space characters.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_mark_category_background"><a name="method-gtksourceview2--set-mark-category-background"></a><h3>gtksourceview2.View.set_mark_category_background</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_mark_category_background</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>color</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>category</code></strong> :</span></p></td><td>a marker category.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>color</code></strong> :</span></p></td><td>a <code class="classname">gtk.gdk.Color</code>
          or <code class="literal">None</code>.</td></tr></tbody></table><p>
        The <code class="methodname">set_mark_category_priority</code>() method
        sets given background color for mark category.
        If color is <code class="literal">None</code>, the background color is unset.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_mark_category_icon_from_icon_name"><a name="method-gtksourceview2--set-mark-category-icon-from-icon-name"></a><h3>gtksourceview2.View.set_mark_category_icon_from_icon_name</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_mark_category_icon_from_icon_name</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</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>category</code></strong> :</span></p></td><td>a marker category.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>name</code></strong> :</span></p></td><td>the themed icon name or <code class="literal">None</code>. 
          </td></tr></tbody></table><p>
        The <code class="methodname">set_mark_category_icon_from_icon_name</code>() method
        sets the icon to be used for category to the named theme item name.
        If name is <code class="literal">None</code>, the icon is unset.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_mark_category_icon_from_pixbuf"><a name="method-gtksourceview2--set-mark-category-icon-from-pixbuf"></a><h3>gtksourceview2.View.set_mark_category_icon_from_pixbuf</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_mark_category_icon_from_pixbuf</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</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>category</code></strong> :</span></p></td><td>a marker category.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>pixbuf</code></strong> :</span></p></td><td>a <code class="classname">gtk.gdk.Pixbuf</code>
          or <code class="literal">None</code>.
          </td></tr></tbody></table><p>
        The <code class="methodname">set_mark_category_icon_from_pixbuf</code>() method
        sets the icon to be used for category to pixbuf. If pixbuf is <code class="literal">None</code>,
        the icon is unset.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_mark_category_icon_from_stock"><a name="method-gtksourceview2--set-mark-category-icon-from-stock"></a><h3>gtksourceview2.View.set_mark_category_icon_from_stock</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_mark_category_icon_from_stock</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock</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>category</code></strong> :</span></p></td><td>a marker category.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>simpara</code></strong> :</span></p></td><td>the stock id or <code class="literal">None</code>. 
          </td></tr></tbody></table><p>
        The <code class="methodname">set_mark_category_icon_from_stock</code>() method
        sets the icon to be used for category to the stock item stock_id. If stock_id
        is <code class="literal">None</code>, the icon is unset.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_mark_category_pixbuf"><a name="method-gtksourceview2--set-mark-category-pixbuf"></a><h3>gtksourceview2.View.set_mark_category_pixbuf</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_mark_category_pixbuf</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</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>category</code></strong> :</span></p></td><td>a marker category.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>pixbuf</code></strong> :</span></p></td><td>a <code class="classname">gtk.gdk.Pixbuf</code>
          or <code class="literal">None</code>.</td></tr></tbody></table><p>
        The <code class="methodname">set_mark_category_priority</code>() method
        associates a given <em class="parameter"><code>pixbuf</code></em> with a given
        <em class="parameter"><code>category</code></em>. If pixbuf is <code class="literal">None</code>,
        the pixbuf is unset.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_mark_category_priority"><a name="method-gtksourceview2--set-mark-category-priority"></a><h3>gtksourceview2.View.set_mark_category_priority</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_mark_category_priority</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>priority</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>category</code></strong> :</span></p></td><td>a marker category.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>priority</code></strong> :</span></p></td><td>the priority for the category.</td></tr></tbody></table><p>
        The <code class="methodname">set_mark_category_priority</code>() method
        Set the priority for the given mark category. When there are multiple marks
        on the same line, marks of categories with higher priorities will be drawn on top.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_mark_category_tooltip_func"><a name="method-gtksourceview2--set-mark-category-tooltip-func"></a><h3>gtksourceview2.View.set_mark_category_tooltip_func</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_mark_category_tooltip_func</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</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>category</code></strong> :</span></p></td><td>a marker category.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>func</code></strong> :</span></p></td><td>a function or <code class="literal">None</code>.
          </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>user_data</code></strong> :</span></p></td><td>user data which will be passed to func. 
          </td></tr></tbody></table><p>
        The <code class="methodname">set_mark_category_tooltip_func</code>() method
        sets a func used to set tooltip on marks from the given mark category.
        If func is <code class="literal">None</code> and markup_func is <code class="literal">None</code>
        then tooltips will not be shown for marks from category. If markup_func is not
        <code class="literal">None</code> markup_func is going to be used instead of func. 
      </p><pre class="programlisting">
    def markuptooltipfunc(mark, user_data)</pre><p>
        Where mark is the <a class="link" href="class-gtksourcemark2.html" title="gtksourceview2.Mark">gtksourceview2.Mark</a> to use,
        user_data is the data passed to set_mark_category_tooltip_func().
    </p></div><div class="refsect2" title="gtksourceview2.View.set_mark_category_tooltip_markup_func"><a name="method-gtksourceview2--set-mark-category-tooltip-markup_func"></a><h3>gtksourceview2.View.set_mark_category_tooltip_markup_func</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_mark_category_tooltip_markup_func</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>category</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup_func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</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>category</code></strong> :</span></p></td><td>a marker category.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>marker</code></strong> :</span></p></td><td>a function or <code class="literal">None</code>.
          </td></tr><tr><td><p><span class="term"><strong class="parameter"><code>user_data</code></strong> :</span></p></td><td>user data which will be passed to func. 
          </td></tr></tbody></table><p>
        See <code class="methodname"><a class="link" href="class-gtksourceview2.html#method-gtksourceview2--set-mark-category-tooltip-func" title="gtksourceview2.View.set_mark_category_tooltip_func">gtksourceview2.View.set_mark_category_tooltip_func</a></code>
        for more information.
      </p><pre class="programlisting">
    def markuptooltipfunc(mark, user_data)</pre><p>
        Where mark is the <a class="link" href="class-gtksourcemark2.html" title="gtksourceview2.Mark">gtksourceview2.Mark</a> to use,
        user_data is the data passed to set_mark_category_tooltip_func().
    </p></div><div class="refsect2" title="gtksourceview2.View.set_right_margin_position"><a name="method-gtksourceview2--set-right-margin-position"></a><h3>gtksourceview2.View.set_right_margin_position</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_right_margin_position</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pos</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>pos</code></strong> :</span></p></td><td>The width in characters where to position the right margin.</td></tr></tbody></table><p>
        The <code class="methodname">set_right_margin_position</code>() method sets
        the position of the right margin.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_show_line_marks"><a name="method-gtksourceview2--set-show-line-marks"></a><h3>gtksourceview2.View.set_show_line_marks</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_show_line_marks</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show</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</code></strong> :</span></p></td><td>if <code class="literal">True</code> line marks will be
          displayed beside the text.</td></tr></tbody></table><p>
        The <code class="methodname">set_show_line_marks</code>() method sets
        whether line marks should be displayed.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_show_line_numbers"><a name="method-gtksourceview2--set-show-line-numbers"></a><h3>gtksourceview2.View.set_show_line_numbers</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_show_line_numbers</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show</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</code></strong> :</span></p></td><td>if <code class="literal">True</code> line numbers will be
          displayed beside the text.</td></tr></tbody></table><p>
        The <code class="methodname">set_show_line_numbers</code>() method sets
        whether line numbers should be displayed.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_show_right_margin"><a name="method-gtksourceview2--set-show-right-margin"></a><h3>gtksourceview2.View.set_show_right_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_show_right_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>show</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</code></strong> :</span></p></td><td>if <code class="literal">True</code> line numbers will be
          displayed beside the text.</td></tr></tbody></table><p>
        The <code class="methodname">set_show_right_margin</code>() method sets
        whether to show a right margin.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_smart_home_end"><a name="method-gtksourceview2--set-smart-home-end"></a><h3>gtksourceview2.View.set_smart_home_end</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_smart_home_end</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>smart_he</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>smart_he</code></strong> :</span></p></td><td>the desired behavior among GtkSourceSmartHomeEndType.</td></tr></tbody></table><p>
        The <code class="methodname">set_smart_home_end</code>() method sets
        the desired movement of the cursor when HOME and END keys are pressed.
      </p></div><div class="refsect2" title="gtksourceview2.View.set_tab_width"><a name="method-gtksourceview2--set-tab-width"></a><h3>gtksourceview2.View.set_tab_width</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_tab_width</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</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>width</code></strong> :</span></p></td><td>width of tab in characters.</td></tr></tbody></table><p>
        The <code class="methodname">set_tab_width</code>() method sets
        the width of tabulation in characters.
      </p></div></div><div class="refsect1" title="Signals"><a name="idp10209120"></a><h2>Signals</h2><div class="refsect2" title='The "line-number-activated" gtksourceview2.View Signal'><a name="signal-gtksourceview--line-number-activated"></a><h3>The "line-number-activated" gtksourceview2.View Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>sourceview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>iter</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>event</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></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"><em class="parameter"><code>sourceview</code></em> :</span></p></td><td>the sourceview that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td><td>a
          <code class="classname">gtk.TextIter</code>.
          </td></tr><tr><td><p><span class="term"><em class="parameter"><code>event</code></em> :</span></p></td><td>the <code class="classname">gtk.gdk.Event</code>
          that activated the event.
          </td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <a
href="../pygobject/class-gobject.html#method-gobject--connect"
><code class="methodname">connect</code>()</a>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "line-number-activated" signal is emitted when a line mark has been activated
      (for instance when there was a button press in the line marks gutter).
      You can use iter to determine on which line the activation took place.
      </p></div><div class="refsect2" title='The "redo" gtksourceview2.View Signal'><a name="signal-gtksourceview--redo"></a><h3>The "redo" gtksourceview2.View Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>sourceview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></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"><em class="parameter"><code>sourceview</code></em> :</span></p></td><td>the sourceview that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <a
href="../pygobject/class-gobject.html#method-gobject--connect"
><code class="methodname">connect</code>()</a>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "redo" signal is emitted when an action has been redone.</p></div><div class="refsect2" title='The "undo" gtksourceview2.View Signal'><a name="signal-gtksourceview--undo"></a><h3>The "undo" gtksourceview2.View Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>sourceview</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></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"><em class="parameter"><code>sourceview</code></em> :</span></p></td><td>the sourceview that received the
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <a
href="../pygobject/class-gobject.html#method-gobject--connect"
><code class="methodname">connect</code>()</a>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "undo" signal is emitted when an action has been undone.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="index.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="class-gtksourcebuffer2.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">PyGtksourceview2 Reference Manual </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtksourceview2.Buffer</td></tr></table></div></body></html>