File: view.xml

package info (click to toggle)
gtksourceview2 2.2.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,856 kB
  • ctags: 1,896
  • sloc: ansic: 18,630; sh: 9,199; xml: 4,509; python: 424; makefile: 272
file content (811 lines) | stat: -rw-r--r-- 55,274 bytes parent folder | download
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY version SYSTEM "version.xml">
<!ENTITY tutorial SYSTEM "lang-tutorial.sgml">
<!ENTITY reference SYSTEM "lang-reference.sgml">
]>
<refentry id="GtkSourceView">
<refmeta>
<refentrytitle role="top_of_page" id="GtkSourceView.top_of_page">GtkSourceView</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTKSOURCEVIEW-2.0 Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GtkSourceView</refname>
<refpurpose>The view object</refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv id="GtkSourceView.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>

#include &lt;gtksourceview/gtksourceview.h&gt;

                    <link linkend="GtkSourceView-struct">GtkSourceView</link>;
                    <link linkend="GtkSourceViewClass">GtkSourceViewClass</link>;
enum                <link linkend="GtkSourceSmartHomeEndType">GtkSourceSmartHomeEndType</link>;
<link linkend="GtkWidget">GtkWidget</link>*          <link linkend="gtk-source-view-new">gtk_source_view_new</link>                 (void);
<link linkend="GtkWidget">GtkWidget</link>*          <link linkend="gtk-source-view-new-with-buffer">gtk_source_view_new_with_buffer</link>     (<link linkend="GtkSourceBuffer">GtkSourceBuffer</link> *buffer);
<link linkend="void">void</link>                <link linkend="gtk-source-view-set-auto-indent">gtk_source_view_set_auto_indent</link>     (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gboolean">gboolean</link> enable);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-source-view-get-auto-indent">gtk_source_view_get_auto_indent</link>     (<link linkend="GtkSourceView">GtkSourceView</link> *view);
<link linkend="void">void</link>                <link linkend="gtk-source-view-set-indent-on-tab">gtk_source_view_set_indent_on_tab</link>   (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gboolean">gboolean</link> enable);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-source-view-get-indent-on-tab">gtk_source_view_get_indent_on_tab</link>   (<link linkend="GtkSourceView">GtkSourceView</link> *view);
<link linkend="void">void</link>                <link linkend="gtk-source-view-set-indent-width">gtk_source_view_set_indent_width</link>    (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gint">gint</link> width);
<link linkend="gint">gint</link>                <link linkend="gtk-source-view-get-indent-width">gtk_source_view_get_indent_width</link>    (<link linkend="GtkSourceView">GtkSourceView</link> *view);
<link linkend="void">void</link>                <link linkend="gtk-source-view-set-insert-spaces-instead-of-tabs">gtk_source_view_set_insert_spaces_instead_of_tabs</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gboolean">gboolean</link> enable);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-source-view-get-insert-spaces-instead-of-tabs">gtk_source_view_get_insert_spaces_instead_of_tabs</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view);
<link linkend="void">void</link>                <link linkend="gtk-source-view-set-smart-home-end">gtk_source_view_set_smart_home_end</link>  (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="GtkSourceSmartHomeEndType">GtkSourceSmartHomeEndType</link> smart_he);
<link linkend="GtkSourceSmartHomeEndType">GtkSourceSmartHomeEndType</link> <link linkend="gtk-source-view-get-smart-home-end">gtk_source_view_get_smart_home_end</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view);
<link linkend="void">void</link>                <link linkend="gtk-source-view-set-mark-category-pixbuf">gtk_source_view_set_mark_category_pixbuf</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         const <link linkend="gchar">gchar</link> *category,
                                                         <link linkend="GdkPixbuf">GdkPixbuf</link> *pixbuf);
<link linkend="GdkPixbuf">GdkPixbuf</link>*          <link linkend="gtk-source-view-get-mark-category-pixbuf">gtk_source_view_get_mark_category_pixbuf</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         const <link linkend="gchar">gchar</link> *category);
<link linkend="void">void</link>                <link linkend="gtk-source-view-set-mark-category-priority">gtk_source_view_set_mark_category_priority</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         const <link linkend="gchar">gchar</link> *category,
                                                         <link linkend="gint">gint</link> priority);
