summaryrefslogtreecommitdiff
path: root/docs/reference/pygtk-gtkselectiondata.xml
blob: 39857bec2aef3fc481e9db5be11706a9bbed4dfa (plain)
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
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
<?xml version="1.0" standalone="no"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
    "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">

<refentry id="class-gtkselectiondata">
  <refnamediv>
    <refname>gtk.SelectionData</refname>
    <refpurpose>an object that stores information about a
selection</refpurpose>
  </refnamediv>

  <refsect1>
    <title>Synopsis</title>

    <classsynopsis language="python">
      <ooclass><classname>gtk.SelectionData</classname></ooclass>
      <ooclass><classname>gobject.GBoxed</classname></ooclass>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtkselectiondata--set">set</link></methodname>
	<methodparam><parameter
		       role="keyword">type</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">format</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">data</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtkselectiondata--set-text">set_text</link></methodname>
	<methodparam><parameter role="keyword">str</parameter></methodparam>
	<methodparam><parameter role="keyword">len</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtkselectiondata--get-text">get_text</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtkselectiondata--get-targets">get_targets</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtkselectiondata--targets-include-text">targets_include_text</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtkselectiondata--tree-set-row-drag-data">tree_set_row_drag_data</link></methodname>
	<methodparam><parameter
		       role="keyword">tree_model</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">path</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtkselectiondata--tree-get-row-drag-data">tree_get_row_drag_data</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtkselectiondata--set-pixbuf">set_pixbuf</link></methodname>
	<methodparam><parameter role="keyword">pixbuf</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtkselectiondata--get-pixbuf">get_pixbuf</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtkselectiondata--set-uris">set_uris</link></methodname>
	<methodparam><parameter role="keyword">uris</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtkselectiondata--get-uris">get_uris</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtkselectiondata--targets-include-image">targets_include_image</link></methodname>
	<methodparam><parameter role="keyword">writable</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkselectiondata--targets-include-rich-text">targets_include_rich_text</link></methodname>
        <methodparam><parameter role="keyword">buffer</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkselectiondata--targets-include-uri">targets_include_uri</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      
      <!-- NOT IMPLEMENTED
      <methodsynopsis language="python">
	<methodname><link linkend="method-gtkselectiondata- -get-data">get_data</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      -->
      <methodsynopsis language="python">
	<methodname><link linkend="method-gtkselectiondata--get-data-type">get_data_type</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link linkend="method-gtkselectiondata--get-display">get_display</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link linkend="method-gtkselectiondata--get-format">get_format</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link linkend="method-gtkselectiondata--get-length">get_length</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link linkend="method-gtkselectiondata--get-target">get_target</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
    </classsynopsis>

    <programlisting>
<emphasis role="bold">Functions</emphasis>

