summaryrefslogtreecommitdiff
path: root/docs/reference/pygtk-gtkrecentinfo.xml
blob: 177a84627a75ffdb1100d8de2938e878b91c8b3a (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
<?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-gtkrecentinfo">

  <refnamediv>
    <refname>gtk.RecentInfo</refname>
      <refpurpose>information found when looking up an entry of the recently
      used files list. (new in PyGTK 2.10)</refpurpose>
  </refnamediv>

  <refsect1>
    <title>Synopsis</title>

    <classsynopsis language="python">
      <ooclass><classname>gtk.RecentInfo</classname></ooclass>
      <ooclass><classname>gobject.GBoxed</classname></ooclass>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-uri">get_uri</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-display-name">get_display_name</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-description">get_description</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-mime-type">get_mime_type</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-added">get_added</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-modified">get_modified</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-visited">get_visited</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-private-hint">get_private_hint</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-application-info">get_application_info</link></methodname>
        <methodparam><parameter role="keyword">app_name</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-applications">get_applications</link></methodname>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--last-application">last_application</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--has-application">has_application</link></methodname>
        <methodparam><parameter role="keyword">app_name</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-groups">get_groups</link></methodname>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--has-group">has_group</link></methodname>
        <methodparam><parameter role="keyword">group_name</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-icon">get_icon</link></methodname>
        <methodparam><parameter role="keyword">size</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-short-name">get_short_name</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-uri-display">get_uri_display</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--get-age">get_age</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--is-local">is_local</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--exists">exists</link></methodname>
        <methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link linkend="method-gtkrecentinfo--match">match</link></methodname>
        <methodparam><parameter role="keyword">info_b</parameter></methodparam>
      </methodsynopsis>
</classsynopsis>

  </refsect1>

  <refsect1>
    <title>Description</title>

    <para>A <link
    linkend="class-gtkrecentinfo"><classname>gtk.RecentInfo</classname></link>
    contains the information about an entry in a <link
    linkend="class-gtkrecentmanager"><classname>gtk.RecentManager</classname></link>.</para>

  </refsect1>

  <refsect1>
    <title>Methods</title>

    <refsect2 id="method-gtkrecentinfo--get-uri">
      <title>gtk.RecentInfo.get_uri</title>

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

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

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

      <para>Returns the URI of the resource.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--get-display-name">
      <title>gtk.RecentInfo.get_display_name</title>

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

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

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

      <para>Returns the name of the resource. If none has been defined, the
      basename of the resource is obtained.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--get-description">
      <title>gtk.RecentInfo.get_description</title>

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

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

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

      <para>Returns the (short) description of the resource.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--get-mime-type">
      <title>gtk.RecentInfo.get_mime_type</title>

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

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

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

      <para>Returns the MIME type of the resource.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--get-added">
      <title>gtk.RecentInfo.get_added</title>

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

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>the number of seconds elapsed from system's
          Epoch when the resource was added to the list, or -1 on
          failure.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Returns the timestamp (seconds from system's Epoch) when the
      resource was added to the recently used resources list.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--get-modified">
      <title>gtk.RecentInfo.get_modified</title>

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

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>the number of seconds elapsed from system's
          Epoch when the resource was last modified, or -1 on
          failure.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Returns the timestamp (seconds from system's Epoch) when the
      resource was last modified.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--get-visited">
      <title>gtk.RecentInfo.get_visited</title>

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

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>the number of seconds elapsed from system's
          Epoch when the resource was last visited, or -1 on
          failure.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Returns the timestamp (seconds from system's Epoch) when the
      resource was last visited.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--get-private-hint">
      <title>gtk.RecentInfo.get_private_hint</title>

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

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if the private flag was
          found.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Returns the value of the "private" flag.  Resources in the
      recently used list that have this flag set to <literal>True</literal>
      should only be displayed by the applications that have registered
      them.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--get-application-info">
      <title>gtk.RecentInfo.get_application_info</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_application_info</methodname>
        <methodparam><parameter role="keyword">app_name</parameter></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><parameter role="keyword">app_name</parameter>&nbsp;:</term>
          <listitem><simpara>the name of the application that has registered
          this item</simpara></listitem>
        </varlistentry>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>a 3-tuple (containing the command line, the
          number of times this item was registered and the timestamp this
          item was last registered for this application) if an application
          named <parameter>app_name</parameter> has registered this resource
          inside the recently used list, or <literal>None</literal>
          otherwise.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Returns a 3-tuple containg the data regarding the application
      that has registered this resource. The 3-tuple contains the command
      line, the number of times this item was registered and the timestamp
      this item was last registered for this application</para>
      
      <para>If the command line contains any escape characters defined
      inside the storage specification, they will be expanded.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--get-applications">
      <title>gtk.RecentInfo.get_applications</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_applications</methodname>
        <methodparam><parameter role="keyword">length</parameter></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>a list of application name
          strings.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Returns the list of applications that have registered this
      resource.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--last-application">
      <title>gtk.RecentInfo.last_application</title>

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

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>an application name.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Returns the name of the last application that has registered the
      recently used resource.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--has-application">
      <title>gtk.RecentInfo.has_application</title>

      <programlisting><methodsynopsis language="python">
        <methodname>has_application</methodname>
        <methodparam><parameter role="keyword">app_name</parameter></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><parameter role="keyword">app_name</parameter>&nbsp;:</term>
          <listitem><simpara>a string containing an application
          name</simpara></listitem>
        </varlistentry>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if an application with
          the name <parameter>app_name</parameter> was found,
          <literal>False</literal> otherwise.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Checks whether an application registered this resource using
      <parameter>app_name</parameter>.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--get-groups">
      <title>gtk.RecentInfo.get_groups</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_groups</methodname>
        <methodparam><parameter role="keyword">length</parameter></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>a list of group names.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Returns a list containing the names of all groups registered
      for the recently used item.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--has-group">
      <title>gtk.RecentInfo.has_group</title>

      <programlisting><methodsynopsis language="python">
        <methodname>has_group</methodname>
        <methodparam><parameter role="keyword">group_name</parameter></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><parameter role="keyword">group_name</parameter>&nbsp;:</term>
          <listitem><simpara>the name of a group</simpara></listitem>
        </varlistentry>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if the group was
          found.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Checks whether <parameter>group_name</parameter> appears inside
      the groups registered for the recently used item.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--get-icon">
      <title>gtk.RecentInfo.get_icon</title>

      <programlisting><methodsynopsis language="python">
        <methodname>get_icon</methodname>
        <methodparam><parameter role="keyword">size</parameter></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><parameter role="keyword">size</parameter>&nbsp;:</term>
          <listitem><simpara>the size of the icon in
          pixels</simpara></listitem>
        </varlistentry>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>a <link
          linkend="class-gdkpixbuf"><classname>gtk.gdk.Pixbuf</classname></link>
          containing the icon, or
          <literal>None</literal>.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Retrieves the icon of size <parameter>size</parameter>
      associated to the resource MIME type.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--get-short-name">
      <title>gtk.RecentInfo.get_short_name</title>

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

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>the short name as a UTF-8 string</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Computes a valid UTF-8 string that can be used as the name of
      the item in a menu or list.  For example, calling this function on an
      item that refers to "file:///foo/bar.txt" will yield "bar.txt".</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--get-uri-display">
      <title>gtk.RecentInfo.get_uri_display</title>

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

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>a UTF-8 string containing the resource's URI or
          <literal>None</literal></simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Gets a displayable version of the resource's URI.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--get-age">
      <title>gtk.RecentInfo.get_age</title>

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

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara>a positive integer containing the number of
          days elapsed since the time this resource was last
          modified.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Returns the number of days elapsed since the last update of the
      resource.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--is-local">
      <title>gtk.RecentInfo.is_local</title>

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

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if the resource is
          local.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Checks whether the resource is local or not by looking at the
      scheme of its URI.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--exists">
      <title>gtk.RecentInfo.exists</title>

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

      <variablelist>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if the resource
          exists</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Checks whether the resource still exists. At the moment this
      check is done only on resources pointing to local files.</para>

    </refsect2>

    <refsect2 id="method-gtkrecentinfo--match">
      <title>gtk.RecentInfo.match</title>

      <programlisting><methodsynopsis language="python">
        <methodname>match</methodname>
        <methodparam><parameter role="keyword">info_b</parameter></methodparam>
      </methodsynopsis></programlisting>

      <variablelist>
        <varlistentry>
          <term><parameter role="keyword">info_b</parameter>&nbsp;:</term>
          <listitem><simpara>a <link
          linkend="class-gtkrecentinfo"><classname>gtk.RecentInfo</classname></link></simpara></listitem>
        </varlistentry>
        <varlistentry>
          <term><emphasis>Returns</emphasis>&nbsp;:</term>
          <listitem><simpara><literal>True</literal> if
          <parameter>info_b</parameter> matches this recent
          info.</simpara></listitem>
        </varlistentry>
      </variablelist>

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

      <para>Checks if <parameter>info_b</parameter> matches this recent
      info.</para>

    </refsect2>

  </refsect1>

</refentry>