<link linkend="gint">gint</link>                <link linkend="gtk-source-view-get-mark-category-priority">gtk_source_view_get_mark_category_priority</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         const <link linkend="gchar">gchar</link> *category);
<link linkend="void">void</link>                <link linkend="gtk-source-view-set-highlight-current-line">gtk_source_view_set_highlight_current_line</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gboolean">gboolean</link> show);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-source-view-get-highlight-current-line">gtk_source_view_get_highlight_current_line</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view);
<link linkend="void">void</link>                <link linkend="gtk-source-view-set-show-line-marks">gtk_source_view_set_show_line_marks</link> (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gboolean">gboolean</link> show);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-source-view-get-show-line-marks">gtk_source_view_get_show_line_marks</link> (<link linkend="GtkSourceView">GtkSourceView</link> *view);
<link linkend="void">void</link>                <link linkend="gtk-source-view-set-show-line-numbers">gtk_source_view_set_show_line_numbers</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gboolean">gboolean</link> show);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-source-view-get-show-line-numbers">gtk_source_view_get_show_line_numbers</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view);
<link linkend="void">void</link>                <link linkend="gtk-source-view-set-show-right-margin">gtk_source_view_set_show_right_margin</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gboolean">gboolean</link> show);
<link linkend="gboolean">gboolean</link>            <link linkend="gtk-source-view-get-show-right-margin">gtk_source_view_get_show_right_margin</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view);
<link linkend="void">void</link>                <link linkend="gtk-source-view-set-right-margin-position">gtk_source_view_set_right_margin_position</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="guint">guint</link> pos);
<link linkend="guint">guint</link>               <link linkend="gtk-source-view-get-right-margin-position">gtk_source_view_get_right_margin_position</link>
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view);
<link linkend="void">void</link>                <link linkend="gtk-source-view-set-tab-width">gtk_source_view_set_tab_width</link>       (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="guint">guint</link> width);
<link linkend="guint">guint</link>               <link linkend="gtk-source-view-get-tab-width">gtk_source_view_get_tab_width</link>       (<link linkend="GtkSourceView">GtkSourceView</link> *view);
</synopsis>
</refsynopsisdiv>

<refsect1 id="GtkSourceView.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----<link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
         +----<link linkend="GtkObject">GtkObject</link>
               +----<link linkend="GtkWidget">GtkWidget</link>
                     +----<link linkend="GtkContainer">GtkContainer</link>
                           +----<link linkend="GtkTextView">GtkTextView</link>
                                 +----GtkSourceView
</synopsis>

</refsect1>



<refsect1 id="GtkSourceView.implemented-interfaces" role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GtkSourceView implements
 <link linkend="AtkImplementorIface">AtkImplementorIface</link> and  <link linkend="GtkBuildable">GtkBuildable</link>.</para>

</refsect1>


<refsect1 id="GtkSourceView.properties" role="properties">
<title role="properties.title">Properties</title>
<synopsis>
  &quot;<link linkend="GtkSourceView--auto-indent">auto-indent</link>&quot;              <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkSourceView--highlight-current-line">highlight-current-line</link>&quot;   <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkSourceView--indent-on-tab">indent-on-tab</link>&quot;            <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkSourceView--indent-width">indent-width</link>&quot;             <link linkend="gint">gint</link>                  : Read / Write
  &quot;<link linkend="GtkSourceView--insert-spaces-instead-of-tabs">insert-spaces-instead-of-tabs</link>&quot; <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkSourceView--right-margin-position">right-margin-position</link>&quot;    <link linkend="guint">guint</link>                 : Read / Write
  &quot;<link linkend="GtkSourceView--show-line-marks">show-line-marks</link>&quot;          <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkSourceView--show-line-numbers">show-line-numbers</link>&quot;        <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkSourceView--show-right-margin">show-right-margin</link>&quot;        <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkSourceView--smart-home-end">smart-home-end</link>&quot;           <link linkend="GtkSourceSmartHomeEndType">GtkSourceSmartHomeEndType</link>  : Read / Write
  &quot;<link linkend="GtkSourceView--tab-width">tab-width</link>&quot;                <link linkend="guint">guint</link>                 : Read / Write
</synopsis>
</refsect1>

<refsect1 id="GtkSourceView.signals" role="signal_proto">
<title role="signal_proto.title">Signals</title>
<synopsis>
  &quot;<link linkend="GtkSourceView-redo">redo</link>&quot;                                           : Run Last / Action
  &quot;<link linkend="GtkSourceView-undo">undo</link>&quot;                                           : Run Last / Action