<methodsynopsis language="python">
	<methodname><link linkend="function-gtk--selection-owner-set-for-display">gtk.selection_owner_set_for_display</link></methodname>
	<methodparam><parameter role="keyword">display</parameter></methodparam>
	<methodparam><parameter role="keyword">widget</parameter></methodparam>
	<methodparam><parameter role="keyword">selection</parameter></methodparam>
	<methodparam><parameter role="keyword">time</parameter><initializer>0</initializer></methodparam>
      </methodsynopsis><methodsynopsis language="python">
	<methodname><link linkend="function-gtk--target-list-add-image-targets">gtk.target_list_add_image_targets</link></methodname>
	<methodparam><parameter role="keyword">list</parameter><initializer>None</initializer></methodparam>
	<methodparam><parameter role="keyword">info</parameter><initializer>0</initializer></methodparam>
	<methodparam><parameter role="keyword">writable</parameter><initializer>False</initializer></methodparam>
      </methodsynopsis><methodsynopsis language="python">
	<methodname><link linkend="function-gtk--target-list-add-text-targets">gtk.target_list_add_text_targets</link></methodname>
	<methodparam><parameter role="keyword">list</parameter><initializer>None</initializer></methodparam>
	<methodparam><parameter role="keyword">info</parameter><initializer>0</initializer></methodparam>
      </methodsynopsis><methodsynopsis language="python">
	<methodname><link linkend="function-gtk--target-list-add-uri-targets">gtk.target_list_add_uri_targets</link></methodname>
	<methodparam><parameter role="keyword">list</parameter><initializer>None</initializer></methodparam>
	<methodparam><parameter role="keyword">info</parameter><initializer>0</initializer></methodparam>
      </methodsynopsis><methodsynopsis language="python">
	<methodname><link linkend="function-gtk--target-list-add-rich-text-targets">gtk.target_list_add_rich_text_targets</link></methodname>
	<methodparam><parameter role="keyword">list</parameter></methodparam>
	<methodparam><parameter role="keyword">info</parameter></methodparam>
	<methodparam><parameter role="keyword">deserializable</parameter></methodparam>
	<methodparam><parameter role="keyword">buffer</parameter></methodparam>
      </methodsynopsis><methodsynopsis language="python">
	<methodname><link linkend="function-gtk--targets-include-image">gtk.targets_include_image</link></methodname>
	<methodparam><parameter role="keyword">targets</parameter></methodparam>
	<methodparam><parameter role="keyword">writable</parameter></methodparam>
      </methodsynopsis><methodsynopsis language="python">
	<methodname><link linkend="function-gtk--targets-include-rich-text">gtk.targets_include_rich_text</link></methodname>
	<methodparam><parameter role="keyword">targets</parameter></methodparam>
	<methodparam><parameter role="keyword">buffer</parameter></methodparam>
      </methodsynopsis><methodsynopsis language="python">
	<methodname><link linkend="function-gtk--targets-include-text">gtk.targets_include_text</link></methodname>
	<methodparam><parameter role="keyword">targets</parameter></methodparam>
      </methodsynopsis><methodsynopsis language="python">
	<methodname><link linkend="function-gtk--targets-include-uri">gtk.targets_include_uri</link></methodname>
	<methodparam><parameter role="keyword">targets</parameter></methodparam>
      </methodsynopsis>
</programlisting>

  </refsect1>

  <refsect1>
    <title>Attributes</title>

    <blockquote role="properties">
      <informaltable pgwide="1" frame="none">
	<tgroup cols="3">
	<?dbhtml cellpadding="5"?>
	  <colspec column="1" colwidth="1in"/>
	  <colspec column="2" colwidth="1in"/>
	  <colspec column="3" colwidth="4in"/>
	  <tbody>

	    <row valign="top">
	      <entry>"selection"</entry>
	      <entry>Read</entry>
	      <entry>A <link linkend="class-gdkatom"><classname>gtk.gdk.Atom</classname></link> indicating the selection type (e.g. "PRIMARY").</entry>
	    </row>

	    <row valign="top">
	      <entry>"target"</entry>
	      <entry>Read</entry>
	      <entry>A <link linkend="class-gdkatom"><classname>gtk.gdk.Atom</classname></link> indicating the selection target type (e.g. "TARGETS").</entry>
	    </row>

	    <row valign="top">
	      <entry>"type"</entry>
	      <entry>Read</entry>
	      <entry>A <link linkend="class-gdkatom"><classname>gtk.gdk.Atom</classname></link> indicating the selection data type (e.g. "STRING").</entry>
	    </row>

	    <row valign="top">
	      <entry>"format"</entry>
	      <entry>Read</entry>
	      <entry>The unit length of the data in bits (e.g. 8 for a
string or 32 of an integer).</entry>
	    </row>

	    <row valign="top">
	      <entry>"data"</entry>
	      <entry>Read</entry>
	      <entry>The data as a string.</entry>
	    </row>

	</tbody>
      </tgroup>
      </informaltable>
    </blockquote>

  </refsect1>

  <refsect1>
    <title>Description</title>

    <para>A <link
linkend="class-gtkselectiondata"><classname>gtk.SelectionData</classname></link> 
object is used to store information about a chunk of data associated with a
selection. In PyGTK the selection data is always a string so the application
will have to provide functions to convert the data to and from a string to
support data types other than strings and targets. The string and targets
types are directly supported using the <link
linkend="method-gtkselectiondata--set-text"><methodname>set_text</methodname>()</link>, 
<link
linkend="method-gtkselectiondata--get-text"><methodname>get_text</methodname>()</link> 
and <link
linkend="method-gtkselectiondata--get-targets"><methodname>get_targets</methodname>()</link> 
methods.</para>

  </refsect1>

  <refsect1>
    <title>Methods</title>

    <refsect2 id="method-gtkselectiondata--set">
      <title>gtk.SelectionData.set</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set</methodname>
	  <methodparam><parameter
			 role="keyword">type</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">format</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">data</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">type</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gdkatom"><classname>gtk.gdk.Atom</classname></link> or string
