blob: 2151555cd5c441367af68a5890ae04d8dfbf0b2e (
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
|
<?xml version="1.0"?>
<page id="Regress.test_closure_variant"
type="topic"
style="function"
xmlns="http://projectmallard.org/1.0/"
xmlns:api="http://projectmallard.org/experimental/api/"
xmlns:ui="http://projectmallard.org/1.0/ui/">
<info>
<link type="guide" xref="index" group="function"/>
<api:function>
<api:returns>
<api:type>GLib.Variant</api:type>
</api:returns>
<api:name>regress_test_closure_variant</api:name>
<api:arg>
<api:type>GObject.Closure</api:type>
<api:name>closure</api:name>
</api:arg>
<api:arg>
<api:type>GLib.Variant</api:type>
<api:name>arg</api:name>
</api:arg>
</api:function>
</info>
<title>test_closure_variant</title>
<synopsis><code mime="text/x-python">
@accepts(GObject.Closure, GLib.Variant)
@returns(GLib.Variant)
def test_closure_variant(closure, arg):
# Python wrapper for regress_test_closure_variant()
</code></synopsis>
<dl>
<dt><p>closure :</p></dt>
<dd><p>GClosure which takes one GVariant and returns a GVariant</p></dd>
<dt><p>arg :</p></dt>
<dd><p>a GVariant passed as argument to <code>closure</code></p></dd>
<dt><p>Returns :</p></dt>
<dd><p>the return value of <code>closure</code></p></dd>
</dl>
</page>
|