</synopsis>
</refsect1>


<refsect1 id="GtkSourceView.description" role="desc">
<title role="desc.title">Description</title>
<para>
GtkSourceView is the main object of the gtksourceview library. It provides
a text view which syntax highlighting, undo/redo and text marks. Use a 
<link linkend="GtkSourceBuffer"><type>GtkSourceBuffer</type></link> to display text with a GtkSourceView.
</para>
</refsect1>

<refsect1 id="GtkSourceView.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="GtkSourceView-struct" role="struct">
<title>GtkSourceView</title>
<indexterm zone="GtkSourceView-struct"><primary>GtkSourceView</primary></indexterm><programlisting>typedef struct _GtkSourceView GtkSourceView;</programlisting>
<para>

</para></refsect2>
<refsect2 id="GtkSourceViewClass" role="struct">
<title>GtkSourceViewClass</title>
<indexterm zone="GtkSourceViewClass"><primary>GtkSourceViewClass</primary></indexterm><programlisting>typedef struct {
	GtkTextViewClass parent_class;

	void (*undo) (GtkSourceView *view);
	void (*redo) (GtkSourceView *view);

	/* Padding for future expansion */
	void (*_gtk_source_reserved1) (void);
	void (*_gtk_source_reserved2) (void);
	void (*_gtk_source_reserved3) (void);
	void (*_gtk_source_reserved4) (void);
} GtkSourceViewClass;
</programlisting>
<para>

</para></refsect2>
<refsect2 id="GtkSourceSmartHomeEndType" role="enum">
<title>enum GtkSourceSmartHomeEndType</title>
<indexterm zone="GtkSourceSmartHomeEndType"><primary>GtkSourceSmartHomeEndType</primary></indexterm><programlisting>typedef enum
{
	GTK_SOURCE_SMART_HOME_END_DISABLED,
	GTK_SOURCE_SMART_HOME_END_BEFORE,
	GTK_SOURCE_SMART_HOME_END_AFTER,
	GTK_SOURCE_SMART_HOME_END_ALWAYS
} GtkSourceSmartHomeEndType;
</programlisting>
<para>
</para>
<para>