that specifies a <link
linkend="class-gdkatom"><classname>gtk.gdk.Atom</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">format</parameter>&nbsp;:</term>
	  <listitem><simpara>the number of bits in a
unit</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">data</parameter>&nbsp;:</term>
	  <listitem><simpara>a string containing the
data</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set</methodname>() method sets the data for a
selection in the <link
linkend="class-gtkselectiondata"><classname>gtk.SelectionData</classname></link>
object. <parameter>data</parameter> is a string containing the data to be
set; <parameter>format</parameter> is the number of bits in a unit of the
data (e.g. integer data has a format of 32 on most systems; string data
format is 8); and, <parameter>type</parameter> is a <link
linkend="class-gdkatom"><classname>gtk.gdk.Atom</classname></link> or a
string that specifies a <link
linkend="class-gdkatom"><classname>gtk.gdk.Atom</classname></link>.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--set-text">
      <title>gtk.SelectionData.set_text</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_text</methodname>
	  <methodparam><parameter
			 role="keyword">str</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">len</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">str</parameter>&nbsp;:</term>
	  <listitem><simpara>a string</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">len</parameter>&nbsp;:</term>
	  <listitem><simpara>the length of <parameter>str</parameter>, or -1
if <parameter>str</parameter> for the full length.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal>, if the selection was
successfully set; otherwise, <literal>False</literal>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_text</methodname>() method sets the contents
of the selection from the string specified by <parameter>str</parameter>.
The string is converted to the form specified by the
<literal>selection_data.target</literal> attribute. This method returns True
if the selection data was successfully set.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--get-text">
      <title>gtk.SelectionData.get_text</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_text</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a string containing the converted text, or
<literal>None</literal>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_text</methodname>() method returns the
contents of the selection data as a string.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--get-targets">
      <title>gtk.SelectionData.get_targets</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_targets</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a tuple containing a list of targets (<link
linkend="class-gdkatom"><classname>gtk.gdk.Atom</classname></link>s) or
<literal>None</literal> if no valid targets are
available.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_targets</methodname>() method returns a
tuple containing a list of valid targets for the selection as a list of
<link linkend="class-gdkatom"><classname>gtk.gdk.Atom</classname></link>s or
None if there are no valid targets.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--targets-include-text">
      <title>gtk.SelectionData.targets_include_text</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>targets_include_text</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the selection data
holds a list of targets, and a suitable target for text is
included.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>targets_include_text</methodname>() method
returns <literal>True</literal> if any of the selection data targets can be
used to provide text.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--tree-set-row-drag-data">
      <title>gtk.SelectionData.tree_set_row_drag_data</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>tree_set_row_drag_data</methodname>
	  <methodparam><parameter
			 role="keyword">tree_model</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">path</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter
role="keyword">tree_model</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gtktreemodel"><classname>gtk.TreeModel</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">path</parameter>&nbsp;:</term>
	  <listitem><simpara>a row in
<parameter>tree_model</parameter></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the <link
linkend="class-gtkselectiondata"><classname>gtk.SelectionData</classname></link> 
had the proper target type to allow us to set a tree
row</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>tree_set_row_drag_data</methodname>() method
sets the selection data of target type <literal>GTK_TREE_MODEL_ROW</literal>
for the row (specified by <parameter>path</parameter>) in the <link
linkend="class-gtktreemodel"><classname>gtk.TreeModel</classname></link>
(specified by tree_model). Normally used in a "<link
linkend="signal-gtkwidget--drag-data-get">drag-data-get</link>" signal
handler.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--tree-get-row-drag-data">
      <title>gtk.SelectionData.tree_get_row_drag_data</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>tree_get_row_drag_data</methodname>
	  <methodparam></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a tuple containing a <link