</para><variablelist role="enum">
<varlistentry id="GTK-SOURCE-SMART-HOME-END-DISABLED:CAPS" role="constant">
<term><literal>GTK_SOURCE_SMART_HOME_END_DISABLED</literal></term>
<listitem><simpara> smart-home-end disabled.
</simpara></listitem>
</varlistentry>
<varlistentry id="GTK-SOURCE-SMART-HOME-END-BEFORE:CAPS" role="constant">
<term><literal>GTK_SOURCE_SMART_HOME_END_BEFORE</literal></term>
<listitem><simpara> move to the first/last
non-whitespace character on the first press of the HOME/END keys and
to the beginning/end of the line on the second press.
</simpara></listitem>
</varlistentry>
<varlistentry id="GTK-SOURCE-SMART-HOME-END-AFTER:CAPS" role="constant">
<term><literal>GTK_SOURCE_SMART_HOME_END_AFTER</literal></term>
<listitem><simpara> move to the beginning/end of the
line on the first press of the HOME/END keys and to the first/last
non-whitespace character on the second press.
</simpara></listitem>
</varlistentry>
<varlistentry id="GTK-SOURCE-SMART-HOME-END-ALWAYS:CAPS" role="constant">
<term><literal>GTK_SOURCE_SMART_HOME_END_ALWAYS</literal></term>
<listitem><simpara> always move to the first/last
non-whitespace character when the HOME/END keys are pressed.
</simpara></listitem>
</varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-new" role="function">
<title>gtk_source_view_new ()</title>
<indexterm zone="gtk-source-view-new"><primary>gtk_source_view_new</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link>*          gtk_source_view_new                 (void);</programlisting>
<para>
Creates a new <link linkend="GtkSourceView"><type>GtkSourceView</type></link>. An empty default buffer will be
created for you. If you want to specify your own buffer, consider
<link linkend="gtk-source-view-new-with-buffer"><function>gtk_source_view_new_with_buffer()</function></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a new <link linkend="GtkSourceView"><type>GtkSourceView</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-new-with-buffer" role="function">
<title>gtk_source_view_new_with_buffer ()</title>
<indexterm zone="gtk-source-view-new-with-buffer"><primary>gtk_source_view_new_with_buffer</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link>*          gtk_source_view_new_with_buffer     (<link linkend="GtkSourceBuffer">GtkSourceBuffer</link> *buffer);</programlisting>
<para>
Creates a new <link linkend="GtkSourceView"><type>GtkSourceView</type></link> widget displaying the buffer
<parameter>buffer</parameter>. One buffer can be shared among many widgets.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>buffer</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceBuffer"><type>GtkSourceBuffer</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a new <link linkend="GtkTextView"><type>GtkTextView</type></link>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-set-auto-indent" role="function">
<title>gtk_source_view_set_auto_indent ()</title>
<indexterm zone="gtk-source-view-set-auto-indent"><primary>gtk_source_view_set_auto_indent</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_view_set_auto_indent     (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gboolean">gboolean</link> enable);</programlisting>
<para>
If <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> auto indentation of text is enabled.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>enable</parameter>&nbsp;:</term>
<listitem><simpara> whether to enable auto indentation.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-get-auto-indent" role="function">
<title>gtk_source_view_get_auto_indent ()</title>
<indexterm zone="gtk-source-view-get-auto-indent"><primary>gtk_source_view_get_auto_indent</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_source_view_get_auto_indent     (<link linkend="GtkSourceView">GtkSourceView</link> *view);</programlisting>
<para>
Returns whether auto indentation of text is enabled.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if auto indentation is enabled.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-set-indent-on-tab" role="function" condition="since:1.8">
<title>gtk_source_view_set_indent_on_tab ()</title>
<indexterm zone="gtk-source-view-set-indent-on-tab" role="1.8"><primary>gtk_source_view_set_indent_on_tab</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_view_set_indent_on_tab   (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gboolean">gboolean</link> enable);</programlisting>
<para>
If <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, 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.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>enable</parameter>&nbsp;:</term>
<listitem><simpara> whether to indent a block when tab is pressed.
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since  1.8
</para></refsect2>
<refsect2 id="gtk-source-view-get-indent-on-tab" role="function" condition="since:1.8">
<title>gtk_source_view_get_indent_on_tab ()</title>
<indexterm zone="gtk-source-view-get-indent-on-tab" role="1.8"><primary>gtk_source_view_get_indent_on_tab</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_source_view_get_indent_on_tab   (<link linkend="GtkSourceView">GtkSourceView</link> *view);</programlisting>
<para>
Returns whether when the tab key is pressed the current selection
should get indented instead of replaced with the \t character.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the selection is indented when tab is pressed.

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since  1.8
</para></refsect2>
<refsect2 id="gtk-source-view-set-indent-width" role="function">
<title>gtk_source_view_set_indent_width ()</title>
<indexterm zone="gtk-source-view-set-indent-width"><primary>gtk_source_view_set_indent_width</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_view_set_indent_width    (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gint">gint</link> width);</programlisting>
<para>
Sets the number of spaces to use for each step of indent.
If <parameter>width</parameter> is -1, the value of the GtkSourceView::tab-width property
will be used.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>width</parameter>&nbsp;:</term>
<listitem><simpara> indent width in characters.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-get-indent-width" role="function">
<title>gtk_source_view_get_indent_width ()</title>
<indexterm zone="gtk-source-view-get-indent-width"><primary>gtk_source_view_get_indent_width</primary></indexterm><programlisting><link linkend="gint">gint</link>                gtk_source_view_get_indent_width    (<link linkend="GtkSourceView">GtkSourceView</link> *view);</programlisting>
<para>
Returns the number of spaces to use for each step of indent.
See <link linkend="gtk-source-view-set-indent-width"><function>gtk_source_view_set_indent_width()</function></link> for details.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> indent width.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-set-insert-spaces-instead-of-tabs" role="function">
<title>gtk_source_view_set_insert_spaces_instead_of_tabs ()</title>
<indexterm zone="gtk-source-view-set-insert-spaces-instead-of-tabs"><primary>gtk_source_view_set_insert_spaces_instead_of_tabs</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_view_set_insert_spaces_instead_of_tabs
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gboolean">gboolean</link> enable);</programlisting>
<para>
If <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> any tabulator character inserted is replaced by a group
of space characters.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>enable</parameter>&nbsp;:</term>
<listitem><simpara> whether to insert spaces instead of tabs.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-get-insert-spaces-instead-of-tabs" role="function">
<title>gtk_source_view_get_insert_spaces_instead_of_tabs ()</title>
<indexterm zone="gtk-source-view-get-insert-spaces-instead-of-tabs"><primary>gtk_source_view_get_insert_spaces_instead_of_tabs</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_source_view_get_insert_spaces_instead_of_tabs
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view);</programlisting>
<para>
Returns whether when inserting a tabulator character it should
be replaced by a group of space characters.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if spaces are inserted instead of tabs.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-set-smart-home-end" role="function">
<title>gtk_source_view_set_smart_home_end ()</title>
<indexterm zone="gtk-source-view-set-smart-home-end"><primary>gtk_source_view_set_smart_home_end</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_view_set_smart_home_end  (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="GtkSourceSmartHomeEndType">GtkSourceSmartHomeEndType</link> smart_he);</programlisting>
<para>
Set the desired movement of the cursor when HOME and END keys
are pressed.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>smart_he</parameter>&nbsp;:</term>
<listitem><simpara> the desired behavior among <link linkend="GtkSourceSmartHomeEndType"><type>GtkSourceSmartHomeEndType</type></link>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-get-smart-home-end" role="function">
<title>gtk_source_view_get_smart_home_end ()</title>
<indexterm zone="gtk-source-view-get-smart-home-end"><primary>gtk_source_view_get_smart_home_end</primary></indexterm><programlisting><link linkend="GtkSourceSmartHomeEndType">GtkSourceSmartHomeEndType</link> gtk_source_view_get_smart_home_end
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view);</programlisting>
<para>
Returns a <link linkend="GtkSourceSmartHomeEndType"><type>GtkSourceSmartHomeEndType</type></link> end value specifying
how the cursor will move when HOME and END keys are pressed.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GtkSourceSmartHomeEndTypeend"><type>GtkSourceSmartHomeEndTypeend</type></link> value.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-set-mark-category-pixbuf" role="function" condition="since:2.2">
<title>gtk_source_view_set_mark_category_pixbuf ()</title>
<indexterm zone="gtk-source-view-set-mark-category-pixbuf" role="2.2"><primary>gtk_source_view_set_mark_category_pixbuf</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_view_set_mark_category_pixbuf
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         const <link linkend="gchar">gchar</link> *category,
                                                         <link linkend="GdkPixbuf">GdkPixbuf</link> *pixbuf);</programlisting>