linkend="class-gtktreemodel"><classname>gtk.TreeModel</classname></link> and
one of its rows.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>tree_get_row_drag_data</methodname>() method
returns a tuple containing a <link
linkend="class-gtktreemodel"><classname>gtk.TreeModel</classname></link> and
a row from that <link
linkend="class-gtktreemodel"><classname>gtk.TreeModel</classname></link>
from selection data of target type <literal>GTK_TREE_MODEL_ROW</literal>.
Normally called from a "<link
linkend="signal-gtkwidget--drag-data-received">drag-data-received</link>"
signal handler. This method can only be used if the selection data
originates from the same process that's calling this method, because a
pointer to the tree model is being passed around. In the "<link
linkend="signal-gtkwidget--drag-data-received">drag-data-received</link>"
signal handler, you can assume that selection data of type
<literal>"GTK_TREE_MODEL_ROW"</literal> is from the current process.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--set-pixbuf">
      <title>gtk.SelectionData.set_pixbuf</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_pixbuf</methodname>
	  <methodparam><parameter
			 role="keyword">pixbuf</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">pixbuf</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
linkend="class-gdkpixbuf"><classname>gtk.gdk.Pixbuf</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal>, if the selection was
successfully set; otherwise, <literal>False</literal>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This method is available in PyGTK 2.6 and above.</para>
      </note>

      <para>The <methodname>set_pixbuf</methodname>() method sets the
contents of the selection from the <link
linkend="class-gdkpixbuf"><classname>gtk.gdk.Pixbuf</classname></link>
specified by <parameter>pixbuf</parameter>. This method returns
<literal>True</literal> if the selection data was successfully set.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--get-pixbuf">
      <title>gtk.SelectionData.get_pixbuf</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_pixbuf</methodname>
	  <methodparam></methodparam>
        </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>if the selection data contained a recognized
image type and it could be converted to a <link
linkend="class-gdkpixbuf"><classname>gtk.gdk.Pixbuf</classname></link>, a
newly allocated pixbuf is returned, or
<literal>None</literal>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This method is available in PyGTK 2.6 and above.</para>
      </note>

      <para>The <methodname>get_pixbuf</methodname>() method returns the
contents of the selection data as a <link
linkend="class-gdkpixbuf"><classname>gtk.gdk.Pixbuf</classname></link> if
possible.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--set-uris">
      <title>gtk.SelectionData.set_uris</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_uris</methodname>
	  <methodparam><parameter
			 role="keyword">uris</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">uris</parameter>&nbsp;:</term>
	  <listitem><simpara>a list of strings holding
URIs</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal>, if the selection was
successfully set; otherwise, <literal>False</literal>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This method is available in PyGTK 2.6 and above.</para>
      </note>

      <para>The <methodname>set_uris</methodname>() method sets the contents
of the selection from the list of URIs specified by
<parameter>uris</parameter>. This method returns <literal>True</literal> if
the selection data was successfully set.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--get-uris">
      <title>gtk.SelectionData.get_uris</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_uris</methodname>
	  <methodparam></methodparam>
        </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a list of URIs, or
<literal>None</literal>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This method is available in PyGTK 2.6 and above.</para>
      </note>

      <para>The <methodname>get_uris</methodname>() method returns the
contents of the selection data as a list of URIs.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--targets-include-image">
      <title>gtk.SelectionData.targets_include_image</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>targets_include_image</methodname>
	  <methodparam><parameter
			 role="keyword">writable</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">writable</parameter>&nbsp;:</term>
	  <listitem><simpara>If <literal>True</literal> only accept targets
that GTK+ can convert a <link
linkend="class-gdkpixbuf"><classname>gtk.gdk.Pixbuf</classname></link>
to.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal>, if the selection has a
list of targets that includes an image target.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This method is available in PyGTK 2.6 and above.</para>
      </note>

      <para>The <methodname>targets_include_image</methodname>() method
returns <literal>True</literal> if the selection targets include an image
target.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--targets-include-rich-text">
      <title>gtk.SelectionData.targets_include_rich_text</title>

      <programlisting><methodsynopsis language="python">
        <methodname>targets_include_rich_text</methodname>
        <methodparam><parameter role="keyword">buffer</parameter></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><parameter role="keyword">buffer</parameter>&nbsp;:</term>
          <listitem><simpara>a <link
          linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link></simpara></listitem>
        </varlistentry>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if a suitable target
          for rich text is included in the selectiondata
          targets.</simpara></listitem>
        </varlistentry>
      </variablelist>

      <note>
        <para>This method is available in PyGTK 2.10 and above.</para>
      </note>

      <para>Determines if any of the selectiondata targets can be used to
      provide rich text.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--targets-include-uri">
      <title>gtk.SelectionData.targets_include_uri</title>

      <programlisting><methodsynopsis language="python">
        <methodname>targets_include_uri</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if a suitable target
          for uris is included in the selectiondata
          targets.</simpara></listitem>
        </varlistentry>
      </variablelist>

      <note>
        <para>This method is available in PyGTK 2.10 and above.</para>
      </note>

      <para>Determines if any of the selectiondata targets can be used to
      provide a list of URIs.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--get-data-type">
      <title>gtk.SelectionData.get_data_type</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_data_type</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>the data type of the selection.</simpara></listitem>
        </varlistentry>
      </variablelist>

      <note>
        <para>This method is available in PyGTK 2.14 and above.</para>
      </note>

      <para>Retrieves the data type of the selection.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--get-display">
      <title>gtk.SelectionData.get_display</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_display</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>the display of the selection.</simpara></listitem>
        </varlistentry>
      </variablelist>

      <note>
        <para>This method is available in PyGTK 2.14 and above.</para>
      </note>

      <para>Retrieves the display of the selection.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--get-format">
      <title>gtk.SelectionData.get_format</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_format</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>the format of the selection.</simpara></listitem>
        </varlistentry>
      </variablelist>

      <note>
        <para>This method is available in PyGTK 2.14 and above.</para>
      </note>

      <para>Retrieves the format of the selection.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--get-length">
      <title>gtk.SelectionData.get_length</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_length</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>the length of the data of the selection.</simpara></listitem>
        </varlistentry>
      </variablelist>

      <note>
        <para>This method is available in PyGTK 2.14 and above.</para>
      </note>

      <para>Retrieves the length of the data of the selection.</para>

    </refsect2>

    <refsect2 id="method-gtkselectiondata--get-target">
      <title>gtk.SelectionData.get_targets</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_target</methodname>
        <methodparam></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>the target of the selection.</simpara></listitem>
        </varlistentry>
      </variablelist>

      <note>
        <para>This method is available in PyGTK 2.14 and above.</para>
      </note>

      <para>Retrieves the target of the selection.</para>

    </refsect2>

  </refsect1>

  <refsect1>
    <title>Functions</title>

    <refsect2 id="function-gtk--selection-owner-set-for-display">
      <title>gtk.selection_owner_set_for_display</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>gtk.selection_owner_set_for_display</methodname>
	  <methodparam><parameter
			 role="keyword">display</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">widget</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">selection</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">time</parameter><initializer>0</initializer></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">display</parameter>&nbsp;:</term>
	  <listitem><simpara> the <link
	  linkend="class-gdkdisplay"><classname>gtk.gdk.Display</classname></link>
	  where the selection is set</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">widget</parameter>&nbsp;:</term>
	  <listitem><simpara>the new selection owner (a <link
	  linkend="class-gtkwidget"><classname>gtk.Widget</classname></link>),
	  or <literal>None</literal>.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter
	  role="keyword">selection</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
	  linkend="class-gdkatom"><classname>gtk.gdk.Atom</classname></link>
	  or string representing a selection target</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">time</parameter>&nbsp;:</term>
	  <listitem><simpara>the timestamp used to claim the
	  selection</simpara></listitem>
	</varlistentry>
	<varlistentry>
	<term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if the operation
	  succeeded</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <function>gtk.selection_owner_set_for_display</function>()
function claims ownership of the selection specified by
<parameter>selection</parameter> for the widget specified by
<parameter>widget</parameter> on the <link
linkend="class-gdkdisplay"><classname>gtk.gdk.Display</classname></link>
specified by <parameter>display</parameter>. If
<parameter>widget</parameter> is <literal>None</literal>, the ownership of
the selection is released.</para>

    </refsect2>

    <refsect2 id="function-gtk--target-list-add-image-targets">
      <title>gtk.target_list_add_image_targets</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>gtk.target_list_add_image_targets</methodname>
	  <methodparam><parameter
			 role="keyword">list</parameter><initializer>None</initializer></methodparam>
	  <methodparam><parameter
			 role="keyword">info</parameter><initializer>0</initializer></methodparam>
	<methodparam><parameter role="keyword">writable</parameter><initializer>False</initializer></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">list</parameter>&nbsp;:</term>
	  <listitem><simpara>A sequence of target entry tuples or