<para>
Associates a given <parameter>pixbuf</parameter> with a given mark <parameter>category</parameter>.
If <parameter>pixbuf</parameter> is <link linkend="NULL:CAPS"><type>NULL</type></link>, the pixbuf is unset.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>category</parameter>&nbsp;:</term>
<listitem><simpara> a mark category.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>pixbuf</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GdkPixbuf"><type>GdkPixbuf</type></link> or <link linkend="NULL:CAPS"><type>NULL</type></link>.
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since  2.2
</para></refsect2>
<refsect2 id="gtk-source-view-get-mark-category-pixbuf" role="function" condition="since:2.2">
<title>gtk_source_view_get_mark_category_pixbuf ()</title>
<indexterm zone="gtk-source-view-get-mark-category-pixbuf" role="2.2"><primary>gtk_source_view_get_mark_category_pixbuf</primary></indexterm><programlisting><link linkend="GdkPixbuf">GdkPixbuf</link>*          gtk_source_view_get_mark_category_pixbuf
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         const <link linkend="gchar">gchar</link> *category);</programlisting>
<para>
Gets the pixbuf which is associated with the given mark <parameter>category</parameter>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>category</parameter>&nbsp;:</term>
<listitem><simpara> a mark category.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the associated <link linkend="GdkPixbuf"><type>GdkPixbuf</type></link>, or <link linkend="NULL:CAPS"><literal>NULL</literal></link> if not found.

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since  2.2
</para></refsect2>
<refsect2 id="gtk-source-view-set-mark-category-priority" role="function" condition="since:2.2">
<title>gtk_source_view_set_mark_category_priority ()</title>
<indexterm zone="gtk-source-view-set-mark-category-priority" role="2.2"><primary>gtk_source_view_set_mark_category_priority</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_view_set_mark_category_priority
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         const <link linkend="gchar">gchar</link> *category,
                                                         <link linkend="gint">gint</link> priority);</programlisting>