<literal>None</literal></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">info</parameter>&nbsp;:</term>
	  <listitem><simpara>an application specified ID that will be
passed back to the application</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">writable</parameter>&nbsp;:</term>
	  <listitem><simpara>If <literal>True</literal>, only add targets
for image formats that a pixbuf can be converted to.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	<term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a new list concatenating
<parameter>list</parameter> and the built-in image targets supported by
<link
linkend="class-gtkselectiondata"><classname>gtk.SelectionData</classname></link>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This function is available in PyGTK 2.6 and above.</para>
      </note>

      <para>The <function>gtk.target_list_add_image_targets</function>()
function adds the image target tuples supported by <link
linkend="class-gtkselectiondata"><classname>gtk.SelectionData</classname></link>
to the list of target entry tuples specified by
<parameter>list</parameter>. <literal>info</literal> is used as the info
field of the target entry tuples.</para>

    </refsect2>

    <refsect2 id="function-gtk--target-list-add-text-targets">
      <title>gtk.target_list_add_text_targets</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>gtk.target_list_add_text_targets</methodname>
	  <methodparam><parameter
			 role="keyword">list</parameter><initializer>None</initializer></methodparam>
	  <methodparam><parameter
			 role="keyword">info</parameter><initializer>0</initializer></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">list</parameter>&nbsp;:</term>
	  <listitem><simpara>A sequence of target entry tuples or
<literal>None</literal></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">info</parameter>&nbsp;:</term>
	  <listitem><simpara>an application specified ID that will be
passed back to the application</simpara></listitem>
	</varlistentry>
	<varlistentry>
	<term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a new list concatenating
<parameter>list</parameter> and the built-in text targets supported by
<link
linkend="class-gtkselectiondata"><classname>gtk.SelectionData</classname></link>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This function is available in PyGTK 2.6 and above.</para>
      </note>

      <para>The <function>gtk.target_list_add_text_targets</function>()
function adds the text target tuples supported by <link
linkend="class-gtkselectiondata"><classname>gtk.SelectionData</classname></link>
to the list of target entry tuples specified by
<parameter>list</parameter>. <literal>info</literal> is used as the info
field of the target entry tuples.</para>

    </refsect2>

    <refsect2 id="function-gtk--target-list-add-uri-targets">
      <title>gtk.target_list_add_uri_targets</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>gtk.target_list_add_uri_targets</methodname>
	  <methodparam><parameter
			 role="keyword">list</parameter><initializer>None</initializer></methodparam>
	  <methodparam><parameter
			 role="keyword">info</parameter><initializer>0</initializer></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">list</parameter>&nbsp;:</term>
	  <listitem><simpara>A sequence of target entry tuples or
<literal>None</literal></simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">info</parameter>&nbsp;:</term>
	  <listitem><simpara>an application specified ID that will be
passed back to the application</simpara></listitem>
	</varlistentry>
	<varlistentry>
	<term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a new list concatenating
<parameter>list</parameter> and the built-in URI targets supported by
<link
linkend="class-gtkselectiondata"><classname>gtk.SelectionData</classname></link>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This function is available in PyGTK 2.6 and above.</para>
      </note>

      <para>The <function>gtk.target_list_add_uri_targets</function>()
function adds the URI target tuples supported by <link
linkend="class-gtkselectiondata"><classname>gtk.SelectionData</classname></link>
to the list of target entry tuple specified by
<parameter>list</parameter>. <literal>info</literal> is used as the info
field of the target entry tuples.</para>

    </refsect2>

    <refsect2 id="function-gtk--targets-include-uri">
      <title>gtk.targets_include_uri</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>gtk.targets_include_uri</methodname>
	  <methodparam><parameter
			 role="keyword">targets</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">targets</parameter>&nbsp;:</term>
	  <listitem><simpara>a list of target strings</simpara></listitem>
	</varlistentry>
	<varlistentry>
	<term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if targets includes a
	  uri target.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This function is available in PyGTK 2.10 and above.</para>
      </note>

      <para>Determines if any of the targets in
      <parameter>targets</parameter> can be used to provide an uri
      list.</para>

    </refsect2>

    <refsect2 id="function-gtk--targets-include-text">
      <title>gtk.targets_include_text</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>gtk.targets_include_text</methodname>
	  <methodparam><parameter
			 role="keyword">targets</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">targets</parameter>&nbsp;:</term>
	  <listitem><simpara>a list of target strings</simpara></listitem>
	</varlistentry>
	<varlistentry>
	<term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if targets includes a
	  text target.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This function is available in PyGTK 2.10 and above.</para>
      </note>

      <para>Determines if any of the targets in
      <parameter>targets</parameter> can be used to provide text.</para>

    </refsect2>

    <refsect2 id="function-gtk--targets-include-rich-text">
      <title>gtk.targets_include_rich_text</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>gtk.targets_include_rich_text</methodname>
	  <methodparam><parameter
			 role="keyword">targets</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">buffer</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">targets</parameter>&nbsp;:</term>
	  <listitem><simpara>a list of target strings</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">buffer</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link
	  linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	<term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara></simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This function is available in PyGTK 2.10 and above.</para>
      </note>

      <para>Determines if any of the targets in
      <parameter>targets</parameter> can be used to provide rich
      text.</para>

    </refsect2>

    <refsect2 id="function-gtk--targets-include-image">
      <title>gtk.targets_include_image</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>gtk.targets_include_image</methodname>
	  <methodparam><parameter
			 role="keyword">targets</parameter></methodparam>
	  <methodparam><parameter
			 role="keyword">writable</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">targets</parameter>&nbsp;:</term>
	  <listitem><simpara>a list of target strings</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">writable</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal> accept only targets
	  for which GTK+ knows how to convert a pixbuf into the
	  format</simpara></listitem>
	</varlistentry>
	<varlistentry>
	<term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>True</literal> if
	  <parameter>targets</parameter> include a suitable target for
	  images</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This function is available in PyGTK 2.10 and above.</para>
      </note>

      <para>Determines if any of the targets in targets can be used to
      provide a <link
      linkend="class-gdkpixbuf"><classname>gtk.gdk.Pixbuf</classname></link>.</para>

    </refsect2>

    <refsect2 id="function-gtk--target-list-add-rich-text-targets">
      <title>gtk.target_list_add_rich_text_targets</title>

      <programlisting><methodsynopsis language="python">
	<methodname>gtk.target_list_add_rich_text_targets</methodname>
	<methodparam><parameter role="keyword">list</parameter></methodparam>
	<methodparam><parameter role="keyword">info</parameter></methodparam>
	<methodparam><parameter role="keyword">deserializable</parameter></methodparam>
	<methodparam><parameter role="keyword">buffer</parameter></methodparam>
      </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">list</parameter>&nbsp;:</term>
	  <listitem><simpara>a list of targets</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">info</parameter>&nbsp;:</term>
	  <listitem><simpara>an ID that will be passed back to the
	  application</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">deserializable</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>True</literal>, deserializable rich
	  text formats will be added, otherwise, serializable formats will
	  be added.</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter role="keyword">buffer</parameter>&nbsp;:</term>
	  <listitem><simpara>a <link linkend="class-gtktextbuffer"><classname>gtk.TextBuffer</classname></link></simpara></listitem>
	</varlistentry>
	<varlistentry>
	<term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a target list with the rich text targets
	  registered with <parameter>buffer</parameter> appended to
	  <parameter>list</parameter>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <note>
        <para>This function is available in PyGTK 2.10 and above.</para>
      </note>

      <para>Appends the rich text targets registered with the <link
      linkend="method-gtktextbuffer--register-serialize-format"><methodname>register_serialize_format</methodname>()</link>
      or <link
      linkend="method-gtktextbuffer--register-deserialize-format"><methodname>register_deserialize_format</methodname>()</link>
      methods to the target list. All targets are added with the same
      <parameter>info</parameter>.

list</para>

    </refsect2>

  </refsect1>

</refentry>