<para>
Set the <parameter>priority</parameter> for the given mark <parameter>category</parameter>. When there are
multiple marks on the same line, marks of categories with
higher priorities will be drawn on top.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>category</parameter>&nbsp;:</term>
<listitem><simpara> a mark category.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>priority</parameter>&nbsp;:</term>
<listitem><simpara> the priority for the category
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since  2.2
</para></refsect2>
<refsect2 id="gtk-source-view-get-mark-category-priority" role="function" condition="since:2.2">
<title>gtk_source_view_get_mark_category_priority ()</title>
<indexterm zone="gtk-source-view-get-mark-category-priority" role="2.2"><primary>gtk_source_view_get_mark_category_priority</primary></indexterm><programlisting><link linkend="gint">gint</link>                gtk_source_view_get_mark_category_priority
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         const <link linkend="gchar">gchar</link> *category);</programlisting>
<para>
Gets the priority which is associated with the given <parameter>category</parameter>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>category</parameter>&nbsp;:</term>
<listitem><simpara> a mark category.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the priority or if <parameter>category</parameter>
exists but no priority was set, it defaults to 0.

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since  2.2
</para></refsect2>
<refsect2 id="gtk-source-view-set-highlight-current-line" role="function">
<title>gtk_source_view_set_highlight_current_line ()</title>
<indexterm zone="gtk-source-view-set-highlight-current-line"><primary>gtk_source_view_set_highlight_current_line</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_view_set_highlight_current_line
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gboolean">gboolean</link> show);</programlisting>
<para>
If <parameter>show</parameter> is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> the current line is highlighted.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>show</parameter>&nbsp;:</term>
<listitem><simpara> whether to highlight the current line
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-get-highlight-current-line" role="function">
<title>gtk_source_view_get_highlight_current_line ()</title>
<indexterm zone="gtk-source-view-get-highlight-current-line"><primary>gtk_source_view_get_highlight_current_line</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_source_view_get_highlight_current_line
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view);</programlisting>
<para>
Returns whether the current line is highlighted</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the current line is highlighted.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-set-show-line-marks" role="function" condition="since:2.2">
<title>gtk_source_view_set_show_line_marks ()</title>
<indexterm zone="gtk-source-view-set-show-line-marks" role="2.2"><primary>gtk_source_view_set_show_line_marks</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_view_set_show_line_marks (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gboolean">gboolean</link> show);</programlisting>
<para>
If <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> line marks will be displayed beside the text.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>show</parameter>&nbsp;:</term>
<listitem><simpara> whether line marks should be displayed.
</simpara></listitem></varlistentry>
</variablelist><para role="since">Since  2.2
</para></refsect2>
<refsect2 id="gtk-source-view-get-show-line-marks" role="function" condition="since:2.2">
<title>gtk_source_view_get_show_line_marks ()</title>
<indexterm zone="gtk-source-view-get-show-line-marks" role="2.2"><primary>gtk_source_view_get_show_line_marks</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_source_view_get_show_line_marks (<link linkend="GtkSourceView">GtkSourceView</link> *view);</programlisting>
<para>
Returns whether line marks are displayed beside the text.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the line marks are displayed.

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since  2.2
</para></refsect2>
<refsect2 id="gtk-source-view-set-show-line-numbers" role="function">
<title>gtk_source_view_set_show_line_numbers ()</title>
<indexterm zone="gtk-source-view-set-show-line-numbers"><primary>gtk_source_view_set_show_line_numbers</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_view_set_show_line_numbers
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gboolean">gboolean</link> show);</programlisting>
<para>
If <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> line numbers will be displayed beside the text.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>show</parameter>&nbsp;:</term>
<listitem><simpara> whether line numbers should be displayed.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-get-show-line-numbers" role="function">
<title>gtk_source_view_get_show_line_numbers ()</title>
<indexterm zone="gtk-source-view-get-show-line-numbers"><primary>gtk_source_view_get_show_line_numbers</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_source_view_get_show_line_numbers
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view);</programlisting>
<para>
Returns whether line numbers are displayed beside the text.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the line numbers are displayed.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-set-show-right-margin" role="function">
<title>gtk_source_view_set_show_right_margin ()</title>
<indexterm zone="gtk-source-view-set-show-right-margin"><primary>gtk_source_view_set_show_right_margin</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_view_set_show_right_margin
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="gboolean">gboolean</link> show);</programlisting>
<para>
If <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> a right margin is displayed</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>show</parameter>&nbsp;:</term>
<listitem><simpara> whether to show a right margin.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-get-show-right-margin" role="function">
<title>gtk_source_view_get_show_right_margin ()</title>
<indexterm zone="gtk-source-view-get-show-right-margin"><primary>gtk_source_view_get_show_right_margin</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gtk_source_view_get_show_right_margin
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view);</programlisting>
<para>
Returns whether a right margin is displayed.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the right margin is shown.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-set-right-margin-position" role="function">
<title>gtk_source_view_set_right_margin_position ()</title>
<indexterm zone="gtk-source-view-set-right-margin-position"><primary>gtk_source_view_set_right_margin_position</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_view_set_right_margin_position
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="guint">guint</link> pos);</programlisting>
<para>
Sets the position of the right margin in the given <parameter>view</parameter>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>pos</parameter>&nbsp;:</term>
<listitem><simpara> the width in characters where to position the right margin.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-get-right-margin-position" role="function">
<title>gtk_source_view_get_right_margin_position ()</title>
<indexterm zone="gtk-source-view-get-right-margin-position"><primary>gtk_source_view_get_right_margin_position</primary></indexterm><programlisting><link linkend="guint">guint</link>               gtk_source_view_get_right_margin_position
                                                        (<link linkend="GtkSourceView">GtkSourceView</link> *view);</programlisting>
<para>
Gets the position of the right margin in the given <parameter>view</parameter>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the position of the right margin.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-set-tab-width" role="function">
<title>gtk_source_view_set_tab_width ()</title>
<indexterm zone="gtk-source-view-set-tab-width"><primary>gtk_source_view_set_tab_width</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_source_view_set_tab_width       (<link linkend="GtkSourceView">GtkSourceView</link> *view,
                                                         <link linkend="guint">guint</link> width);</programlisting>
<para>
Sets the width of tabulation in characters.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>width</parameter>&nbsp;:</term>
<listitem><simpara> width of tab in characters.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-source-view-get-tab-width" role="function">
<title>gtk_source_view_get_tab_width ()</title>
<indexterm zone="gtk-source-view-get-tab-width"><primary>gtk_source_view_get_tab_width</primary></indexterm><programlisting><link linkend="guint">guint</link>               gtk_source_view_get_tab_width       (<link linkend="GtkSourceView">GtkSourceView</link> *view);</programlisting>
<para>
Returns the width of tabulation in characters.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>view</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GtkSourceView"><type>GtkSourceView</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> width of tab.
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1 id="GtkSourceView.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkSourceView--auto-indent"><title>The <literal>&quot;auto-indent&quot;</literal> property</title>
<indexterm zone="GtkSourceView--auto-indent"><primary>GtkSourceView:auto-indent</primary></indexterm><programlisting>  &quot;auto-indent&quot;              <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>Whether to enable auto indentation.</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkSourceView--highlight-current-line"><title>The <literal>&quot;highlight-current-line&quot;</literal> property</title>
<indexterm zone="GtkSourceView--highlight-current-line"><primary>GtkSourceView:highlight-current-line</primary></indexterm><programlisting>  &quot;highlight-current-line&quot;   <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>Whether to highlight the current line.</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkSourceView--indent-on-tab"><title>The <literal>&quot;indent-on-tab&quot;</literal> property</title>
<indexterm zone="GtkSourceView--indent-on-tab"><primary>GtkSourceView:indent-on-tab</primary></indexterm><programlisting>  &quot;indent-on-tab&quot;            <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>Whether to indent the selected text when the tab key is pressed.</para><para>Default value: TRUE</para>
</refsect2>
<refsect2 id="GtkSourceView--indent-width"><title>The <literal>&quot;indent-width&quot;</literal> property</title>
<indexterm zone="GtkSourceView--indent-width"><primary>GtkSourceView:indent-width</primary></indexterm><programlisting>  &quot;indent-width&quot;             <link linkend="gint">gint</link>                  : Read / Write</programlisting>
<para>
Width of an indentation step expressed in number of spaces.</para>
<para>

</para><para>Allowed values: [-1,32]</para>
<para>Default value: -1</para>
</refsect2>
<refsect2 id="GtkSourceView--insert-spaces-instead-of-tabs"><title>The <literal>&quot;insert-spaces-instead-of-tabs&quot;</literal> property</title>
<indexterm zone="GtkSourceView--insert-spaces-instead-of-tabs"><primary>GtkSourceView:insert-spaces-instead-of-tabs</primary></indexterm><programlisting>  &quot;insert-spaces-instead-of-tabs&quot; <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>Whether to insert spaces instead of tabs.</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkSourceView--right-margin-position"><title>The <literal>&quot;right-margin-position&quot;</literal> property</title>
<indexterm zone="GtkSourceView--right-margin-position"><primary>GtkSourceView:right-margin-position</primary></indexterm><programlisting>  &quot;right-margin-position&quot;    <link linkend="guint">guint</link>                 : Read / Write</programlisting>
<para>
Position of the right margin.</para>
<para>

</para><para>Allowed values: [1,200]</para>
<para>Default value: 80</para>
</refsect2>
<refsect2 id="GtkSourceView--show-line-marks"><title>The <literal>&quot;show-line-marks&quot;</literal> property</title>
<indexterm zone="GtkSourceView--show-line-marks"><primary>GtkSourceView:show-line-marks</primary></indexterm><programlisting>  &quot;show-line-marks&quot;          <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>
Whether to display line mark pixbufs</para>
<para>

</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkSourceView--show-line-numbers"><title>The <literal>&quot;show-line-numbers&quot;</literal> property</title>
<indexterm zone="GtkSourceView--show-line-numbers"><primary>GtkSourceView:show-line-numbers</primary></indexterm><programlisting>  &quot;show-line-numbers&quot;        <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>
Whether to display line numbers</para>
<para>

</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkSourceView--show-right-margin"><title>The <literal>&quot;show-right-margin&quot;</literal> property</title>
<indexterm zone="GtkSourceView--show-right-margin"><primary>GtkSourceView:show-right-margin</primary></indexterm><programlisting>  &quot;show-right-margin&quot;        <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>
Whether to display the right margin.</para>
<para>

</para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="GtkSourceView--smart-home-end"><title>The <literal>&quot;smart-home-end&quot;</literal> property</title>
<indexterm zone="GtkSourceView--smart-home-end" role="2.0"><primary>GtkSourceView:smart-home-end</primary></indexterm><programlisting>  &quot;smart-home-end&quot;           <link linkend="GtkSourceSmartHomeEndType">GtkSourceSmartHomeEndType</link>  : Read / Write</programlisting>
<para>
Set the behavior of the HOME and END keys.</para>
<para>

</para><para>Default value: GTK_SOURCE_SMART_HOME_END_DISABLED</para>
<para>Since  2.0
</para>
</refsect2>
<refsect2 id="GtkSourceView--tab-width"><title>The <literal>&quot;tab-width&quot;</literal> property</title>
<indexterm zone="GtkSourceView--tab-width"><primary>GtkSourceView:tab-width</primary></indexterm><programlisting>  &quot;tab-width&quot;                <link linkend="guint">guint</link>                 : Read / Write</programlisting>
<para>
Width of an tab character expressed in number of spaces.</para>
<para>

</para><para>Allowed values: [1,32]</para>
<para>Default value: 8</para>
</refsect2>

</refsect1>

<refsect1 id="GtkSourceView.signal-details" role="signals">
<title role="signals.title">Signal Details</title>
<refsect2 id="GtkSourceView-redo"><title>The <literal>&quot;redo&quot;</literal> signal</title>
<indexterm zone="GtkSourceView-redo"><primary>GtkSourceView::redo</primary></indexterm><programlisting><link linkend="void">void</link>                user_function                      (<link linkend="GtkSourceView">GtkSourceView</link> *sourceview,
                                                        <link linkend="gpointer">gpointer</link>       user_data)       : Run Last / Action</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>sourceview</parameter>&nbsp;:</term>
<listitem><simpara>the object which received the signal.

</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist></refsect2><refsect2 id="GtkSourceView-undo"><title>The <literal>&quot;undo&quot;</literal> signal</title>
<indexterm zone="GtkSourceView-undo"><primary>GtkSourceView::undo</primary></indexterm><programlisting><link linkend="void">void</link>                user_function                      (<link linkend="GtkSourceView">GtkSourceView</link> *sourceview,
                                                        <link linkend="gpointer">gpointer</link>       user_data)       : Run Last / Action</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>sourceview</parameter>&nbsp;:</term>
<listitem><simpara>the object which received the signal.

</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist></refsect2>
</refsect1>



</refentry>