gobject-introspection 2.2.5-x86-mingw32 → 3.0.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +3 -3
- data/ext/gobject-introspection/extconf.rb +1 -1
- data/ext/gobject-introspection/rb-gi-argument.c +2275 -708
- data/ext/gobject-introspection/rb-gi-constant-info.c +1 -1
- data/ext/gobject-introspection/rb-gi-constructor-info.c +2 -2
- data/ext/gobject-introspection/rb-gi-conversions.h +40 -36
- data/ext/gobject-introspection/rb-gi-field-info.c +32 -6
- data/ext/gobject-introspection/rb-gi-function-info.c +98 -63
- data/ext/gobject-introspection/rb-gi-loader.c +33 -1
- data/ext/gobject-introspection/rb-gi-method-info.c +3 -6
- data/ext/gobject-introspection/rb-gi-private.h +2 -1
- data/ext/gobject-introspection/rb-gi-repository.c +29 -29
- data/lib/2.0/gobject_introspection.so +0 -0
- data/lib/2.1/gobject_introspection.so +0 -0
- data/lib/2.2/gobject_introspection.so +0 -0
- data/lib/gobject-introspection/arg-info.rb +27 -0
- data/lib/gobject-introspection/callable-info.rb +3 -1
- data/lib/gobject-introspection/loader.rb +160 -31
- data/lib/gobject-introspection.rb +1 -0
- data/vendor/local/bin/g-ir-compiler.exe +0 -0
- data/vendor/local/bin/g-ir-generate.exe +0 -0
- data/vendor/local/bin/libgirepository-1.0-1.dll +0 -0
- data/vendor/local/include/gobject-introspection-1.0/girepository.h +4 -0
- data/vendor/local/include/gobject-introspection-1.0/giversionmacros.h +15 -1
- data/vendor/local/lib/girepository-1.0/GIRepository-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/GLib-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/GObject-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/Gio-2.0.typelib +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.py +6 -1
- data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ast.py +3 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ast.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ast.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girparser.py +19 -1
- data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.py +7 -3
- data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/message.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/message.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/scannermain.py +1 -1
- data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.py +8 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/utils.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/utils.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyo +0 -0
- data/vendor/local/lib/libgirepository-1.0.a +0 -0
- data/vendor/local/lib/libgirepository-1.0.dll.a +0 -0
- data/vendor/local/lib/libgirepository-1.0.la +3 -3
- data/vendor/local/lib/pkgconfig/gobject-introspection-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gobject-introspection-no-export-1.0.pc +1 -1
- data/vendor/local/share/gir-1.0/GIRepository-2.0.gir +44 -7
- data/vendor/local/share/gir-1.0/GLib-2.0.gir +518 -131
- data/vendor/local/share/gir-1.0/GObject-2.0.gir +1248 -475
- data/vendor/local/share/gir-1.0/Gio-2.0.gir +1849 -80
- data/vendor/local/share/gobject-introspection-1.0/tests/annotation.c +1 -1
- data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.c +19 -16
- data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.h +1 -1
- data/vendor/local/share/gobject-introspection-1.0/tests/regress.c +3 -0
- data/vendor/local/share/gobject-introspection-1.0/tests/regress.h +2 -2
- data/vendor/local/share/man/man1/g-ir-compiler.1 +1 -2
- data/vendor/local/share/man/man1/g-ir-generate.1 +2 -3
- metadata +5 -4
@@ -14,6 +14,421 @@ and/or use gtk-doc annotations. -->
|
|
14
14
|
shared-library="libgio-2.0-0.dll"
|
15
15
|
c:identifier-prefixes="G"
|
16
16
|
c:symbol-prefixes="g">
|
17
|
+
<alias name="ActionMap_autoptr" c:type="GActionMap_autoptr">
|
18
|
+
<type name="gpointer" c:type="gpointer"/>
|
19
|
+
</alias>
|
20
|
+
<alias name="Action_autoptr" c:type="GAction_autoptr">
|
21
|
+
<type name="gpointer" c:type="gpointer"/>
|
22
|
+
</alias>
|
23
|
+
<alias name="AppInfoMonitor_autoptr" c:type="GAppInfoMonitor_autoptr">
|
24
|
+
<type name="gpointer" c:type="gpointer"/>
|
25
|
+
</alias>
|
26
|
+
<alias name="AppInfo_autoptr" c:type="GAppInfo_autoptr">
|
27
|
+
<type name="gpointer" c:type="gpointer"/>
|
28
|
+
</alias>
|
29
|
+
<alias name="AppLaunchContext_autoptr" c:type="GAppLaunchContext_autoptr">
|
30
|
+
<type name="gpointer" c:type="gpointer"/>
|
31
|
+
</alias>
|
32
|
+
<alias name="ApplicationCommandLine_autoptr"
|
33
|
+
c:type="GApplicationCommandLine_autoptr">
|
34
|
+
<type name="gpointer" c:type="gpointer"/>
|
35
|
+
</alias>
|
36
|
+
<alias name="Application_autoptr" c:type="GApplication_autoptr">
|
37
|
+
<type name="gpointer" c:type="gpointer"/>
|
38
|
+
</alias>
|
39
|
+
<alias name="AsyncInitable_autoptr" c:type="GAsyncInitable_autoptr">
|
40
|
+
<type name="gpointer" c:type="gpointer"/>
|
41
|
+
</alias>
|
42
|
+
<alias name="AsyncResult_autoptr" c:type="GAsyncResult_autoptr">
|
43
|
+
<type name="gpointer" c:type="gpointer"/>
|
44
|
+
</alias>
|
45
|
+
<alias name="BufferedInputStream_autoptr"
|
46
|
+
c:type="GBufferedInputStream_autoptr">
|
47
|
+
<type name="gpointer" c:type="gpointer"/>
|
48
|
+
</alias>
|
49
|
+
<alias name="BufferedOutputStream_autoptr"
|
50
|
+
c:type="GBufferedOutputStream_autoptr">
|
51
|
+
<type name="gpointer" c:type="gpointer"/>
|
52
|
+
</alias>
|
53
|
+
<alias name="BytesIcon_autoptr" c:type="GBytesIcon_autoptr">
|
54
|
+
<type name="gpointer" c:type="gpointer"/>
|
55
|
+
</alias>
|
56
|
+
<alias name="Cancellable_autoptr" c:type="GCancellable_autoptr">
|
57
|
+
<type name="gpointer" c:type="gpointer"/>
|
58
|
+
</alias>
|
59
|
+
<alias name="CharsetConverter_autoptr" c:type="GCharsetConverter_autoptr">
|
60
|
+
<type name="gpointer" c:type="gpointer"/>
|
61
|
+
</alias>
|
62
|
+
<alias name="ConverterInputStream_autoptr"
|
63
|
+
c:type="GConverterInputStream_autoptr">
|
64
|
+
<type name="gpointer" c:type="gpointer"/>
|
65
|
+
</alias>
|
66
|
+
<alias name="ConverterOutputStream_autoptr"
|
67
|
+
c:type="GConverterOutputStream_autoptr">
|
68
|
+
<type name="gpointer" c:type="gpointer"/>
|
69
|
+
</alias>
|
70
|
+
<alias name="Converter_autoptr" c:type="GConverter_autoptr">
|
71
|
+
<type name="gpointer" c:type="gpointer"/>
|
72
|
+
</alias>
|
73
|
+
<alias name="Credentials_autoptr" c:type="GCredentials_autoptr">
|
74
|
+
<type name="gpointer" c:type="gpointer"/>
|
75
|
+
</alias>
|
76
|
+
<alias name="DBusActionGroup_autoptr" c:type="GDBusActionGroup_autoptr">
|
77
|
+
<type name="gpointer" c:type="gpointer"/>
|
78
|
+
</alias>
|
79
|
+
<alias name="DBusAuthObserver_autoptr" c:type="GDBusAuthObserver_autoptr">
|
80
|
+
<type name="gpointer" c:type="gpointer"/>
|
81
|
+
</alias>
|
82
|
+
<alias name="DBusConnection_autoptr" c:type="GDBusConnection_autoptr">
|
83
|
+
<type name="gpointer" c:type="gpointer"/>
|
84
|
+
</alias>
|
85
|
+
<alias name="DBusInterfaceSkeleton_autoptr"
|
86
|
+
c:type="GDBusInterfaceSkeleton_autoptr">
|
87
|
+
<type name="gpointer" c:type="gpointer"/>
|
88
|
+
</alias>
|
89
|
+
<alias name="DBusInterface_autoptr" c:type="GDBusInterface_autoptr">
|
90
|
+
<type name="gpointer" c:type="gpointer"/>
|
91
|
+
</alias>
|
92
|
+
<alias name="DBusMenuModel_autoptr" c:type="GDBusMenuModel_autoptr">
|
93
|
+
<type name="gpointer" c:type="gpointer"/>
|
94
|
+
</alias>
|
95
|
+
<alias name="DBusMessage_autoptr" c:type="GDBusMessage_autoptr">
|
96
|
+
<type name="gpointer" c:type="gpointer"/>
|
97
|
+
</alias>
|
98
|
+
<alias name="DBusMethodInvocation_autoptr"
|
99
|
+
c:type="GDBusMethodInvocation_autoptr">
|
100
|
+
<type name="gpointer" c:type="gpointer"/>
|
101
|
+
</alias>
|
102
|
+
<alias name="DBusNodeInfo_autoptr" c:type="GDBusNodeInfo_autoptr">
|
103
|
+
<type name="gpointer" c:type="gpointer"/>
|
104
|
+
</alias>
|
105
|
+
<alias name="DBusObjectManagerClient_autoptr"
|
106
|
+
c:type="GDBusObjectManagerClient_autoptr">
|
107
|
+
<type name="gpointer" c:type="gpointer"/>
|
108
|
+
</alias>
|
109
|
+
<alias name="DBusObjectManagerServer_autoptr"
|
110
|
+
c:type="GDBusObjectManagerServer_autoptr">
|
111
|
+
<type name="gpointer" c:type="gpointer"/>
|
112
|
+
</alias>
|
113
|
+
<alias name="DBusObjectManager_autoptr"
|
114
|
+
c:type="GDBusObjectManager_autoptr">
|
115
|
+
<type name="gpointer" c:type="gpointer"/>
|
116
|
+
</alias>
|
117
|
+
<alias name="DBusObjectProxy_autoptr" c:type="GDBusObjectProxy_autoptr">
|
118
|
+
<type name="gpointer" c:type="gpointer"/>
|
119
|
+
</alias>
|
120
|
+
<alias name="DBusObjectSkeleton_autoptr"
|
121
|
+
c:type="GDBusObjectSkeleton_autoptr">
|
122
|
+
<type name="gpointer" c:type="gpointer"/>
|
123
|
+
</alias>
|
124
|
+
<alias name="DBusObject_autoptr" c:type="GDBusObject_autoptr">
|
125
|
+
<type name="gpointer" c:type="gpointer"/>
|
126
|
+
</alias>
|
127
|
+
<alias name="DBusProxy_autoptr" c:type="GDBusProxy_autoptr">
|
128
|
+
<type name="gpointer" c:type="gpointer"/>
|
129
|
+
</alias>
|
130
|
+
<alias name="DBusServer_autoptr" c:type="GDBusServer_autoptr">
|
131
|
+
<type name="gpointer" c:type="gpointer"/>
|
132
|
+
</alias>
|
133
|
+
<alias name="DataInputStream_autoptr" c:type="GDataInputStream_autoptr">
|
134
|
+
<type name="gpointer" c:type="gpointer"/>
|
135
|
+
</alias>
|
136
|
+
<alias name="DataOutputStream_autoptr" c:type="GDataOutputStream_autoptr">
|
137
|
+
<type name="gpointer" c:type="gpointer"/>
|
138
|
+
</alias>
|
139
|
+
<alias name="Drive_autoptr" c:type="GDrive_autoptr">
|
140
|
+
<type name="gpointer" c:type="gpointer"/>
|
141
|
+
</alias>
|
142
|
+
<alias name="Emblem_autoptr" c:type="GEmblem_autoptr">
|
143
|
+
<type name="gpointer" c:type="gpointer"/>
|
144
|
+
</alias>
|
145
|
+
<alias name="EmblemedIcon_autoptr" c:type="GEmblemedIcon_autoptr">
|
146
|
+
<type name="gpointer" c:type="gpointer"/>
|
147
|
+
</alias>
|
148
|
+
<alias name="FileEnumerator_autoptr" c:type="GFileEnumerator_autoptr">
|
149
|
+
<type name="gpointer" c:type="gpointer"/>
|
150
|
+
</alias>
|
151
|
+
<alias name="FileIOStream_autoptr" c:type="GFileIOStream_autoptr">
|
152
|
+
<type name="gpointer" c:type="gpointer"/>
|
153
|
+
</alias>
|
154
|
+
<alias name="FileIcon_autoptr" c:type="GFileIcon_autoptr">
|
155
|
+
<type name="gpointer" c:type="gpointer"/>
|
156
|
+
</alias>
|
157
|
+
<alias name="FileInfo_autoptr" c:type="GFileInfo_autoptr">
|
158
|
+
<type name="gpointer" c:type="gpointer"/>
|
159
|
+
</alias>
|
160
|
+
<alias name="FileInputStream_autoptr" c:type="GFileInputStream_autoptr">
|
161
|
+
<type name="gpointer" c:type="gpointer"/>
|
162
|
+
</alias>
|
163
|
+
<alias name="FileMonitor_autoptr" c:type="GFileMonitor_autoptr">
|
164
|
+
<type name="gpointer" c:type="gpointer"/>
|
165
|
+
</alias>
|
166
|
+
<alias name="FileOutputStream_autoptr" c:type="GFileOutputStream_autoptr">
|
167
|
+
<type name="gpointer" c:type="gpointer"/>
|
168
|
+
</alias>
|
169
|
+
<alias name="File_autoptr" c:type="GFile_autoptr">
|
170
|
+
<type name="gpointer" c:type="gpointer"/>
|
171
|
+
</alias>
|
172
|
+
<alias name="FilenameCompleter_autoptr"
|
173
|
+
c:type="GFilenameCompleter_autoptr">
|
174
|
+
<type name="gpointer" c:type="gpointer"/>
|
175
|
+
</alias>
|
176
|
+
<alias name="FilterInputStream_autoptr"
|
177
|
+
c:type="GFilterInputStream_autoptr">
|
178
|
+
<type name="gpointer" c:type="gpointer"/>
|
179
|
+
</alias>
|
180
|
+
<alias name="FilterOutputStream_autoptr"
|
181
|
+
c:type="GFilterOutputStream_autoptr">
|
182
|
+
<type name="gpointer" c:type="gpointer"/>
|
183
|
+
</alias>
|
184
|
+
<alias name="IOModule_autoptr" c:type="GIOModule_autoptr">
|
185
|
+
<type name="gpointer" c:type="gpointer"/>
|
186
|
+
</alias>
|
187
|
+
<alias name="IOStream_autoptr" c:type="GIOStream_autoptr">
|
188
|
+
<type name="gpointer" c:type="gpointer"/>
|
189
|
+
</alias>
|
190
|
+
<alias name="Icon_autoptr" c:type="GIcon_autoptr">
|
191
|
+
<type name="gpointer" c:type="gpointer"/>
|
192
|
+
</alias>
|
193
|
+
<alias name="InetAddressMask_autoptr" c:type="GInetAddressMask_autoptr">
|
194
|
+
<type name="gpointer" c:type="gpointer"/>
|
195
|
+
</alias>
|
196
|
+
<alias name="InetAddress_autoptr" c:type="GInetAddress_autoptr">
|
197
|
+
<type name="gpointer" c:type="gpointer"/>
|
198
|
+
</alias>
|
199
|
+
<alias name="InetSocketAddress_autoptr"
|
200
|
+
c:type="GInetSocketAddress_autoptr">
|
201
|
+
<type name="gpointer" c:type="gpointer"/>
|
202
|
+
</alias>
|
203
|
+
<alias name="Initable_autoptr" c:type="GInitable_autoptr">
|
204
|
+
<type name="gpointer" c:type="gpointer"/>
|
205
|
+
</alias>
|
206
|
+
<alias name="InputStream_autoptr" c:type="GInputStream_autoptr">
|
207
|
+
<type name="gpointer" c:type="gpointer"/>
|
208
|
+
</alias>
|
209
|
+
<alias name="ListModel_autoptr" c:type="GListModel_autoptr">
|
210
|
+
<type name="gpointer" c:type="gpointer"/>
|
211
|
+
</alias>
|
212
|
+
<alias name="ListStore_autoptr" c:type="GListStore_autoptr">
|
213
|
+
<type name="gpointer" c:type="gpointer"/>
|
214
|
+
</alias>
|
215
|
+
<alias name="LoadableIcon_autoptr" c:type="GLoadableIcon_autoptr">
|
216
|
+
<type name="gpointer" c:type="gpointer"/>
|
217
|
+
</alias>
|
218
|
+
<alias name="MemoryInputStream_autoptr"
|
219
|
+
c:type="GMemoryInputStream_autoptr">
|
220
|
+
<type name="gpointer" c:type="gpointer"/>
|
221
|
+
</alias>
|
222
|
+
<alias name="MemoryOutputStream_autoptr"
|
223
|
+
c:type="GMemoryOutputStream_autoptr">
|
224
|
+
<type name="gpointer" c:type="gpointer"/>
|
225
|
+
</alias>
|
226
|
+
<alias name="MenuAttributeIter_autoptr"
|
227
|
+
c:type="GMenuAttributeIter_autoptr">
|
228
|
+
<type name="gpointer" c:type="gpointer"/>
|
229
|
+
</alias>
|
230
|
+
<alias name="MenuItem_autoptr" c:type="GMenuItem_autoptr">
|
231
|
+
<type name="gpointer" c:type="gpointer"/>
|
232
|
+
</alias>
|
233
|
+
<alias name="MenuLinkIter_autoptr" c:type="GMenuLinkIter_autoptr">
|
234
|
+
<type name="gpointer" c:type="gpointer"/>
|
235
|
+
</alias>
|
236
|
+
<alias name="MenuModel_autoptr" c:type="GMenuModel_autoptr">
|
237
|
+
<type name="gpointer" c:type="gpointer"/>
|
238
|
+
</alias>
|
239
|
+
<alias name="Menu_autoptr" c:type="GMenu_autoptr">
|
240
|
+
<type name="gpointer" c:type="gpointer"/>
|
241
|
+
</alias>
|
242
|
+
<alias name="MountOperation_autoptr" c:type="GMountOperation_autoptr">
|
243
|
+
<type name="gpointer" c:type="gpointer"/>
|
244
|
+
</alias>
|
245
|
+
<alias name="Mount_autoptr" c:type="GMount_autoptr">
|
246
|
+
<type name="gpointer" c:type="gpointer"/>
|
247
|
+
</alias>
|
248
|
+
<alias name="NativeVolumeMonitor_autoptr"
|
249
|
+
c:type="GNativeVolumeMonitor_autoptr">
|
250
|
+
<type name="gpointer" c:type="gpointer"/>
|
251
|
+
</alias>
|
252
|
+
<alias name="NetworkAddress_autoptr" c:type="GNetworkAddress_autoptr">
|
253
|
+
<type name="gpointer" c:type="gpointer"/>
|
254
|
+
</alias>
|
255
|
+
<alias name="NetworkMonitor_autoptr" c:type="GNetworkMonitor_autoptr">
|
256
|
+
<type name="gpointer" c:type="gpointer"/>
|
257
|
+
</alias>
|
258
|
+
<alias name="NetworkService_autoptr" c:type="GNetworkService_autoptr">
|
259
|
+
<type name="gpointer" c:type="gpointer"/>
|
260
|
+
</alias>
|
261
|
+
<alias name="Notification_autoptr" c:type="GNotification_autoptr">
|
262
|
+
<type name="gpointer" c:type="gpointer"/>
|
263
|
+
</alias>
|
264
|
+
<alias name="OutputStream_autoptr" c:type="GOutputStream_autoptr">
|
265
|
+
<type name="gpointer" c:type="gpointer"/>
|
266
|
+
</alias>
|
267
|
+
<alias name="Permission_autoptr" c:type="GPermission_autoptr">
|
268
|
+
<type name="gpointer" c:type="gpointer"/>
|
269
|
+
</alias>
|
270
|
+
<alias name="PollableInputStream_autoptr"
|
271
|
+
c:type="GPollableInputStream_autoptr">
|
272
|
+
<type name="gpointer" c:type="gpointer"/>
|
273
|
+
</alias>
|
274
|
+
<alias name="PollableOutputStream_autoptr"
|
275
|
+
c:type="GPollableOutputStream_autoptr">
|
276
|
+
<type name="gpointer" c:type="gpointer"/>
|
277
|
+
</alias>
|
278
|
+
<alias name="PropertyAction_autoptr" c:type="GPropertyAction_autoptr">
|
279
|
+
<type name="gpointer" c:type="gpointer"/>
|
280
|
+
</alias>
|
281
|
+
<alias name="ProxyAddressEnumerator_autoptr"
|
282
|
+
c:type="GProxyAddressEnumerator_autoptr">
|
283
|
+
<type name="gpointer" c:type="gpointer"/>
|
284
|
+
</alias>
|
285
|
+
<alias name="ProxyAddress_autoptr" c:type="GProxyAddress_autoptr">
|
286
|
+
<type name="gpointer" c:type="gpointer"/>
|
287
|
+
</alias>
|
288
|
+
<alias name="ProxyResolver_autoptr" c:type="GProxyResolver_autoptr">
|
289
|
+
<type name="gpointer" c:type="gpointer"/>
|
290
|
+
</alias>
|
291
|
+
<alias name="Proxy_autoptr" c:type="GProxy_autoptr">
|
292
|
+
<type name="gpointer" c:type="gpointer"/>
|
293
|
+
</alias>
|
294
|
+
<alias name="RemoteActionGroup_autoptr"
|
295
|
+
c:type="GRemoteActionGroup_autoptr">
|
296
|
+
<type name="gpointer" c:type="gpointer"/>
|
297
|
+
</alias>
|
298
|
+
<alias name="Resolver_autoptr" c:type="GResolver_autoptr">
|
299
|
+
<type name="gpointer" c:type="gpointer"/>
|
300
|
+
</alias>
|
301
|
+
<alias name="Seekable_autoptr" c:type="GSeekable_autoptr">
|
302
|
+
<type name="gpointer" c:type="gpointer"/>
|
303
|
+
</alias>
|
304
|
+
<alias name="SettingsBackend_autoptr" c:type="GSettingsBackend_autoptr">
|
305
|
+
<type name="gpointer" c:type="gpointer"/>
|
306
|
+
</alias>
|
307
|
+
<alias name="SettingsSchema_autoptr" c:type="GSettingsSchema_autoptr">
|
308
|
+
<type name="gpointer" c:type="gpointer"/>
|
309
|
+
</alias>
|
310
|
+
<alias name="Settings_autoptr" c:type="GSettings_autoptr">
|
311
|
+
<type name="gpointer" c:type="gpointer"/>
|
312
|
+
</alias>
|
313
|
+
<alias name="SimpleActionGroup_autoptr"
|
314
|
+
c:type="GSimpleActionGroup_autoptr">
|
315
|
+
<type name="gpointer" c:type="gpointer"/>
|
316
|
+
</alias>
|
317
|
+
<alias name="SimpleAction_autoptr" c:type="GSimpleAction_autoptr">
|
318
|
+
<type name="gpointer" c:type="gpointer"/>
|
319
|
+
</alias>
|
320
|
+
<alias name="SimpleAsyncResult_autoptr"
|
321
|
+
c:type="GSimpleAsyncResult_autoptr">
|
322
|
+
<type name="gpointer" c:type="gpointer"/>
|
323
|
+
</alias>
|
324
|
+
<alias name="SimplePermission_autoptr" c:type="GSimplePermission_autoptr">
|
325
|
+
<type name="gpointer" c:type="gpointer"/>
|
326
|
+
</alias>
|
327
|
+
<alias name="SimpleProxyResolver_autoptr"
|
328
|
+
c:type="GSimpleProxyResolver_autoptr">
|
329
|
+
<type name="gpointer" c:type="gpointer"/>
|
330
|
+
</alias>
|
331
|
+
<alias name="SocketAddressEnumerator_autoptr"
|
332
|
+
c:type="GSocketAddressEnumerator_autoptr">
|
333
|
+
<type name="gpointer" c:type="gpointer"/>
|
334
|
+
</alias>
|
335
|
+
<alias name="SocketAddress_autoptr" c:type="GSocketAddress_autoptr">
|
336
|
+
<type name="gpointer" c:type="gpointer"/>
|
337
|
+
</alias>
|
338
|
+
<alias name="SocketClient_autoptr" c:type="GSocketClient_autoptr">
|
339
|
+
<type name="gpointer" c:type="gpointer"/>
|
340
|
+
</alias>
|
341
|
+
<alias name="SocketConnectable_autoptr"
|
342
|
+
c:type="GSocketConnectable_autoptr">
|
343
|
+
<type name="gpointer" c:type="gpointer"/>
|
344
|
+
</alias>
|
345
|
+
<alias name="SocketConnection_autoptr" c:type="GSocketConnection_autoptr">
|
346
|
+
<type name="gpointer" c:type="gpointer"/>
|
347
|
+
</alias>
|
348
|
+
<alias name="SocketControlMessage_autoptr"
|
349
|
+
c:type="GSocketControlMessage_autoptr">
|
350
|
+
<type name="gpointer" c:type="gpointer"/>
|
351
|
+
</alias>
|
352
|
+
<alias name="SocketListener_autoptr" c:type="GSocketListener_autoptr">
|
353
|
+
<type name="gpointer" c:type="gpointer"/>
|
354
|
+
</alias>
|
355
|
+
<alias name="SocketService_autoptr" c:type="GSocketService_autoptr">
|
356
|
+
<type name="gpointer" c:type="gpointer"/>
|
357
|
+
</alias>
|
358
|
+
<alias name="Socket_autoptr" c:type="GSocket_autoptr">
|
359
|
+
<type name="gpointer" c:type="gpointer"/>
|
360
|
+
</alias>
|
361
|
+
<alias name="SubprocessLauncher_autoptr"
|
362
|
+
c:type="GSubprocessLauncher_autoptr">
|
363
|
+
<type name="gpointer" c:type="gpointer"/>
|
364
|
+
</alias>
|
365
|
+
<alias name="Subprocess_autoptr" c:type="GSubprocess_autoptr">
|
366
|
+
<type name="gpointer" c:type="gpointer"/>
|
367
|
+
</alias>
|
368
|
+
<alias name="Task_autoptr" c:type="GTask_autoptr">
|
369
|
+
<type name="gpointer" c:type="gpointer"/>
|
370
|
+
</alias>
|
371
|
+
<alias name="TcpConnection_autoptr" c:type="GTcpConnection_autoptr">
|
372
|
+
<type name="gpointer" c:type="gpointer"/>
|
373
|
+
</alias>
|
374
|
+
<alias name="TcpWrapperConnection_autoptr"
|
375
|
+
c:type="GTcpWrapperConnection_autoptr">
|
376
|
+
<type name="gpointer" c:type="gpointer"/>
|
377
|
+
</alias>
|
378
|
+
<alias name="TestDBus_autoptr" c:type="GTestDBus_autoptr">
|
379
|
+
<type name="gpointer" c:type="gpointer"/>
|
380
|
+
</alias>
|
381
|
+
<alias name="ThemedIcon_autoptr" c:type="GThemedIcon_autoptr">
|
382
|
+
<type name="gpointer" c:type="gpointer"/>
|
383
|
+
</alias>
|
384
|
+
<alias name="ThreadedSocketService_autoptr"
|
385
|
+
c:type="GThreadedSocketService_autoptr">
|
386
|
+
<type name="gpointer" c:type="gpointer"/>
|
387
|
+
</alias>
|
388
|
+
<alias name="TlsBackend_autoptr" c:type="GTlsBackend_autoptr">
|
389
|
+
<type name="gpointer" c:type="gpointer"/>
|
390
|
+
</alias>
|
391
|
+
<alias name="TlsCertificate_autoptr" c:type="GTlsCertificate_autoptr">
|
392
|
+
<type name="gpointer" c:type="gpointer"/>
|
393
|
+
</alias>
|
394
|
+
<alias name="TlsClientConnection_autoptr"
|
395
|
+
c:type="GTlsClientConnection_autoptr">
|
396
|
+
<type name="gpointer" c:type="gpointer"/>
|
397
|
+
</alias>
|
398
|
+
<alias name="TlsConnection_autoptr" c:type="GTlsConnection_autoptr">
|
399
|
+
<type name="gpointer" c:type="gpointer"/>
|
400
|
+
</alias>
|
401
|
+
<alias name="TlsDatabase_autoptr" c:type="GTlsDatabase_autoptr">
|
402
|
+
<type name="gpointer" c:type="gpointer"/>
|
403
|
+
</alias>
|
404
|
+
<alias name="TlsFileDatabase_autoptr" c:type="GTlsFileDatabase_autoptr">
|
405
|
+
<type name="gpointer" c:type="gpointer"/>
|
406
|
+
</alias>
|
407
|
+
<alias name="TlsInteraction_autoptr" c:type="GTlsInteraction_autoptr">
|
408
|
+
<type name="gpointer" c:type="gpointer"/>
|
409
|
+
</alias>
|
410
|
+
<alias name="TlsPassword_autoptr" c:type="GTlsPassword_autoptr">
|
411
|
+
<type name="gpointer" c:type="gpointer"/>
|
412
|
+
</alias>
|
413
|
+
<alias name="TlsServerConnection_autoptr"
|
414
|
+
c:type="GTlsServerConnection_autoptr">
|
415
|
+
<type name="gpointer" c:type="gpointer"/>
|
416
|
+
</alias>
|
417
|
+
<alias name="Vfs_autoptr" c:type="GVfs_autoptr">
|
418
|
+
<type name="gpointer" c:type="gpointer"/>
|
419
|
+
</alias>
|
420
|
+
<alias name="VolumeMonitor_autoptr" c:type="GVolumeMonitor_autoptr">
|
421
|
+
<type name="gpointer" c:type="gpointer"/>
|
422
|
+
</alias>
|
423
|
+
<alias name="Volume_autoptr" c:type="GVolume_autoptr">
|
424
|
+
<type name="gpointer" c:type="gpointer"/>
|
425
|
+
</alias>
|
426
|
+
<alias name="ZlibCompressor_autoptr" c:type="GZlibCompressor_autoptr">
|
427
|
+
<type name="gpointer" c:type="gpointer"/>
|
428
|
+
</alias>
|
429
|
+
<alias name="ZlibDecompressor_autoptr" c:type="GZlibDecompressor_autoptr">
|
430
|
+
<type name="gpointer" c:type="gpointer"/>
|
431
|
+
</alias>
|
17
432
|
<interface name="Action"
|
18
433
|
c:symbol-prefix="action"
|
19
434
|
c:type="GAction"
|
@@ -3906,6 +4321,8 @@ the same main context as you created it.</doc>
|
|
3906
4321
|
</return-value>
|
3907
4322
|
</function>
|
3908
4323
|
<glib:signal name="changed" when="first">
|
4324
|
+
<doc xml:space="preserve">Signal emitted when the app info database for changes (ie: newly installed
|
4325
|
+
or removed applications).</doc>
|
3909
4326
|
<return-value transfer-ownership="none">
|
3910
4327
|
<type name="none" c:type="void"/>
|
3911
4328
|
</return-value>
|
@@ -4159,25 +4576,36 @@ when @context is used to launch an application.</doc>
|
|
4159
4576
|
<type name="AppLaunchContextPrivate"
|
4160
4577
|
c:type="GAppLaunchContextPrivate*"/>
|
4161
4578
|
</field>
|
4162
|
-
<glib:signal name="launch-failed" when="last">
|
4579
|
+
<glib:signal name="launch-failed" when="last" version="2.36">
|
4580
|
+
<doc xml:space="preserve">The ::launch-failed signal is emitted when a #GAppInfo launch
|
4581
|
+
fails. The startup notification id is provided, so that the launcher
|
4582
|
+
can cancel the startup notification.</doc>
|
4163
4583
|
<return-value transfer-ownership="none">
|
4164
4584
|
<type name="none" c:type="void"/>
|
4165
4585
|
</return-value>
|
4166
4586
|
<parameters>
|
4167
|
-
<parameter name="
|
4587
|
+
<parameter name="startup_notify_id" transfer-ownership="none">
|
4588
|
+
<doc xml:space="preserve">the startup notification id for the failed launch</doc>
|
4168
4589
|
<type name="utf8" c:type="gchar*"/>
|
4169
4590
|
</parameter>
|
4170
4591
|
</parameters>
|
4171
4592
|
</glib:signal>
|
4172
|
-
<glib:signal name="launched" when="last">
|
4593
|
+
<glib:signal name="launched" when="last" version="2.36">
|
4594
|
+
<doc xml:space="preserve">The ::launched signal is emitted when a #GAppInfo is successfully
|
4595
|
+
launched. The @platform_data is an GVariant dictionary mapping
|
4596
|
+
strings to variants (ie a{sv}), which contains additional,
|
4597
|
+
platform-specific data about this launch. On UNIX, at least the
|
4598
|
+
"pid" and "startup-notification-id" keys will be present.</doc>
|
4173
4599
|
<return-value transfer-ownership="none">
|
4174
4600
|
<type name="none" c:type="void"/>
|
4175
4601
|
</return-value>
|
4176
4602
|
<parameters>
|
4177
|
-
<parameter name="
|
4603
|
+
<parameter name="info" transfer-ownership="none">
|
4604
|
+
<doc xml:space="preserve">the #GAppInfo that was just launched</doc>
|
4178
4605
|
<type name="AppInfo"/>
|
4179
4606
|
</parameter>
|
4180
|
-
<parameter name="
|
4607
|
+
<parameter name="platform_data" transfer-ownership="none">
|
4608
|
+
<doc xml:space="preserve">additional platform-specific data for this launch</doc>
|
4181
4609
|
<type name="GLib.Variant"/>
|
4182
4610
|
</parameter>
|
4183
4611
|
</parameters>
|
@@ -4913,6 +5341,33 @@ new functionality whereby unrecognised options are rejected even if
|
|
4913
5341
|
</parameter>
|
4914
5342
|
</parameters>
|
4915
5343
|
</method>
|
5344
|
+
<method name="bind_busy_property"
|
5345
|
+
c:identifier="g_application_bind_busy_property"
|
5346
|
+
version="2.44">
|
5347
|
+
<doc xml:space="preserve">Marks @application as busy (see g_application_mark_busy()) while
|
5348
|
+
@property on @object is %TRUE.
|
5349
|
+
|
5350
|
+
The binding holds a reference to @application while it is active, but
|
5351
|
+
not to @object. Instead, the binding is destroyed when @object is
|
5352
|
+
finalized.</doc>
|
5353
|
+
<return-value transfer-ownership="none">
|
5354
|
+
<type name="none" c:type="void"/>
|
5355
|
+
</return-value>
|
5356
|
+
<parameters>
|
5357
|
+
<instance-parameter name="application" transfer-ownership="none">
|
5358
|
+
<doc xml:space="preserve">a #GApplication</doc>
|
5359
|
+
<type name="Application" c:type="GApplication*"/>
|
5360
|
+
</instance-parameter>
|
5361
|
+
<parameter name="object" transfer-ownership="none">
|
5362
|
+
<doc xml:space="preserve">a #GObject</doc>
|
5363
|
+
<type name="GObject.Object" c:type="gpointer"/>
|
5364
|
+
</parameter>
|
5365
|
+
<parameter name="property" transfer-ownership="none">
|
5366
|
+
<doc xml:space="preserve">the name of a boolean property of @object</doc>
|
5367
|
+
<type name="utf8" c:type="const gchar*"/>
|
5368
|
+
</parameter>
|
5369
|
+
</parameters>
|
5370
|
+
</method>
|
4916
5371
|
<method name="get_application_id"
|
4917
5372
|
c:identifier="g_application_get_application_id"
|
4918
5373
|
version="2.28">
|
@@ -5018,6 +5473,22 @@ g_application_release() before the application stops running.</doc>
|
|
5018
5473
|
</instance-parameter>
|
5019
5474
|
</parameters>
|
5020
5475
|
</method>
|
5476
|
+
<method name="get_is_busy"
|
5477
|
+
c:identifier="g_application_get_is_busy"
|
5478
|
+
version="2.44">
|
5479
|
+
<doc xml:space="preserve">Gets the application's current busy state, as set through
|
5480
|
+
g_application_mark_busy() or g_application_bind_busy_property().</doc>
|
5481
|
+
<return-value transfer-ownership="none">
|
5482
|
+
<doc xml:space="preserve">%TRUE if @application is currenty marked as busy</doc>
|
5483
|
+
<type name="gboolean" c:type="gboolean"/>
|
5484
|
+
</return-value>
|
5485
|
+
<parameters>
|
5486
|
+
<instance-parameter name="application" transfer-ownership="none">
|
5487
|
+
<doc xml:space="preserve">a #GApplication</doc>
|
5488
|
+
<type name="Application" c:type="GApplication*"/>
|
5489
|
+
</instance-parameter>
|
5490
|
+
</parameters>
|
5491
|
+
</method>
|
5021
5492
|
<method name="get_is_registered"
|
5022
5493
|
c:identifier="g_application_get_is_registered"
|
5023
5494
|
version="2.28">
|
@@ -5301,11 +5772,7 @@ except in the case that g_application_set_inactivity_timeout() is in
|
|
5301
5772
|
use.
|
5302
5773
|
|
5303
5774
|
This function sets the prgname (g_set_prgname()), if not already set,
|
5304
|
-
to the basename of argv[0].
|
5305
|
-
is specified, the prgname is set to the application ID. The main
|
5306
|
-
impact of this is is that the wmclass of windows created by Gtk+ will
|
5307
|
-
be set accordingly, which helps the window manager determine which
|
5308
|
-
application is showing the window.
|
5775
|
+
to the basename of argv[0].
|
5309
5776
|
|
5310
5777
|
Since 2.40, applications that are not explicitly flagged as services
|
5311
5778
|
or launchers (ie: neither %G_APPLICATION_IS_SERVICE or
|
@@ -5571,6 +6038,30 @@ for forming paths for various purposes is unspecified.</doc>
|
|
5571
6038
|
</parameter>
|
5572
6039
|
</parameters>
|
5573
6040
|
</method>
|
6041
|
+
<method name="unbind_busy_property"
|
6042
|
+
c:identifier="g_application_unbind_busy_property"
|
6043
|
+
version="2.44">
|
6044
|
+
<doc xml:space="preserve">Destroys a binding between @property and the busy state of
|
6045
|
+
@application that was previously created with
|
6046
|
+
g_application_bind_busy_property().</doc>
|
6047
|
+
<return-value transfer-ownership="none">
|
6048
|
+
<type name="none" c:type="void"/>
|
6049
|
+
</return-value>
|
6050
|
+
<parameters>
|
6051
|
+
<instance-parameter name="application" transfer-ownership="none">
|
6052
|
+
<doc xml:space="preserve">a #GApplication</doc>
|
6053
|
+
<type name="Application" c:type="GApplication*"/>
|
6054
|
+
</instance-parameter>
|
6055
|
+
<parameter name="object" transfer-ownership="none">
|
6056
|
+
<doc xml:space="preserve">a #GObject</doc>
|
6057
|
+
<type name="GObject.Object" c:type="gpointer"/>
|
6058
|
+
</parameter>
|
6059
|
+
<parameter name="property" transfer-ownership="none">
|
6060
|
+
<doc xml:space="preserve">the name of a boolean property of @object</doc>
|
6061
|
+
<type name="utf8" c:type="const gchar*"/>
|
6062
|
+
</parameter>
|
6063
|
+
</parameters>
|
6064
|
+
</method>
|
5574
6065
|
<method name="unmark_busy"
|
5575
6066
|
c:identifier="g_application_unmark_busy"
|
5576
6067
|
version="2.38">
|
@@ -5641,6 +6132,11 @@ there is no need to explicitly withdraw the notification in that case.</doc>
|
|
5641
6132
|
transfer-ownership="none">
|
5642
6133
|
<type name="guint" c:type="guint"/>
|
5643
6134
|
</property>
|
6135
|
+
<property name="is-busy" version="2.44" transfer-ownership="none">
|
6136
|
+
<doc xml:space="preserve">Whether the application is currently marked as busy through
|
6137
|
+
g_application_mark_busy() or g_application_bind_busy_property().</doc>
|
6138
|
+
<type name="gboolean" c:type="gboolean"/>
|
6139
|
+
</property>
|
5644
6140
|
<property name="is-registered" transfer-ownership="none">
|
5645
6141
|
<type name="gboolean" c:type="gboolean"/>
|
5646
6142
|
</property>
|
@@ -8646,7 +9142,9 @@ This function is thread-safe. In other words, you can safely call
|
|
8646
9142
|
it from a thread other than the one running the operation that was
|
8647
9143
|
passed the @cancellable.
|
8648
9144
|
|
8649
|
-
|
9145
|
+
If @cancellable is %NULL, this function returns immediately for convenience.
|
9146
|
+
|
9147
|
+
The convention within GIO is that cancelling an asynchronous
|
8650
9148
|
operation causes it to complete asynchronously. That is, if you
|
8651
9149
|
cancel the operation from the same thread in which it is running,
|
8652
9150
|
then the operation's #GAsyncReadyCallback will not be invoked until
|
@@ -8907,7 +9405,14 @@ descriptors when many #GCancellables are used at the same time.</doc>
|
|
8907
9405
|
<doc xml:space="preserve">Resets @cancellable to its uncancelled state.
|
8908
9406
|
|
8909
9407
|
If cancellable is currently in use by any cancellable operation
|
8910
|
-
then the behavior of this function is undefined
|
9408
|
+
then the behavior of this function is undefined.
|
9409
|
+
|
9410
|
+
Note that it is generally not a good idea to reuse an existing
|
9411
|
+
cancellable for more operations after it has been cancelled once,
|
9412
|
+
as this function might tempt you to do. The recommended practice
|
9413
|
+
is to drop the reference to a cancellable after cancelling it,
|
9414
|
+
and let it die with the outstanding async operations. You should
|
9415
|
+
create a fresh cancellable for further async operations.</doc>
|
8911
9416
|
<return-value transfer-ownership="none">
|
8912
9417
|
<type name="none" c:type="void"/>
|
8913
9418
|
</return-value>
|
@@ -8950,7 +9455,9 @@ primarily useful for attaching to another (non-cancellable) source
|
|
8950
9455
|
with g_source_add_child_source() to add cancellability to it.
|
8951
9456
|
|
8952
9457
|
For convenience, you can call this with a %NULL #GCancellable,
|
8953
|
-
in which case the source will never trigger
|
9458
|
+
in which case the source will never trigger.
|
9459
|
+
|
9460
|
+
The new #GSource will hold a reference to the #GCancellable.</doc>
|
8954
9461
|
<return-value transfer-ownership="full">
|
8955
9462
|
<doc xml:space="preserve">the new #GSource.</doc>
|
8956
9463
|
<type name="GLib.Source" c:type="GSource*"/>
|
@@ -13661,8 +14168,8 @@ the memory used is freed.</doc>
|
|
13661
14168
|
<doc xml:space="preserve">A #GVariant tuple with parameters.</doc>
|
13662
14169
|
<type name="GLib.Variant" c:type="GVariant*"/>
|
13663
14170
|
</parameter>
|
13664
|
-
<parameter name="invocation" transfer-ownership="
|
13665
|
-
<doc xml:space="preserve">A #GDBusMethodInvocation object that
|
14171
|
+
<parameter name="invocation" transfer-ownership="full">
|
14172
|
+
<doc xml:space="preserve">A #GDBusMethodInvocation object that must be used to return a value or error.</doc>
|
13666
14173
|
<type name="DBusMethodInvocation" c:type="GDBusMethodInvocation*"/>
|
13667
14174
|
</parameter>
|
13668
14175
|
<parameter name="user_data" transfer-ownership="none" closure="7">
|
@@ -14267,6 +14774,16 @@ asynchronously, give %NULL as your get_property() or set_property()
|
|
14267
14774
|
function. The D-Bus call will be directed to your @method_call function,
|
14268
14775
|
with the provided @interface_name set to "org.freedesktop.DBus.Properties".
|
14269
14776
|
|
14777
|
+
Ownership of the #GDBusMethodInvocation object passed to the
|
14778
|
+
method_call() function is transferred to your handler; you must
|
14779
|
+
call one of the methods of #GDBusMethodInvocation to return a reply
|
14780
|
+
(possibly empty), or an error. These functions also take ownership
|
14781
|
+
of the passed-in invocation object, so unless the invocation
|
14782
|
+
object has otherwise been referenced, it will be then be freed.
|
14783
|
+
Calling one of these functions may be done within your
|
14784
|
+
method_call() implementation but it also can be done at a later
|
14785
|
+
point to handle the method asynchronously.
|
14786
|
+
|
14270
14787
|
The usual checks on the validity of the calls is performed. For
|
14271
14788
|
`Get` calls, an error is automatically returned if the property does
|
14272
14789
|
not exist or the permissions do not allow access. The same checks are
|
@@ -24148,7 +24665,7 @@ the file was last modified. This should be used in conjunction with
|
|
24148
24665
|
<constant name="FILE_ATTRIBUTE_TRASH_DELETION_DATE"
|
24149
24666
|
value="trash::deletion-date"
|
24150
24667
|
c:type="G_FILE_ATTRIBUTE_TRASH_DELETION_DATE"
|
24151
|
-
version="2.24
|
24668
|
+
version="2.24">
|
24152
24669
|
<doc xml:space="preserve">A key in the "trash" namespace. When requested against
|
24153
24670
|
items in "trash:///", will return the date and time when the file
|
24154
24671
|
was trashed. The format of the returned string is YYYY-MM-DDThh:mm:ss.
|
@@ -24166,7 +24683,7 @@ Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.</doc>
|
|
24166
24683
|
<constant name="FILE_ATTRIBUTE_TRASH_ORIG_PATH"
|
24167
24684
|
value="trash::orig-path"
|
24168
24685
|
c:type="G_FILE_ATTRIBUTE_TRASH_ORIG_PATH"
|
24169
|
-
version="2.24
|
24686
|
+
version="2.24">
|
24170
24687
|
<doc xml:space="preserve">A key in the "trash" namespace. When requested against
|
24171
24688
|
items in "trash:///", will return the original path to the file before it
|
24172
24689
|
was trashed. Corresponding #GFileAttributeType is
|
@@ -24322,9 +24839,15 @@ I/O functions call a #GAsyncReadyCallback which is then used to finalize
|
|
24322
24839
|
the operation, producing a GAsyncResult which is then passed to the
|
24323
24840
|
function's matching _finish() operation.
|
24324
24841
|
|
24325
|
-
|
24326
|
-
|
24327
|
-
|
24842
|
+
It is highly recommended to use asynchronous calls when running within a
|
24843
|
+
shared main loop, such as in the main thread of an application. This avoids
|
24844
|
+
I/O operations blocking other sources on the main loop from being dispatched.
|
24845
|
+
Synchronous I/O operations should be performed from worker threads. See the
|
24846
|
+
[introduction to asynchronous programming section][async-programming] for
|
24847
|
+
more.
|
24848
|
+
|
24849
|
+
Some #GFile operations almost always take a noticeable amount of time, and
|
24850
|
+
so do not have synchronous analogs. Notable cases include:
|
24328
24851
|
- g_file_mount_mountable() to mount a mountable file.
|
24329
24852
|
- g_file_unmount_mountable_with_operation() to unmount a mountable file.
|
24330
24853
|
- g_file_eject_mountable_with_operation() to eject a mountable file.
|
@@ -25389,7 +25912,7 @@ See g_file_enumerate_children_async().</doc>
|
|
25389
25912
|
</parameters>
|
25390
25913
|
</virtual-method>
|
25391
25914
|
<virtual-method name="equal" invoker="equal">
|
25392
|
-
<doc xml:space="preserve">Checks
|
25915
|
+
<doc xml:space="preserve">Checks if the two given #GFiles refer to the same file.
|
25393
25916
|
|
25394
25917
|
Note that two #GFiles that differ can still refer to the same
|
25395
25918
|
file on the filesystem due to various forms of filename
|
@@ -26576,6 +27099,9 @@ pathname match @prefix. Only full pathname elements are matched,
|
|
26576
27099
|
so a path like /foo is not considered a prefix of /foobar, only
|
26577
27100
|
of /foo/bar.
|
26578
27101
|
|
27102
|
+
A #GFile is not a prefix of itself. If you want to check for
|
27103
|
+
equality, use g_file_equal().
|
27104
|
+
|
26579
27105
|
This call does no I/O, as it works purely on names. As such it can
|
26580
27106
|
sometimes return %FALSE even if @file is inside a @prefix (from a
|
26581
27107
|
filesystem point of view), because the prefix of @file is an alias
|
@@ -27039,14 +27565,14 @@ by triggering the cancellable object from another thread. If the
|
|
27039
27565
|
operation was cancelled, the error %G_IO_ERROR_CANCELLED will be
|
27040
27566
|
returned.
|
27041
27567
|
|
27042
|
-
If you pass in a non-%NULL @etag value
|
27043
|
-
compared to the current entity tag of the file, and if
|
27044
|
-
an %G_IO_ERROR_WRONG_ETAG error is returned. This
|
27045
|
-
that the file has been changed since you last read
|
27046
|
-
the new etag from g_file_output_stream_get_etag()
|
27047
|
-
finished writing and closed the #GFileOutputStream. When
|
27048
|
-
a new file you can use g_file_input_stream_query_info() to
|
27049
|
-
the etag of the file.
|
27568
|
+
If you pass in a non-%NULL @etag value and @file already exists, then
|
27569
|
+
this value is compared to the current entity tag of the file, and if
|
27570
|
+
they differ an %G_IO_ERROR_WRONG_ETAG error is returned. This
|
27571
|
+
generally means that the file has been changed since you last read
|
27572
|
+
it. You can get the new etag from g_file_output_stream_get_etag()
|
27573
|
+
after you've finished writing and closed the #GFileOutputStream. When
|
27574
|
+
you load a new file you can use g_file_input_stream_query_info() to
|
27575
|
+
get the etag of the file.
|
27050
27576
|
|
27051
27577
|
If @make_backup is %TRUE, this function will attempt to make a
|
27052
27578
|
backup of the current file before overwriting it. If this fails
|
@@ -28973,7 +29499,7 @@ See g_file_enumerate_children_async().</doc>
|
|
28973
29499
|
</parameters>
|
28974
29500
|
</method>
|
28975
29501
|
<method name="equal" c:identifier="g_file_equal">
|
28976
|
-
<doc xml:space="preserve">Checks
|
29502
|
+
<doc xml:space="preserve">Checks if the two given #GFiles refer to the same file.
|
28977
29503
|
|
28978
29504
|
Note that two #GFiles that differ can still refer to the same
|
28979
29505
|
file on the filesystem due to various forms of filename
|
@@ -29334,6 +29860,9 @@ pathname match @prefix. Only full pathname elements are matched,
|
|
29334
29860
|
so a path like /foo is not considered a prefix of /foobar, only
|
29335
29861
|
of /foo/bar.
|
29336
29862
|
|
29863
|
+
A #GFile is not a prefix of itself. If you want to check for
|
29864
|
+
equality, use g_file_equal().
|
29865
|
+
|
29337
29866
|
This call does no I/O, as it works purely on names. As such it can
|
29338
29867
|
sometimes return %FALSE even if @file is inside a @prefix (from a
|
29339
29868
|
filesystem point of view), because the prefix of @file is an alias
|
@@ -31111,14 +31640,14 @@ by triggering the cancellable object from another thread. If the
|
|
31111
31640
|
operation was cancelled, the error %G_IO_ERROR_CANCELLED will be
|
31112
31641
|
returned.
|
31113
31642
|
|
31114
|
-
If you pass in a non-%NULL @etag value
|
31115
|
-
compared to the current entity tag of the file, and if
|
31116
|
-
an %G_IO_ERROR_WRONG_ETAG error is returned. This
|
31117
|
-
that the file has been changed since you last read
|
31118
|
-
the new etag from g_file_output_stream_get_etag()
|
31119
|
-
finished writing and closed the #GFileOutputStream. When
|
31120
|
-
a new file you can use g_file_input_stream_query_info() to
|
31121
|
-
the etag of the file.
|
31643
|
+
If you pass in a non-%NULL @etag value and @file already exists, then
|
31644
|
+
this value is compared to the current entity tag of the file, and if
|
31645
|
+
they differ an %G_IO_ERROR_WRONG_ETAG error is returned. This
|
31646
|
+
generally means that the file has been changed since you last read
|
31647
|
+
it. You can get the new etag from g_file_output_stream_get_etag()
|
31648
|
+
after you've finished writing and closed the #GFileOutputStream. When
|
31649
|
+
you load a new file you can use g_file_input_stream_query_info() to
|
31650
|
+
get the etag of the file.
|
31122
31651
|
|
31123
31652
|
If @make_backup is %TRUE, this function will attempt to make a
|
31124
31653
|
backup of the current file before overwriting it. If this fails
|
@@ -33517,6 +34046,83 @@ This is a convenience method that's equivalent to:
|
|
33517
34046
|
</instance-parameter>
|
33518
34047
|
</parameters>
|
33519
34048
|
</method>
|
34049
|
+
<method name="iterate"
|
34050
|
+
c:identifier="g_file_enumerator_iterate"
|
34051
|
+
version="2.44"
|
34052
|
+
throws="1">
|
34053
|
+
<doc xml:space="preserve">This is a version of g_file_enumerator_next_file() that's easier to
|
34054
|
+
use correctly from C programs. With g_file_enumerator_next_file(),
|
34055
|
+
the gboolean return value signifies "end of iteration or error", which
|
34056
|
+
requires allocation of a temporary #GError.
|
34057
|
+
|
34058
|
+
In contrast, with this function, a %FALSE return from
|
34059
|
+
gs_file_enumerator_iterate() *always* means
|
34060
|
+
"error". End of iteration is signaled by @out_info or @out_child being %NULL.
|
34061
|
+
|
34062
|
+
Another crucial difference is that the references for @out_info and
|
34063
|
+
@out_child are owned by @direnum (they are cached as hidden
|
34064
|
+
properties). You must not unref them in your own code. This makes
|
34065
|
+
memory management significantly easier for C code in combination
|
34066
|
+
with loops.
|
34067
|
+
|
34068
|
+
Finally, this function optionally allows retrieving a #GFile as
|
34069
|
+
well.
|
34070
|
+
|
34071
|
+
You must specify at least one of @out_info or @out_child.
|
34072
|
+
|
34073
|
+
The code pattern for correctly using g_file_enumerator_iterate() from C
|
34074
|
+
is:
|
34075
|
+
|
34076
|
+
|[
|
34077
|
+
direnum = g_file_enumerate_children (file, ...);
|
34078
|
+
while (TRUE)
|
34079
|
+
{
|
34080
|
+
GFileInfo *info;
|
34081
|
+
if (!g_file_enumerator_iterate (direnum, &info, NULL, cancellable, error))
|
34082
|
+
goto out;
|
34083
|
+
if (!info)
|
34084
|
+
break;
|
34085
|
+
... do stuff with "info"; do not unref it! ...
|
34086
|
+
}
|
34087
|
+
|
34088
|
+
out:
|
34089
|
+
g_object_unref (direnum); // Note: frees the last @info
|
34090
|
+
]|</doc>
|
34091
|
+
<return-value transfer-ownership="none">
|
34092
|
+
<type name="gboolean" c:type="gboolean"/>
|
34093
|
+
</return-value>
|
34094
|
+
<parameters>
|
34095
|
+
<instance-parameter name="direnum" transfer-ownership="none">
|
34096
|
+
<doc xml:space="preserve">an open #GFileEnumerator</doc>
|
34097
|
+
<type name="FileEnumerator" c:type="GFileEnumerator*"/>
|
34098
|
+
</instance-parameter>
|
34099
|
+
<parameter name="out_info"
|
34100
|
+
direction="out"
|
34101
|
+
caller-allocates="0"
|
34102
|
+
transfer-ownership="none"
|
34103
|
+
optional="1"
|
34104
|
+
allow-none="1">
|
34105
|
+
<doc xml:space="preserve">Output location for the next #GFileInfo, or %NULL</doc>
|
34106
|
+
<type name="FileInfo" c:type="GFileInfo**"/>
|
34107
|
+
</parameter>
|
34108
|
+
<parameter name="out_child"
|
34109
|
+
direction="out"
|
34110
|
+
caller-allocates="0"
|
34111
|
+
transfer-ownership="none"
|
34112
|
+
optional="1"
|
34113
|
+
allow-none="1">
|
34114
|
+
<doc xml:space="preserve">Output location for the next #GFile, or %NULL</doc>
|
34115
|
+
<type name="File" c:type="GFile**"/>
|
34116
|
+
</parameter>
|
34117
|
+
<parameter name="cancellable"
|
34118
|
+
transfer-ownership="none"
|
34119
|
+
nullable="1"
|
34120
|
+
allow-none="1">
|
34121
|
+
<doc xml:space="preserve">a #GCancellable</doc>
|
34122
|
+
<type name="Cancellable" c:type="GCancellable*"/>
|
34123
|
+
</parameter>
|
34124
|
+
</parameters>
|
34125
|
+
</method>
|
33520
34126
|
<method name="next_file"
|
33521
34127
|
c:identifier="g_file_enumerator_next_file"
|
33522
34128
|
throws="1">
|
@@ -40506,7 +41112,7 @@ closed.</doc>
|
|
40506
41112
|
|
40507
41113
|
Note that this domain may be extended in future GLib releases. In
|
40508
41114
|
general, new error codes either only apply to new APIs, or else
|
40509
|
-
replace
|
41115
|
+
replace %G_IO_ERROR_FAILED in cases that were not explicitly
|
40510
41116
|
distinguished before. You should therefore avoid writing code like
|
40511
41117
|
|[<!-- language="C" -->
|
40512
41118
|
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_FAILED))
|
@@ -40796,8 +41402,26 @@ but should instead treat all unrecognized error codes the same as
|
|
40796
41402
|
glib:nick="broken-pipe">
|
40797
41403
|
<doc xml:space="preserve">Broken pipe. Since 2.36</doc>
|
40798
41404
|
</member>
|
41405
|
+
<member name="connection_closed"
|
41406
|
+
value="44"
|
41407
|
+
c:identifier="G_IO_ERROR_CONNECTION_CLOSED"
|
41408
|
+
glib:nick="connection-closed">
|
41409
|
+
<doc xml:space="preserve">Connection closed by peer. Note that this
|
41410
|
+
is the same code as %G_IO_ERROR_BROKEN_PIPE; before 2.44 some
|
41411
|
+
"connection closed" errors returned %G_IO_ERROR_BROKEN_PIPE, but others
|
41412
|
+
returned %G_IO_ERROR_FAILED. Now they should all return the same
|
41413
|
+
value, which has this more logical name. Since 2.44.</doc>
|
41414
|
+
</member>
|
41415
|
+
<member name="not_connected"
|
41416
|
+
value="45"
|
41417
|
+
c:identifier="G_IO_ERROR_NOT_CONNECTED"
|
41418
|
+
glib:nick="not-connected">
|
41419
|
+
<doc xml:space="preserve">Transport endpoint is not connected. Since 2.44</doc>
|
41420
|
+
</member>
|
40799
41421
|
</enumeration>
|
40800
41422
|
<record name="IOExtension" c:type="GIOExtension" disguised="1">
|
41423
|
+
<doc xml:space="preserve">#GIOExtension is an opaque data structure and can only be accessed
|
41424
|
+
using the following functions.</doc>
|
40801
41425
|
<method name="get_name" c:identifier="g_io_extension_get_name">
|
40802
41426
|
<doc xml:space="preserve">Gets the name under which @extension was registered.
|
40803
41427
|
|
@@ -40858,6 +41482,8 @@ associated with @extension.</doc>
|
|
40858
41482
|
</method>
|
40859
41483
|
</record>
|
40860
41484
|
<record name="IOExtensionPoint" c:type="GIOExtensionPoint" disguised="1">
|
41485
|
+
<doc xml:space="preserve">#GIOExtensionPoint is an opaque data structure and can only be accessed
|
41486
|
+
using the following functions.</doc>
|
40861
41487
|
<method name="get_extension_by_name"
|
40862
41488
|
c:identifier="g_io_extension_point_get_extension_by_name">
|
40863
41489
|
<doc xml:space="preserve">Finds a #GIOExtension for an extension point by name.</doc>
|
@@ -43913,8 +44539,14 @@ stream, %TRUE is returned, and @bytes_read is set to the number of bytes
|
|
43913
44539
|
read into @buffer.
|
43914
44540
|
|
43915
44541
|
If there is an error during the operation %FALSE is returned and @error
|
43916
|
-
is set to indicate the error status
|
43917
|
-
|
44542
|
+
is set to indicate the error status.
|
44543
|
+
|
44544
|
+
As a special exception to the normal conventions for functions that
|
44545
|
+
use #GError, if this function returns %FALSE (and sets @error) then
|
44546
|
+
@bytes_read will be set to the number of bytes that were successfully
|
44547
|
+
read before the error was encountered. This functionality is only
|
44548
|
+
available from C. If you need it from another language then you must
|
44549
|
+
write your own loop around g_input_stream_read().</doc>
|
43918
44550
|
<return-value transfer-ownership="none">
|
43919
44551
|
<doc xml:space="preserve">%TRUE on success, %FALSE if there was an error</doc>
|
43920
44552
|
<type name="gboolean" c:type="gboolean"/>
|
@@ -43951,6 +44583,99 @@ the number of bytes read into @buffer before the error occurred.</doc>
|
|
43951
44583
|
</parameter>
|
43952
44584
|
</parameters>
|
43953
44585
|
</method>
|
44586
|
+
<method name="read_all_async"
|
44587
|
+
c:identifier="g_input_stream_read_all_async"
|
44588
|
+
version="2.44">
|
44589
|
+
<doc xml:space="preserve">Request an asynchronous read of @count bytes from the stream into the
|
44590
|
+
buffer starting at @buffer.
|
44591
|
+
|
44592
|
+
This is the asynchronous equivalent of g_input_stream_read_all().
|
44593
|
+
|
44594
|
+
Call g_input_stream_read_all_finish() to collect the result.
|
44595
|
+
|
44596
|
+
Any outstanding I/O request with higher priority (lower numerical
|
44597
|
+
value) will be executed before an outstanding request with lower
|
44598
|
+
priority. Default priority is %G_PRIORITY_DEFAULT.</doc>
|
44599
|
+
<return-value transfer-ownership="none">
|
44600
|
+
<type name="none" c:type="void"/>
|
44601
|
+
</return-value>
|
44602
|
+
<parameters>
|
44603
|
+
<instance-parameter name="stream" transfer-ownership="none">
|
44604
|
+
<doc xml:space="preserve">A #GInputStream</doc>
|
44605
|
+
<type name="InputStream" c:type="GInputStream*"/>
|
44606
|
+
</instance-parameter>
|
44607
|
+
<parameter name="buffer" transfer-ownership="none">
|
44608
|
+
<doc xml:space="preserve">a buffer to
|
44609
|
+
read data into (which should be at least count bytes long)</doc>
|
44610
|
+
<array length="1" zero-terminated="0" c:type="void*">
|
44611
|
+
<type name="guint8"/>
|
44612
|
+
</array>
|
44613
|
+
</parameter>
|
44614
|
+
<parameter name="count" transfer-ownership="none">
|
44615
|
+
<doc xml:space="preserve">the number of bytes that will be read from the stream</doc>
|
44616
|
+
<type name="gsize" c:type="gsize"/>
|
44617
|
+
</parameter>
|
44618
|
+
<parameter name="io_priority" transfer-ownership="none">
|
44619
|
+
<doc xml:space="preserve">the [I/O priority][io-priority] of the request</doc>
|
44620
|
+
<type name="gint" c:type="int"/>
|
44621
|
+
</parameter>
|
44622
|
+
<parameter name="cancellable"
|
44623
|
+
transfer-ownership="none"
|
44624
|
+
nullable="1"
|
44625
|
+
allow-none="1">
|
44626
|
+
<doc xml:space="preserve">optional #GCancellable object, %NULL to ignore</doc>
|
44627
|
+
<type name="Cancellable" c:type="GCancellable*"/>
|
44628
|
+
</parameter>
|
44629
|
+
<parameter name="callback"
|
44630
|
+
transfer-ownership="none"
|
44631
|
+
nullable="1"
|
44632
|
+
allow-none="1"
|
44633
|
+
scope="async"
|
44634
|
+
closure="5">
|
44635
|
+
<doc xml:space="preserve">callback to call when the request is satisfied</doc>
|
44636
|
+
<type name="AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
|
44637
|
+
</parameter>
|
44638
|
+
<parameter name="user_data" transfer-ownership="none">
|
44639
|
+
<doc xml:space="preserve">the data to pass to callback function</doc>
|
44640
|
+
<type name="gpointer" c:type="gpointer"/>
|
44641
|
+
</parameter>
|
44642
|
+
</parameters>
|
44643
|
+
</method>
|
44644
|
+
<method name="read_all_finish"
|
44645
|
+
c:identifier="g_input_stream_read_all_finish"
|
44646
|
+
version="2.44"
|
44647
|
+
throws="1">
|
44648
|
+
<doc xml:space="preserve">Finishes an asynchronous stream read operation started with
|
44649
|
+
g_input_stream_read_all_async().
|
44650
|
+
|
44651
|
+
As a special exception to the normal conventions for functions that
|
44652
|
+
use #GError, if this function returns %FALSE (and sets @error) then
|
44653
|
+
@bytes_read will be set to the number of bytes that were successfully
|
44654
|
+
read before the error was encountered. This functionality is only
|
44655
|
+
available from C. If you need it from another language then you must
|
44656
|
+
write your own loop around g_input_stream_read_async().</doc>
|
44657
|
+
<return-value transfer-ownership="none">
|
44658
|
+
<doc xml:space="preserve">%TRUE on success, %FALSE if there was an error</doc>
|
44659
|
+
<type name="gboolean" c:type="gboolean"/>
|
44660
|
+
</return-value>
|
44661
|
+
<parameters>
|
44662
|
+
<instance-parameter name="stream" transfer-ownership="none">
|
44663
|
+
<doc xml:space="preserve">a #GInputStream</doc>
|
44664
|
+
<type name="InputStream" c:type="GInputStream*"/>
|
44665
|
+
</instance-parameter>
|
44666
|
+
<parameter name="result" transfer-ownership="none">
|
44667
|
+
<doc xml:space="preserve">a #GAsyncResult</doc>
|
44668
|
+
<type name="AsyncResult" c:type="GAsyncResult*"/>
|
44669
|
+
</parameter>
|
44670
|
+
<parameter name="bytes_read"
|
44671
|
+
direction="out"
|
44672
|
+
caller-allocates="0"
|
44673
|
+
transfer-ownership="full">
|
44674
|
+
<doc xml:space="preserve">location to store the number of bytes that was read from the stream</doc>
|
44675
|
+
<type name="gsize" c:type="gsize*"/>
|
44676
|
+
</parameter>
|
44677
|
+
</parameters>
|
44678
|
+
</method>
|
43954
44679
|
<method name="read_async" c:identifier="g_input_stream_read_async">
|
43955
44680
|
<doc xml:space="preserve">Request an asynchronous read of @count bytes from the stream into the buffer
|
43956
44681
|
starting at @buffer. When the operation is finished @callback will be called.
|
@@ -44621,6 +45346,524 @@ first buffer, switching to the next as needed.</doc>
|
|
44621
45346
|
<type name="gsize" c:type="gsize"/>
|
44622
45347
|
</field>
|
44623
45348
|
</record>
|
45349
|
+
<interface name="ListModel"
|
45350
|
+
c:symbol-prefix="list_model"
|
45351
|
+
c:type="GListModel"
|
45352
|
+
glib:type-name="GListModel"
|
45353
|
+
glib:get-type="g_list_model_get_type"
|
45354
|
+
glib:type-struct="ListModelInterface">
|
45355
|
+
<doc xml:space="preserve">#GListModel is an interface that represents a mutable list of
|
45356
|
+
#GObjects. Its main intention is as a model for various widgets in
|
45357
|
+
user interfaces, such as list views, but it can also be used as a
|
45358
|
+
convenient method of returning lists of data, with support for
|
45359
|
+
updates.
|
45360
|
+
|
45361
|
+
Each object in the list may also report changes in itself via some
|
45362
|
+
mechanism (normally the #GObject::notify signal). Taken together
|
45363
|
+
with the #GListModel::items-changed signal, this provides for a list
|
45364
|
+
that can change its membership, and in which the members can change
|
45365
|
+
their individual properties.
|
45366
|
+
|
45367
|
+
A good example would be the list of visible wireless network access
|
45368
|
+
points, where each access point can report dynamic properties such as
|
45369
|
+
signal strength.
|
45370
|
+
|
45371
|
+
It is important to note that the #GListModel itself does not report
|
45372
|
+
changes to the individual items. It only reports changes to the list
|
45373
|
+
membership. If you want to observe changes to the objects themselves
|
45374
|
+
then you need to connect signals to the objects that you are
|
45375
|
+
interested in.
|
45376
|
+
|
45377
|
+
All items in a #GListModel are of (or derived from) the same type.
|
45378
|
+
g_list_model_get_item_type() returns that type. The type may be an
|
45379
|
+
interface, in which case all objects in the list must implement it.
|
45380
|
+
|
45381
|
+
The semantics are close to that of an array:
|
45382
|
+
g_list_model_get_length() returns the number of items in the list and
|
45383
|
+
g_list_model_get_item() returns an item at a (0-based) position. In
|
45384
|
+
order to allow implementations to calculate the list length lazily,
|
45385
|
+
you can also iterate over items: starting from 0, repeatedly call
|
45386
|
+
g_list_model_get_item() until it returns %NULL.
|
45387
|
+
|
45388
|
+
An implementation may create objects lazily, but must take care to
|
45389
|
+
return the same object for a given position until all references to
|
45390
|
+
it are gone.
|
45391
|
+
|
45392
|
+
On the other side, a consumer is expected only to hold references on
|
45393
|
+
objects that are currently "user visible", in order to faciliate the
|
45394
|
+
maximum level of laziness in the implementation of the list and to
|
45395
|
+
reduce the required number of signal connections at a given time.
|
45396
|
+
|
45397
|
+
This interface is intended only to be used from a single thread. The
|
45398
|
+
thread in which it is appropriate to use it depends on the particular
|
45399
|
+
implementation, but typically it will be from the thread that owns
|
45400
|
+
the [thread-default main context][g-main-context-push-thread-default]
|
45401
|
+
in effect at the time that the model was created.</doc>
|
45402
|
+
<virtual-method name="get_item" introspectable="0">
|
45403
|
+
<return-value>
|
45404
|
+
<type name="gpointer" c:type="gpointer"/>
|
45405
|
+
</return-value>
|
45406
|
+
<parameters>
|
45407
|
+
<instance-parameter name="list" transfer-ownership="none">
|
45408
|
+
<type name="ListModel" c:type="GListModel*"/>
|
45409
|
+
</instance-parameter>
|
45410
|
+
<parameter name="position" transfer-ownership="none">
|
45411
|
+
<type name="guint" c:type="guint"/>
|
45412
|
+
</parameter>
|
45413
|
+
</parameters>
|
45414
|
+
</virtual-method>
|
45415
|
+
<virtual-method name="get_item_type"
|
45416
|
+
invoker="get_item_type"
|
45417
|
+
version="2.44">
|
45418
|
+
<doc xml:space="preserve">Gets the type of the items in @list. All items returned from
|
45419
|
+
g_list_model_get_type() are of that type or a subtype, or are an
|
45420
|
+
implementation of that interface.
|
45421
|
+
|
45422
|
+
The item type of a #GListModel can not change during the life of the
|
45423
|
+
model.</doc>
|
45424
|
+
<return-value transfer-ownership="none">
|
45425
|
+
<doc xml:space="preserve">the #GType of the items contained in @list.</doc>
|
45426
|
+
<type name="GType" c:type="GType"/>
|
45427
|
+
</return-value>
|
45428
|
+
<parameters>
|
45429
|
+
<instance-parameter name="list" transfer-ownership="none">
|
45430
|
+
<doc xml:space="preserve">a #GListModel</doc>
|
45431
|
+
<type name="ListModel" c:type="GListModel*"/>
|
45432
|
+
</instance-parameter>
|
45433
|
+
</parameters>
|
45434
|
+
</virtual-method>
|
45435
|
+
<virtual-method name="get_n_items" invoker="get_n_items" version="2.44">
|
45436
|
+
<doc xml:space="preserve">Gets the number of items in @list.
|
45437
|
+
|
45438
|
+
Depending on the model implementation, calling this function may be
|
45439
|
+
less efficient than iterating the list with increasing values for
|
45440
|
+
@position until g_list_model_get_item() returns %NULL.</doc>
|
45441
|
+
<return-value transfer-ownership="none">
|
45442
|
+
<doc xml:space="preserve">the number of items in @list.</doc>
|
45443
|
+
<type name="guint" c:type="guint"/>
|
45444
|
+
</return-value>
|
45445
|
+
<parameters>
|
45446
|
+
<instance-parameter name="list" transfer-ownership="none">
|
45447
|
+
<doc xml:space="preserve">a #GListModel</doc>
|
45448
|
+
<type name="ListModel" c:type="GListModel*"/>
|
45449
|
+
</instance-parameter>
|
45450
|
+
</parameters>
|
45451
|
+
</virtual-method>
|
45452
|
+
<method name="get_item"
|
45453
|
+
c:identifier="g_list_model_get_item"
|
45454
|
+
shadowed-by="get_object"
|
45455
|
+
version="2.44"
|
45456
|
+
introspectable="0">
|
45457
|
+
<doc xml:space="preserve">Get the item at @position. If @position is greater than the number of
|
45458
|
+
items in @list, %NULL is returned.
|
45459
|
+
|
45460
|
+
%NULL is never returned for an index that is smaller than the length
|
45461
|
+
of the list. See g_list_model_get_n_items().</doc>
|
45462
|
+
<return-value transfer-ownership="full" nullable="1">
|
45463
|
+
<doc xml:space="preserve">the item at @position.</doc>
|
45464
|
+
<type name="GObject.Object" c:type="gpointer"/>
|
45465
|
+
</return-value>
|
45466
|
+
<parameters>
|
45467
|
+
<instance-parameter name="list" transfer-ownership="none">
|
45468
|
+
<doc xml:space="preserve">a #GListModel</doc>
|
45469
|
+
<type name="ListModel" c:type="GListModel*"/>
|
45470
|
+
</instance-parameter>
|
45471
|
+
<parameter name="position" transfer-ownership="none">
|
45472
|
+
<doc xml:space="preserve">the position of the item to fetch</doc>
|
45473
|
+
<type name="guint" c:type="guint"/>
|
45474
|
+
</parameter>
|
45475
|
+
</parameters>
|
45476
|
+
</method>
|
45477
|
+
<method name="get_item_type"
|
45478
|
+
c:identifier="g_list_model_get_item_type"
|
45479
|
+
version="2.44">
|
45480
|
+
<doc xml:space="preserve">Gets the type of the items in @list. All items returned from
|
45481
|
+
g_list_model_get_type() are of that type or a subtype, or are an
|
45482
|
+
implementation of that interface.
|
45483
|
+
|
45484
|
+
The item type of a #GListModel can not change during the life of the
|
45485
|
+
model.</doc>
|
45486
|
+
<return-value transfer-ownership="none">
|
45487
|
+
<doc xml:space="preserve">the #GType of the items contained in @list.</doc>
|
45488
|
+
<type name="GType" c:type="GType"/>
|
45489
|
+
</return-value>
|
45490
|
+
<parameters>
|
45491
|
+
<instance-parameter name="list" transfer-ownership="none">
|
45492
|
+
<doc xml:space="preserve">a #GListModel</doc>
|
45493
|
+
<type name="ListModel" c:type="GListModel*"/>
|
45494
|
+
</instance-parameter>
|
45495
|
+
</parameters>
|
45496
|
+
</method>
|
45497
|
+
<method name="get_n_items"
|
45498
|
+
c:identifier="g_list_model_get_n_items"
|
45499
|
+
version="2.44">
|
45500
|
+
<doc xml:space="preserve">Gets the number of items in @list.
|
45501
|
+
|
45502
|
+
Depending on the model implementation, calling this function may be
|
45503
|
+
less efficient than iterating the list with increasing values for
|
45504
|
+
@position until g_list_model_get_item() returns %NULL.</doc>
|
45505
|
+
<return-value transfer-ownership="none">
|
45506
|
+
<doc xml:space="preserve">the number of items in @list.</doc>
|
45507
|
+
<type name="guint" c:type="guint"/>
|
45508
|
+
</return-value>
|
45509
|
+
<parameters>
|
45510
|
+
<instance-parameter name="list" transfer-ownership="none">
|
45511
|
+
<doc xml:space="preserve">a #GListModel</doc>
|
45512
|
+
<type name="ListModel" c:type="GListModel*"/>
|
45513
|
+
</instance-parameter>
|
45514
|
+
</parameters>
|
45515
|
+
</method>
|
45516
|
+
<method name="get_object"
|
45517
|
+
c:identifier="g_list_model_get_object"
|
45518
|
+
shadows="get_item"
|
45519
|
+
version="2.44">
|
45520
|
+
<doc xml:space="preserve">Get the item at @position. If @position is greater than the number of
|
45521
|
+
items in @list, %NULL is returned.
|
45522
|
+
|
45523
|
+
%NULL is never returned for an index that is smaller than the length
|
45524
|
+
of the list. See g_list_model_get_n_items().</doc>
|
45525
|
+
<return-value transfer-ownership="full" nullable="1">
|
45526
|
+
<doc xml:space="preserve">the object at @position.</doc>
|
45527
|
+
<type name="GObject.Object" c:type="GObject*"/>
|
45528
|
+
</return-value>
|
45529
|
+
<parameters>
|
45530
|
+
<instance-parameter name="list" transfer-ownership="none">
|
45531
|
+
<doc xml:space="preserve">a #GListModel</doc>
|
45532
|
+
<type name="ListModel" c:type="GListModel*"/>
|
45533
|
+
</instance-parameter>
|
45534
|
+
<parameter name="position" transfer-ownership="none">
|
45535
|
+
<doc xml:space="preserve">the position of the item to fetch</doc>
|
45536
|
+
<type name="guint" c:type="guint"/>
|
45537
|
+
</parameter>
|
45538
|
+
</parameters>
|
45539
|
+
</method>
|
45540
|
+
<method name="items_changed"
|
45541
|
+
c:identifier="g_list_model_items_changed"
|
45542
|
+
version="2.44">
|
45543
|
+
<doc xml:space="preserve">Emits the #GListModel::items-changed signal on @list.
|
45544
|
+
|
45545
|
+
This function should only be called by classes implementing
|
45546
|
+
#GListModel. It has to be called after the internal representation
|
45547
|
+
of @list has been updated, because handlers connected to this signal
|
45548
|
+
might query the new state of the list.
|
45549
|
+
|
45550
|
+
Implementations must only make changes to the model (as visible to
|
45551
|
+
its consumer) in places that will not cause problems for that
|
45552
|
+
consumer. For models that are driven directly by a write API (such
|
45553
|
+
as #GListStore), changes can be reported in response to uses of that
|
45554
|
+
API. For models that represent remote data, changes should only be
|
45555
|
+
made from a fresh mainloop dispatch. It is particularly not
|
45556
|
+
permitted to make changes in response to a call to the #GListModel
|
45557
|
+
consumer API.
|
45558
|
+
|
45559
|
+
Stated another way: in general, it is assumed that code making a
|
45560
|
+
series of accesses to the model via the API, without returning to the
|
45561
|
+
mainloop, and without calling other code, will continue to view the
|
45562
|
+
same contents of the model.</doc>
|
45563
|
+
<return-value transfer-ownership="none">
|
45564
|
+
<type name="none" c:type="void"/>
|
45565
|
+
</return-value>
|
45566
|
+
<parameters>
|
45567
|
+
<instance-parameter name="list" transfer-ownership="none">
|
45568
|
+
<doc xml:space="preserve">a #GListModel</doc>
|
45569
|
+
<type name="ListModel" c:type="GListModel*"/>
|
45570
|
+
</instance-parameter>
|
45571
|
+
<parameter name="position" transfer-ownership="none">
|
45572
|
+
<doc xml:space="preserve">the position at which @list changed</doc>
|
45573
|
+
<type name="guint" c:type="guint"/>
|
45574
|
+
</parameter>
|
45575
|
+
<parameter name="removed" transfer-ownership="none">
|
45576
|
+
<doc xml:space="preserve">the number of items removed</doc>
|
45577
|
+
<type name="guint" c:type="guint"/>
|
45578
|
+
</parameter>
|
45579
|
+
<parameter name="added" transfer-ownership="none">
|
45580
|
+
<doc xml:space="preserve">the number of items added</doc>
|
45581
|
+
<type name="guint" c:type="guint"/>
|
45582
|
+
</parameter>
|
45583
|
+
</parameters>
|
45584
|
+
</method>
|
45585
|
+
<glib:signal name="items-changed" when="last" version="2.44">
|
45586
|
+
<doc xml:space="preserve">This signal is emitted whenever items were added or removed to
|
45587
|
+
@list. At @position, @removed items were removed and @added items
|
45588
|
+
were added in their place.</doc>
|
45589
|
+
<return-value transfer-ownership="none">
|
45590
|
+
<type name="none" c:type="void"/>
|
45591
|
+
</return-value>
|
45592
|
+
<parameters>
|
45593
|
+
<parameter name="position" transfer-ownership="none">
|
45594
|
+
<doc xml:space="preserve">the position at which @list changed</doc>
|
45595
|
+
<type name="guint" c:type="guint"/>
|
45596
|
+
</parameter>
|
45597
|
+
<parameter name="removed" transfer-ownership="none">
|
45598
|
+
<doc xml:space="preserve">the number of items removed</doc>
|
45599
|
+
<type name="guint" c:type="guint"/>
|
45600
|
+
</parameter>
|
45601
|
+
<parameter name="added" transfer-ownership="none">
|
45602
|
+
<doc xml:space="preserve">the number of items added</doc>
|
45603
|
+
<type name="guint" c:type="guint"/>
|
45604
|
+
</parameter>
|
45605
|
+
</parameters>
|
45606
|
+
</glib:signal>
|
45607
|
+
</interface>
|
45608
|
+
<record name="ListModelInterface"
|
45609
|
+
c:type="GListModelInterface"
|
45610
|
+
glib:is-gtype-struct-for="ListModel"
|
45611
|
+
version="2.44">
|
45612
|
+
<doc xml:space="preserve">The virtual function table for #GListModel.</doc>
|
45613
|
+
<field name="g_iface">
|
45614
|
+
<doc xml:space="preserve">parent #GTypeInterface</doc>
|
45615
|
+
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
|
45616
|
+
</field>
|
45617
|
+
<field name="get_item_type">
|
45618
|
+
<callback name="get_item_type">
|
45619
|
+
<return-value transfer-ownership="none">
|
45620
|
+
<doc xml:space="preserve">the #GType of the items contained in @list.</doc>
|
45621
|
+
<type name="GType" c:type="GType"/>
|
45622
|
+
</return-value>
|
45623
|
+
<parameters>
|
45624
|
+
<parameter name="list" transfer-ownership="none">
|
45625
|
+
<doc xml:space="preserve">a #GListModel</doc>
|
45626
|
+
<type name="ListModel" c:type="GListModel*"/>
|
45627
|
+
</parameter>
|
45628
|
+
</parameters>
|
45629
|
+
</callback>
|
45630
|
+
</field>
|
45631
|
+
<field name="get_n_items">
|
45632
|
+
<callback name="get_n_items">
|
45633
|
+
<return-value transfer-ownership="none">
|
45634
|
+
<doc xml:space="preserve">the number of items in @list.</doc>
|
45635
|
+
<type name="guint" c:type="guint"/>
|
45636
|
+
</return-value>
|
45637
|
+
<parameters>
|
45638
|
+
<parameter name="list" transfer-ownership="none">
|
45639
|
+
<doc xml:space="preserve">a #GListModel</doc>
|
45640
|
+
<type name="ListModel" c:type="GListModel*"/>
|
45641
|
+
</parameter>
|
45642
|
+
</parameters>
|
45643
|
+
</callback>
|
45644
|
+
</field>
|
45645
|
+
<field name="get_item" introspectable="0">
|
45646
|
+
<callback name="get_item" introspectable="0">
|
45647
|
+
<return-value>
|
45648
|
+
<type name="gpointer" c:type="gpointer"/>
|
45649
|
+
</return-value>
|
45650
|
+
<parameters>
|
45651
|
+
<parameter name="list" transfer-ownership="none">
|
45652
|
+
<type name="ListModel" c:type="GListModel*"/>
|
45653
|
+
</parameter>
|
45654
|
+
<parameter name="position" transfer-ownership="none">
|
45655
|
+
<type name="guint" c:type="guint"/>
|
45656
|
+
</parameter>
|
45657
|
+
</parameters>
|
45658
|
+
</callback>
|
45659
|
+
</field>
|
45660
|
+
</record>
|
45661
|
+
<class name="ListStore"
|
45662
|
+
c:symbol-prefix="list_store"
|
45663
|
+
c:type="GListStore"
|
45664
|
+
parent="GObject.Object"
|
45665
|
+
glib:type-name="GListStore"
|
45666
|
+
glib:get-type="g_list_store_get_type"
|
45667
|
+
glib:type-struct="ListStoreClass">
|
45668
|
+
<doc xml:space="preserve">#GListStore is a simple implementation of #GListModel that stores all
|
45669
|
+
items in memory.
|
45670
|
+
|
45671
|
+
It provides insertions, deletions, and lookups in logarithmic time
|
45672
|
+
with a fast path for the common case of iterating the list linearly.</doc>
|
45673
|
+
<implements name="ListModel"/>
|
45674
|
+
<constructor name="new" c:identifier="g_list_store_new" version="2.44">
|
45675
|
+
<doc xml:space="preserve">Creates a new #GListStore with items of type @item_type. @item_type
|
45676
|
+
must be a subclass of #GObject.</doc>
|
45677
|
+
<return-value transfer-ownership="full">
|
45678
|
+
<doc xml:space="preserve">a new #GListStore</doc>
|
45679
|
+
<type name="ListStore" c:type="GListStore*"/>
|
45680
|
+
</return-value>
|
45681
|
+
<parameters>
|
45682
|
+
<parameter name="item_type" transfer-ownership="none">
|
45683
|
+
<doc xml:space="preserve">the #GType of items in the list</doc>
|
45684
|
+
<type name="GType" c:type="GType"/>
|
45685
|
+
</parameter>
|
45686
|
+
</parameters>
|
45687
|
+
</constructor>
|
45688
|
+
<method name="append" c:identifier="g_list_store_append" version="2.44">
|
45689
|
+
<doc xml:space="preserve">Appends @item to @store. @item must be of type #GListStore:item-type.
|
45690
|
+
|
45691
|
+
This function takes a ref on @item.
|
45692
|
+
|
45693
|
+
Use g_list_store_splice() to append multiple items at the same time
|
45694
|
+
efficiently.</doc>
|
45695
|
+
<return-value transfer-ownership="none">
|
45696
|
+
<type name="none" c:type="void"/>
|
45697
|
+
</return-value>
|
45698
|
+
<parameters>
|
45699
|
+
<instance-parameter name="store" transfer-ownership="none">
|
45700
|
+
<doc xml:space="preserve">a #GListStore</doc>
|
45701
|
+
<type name="ListStore" c:type="GListStore*"/>
|
45702
|
+
</instance-parameter>
|
45703
|
+
<parameter name="item" transfer-ownership="none">
|
45704
|
+
<doc xml:space="preserve">the new item</doc>
|
45705
|
+
<type name="gpointer" c:type="gpointer"/>
|
45706
|
+
</parameter>
|
45707
|
+
</parameters>
|
45708
|
+
</method>
|
45709
|
+
<method name="insert" c:identifier="g_list_store_insert" version="2.44">
|
45710
|
+
<doc xml:space="preserve">Inserts @item into @store at @position. @item must be of type
|
45711
|
+
#GListStore:item-type or derived from it. @position must be smaller
|
45712
|
+
than the length of the list, or equal to it to append.
|
45713
|
+
|
45714
|
+
This function takes a ref on @item.
|
45715
|
+
|
45716
|
+
Use g_list_store_splice() to insert multiple items at the same time
|
45717
|
+
efficiently.</doc>
|
45718
|
+
<return-value transfer-ownership="none">
|
45719
|
+
<type name="none" c:type="void"/>
|
45720
|
+
</return-value>
|
45721
|
+
<parameters>
|
45722
|
+
<instance-parameter name="store" transfer-ownership="none">
|
45723
|
+
<doc xml:space="preserve">a #GListStore</doc>
|
45724
|
+
<type name="ListStore" c:type="GListStore*"/>
|
45725
|
+
</instance-parameter>
|
45726
|
+
<parameter name="position" transfer-ownership="none">
|
45727
|
+
<doc xml:space="preserve">the position at which to insert the new item</doc>
|
45728
|
+
<type name="guint" c:type="guint"/>
|
45729
|
+
</parameter>
|
45730
|
+
<parameter name="item" transfer-ownership="none">
|
45731
|
+
<doc xml:space="preserve">the new item</doc>
|
45732
|
+
<type name="gpointer" c:type="gpointer"/>
|
45733
|
+
</parameter>
|
45734
|
+
</parameters>
|
45735
|
+
</method>
|
45736
|
+
<method name="insert_sorted"
|
45737
|
+
c:identifier="g_list_store_insert_sorted"
|
45738
|
+
version="2.44"
|
45739
|
+
introspectable="0">
|
45740
|
+
<doc xml:space="preserve">Inserts @item into @store at a position to be determined by the
|
45741
|
+
@compare_func.
|
45742
|
+
|
45743
|
+
The list must already be sorted before calling this function or the
|
45744
|
+
result is undefined. Usually you would approach this by only ever
|
45745
|
+
inserting items by way of this function.
|
45746
|
+
|
45747
|
+
This function takes a ref on @item.</doc>
|
45748
|
+
<return-value transfer-ownership="none">
|
45749
|
+
<doc xml:space="preserve">the position at which @item was inserted</doc>
|
45750
|
+
<type name="guint" c:type="guint"/>
|
45751
|
+
</return-value>
|
45752
|
+
<parameters>
|
45753
|
+
<instance-parameter name="store" transfer-ownership="none">
|
45754
|
+
<doc xml:space="preserve">a #GListStore</doc>
|
45755
|
+
<type name="ListStore" c:type="GListStore*"/>
|
45756
|
+
</instance-parameter>
|
45757
|
+
<parameter name="item" transfer-ownership="none">
|
45758
|
+
<doc xml:space="preserve">the new item</doc>
|
45759
|
+
<type name="gpointer" c:type="gpointer"/>
|
45760
|
+
</parameter>
|
45761
|
+
<parameter name="compare_func" transfer-ownership="none" closure="2">
|
45762
|
+
<doc xml:space="preserve">pairwise comparison function for sorting</doc>
|
45763
|
+
<type name="GLib.CompareDataFunc" c:type="GCompareDataFunc"/>
|
45764
|
+
</parameter>
|
45765
|
+
<parameter name="user_data" transfer-ownership="none">
|
45766
|
+
<doc xml:space="preserve">user data for @compare_func</doc>
|
45767
|
+
<type name="gpointer" c:type="gpointer"/>
|
45768
|
+
</parameter>
|
45769
|
+
</parameters>
|
45770
|
+
</method>
|
45771
|
+
<method name="remove" c:identifier="g_list_store_remove" version="2.44">
|
45772
|
+
<doc xml:space="preserve">Removes the item from @store that is at @position. @position must be
|
45773
|
+
smaller than the current length of the list.
|
45774
|
+
|
45775
|
+
Use g_list_store_splice() to remove multiple items at the same time
|
45776
|
+
efficiently.</doc>
|
45777
|
+
<return-value transfer-ownership="none">
|
45778
|
+
<type name="none" c:type="void"/>
|
45779
|
+
</return-value>
|
45780
|
+
<parameters>
|
45781
|
+
<instance-parameter name="store" transfer-ownership="none">
|
45782
|
+
<doc xml:space="preserve">a #GListStore</doc>
|
45783
|
+
<type name="ListStore" c:type="GListStore*"/>
|
45784
|
+
</instance-parameter>
|
45785
|
+
<parameter name="position" transfer-ownership="none">
|
45786
|
+
<doc xml:space="preserve">the position of the item that is to be removed</doc>
|
45787
|
+
<type name="guint" c:type="guint"/>
|
45788
|
+
</parameter>
|
45789
|
+
</parameters>
|
45790
|
+
</method>
|
45791
|
+
<method name="remove_all"
|
45792
|
+
c:identifier="g_list_store_remove_all"
|
45793
|
+
version="2.44">
|
45794
|
+
<doc xml:space="preserve">Removes all items from @store.</doc>
|
45795
|
+
<return-value transfer-ownership="none">
|
45796
|
+
<type name="none" c:type="void"/>
|
45797
|
+
</return-value>
|
45798
|
+
<parameters>
|
45799
|
+
<instance-parameter name="store" transfer-ownership="none">
|
45800
|
+
<doc xml:space="preserve">a #GListStore</doc>
|
45801
|
+
<type name="ListStore" c:type="GListStore*"/>
|
45802
|
+
</instance-parameter>
|
45803
|
+
</parameters>
|
45804
|
+
</method>
|
45805
|
+
<method name="splice"
|
45806
|
+
c:identifier="g_list_store_splice"
|
45807
|
+
version="2.44"
|
45808
|
+
introspectable="0">
|
45809
|
+
<doc xml:space="preserve">Changes @store by removing @n_removals items and adding @n_additions
|
45810
|
+
items to it. @additions must contain @n_additions items of type
|
45811
|
+
#GListStore:item-type. %NULL is not permitted.
|
45812
|
+
|
45813
|
+
This function is more efficient than g_list_store_insert() and
|
45814
|
+
g_list_store_remove(), because it only emits
|
45815
|
+
#GListModel::items-changed once for the change.
|
45816
|
+
|
45817
|
+
This function takes a ref on each item in @additions.
|
45818
|
+
|
45819
|
+
The parameters @position and @n_removals must be correct (ie:
|
45820
|
+
@position + @n_removals must be less than or equal to the length of
|
45821
|
+
the list at the time this function is called).</doc>
|
45822
|
+
<return-value transfer-ownership="none">
|
45823
|
+
<type name="none" c:type="void"/>
|
45824
|
+
</return-value>
|
45825
|
+
<parameters>
|
45826
|
+
<instance-parameter name="store" transfer-ownership="none">
|
45827
|
+
<doc xml:space="preserve">a #GListStore</doc>
|
45828
|
+
<type name="ListStore" c:type="GListStore*"/>
|
45829
|
+
</instance-parameter>
|
45830
|
+
<parameter name="position" transfer-ownership="none">
|
45831
|
+
<doc xml:space="preserve">the position at which to make the change</doc>
|
45832
|
+
<type name="guint" c:type="guint"/>
|
45833
|
+
</parameter>
|
45834
|
+
<parameter name="n_removals" transfer-ownership="none">
|
45835
|
+
<doc xml:space="preserve">the number of items to remove</doc>
|
45836
|
+
<type name="guint" c:type="guint"/>
|
45837
|
+
</parameter>
|
45838
|
+
<parameter name="additions" transfer-ownership="none">
|
45839
|
+
<doc xml:space="preserve">the items to add</doc>
|
45840
|
+
<array length="3" zero-terminated="0" c:type="gpointer*">
|
45841
|
+
<type name="gpointer" c:type="gpointer"/>
|
45842
|
+
</array>
|
45843
|
+
</parameter>
|
45844
|
+
<parameter name="n_additions" transfer-ownership="none">
|
45845
|
+
<doc xml:space="preserve">the number of items to add</doc>
|
45846
|
+
<type name="guint" c:type="guint"/>
|
45847
|
+
</parameter>
|
45848
|
+
</parameters>
|
45849
|
+
</method>
|
45850
|
+
<property name="item-type"
|
45851
|
+
version="2.44"
|
45852
|
+
writable="1"
|
45853
|
+
construct-only="1"
|
45854
|
+
transfer-ownership="none">
|
45855
|
+
<doc xml:space="preserve">The type of items contained in this list store. Items must be
|
45856
|
+
subclasses of #GObject.</doc>
|
45857
|
+
<type name="GType" c:type="GType"/>
|
45858
|
+
</property>
|
45859
|
+
</class>
|
45860
|
+
<record name="ListStoreClass"
|
45861
|
+
c:type="GListStoreClass"
|
45862
|
+
glib:is-gtype-struct-for="ListStore">
|
45863
|
+
<field name="parent_class">
|
45864
|
+
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
|
45865
|
+
</field>
|
45866
|
+
</record>
|
44624
45867
|
<interface name="LoadableIcon"
|
44625
45868
|
c:symbol-prefix="loadable_icon"
|
44626
45869
|
c:type="GLoadableIcon"
|
@@ -50546,7 +51789,13 @@ interface.</doc>
|
|
50546
51789
|
c:identifier="g_network_address_new"
|
50547
51790
|
version="2.22">
|
50548
51791
|
<doc xml:space="preserve">Creates a new #GSocketConnectable for connecting to the given
|
50549
|
-
@hostname and @port
|
51792
|
+
@hostname and @port.
|
51793
|
+
|
51794
|
+
Note that depending on the configuration of the machine, a
|
51795
|
+
@hostname of `localhost` may refer to the IPv4 loopback address
|
51796
|
+
only, or to both IPv4 and IPv6; use
|
51797
|
+
g_network_address_new_loopback() to create a #GNetworkAddress that
|
51798
|
+
is guaranteed to resolve to both addresses.</doc>
|
50550
51799
|
<return-value transfer-ownership="full">
|
50551
51800
|
<doc xml:space="preserve">the new #GNetworkAddress</doc>
|
50552
51801
|
<type name="NetworkAddress" c:type="GSocketConnectable*"/>
|
@@ -50562,6 +51811,32 @@ interface.</doc>
|
|
50562
51811
|
</parameter>
|
50563
51812
|
</parameters>
|
50564
51813
|
</constructor>
|
51814
|
+
<constructor name="new_loopback"
|
51815
|
+
c:identifier="g_network_address_new_loopback"
|
51816
|
+
version="2.44">
|
51817
|
+
<doc xml:space="preserve">Creates a new #GSocketConnectable for connecting to the local host
|
51818
|
+
over a loopback connection to the given @port. This is intended for
|
51819
|
+
use in connecting to local services which may be running on IPv4 or
|
51820
|
+
IPv6.
|
51821
|
+
|
51822
|
+
The connectable will return IPv4 and IPv6 loopback addresses,
|
51823
|
+
regardless of how the host resolves `localhost`. By contrast,
|
51824
|
+
g_network_address_new() will often only return an IPv4 address when
|
51825
|
+
resolving `localhost`, and an IPv6 address for `localhost6`.
|
51826
|
+
|
51827
|
+
g_network_address_get_hostname() will always return `localhost` for
|
51828
|
+
#GNetworkAddresses created with this constructor.</doc>
|
51829
|
+
<return-value transfer-ownership="full">
|
51830
|
+
<doc xml:space="preserve">the new #GNetworkAddress</doc>
|
51831
|
+
<type name="NetworkAddress" c:type="GSocketConnectable*"/>
|
51832
|
+
</return-value>
|
51833
|
+
<parameters>
|
51834
|
+
<parameter name="port" transfer-ownership="none">
|
51835
|
+
<doc xml:space="preserve">the port</doc>
|
51836
|
+
<type name="guint16" c:type="guint16"/>
|
51837
|
+
</parameter>
|
51838
|
+
</parameters>
|
51839
|
+
</constructor>
|
50565
51840
|
<function name="parse"
|
50566
51841
|
c:identifier="g_network_address_parse"
|
50567
51842
|
version="2.22"
|
@@ -50709,6 +51984,43 @@ depending on what @addr was created with.</doc>
|
|
50709
51984
|
c:type="GNetworkAddressPrivate"
|
50710
51985
|
disguised="1">
|
50711
51986
|
</record>
|
51987
|
+
<enumeration name="NetworkConnectivity"
|
51988
|
+
version="2.44"
|
51989
|
+
glib:type-name="GNetworkConnectivity"
|
51990
|
+
glib:get-type="g_network_connectivity_get_type"
|
51991
|
+
c:type="GNetworkConnectivity">
|
51992
|
+
<doc xml:space="preserve">The host's network connectivity state, as reported by #GNetworkMonitor.</doc>
|
51993
|
+
<member name="local"
|
51994
|
+
value="1"
|
51995
|
+
c:identifier="G_NETWORK_CONNECTIVITY_LOCAL"
|
51996
|
+
glib:nick="local">
|
51997
|
+
<doc xml:space="preserve">The host is not configured with a
|
51998
|
+
route to the Internet; it may or may not be connected to a local
|
51999
|
+
network.</doc>
|
52000
|
+
</member>
|
52001
|
+
<member name="limited"
|
52002
|
+
value="2"
|
52003
|
+
c:identifier="G_NETWORK_CONNECTIVITY_LIMITED"
|
52004
|
+
glib:nick="limited">
|
52005
|
+
<doc xml:space="preserve">The host is connected to a network, but
|
52006
|
+
does not appear to be able to reach the full Internet, perhaps
|
52007
|
+
due to upstream network problems.</doc>
|
52008
|
+
</member>
|
52009
|
+
<member name="portal"
|
52010
|
+
value="3"
|
52011
|
+
c:identifier="G_NETWORK_CONNECTIVITY_PORTAL"
|
52012
|
+
glib:nick="portal">
|
52013
|
+
<doc xml:space="preserve">The host is behind a captive portal and
|
52014
|
+
cannot reach the full Internet.</doc>
|
52015
|
+
</member>
|
52016
|
+
<member name="full"
|
52017
|
+
value="4"
|
52018
|
+
c:identifier="G_NETWORK_CONNECTIVITY_FULL"
|
52019
|
+
glib:nick="full">
|
52020
|
+
<doc xml:space="preserve">The host is connected to a network, and
|
52021
|
+
appears to be able to reach the full Internet.</doc>
|
52022
|
+
</member>
|
52023
|
+
</enumeration>
|
50712
52024
|
<interface name="NetworkMonitor"
|
50713
52025
|
c:symbol-prefix="network_monitor"
|
50714
52026
|
c:type="GNetworkMonitor"
|
@@ -50959,6 +52271,39 @@ See g_network_monitor_can_reach_async().</doc>
|
|
50959
52271
|
</parameter>
|
50960
52272
|
</parameters>
|
50961
52273
|
</method>
|
52274
|
+
<method name="get_connectivity"
|
52275
|
+
c:identifier="g_network_monitor_get_connectivity"
|
52276
|
+
version="2.44">
|
52277
|
+
<doc xml:space="preserve">Gets a more detailed networking state than
|
52278
|
+
g_network_monitor_get_network_available().
|
52279
|
+
|
52280
|
+
If #GNetworkMonitor:network-available is %FALSE, then the
|
52281
|
+
connectivity state will be %G_NETWORK_CONNECTIVITY_LOCAL.
|
52282
|
+
|
52283
|
+
If #GNetworkMonitor:network-available is %TRUE, then the
|
52284
|
+
connectivity state will be %G_NETWORK_CONNECTIVITY_FULL (if there
|
52285
|
+
is full Internet connectivity), %G_NETWORK_CONNECTIVITY_LIMITED (if
|
52286
|
+
the host has a default route, but appears to be unable to actually
|
52287
|
+
reach the full Internet), or %G_NETWORK_CONNECTIVITY_PORTAL (if the
|
52288
|
+
host is trapped behind a "captive portal" that requires some sort
|
52289
|
+
of login or acknowledgement before allowing full Internet access).
|
52290
|
+
|
52291
|
+
Note that in the case of %G_NETWORK_CONNECTIVITY_LIMITED and
|
52292
|
+
%G_NETWORK_CONNECTIVITY_PORTAL, it is possible that some sites are
|
52293
|
+
reachable but others are not. In this case, applications can
|
52294
|
+
attempt to connect to remote servers, but should gracefully fall
|
52295
|
+
back to their "offline" behavior if the connection attempt fails.</doc>
|
52296
|
+
<return-value transfer-ownership="none">
|
52297
|
+
<doc xml:space="preserve">the network connectivity state</doc>
|
52298
|
+
<type name="NetworkConnectivity" c:type="GNetworkConnectivity"/>
|
52299
|
+
</return-value>
|
52300
|
+
<parameters>
|
52301
|
+
<instance-parameter name="monitor" transfer-ownership="none">
|
52302
|
+
<doc xml:space="preserve">the #GNetworkMonitor</doc>
|
52303
|
+
<type name="NetworkMonitor" c:type="GNetworkMonitor*"/>
|
52304
|
+
</instance-parameter>
|
52305
|
+
</parameters>
|
52306
|
+
</method>
|
50962
52307
|
<method name="get_network_available"
|
50963
52308
|
c:identifier="g_network_monitor_get_network_available"
|
50964
52309
|
version="2.32">
|
@@ -50977,6 +52322,12 @@ reachable. See #GNetworkMonitor:network-available for more details.</doc>
|
|
50977
52322
|
</instance-parameter>
|
50978
52323
|
</parameters>
|
50979
52324
|
</method>
|
52325
|
+
<property name="connectivity" version="2.44" transfer-ownership="none">
|
52326
|
+
<doc xml:space="preserve">More detailed information about the host's network connectivity.
|
52327
|
+
See g_network_monitor_get_connectivity() and
|
52328
|
+
#GNetworkConnectivity for more details.</doc>
|
52329
|
+
<type name="NetworkConnectivity"/>
|
52330
|
+
</property>
|
50980
52331
|
<property name="network-available"
|
50981
52332
|
version="2.32"
|
50982
52333
|
transfer-ownership="none">
|
@@ -51018,8 +52369,11 @@ reachable.</doc>
|
|
51018
52369
|
</interface>
|
51019
52370
|
<record name="NetworkMonitorInterface"
|
51020
52371
|
c:type="GNetworkMonitorInterface"
|
51021
|
-
glib:is-gtype-struct-for="NetworkMonitor"
|
52372
|
+
glib:is-gtype-struct-for="NetworkMonitor"
|
52373
|
+
version="2.32">
|
52374
|
+
<doc xml:space="preserve">The virtual function table for #GNetworkMonitor.</doc>
|
51022
52375
|
<field name="g_iface">
|
52376
|
+
<doc xml:space="preserve">The parent interface.</doc>
|
51023
52377
|
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
|
51024
52378
|
</field>
|
51025
52379
|
<field name="network_changed">
|
@@ -51666,6 +53020,43 @@ was sent on is activated.</doc>
|
|
51666
53020
|
or emergency warnings)</doc>
|
51667
53021
|
</member>
|
51668
53022
|
</enumeration>
|
53023
|
+
<record name="OutputMessage" c:type="GOutputMessage" version="2.44">
|
53024
|
+
<doc xml:space="preserve">Structure used for scatter/gather data output when sending multiple
|
53025
|
+
messages or packets in one go. You generally pass in an array of
|
53026
|
+
#GOutputVectors and the operation will use all the buffers as if they
|
53027
|
+
were one buffer.
|
53028
|
+
|
53029
|
+
If @address is %NULL then the message is sent to the default receiver
|
53030
|
+
(as previously set by g_socket_connect()).</doc>
|
53031
|
+
<field name="address" writable="1">
|
53032
|
+
<doc xml:space="preserve">a #GSocketAddress, or %NULL</doc>
|
53033
|
+
<type name="SocketAddress" c:type="GSocketAddress*"/>
|
53034
|
+
</field>
|
53035
|
+
<field name="vectors" writable="1">
|
53036
|
+
<doc xml:space="preserve">pointer to an array of output vectors</doc>
|
53037
|
+
<type name="OutputVector" c:type="GOutputVector*"/>
|
53038
|
+
</field>
|
53039
|
+
<field name="num_vectors" writable="1">
|
53040
|
+
<doc xml:space="preserve">the number of output vectors pointed to by @vectors.</doc>
|
53041
|
+
<type name="guint" c:type="guint"/>
|
53042
|
+
</field>
|
53043
|
+
<field name="bytes_sent" writable="1">
|
53044
|
+
<doc xml:space="preserve">initialize to 0. Will be set to the number of bytes
|
53045
|
+
that have been sent</doc>
|
53046
|
+
<type name="guint" c:type="guint"/>
|
53047
|
+
</field>
|
53048
|
+
<field name="control_messages" writable="1">
|
53049
|
+
<doc xml:space="preserve">a pointer
|
53050
|
+
to an array of #GSocketControlMessages, or %NULL.</doc>
|
53051
|
+
<array length="5" zero-terminated="0" c:type="GSocketControlMessage**">
|
53052
|
+
<type name="SocketControlMessage" c:type="GSocketControlMessage*"/>
|
53053
|
+
</array>
|
53054
|
+
</field>
|
53055
|
+
<field name="num_control_messages" writable="1">
|
53056
|
+
<doc xml:space="preserve">number of elements in @control_messages.</doc>
|
53057
|
+
<type name="guint" c:type="guint"/>
|
53058
|
+
</field>
|
53059
|
+
</record>
|
51669
53060
|
<class name="OutputStream"
|
51670
53061
|
c:symbol-prefix="output_stream"
|
51671
53062
|
c:type="GOutputStream"
|
@@ -52648,8 +54039,15 @@ On a successful write of @count bytes, %TRUE is returned, and @bytes_written
|
|
52648
54039
|
is set to @count.
|
52649
54040
|
|
52650
54041
|
If there is an error during the operation %FALSE is returned and @error
|
52651
|
-
is set to indicate the error status
|
52652
|
-
|
54042
|
+
is set to indicate the error status.
|
54043
|
+
|
54044
|
+
As a special exception to the normal conventions for functions that
|
54045
|
+
use #GError, if this function returns %FALSE (and sets @error) then
|
54046
|
+
@bytes_written will be set to the number of bytes that were
|
54047
|
+
successfully written before the error was encountered. This
|
54048
|
+
functionality is only available from C. If you need it from another
|
54049
|
+
language then you must write your own loop around
|
54050
|
+
g_output_stream_write().</doc>
|
52653
54051
|
<return-value transfer-ownership="none">
|
52654
54052
|
<doc xml:space="preserve">%TRUE on success, %FALSE if there was an error</doc>
|
52655
54053
|
<type name="gboolean" c:type="gboolean"/>
|
@@ -52686,6 +54084,104 @@ the number of bytes written into the stream before the error occurred.</doc>
|
|
52686
54084
|
</parameter>
|
52687
54085
|
</parameters>
|
52688
54086
|
</method>
|
54087
|
+
<method name="write_all_async"
|
54088
|
+
c:identifier="g_output_stream_write_all_async"
|
54089
|
+
version="2.44">
|
54090
|
+
<doc xml:space="preserve">Request an asynchronous write of @count bytes from @buffer into
|
54091
|
+
the stream. When the operation is finished @callback will be called.
|
54092
|
+
You can then call g_output_stream_write_all_finish() to get the result of the
|
54093
|
+
operation.
|
54094
|
+
|
54095
|
+
This is the asynchronous version of g_output_stream_write_all().
|
54096
|
+
|
54097
|
+
Call g_output_stream_write_all_finish() to collect the result.
|
54098
|
+
|
54099
|
+
Any outstanding I/O request with higher priority (lower numerical
|
54100
|
+
value) will be executed before an outstanding request with lower
|
54101
|
+
priority. Default priority is %G_PRIORITY_DEFAULT.
|
54102
|
+
|
54103
|
+
Note that no copy of @buffer will be made, so it must stay valid
|
54104
|
+
until @callback is called.</doc>
|
54105
|
+
<return-value transfer-ownership="none">
|
54106
|
+
<type name="none" c:type="void"/>
|
54107
|
+
</return-value>
|
54108
|
+
<parameters>
|
54109
|
+
<instance-parameter name="stream" transfer-ownership="none">
|
54110
|
+
<doc xml:space="preserve">A #GOutputStream</doc>
|
54111
|
+
<type name="OutputStream" c:type="GOutputStream*"/>
|
54112
|
+
</instance-parameter>
|
54113
|
+
<parameter name="buffer" transfer-ownership="none">
|
54114
|
+
<doc xml:space="preserve">the buffer containing the data to write</doc>
|
54115
|
+
<array length="1" zero-terminated="0" c:type="void*">
|
54116
|
+
<type name="guint8"/>
|
54117
|
+
</array>
|
54118
|
+
</parameter>
|
54119
|
+
<parameter name="count" transfer-ownership="none">
|
54120
|
+
<doc xml:space="preserve">the number of bytes to write</doc>
|
54121
|
+
<type name="gsize" c:type="gsize"/>
|
54122
|
+
</parameter>
|
54123
|
+
<parameter name="io_priority" transfer-ownership="none">
|
54124
|
+
<doc xml:space="preserve">the io priority of the request</doc>
|
54125
|
+
<type name="gint" c:type="int"/>
|
54126
|
+
</parameter>
|
54127
|
+
<parameter name="cancellable"
|
54128
|
+
transfer-ownership="none"
|
54129
|
+
nullable="1"
|
54130
|
+
allow-none="1">
|
54131
|
+
<doc xml:space="preserve">optional #GCancellable object, %NULL to ignore</doc>
|
54132
|
+
<type name="Cancellable" c:type="GCancellable*"/>
|
54133
|
+
</parameter>
|
54134
|
+
<parameter name="callback"
|
54135
|
+
transfer-ownership="none"
|
54136
|
+
nullable="1"
|
54137
|
+
allow-none="1"
|
54138
|
+
scope="async"
|
54139
|
+
closure="5">
|
54140
|
+
<doc xml:space="preserve">callback to call when the request is satisfied</doc>
|
54141
|
+
<type name="AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
|
54142
|
+
</parameter>
|
54143
|
+
<parameter name="user_data" transfer-ownership="none">
|
54144
|
+
<doc xml:space="preserve">the data to pass to callback function</doc>
|
54145
|
+
<type name="gpointer" c:type="gpointer"/>
|
54146
|
+
</parameter>
|
54147
|
+
</parameters>
|
54148
|
+
</method>
|
54149
|
+
<method name="write_all_finish"
|
54150
|
+
c:identifier="g_output_stream_write_all_finish"
|
54151
|
+
version="2.44"
|
54152
|
+
throws="1">
|
54153
|
+
<doc xml:space="preserve">Finishes an asynchronous stream write operation started with
|
54154
|
+
g_output_stream_write_all_async().
|
54155
|
+
|
54156
|
+
As a special exception to the normal conventions for functions that
|
54157
|
+
use #GError, if this function returns %FALSE (and sets @error) then
|
54158
|
+
@bytes_written will be set to the number of bytes that were
|
54159
|
+
successfully written before the error was encountered. This
|
54160
|
+
functionality is only available from C. If you need it from another
|
54161
|
+
language then you must write your own loop around
|
54162
|
+
g_output_stream_write_async().</doc>
|
54163
|
+
<return-value transfer-ownership="none">
|
54164
|
+
<doc xml:space="preserve">%TRUE on success, %FALSE if there was an error</doc>
|
54165
|
+
<type name="gboolean" c:type="gboolean"/>
|
54166
|
+
</return-value>
|
54167
|
+
<parameters>
|
54168
|
+
<instance-parameter name="stream" transfer-ownership="none">
|
54169
|
+
<doc xml:space="preserve">a #GOutputStream</doc>
|
54170
|
+
<type name="OutputStream" c:type="GOutputStream*"/>
|
54171
|
+
</instance-parameter>
|
54172
|
+
<parameter name="result" transfer-ownership="none">
|
54173
|
+
<doc xml:space="preserve">a #GAsyncResult</doc>
|
54174
|
+
<type name="AsyncResult" c:type="GAsyncResult*"/>
|
54175
|
+
</parameter>
|
54176
|
+
<parameter name="bytes_written"
|
54177
|
+
direction="out"
|
54178
|
+
caller-allocates="0"
|
54179
|
+
transfer-ownership="full">
|
54180
|
+
<doc xml:space="preserve">location to store the number of bytes that was written to the stream</doc>
|
54181
|
+
<type name="gsize" c:type="gsize*"/>
|
54182
|
+
</parameter>
|
54183
|
+
</parameters>
|
54184
|
+
</method>
|
52689
54185
|
<method name="write_async" c:identifier="g_output_stream_write_async">
|
52690
54186
|
<doc xml:space="preserve">Request an asynchronous write of @count bytes from @buffer into
|
52691
54187
|
the stream. When the operation is finished @callback will be called.
|
@@ -54850,8 +56346,9 @@ until the action is destroyed.</doc>
|
|
54850
56346
|
<type name="utf8" c:type="const gchar*"/>
|
54851
56347
|
</parameter>
|
54852
56348
|
<parameter name="object" transfer-ownership="none">
|
54853
|
-
<doc xml:space="preserve">the object that has the property
|
54854
|
-
|
56349
|
+
<doc xml:space="preserve">the object that has the property
|
56350
|
+
to wrap</doc>
|
56351
|
+
<type name="GObject.Object" c:type="gpointer"/>
|
54855
56352
|
</parameter>
|
54856
56353
|
<parameter name="property_name" transfer-ownership="none">
|
54857
56354
|
<doc xml:space="preserve">the name of the property</doc>
|
@@ -55411,7 +56908,9 @@ if the creator didn't specify this).</doc>
|
|
55411
56908
|
</class>
|
55412
56909
|
<record name="ProxyAddressClass"
|
55413
56910
|
c:type="GProxyAddressClass"
|
55414
|
-
glib:is-gtype-struct-for="ProxyAddress"
|
56911
|
+
glib:is-gtype-struct-for="ProxyAddress"
|
56912
|
+
version="2.26">
|
56913
|
+
<doc xml:space="preserve">Class structure for #GProxyAddress.</doc>
|
55415
56914
|
<field name="parent_class">
|
55416
56915
|
<type name="InetSocketAddressClass" c:type="GInetSocketAddressClass"/>
|
55417
56916
|
</field>
|
@@ -55917,7 +57416,9 @@ g_proxy_resolver_lookup() for more details.</doc>
|
|
55917
57416
|
<record name="ProxyResolverInterface"
|
55918
57417
|
c:type="GProxyResolverInterface"
|
55919
57418
|
glib:is-gtype-struct-for="ProxyResolver">
|
57419
|
+
<doc xml:space="preserve">The virtual function table for #GProxyResolver.</doc>
|
55920
57420
|
<field name="g_iface">
|
57421
|
+
<doc xml:space="preserve">The parent interface.</doc>
|
55921
57422
|
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
|
55922
57423
|
</field>
|
55923
57424
|
<field name="is_supported">
|
@@ -58594,6 +60095,16 @@ are restricted to lowercase characters, numbers and '-'. Furthermore,
|
|
58594
60095
|
the names must begin with a lowercase character, must not end
|
58595
60096
|
with a '-', and must not contain consecutive dashes.
|
58596
60097
|
|
60098
|
+
GSettings supports change notification. The primary mechanism to
|
60099
|
+
watch for changes is to connect to the "changed" signal. You can
|
60100
|
+
optionally watch for changes on only a single key by using a signal
|
60101
|
+
detail. Signals are only guaranteed to be emitted for a given key
|
60102
|
+
after you have read the value of that key while a signal handler was
|
60103
|
+
connected for that key. Signals may or may not be emitted in the
|
60104
|
+
case that the key "changed" to the value that you had previously
|
60105
|
+
read. Signals may be reported in additional cases as well and the
|
60106
|
+
"changed" signal should really be treated as "may have changed".
|
60107
|
+
|
58597
60108
|
Similar to GConf, the default values in GSettings schemas can be
|
58598
60109
|
localized, but the localized values are stored in gettext catalogs
|
58599
60110
|
and looked up with the domain that is specified in the
|
@@ -58689,7 +60200,7 @@ An example for ranges, choices and enumerated types:
|
|
58689
60200
|
</key>
|
58690
60201
|
|
58691
60202
|
<key name='flags-key' flags='org.gtk.Test.myflags'>
|
58692
|
-
<default>["flag1",flag2"]</default>
|
60203
|
+
<default>["flag1","flag2"]</default>
|
58693
60204
|
</key>
|
58694
60205
|
</schema>
|
58695
60206
|
</schemalist>
|
@@ -58764,14 +60275,14 @@ At the most basic level, a #GSettings object is a pure composition of
|
|
58764
60275
|
backend, and a #GMainContext to which signals are dispatched.
|
58765
60276
|
|
58766
60277
|
This constructor therefore gives you full control over constructing
|
58767
|
-
#GSettings instances. The first
|
60278
|
+
#GSettings instances. The first 3 parameters are given directly as
|
58768
60279
|
@schema, @backend and @path, and the main context is taken from the
|
58769
60280
|
thread-default (as per g_settings_new()).
|
58770
60281
|
|
58771
60282
|
If @backend is %NULL then the default backend is used.
|
58772
60283
|
|
58773
60284
|
If @path is %NULL then the path from the schema is used. It is an
|
58774
|
-
error
|
60285
|
+
error if @path is %NULL and the schema has no path of its own or if
|
58775
60286
|
@path is non-%NULL and not equal to the path that the schema does
|
58776
60287
|
have.</doc>
|
58777
60288
|
<return-value transfer-ownership="full">
|
@@ -58888,6 +60399,7 @@ characters.</doc>
|
|
58888
60399
|
version="2.28"
|
58889
60400
|
deprecated="1"
|
58890
60401
|
deprecated-version="2.40">
|
60402
|
+
<doc xml:space="preserve"><!-- --></doc>
|
58891
60403
|
<doc-deprecated xml:space="preserve">Use g_settings_schema_source_list_schemas() instead</doc-deprecated>
|
58892
60404
|
<return-value transfer-ownership="none">
|
58893
60405
|
<doc xml:space="preserve">a list of relocatable
|
@@ -58903,6 +60415,7 @@ characters.</doc>
|
|
58903
60415
|
version="2.26"
|
58904
60416
|
deprecated="1"
|
58905
60417
|
deprecated-version="2.40">
|
60418
|
+
<doc xml:space="preserve"><!-- --></doc>
|
58906
60419
|
<doc-deprecated xml:space="preserve">Use g_settings_schema_source_list_schemas() instead.
|
58907
60420
|
If you used g_settings_list_schemas() to check for the presence of
|
58908
60421
|
a particular schema, use g_settings_schema_source_lookup() instead
|
@@ -58944,7 +60457,7 @@ function.</doc>
|
|
58944
60457
|
<parameters>
|
58945
60458
|
<parameter name="object" transfer-ownership="none">
|
58946
60459
|
<doc xml:space="preserve">the object</doc>
|
58947
|
-
<type name="
|
60460
|
+
<type name="GObject.Object" c:type="gpointer"/>
|
58948
60461
|
</parameter>
|
58949
60462
|
<parameter name="property" transfer-ownership="none">
|
58950
60463
|
<doc xml:space="preserve">the property whose binding is removed</doc>
|
@@ -60702,6 +62215,26 @@ relocatable schemas, this function will return %NULL.</doc>
|
|
60702
62215
|
</parameter>
|
60703
62216
|
</parameters>
|
60704
62217
|
</method>
|
62218
|
+
<method name="list_children"
|
62219
|
+
c:identifier="g_settings_schema_list_children"
|
62220
|
+
version="2.44">
|
62221
|
+
<doc xml:space="preserve">Gets the list of children in @schema.
|
62222
|
+
|
62223
|
+
You should free the return value with g_strfreev() when you are done
|
62224
|
+
with it.</doc>
|
62225
|
+
<return-value transfer-ownership="full">
|
62226
|
+
<doc xml:space="preserve">a list of the children on @settings</doc>
|
62227
|
+
<array c:type="gchar**">
|
62228
|
+
<type name="utf8"/>
|
62229
|
+
</array>
|
62230
|
+
</return-value>
|
62231
|
+
<parameters>
|
62232
|
+
<instance-parameter name="schema" transfer-ownership="none">
|
62233
|
+
<doc xml:space="preserve">a #GSettingsSchema</doc>
|
62234
|
+
<type name="SettingsSchema" c:type="GSettingsSchema*"/>
|
62235
|
+
</instance-parameter>
|
62236
|
+
</parameters>
|
62237
|
+
</method>
|
60705
62238
|
<method name="ref" c:identifier="g_settings_schema_ref" version="2.32">
|
60706
62239
|
<doc xml:space="preserve">Increase the reference count of @schema, returning a new reference.</doc>
|
60707
62240
|
<return-value transfer-ownership="full">
|
@@ -60735,6 +62268,8 @@ relocatable schemas, this function will return %NULL.</doc>
|
|
60735
62268
|
glib:type-name="GSettingsSchemaKey"
|
60736
62269
|
glib:get-type="g_settings_schema_key_get_type"
|
60737
62270
|
c:symbol-prefix="settings_schema_key">
|
62271
|
+
<doc xml:space="preserve">#GSettingsSchemaKey is an opaque data structure and can only be accessed
|
62272
|
+
using the following functions.</doc>
|
60738
62273
|
<method name="get_default_value"
|
60739
62274
|
c:identifier="g_settings_schema_key_get_default_value"
|
60740
62275
|
version="2.40">
|
@@ -60781,6 +62316,21 @@ directory.</doc>
|
|
60781
62316
|
</instance-parameter>
|
60782
62317
|
</parameters>
|
60783
62318
|
</method>
|
62319
|
+
<method name="get_name"
|
62320
|
+
c:identifier="g_settings_schema_key_get_name"
|
62321
|
+
version="2.44">
|
62322
|
+
<doc xml:space="preserve">Gets the name of @key.</doc>
|
62323
|
+
<return-value transfer-ownership="none">
|
62324
|
+
<doc xml:space="preserve">the name of @key.</doc>
|
62325
|
+
<type name="utf8" c:type="const gchar*"/>
|
62326
|
+
</return-value>
|
62327
|
+
<parameters>
|
62328
|
+
<instance-parameter name="key" transfer-ownership="none">
|
62329
|
+
<doc xml:space="preserve">a #GSettingsSchemaKey</doc>
|
62330
|
+
<type name="SettingsSchemaKey" c:type="GSettingsSchemaKey*"/>
|
62331
|
+
</instance-parameter>
|
62332
|
+
</parameters>
|
62333
|
+
</method>
|
60784
62334
|
<method name="get_range"
|
60785
62335
|
c:identifier="g_settings_schema_key_get_range"
|
60786
62336
|
version="2.40">
|
@@ -61236,6 +62786,30 @@ If the @value GVariant is floating, it is consumed.</doc>
|
|
61236
62786
|
</parameter>
|
61237
62787
|
</parameters>
|
61238
62788
|
</method>
|
62789
|
+
<method name="set_state_hint"
|
62790
|
+
c:identifier="g_simple_action_set_state_hint"
|
62791
|
+
version="2.44">
|
62792
|
+
<doc xml:space="preserve">Sets the state hint for the action.
|
62793
|
+
|
62794
|
+
See g_action_get_state_hint() for more information about
|
62795
|
+
action state hints.</doc>
|
62796
|
+
<return-value transfer-ownership="none">
|
62797
|
+
<type name="none" c:type="void"/>
|
62798
|
+
</return-value>
|
62799
|
+
<parameters>
|
62800
|
+
<instance-parameter name="simple" transfer-ownership="none">
|
62801
|
+
<doc xml:space="preserve">a #GSimpleAction</doc>
|
62802
|
+
<type name="SimpleAction" c:type="GSimpleAction*"/>
|
62803
|
+
</instance-parameter>
|
62804
|
+
<parameter name="state_hint"
|
62805
|
+
transfer-ownership="none"
|
62806
|
+
nullable="1"
|
62807
|
+
allow-none="1">
|
62808
|
+
<doc xml:space="preserve">a #GVariant representing the state hint</doc>
|
62809
|
+
<type name="GLib.Variant" c:type="GVariant*"/>
|
62810
|
+
</parameter>
|
62811
|
+
</parameters>
|
62812
|
+
</method>
|
61239
62813
|
<property name="enabled"
|
61240
62814
|
version="2.28"
|
61241
62815
|
writable="1"
|
@@ -62266,6 +63840,56 @@ checks for cancellation.</doc>
|
|
62266
63840
|
</parameter>
|
62267
63841
|
</parameters>
|
62268
63842
|
</callback>
|
63843
|
+
<class name="SimpleIOStream"
|
63844
|
+
c:symbol-prefix="simple_io_stream"
|
63845
|
+
c:type="GSimpleIOStream"
|
63846
|
+
version="2.44"
|
63847
|
+
parent="IOStream"
|
63848
|
+
glib:type-name="GSimpleIOStream"
|
63849
|
+
glib:get-type="g_simple_io_stream_get_type">
|
63850
|
+
<doc xml:space="preserve">GSimpleIOStream creates a #GIOStream from an arbitrary #GInputStream and
|
63851
|
+
#GOutputStream. This allows any pair of input and output streams to be used
|
63852
|
+
with #GIOStream methods.
|
63853
|
+
|
63854
|
+
This is useful when you obtained a #GInputStream and a #GOutputStream
|
63855
|
+
by other means, for instance creating them with platform specific methods as
|
63856
|
+
g_unix_input_stream_new() or g_win32_input_stream_new(), and you want
|
63857
|
+
to take advantage of the methods provided by #GIOStream.</doc>
|
63858
|
+
<constructor name="new"
|
63859
|
+
c:identifier="g_simple_io_stream_new"
|
63860
|
+
version="2.44">
|
63861
|
+
<doc xml:space="preserve">Creates a new #GSimpleIOStream wrapping @input_stream and @output_stream.
|
63862
|
+
See also #GIOStream.</doc>
|
63863
|
+
<return-value transfer-ownership="full">
|
63864
|
+
<doc xml:space="preserve">a new #GSimpleIOStream instance.</doc>
|
63865
|
+
<type name="IOStream" c:type="GIOStream*"/>
|
63866
|
+
</return-value>
|
63867
|
+
<parameters>
|
63868
|
+
<parameter name="input_stream" transfer-ownership="none">
|
63869
|
+
<doc xml:space="preserve">a #GInputStream.</doc>
|
63870
|
+
<type name="InputStream" c:type="GInputStream*"/>
|
63871
|
+
</parameter>
|
63872
|
+
<parameter name="output_stream" transfer-ownership="none">
|
63873
|
+
<doc xml:space="preserve">a #GOutputStream.</doc>
|
63874
|
+
<type name="OutputStream" c:type="GOutputStream*"/>
|
63875
|
+
</parameter>
|
63876
|
+
</parameters>
|
63877
|
+
</constructor>
|
63878
|
+
<property name="input-stream"
|
63879
|
+
version="2.44"
|
63880
|
+
writable="1"
|
63881
|
+
construct-only="1"
|
63882
|
+
transfer-ownership="none">
|
63883
|
+
<type name="InputStream"/>
|
63884
|
+
</property>
|
63885
|
+
<property name="output-stream"
|
63886
|
+
version="2.44"
|
63887
|
+
writable="1"
|
63888
|
+
construct-only="1"
|
63889
|
+
transfer-ownership="none">
|
63890
|
+
<type name="OutputStream"/>
|
63891
|
+
</property>
|
63892
|
+
</class>
|
62269
63893
|
<class name="SimplePermission"
|
62270
63894
|
c:symbol-prefix="simple_permission"
|
62271
63895
|
c:type="GSimplePermission"
|
@@ -62624,7 +64248,10 @@ or winsock SOCKET handle.
|
|
62624
64248
|
This reads all the settings from the file descriptor so that
|
62625
64249
|
all properties should work. Note that the file descriptor
|
62626
64250
|
will be set to non-blocking mode, independent on the blocking
|
62627
|
-
mode of the #GSocket
|
64251
|
+
mode of the #GSocket.
|
64252
|
+
|
64253
|
+
On success, the returned #GSocket takes ownership of @fd. On failure, the
|
64254
|
+
caller must close @fd themselves.</doc>
|
62628
64255
|
<return-value transfer-ownership="full">
|
62629
64256
|
<doc xml:space="preserve">a #GSocket or %NULL on error.
|
62630
64257
|
Free the returned object with g_object_unref().</doc>
|
@@ -63875,6 +65502,77 @@ on error</doc>
|
|
63875
65502
|
</parameter>
|
63876
65503
|
</parameters>
|
63877
65504
|
</method>
|
65505
|
+
<method name="send_messages"
|
65506
|
+
c:identifier="g_socket_send_messages"
|
65507
|
+
version="2.44"
|
65508
|
+
throws="1">
|
65509
|
+
<doc xml:space="preserve">Send multiple data messages from @socket in one go. This is the most
|
65510
|
+
complicated and fully-featured version of this call. For easier use, see
|
65511
|
+
g_socket_send(), g_socket_send_to(), and g_socket_send_message().
|
65512
|
+
|
65513
|
+
@messages must point to an array of #GOutputMessage structs and
|
65514
|
+
@num_messages must be the length of this array. Each #GOutputMessage
|
65515
|
+
contains an address to send the data to, and a pointer to an array of
|
65516
|
+
#GOutputVector structs to describe the buffers that the data to be sent
|
65517
|
+
for each message will be gathered from. Using multiple #GOutputVectors is
|
65518
|
+
more memory-efficient than manually copying data from multiple sources
|
65519
|
+
into a single buffer, and more network-efficient than making multiple
|
65520
|
+
calls to g_socket_send(). Sending multiple messages in one go avoids the
|
65521
|
+
overhead of making a lot of syscalls in scenarios where a lot of data
|
65522
|
+
packets need to be sent (e.g. high-bandwidth video streaming over RTP/UDP),
|
65523
|
+
or where the same data needs to be sent to multiple recipients.
|
65524
|
+
|
65525
|
+
@flags modify how the message is sent. The commonly available arguments
|
65526
|
+
for this are available in the #GSocketMsgFlags enum, but the
|
65527
|
+
values there are the same as the system values, and the flags
|
65528
|
+
are passed in as-is, so you can pass in system-specific flags too.
|
65529
|
+
|
65530
|
+
If the socket is in blocking mode the call will block until there is
|
65531
|
+
space for all the data in the socket queue. If there is no space available
|
65532
|
+
and the socket is in non-blocking mode a %G_IO_ERROR_WOULD_BLOCK error
|
65533
|
+
will be returned if no data was written at all, otherwise the number of
|
65534
|
+
messages sent will be returned. To be notified when space is available,
|
65535
|
+
wait for the %G_IO_OUT condition. Note though that you may still receive
|
65536
|
+
%G_IO_ERROR_WOULD_BLOCK from g_socket_send() even if you were previously
|
65537
|
+
notified of a %G_IO_OUT condition. (On Windows in particular, this is
|
65538
|
+
very common due to the way the underlying APIs work.)
|
65539
|
+
|
65540
|
+
On error -1 is returned and @error is set accordingly.</doc>
|
65541
|
+
<return-value transfer-ownership="none">
|
65542
|
+
<doc xml:space="preserve">number of messages sent, or -1 on error. Note that the number of
|
65543
|
+
messages sent may be smaller than @num_messages if the socket is
|
65544
|
+
non-blocking or if @num_messages was larger than UIO_MAXIOV (1024),
|
65545
|
+
in which case the caller may re-try to send the remaining messages.</doc>
|
65546
|
+
<type name="gint" c:type="gint"/>
|
65547
|
+
</return-value>
|
65548
|
+
<parameters>
|
65549
|
+
<instance-parameter name="socket" transfer-ownership="none">
|
65550
|
+
<doc xml:space="preserve">a #GSocket</doc>
|
65551
|
+
<type name="Socket" c:type="GSocket*"/>
|
65552
|
+
</instance-parameter>
|
65553
|
+
<parameter name="messages" transfer-ownership="none">
|
65554
|
+
<doc xml:space="preserve">an array of #GOutputMessage structs</doc>
|
65555
|
+
<array length="1" zero-terminated="0" c:type="GOutputMessage*">
|
65556
|
+
<type name="OutputMessage" c:type="GOutputMessage"/>
|
65557
|
+
</array>
|
65558
|
+
</parameter>
|
65559
|
+
<parameter name="num_messages" transfer-ownership="none">
|
65560
|
+
<doc xml:space="preserve">the number of elements in @messages</doc>
|
65561
|
+
<type name="guint" c:type="guint"/>
|
65562
|
+
</parameter>
|
65563
|
+
<parameter name="flags" transfer-ownership="none">
|
65564
|
+
<doc xml:space="preserve">an int containing #GSocketMsgFlags flags</doc>
|
65565
|
+
<type name="gint" c:type="gint"/>
|
65566
|
+
</parameter>
|
65567
|
+
<parameter name="cancellable"
|
65568
|
+
transfer-ownership="none"
|
65569
|
+
nullable="1"
|
65570
|
+
allow-none="1">
|
65571
|
+
<doc xml:space="preserve">a %GCancellable or %NULL</doc>
|
65572
|
+
<type name="Cancellable" c:type="GCancellable*"/>
|
65573
|
+
</parameter>
|
65574
|
+
</parameters>
|
65575
|
+
</method>
|
63878
65576
|
<method name="send_to"
|
63879
65577
|
c:identifier="g_socket_send_to"
|
63880
65578
|
version="2.22"
|
@@ -66803,6 +68501,7 @@ object.</doc>
|
|
66803
68501
|
<record name="SocketControlMessageClass"
|
66804
68502
|
c:type="GSocketControlMessageClass"
|
66805
68503
|
glib:is-gtype-struct-for="SocketControlMessage">
|
68504
|
+
<doc xml:space="preserve">Class structure for #GSocketControlMessage.</doc>
|
66806
68505
|
<field name="parent_class">
|
66807
68506
|
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
|
66808
68507
|
</field>
|
@@ -67435,6 +69134,7 @@ See g_socket_set_listen_backlog() for details</doc>
|
|
67435
69134
|
<record name="SocketListenerClass"
|
67436
69135
|
c:type="GSocketListenerClass"
|
67437
69136
|
glib:is-gtype-struct-for="SocketListener">
|
69137
|
+
<doc xml:space="preserve">Class structure for #GSocketListener.</doc>
|
67438
69138
|
<field name="parent_class">
|
67439
69139
|
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
|
67440
69140
|
</field>
|
@@ -67735,6 +69435,7 @@ so you need to ref it yourself if you are planning to use it.</doc>
|
|
67735
69435
|
<record name="SocketServiceClass"
|
67736
69436
|
c:type="GSocketServiceClass"
|
67737
69437
|
glib:is-gtype-struct-for="SocketService">
|
69438
|
+
<doc xml:space="preserve">Class structure for #GSocketService.</doc>
|
67738
69439
|
<field name="parent_class">
|
67739
69440
|
<type name="SocketListenerClass" c:type="GSocketListenerClass"/>
|
67740
69441
|
</field>
|
@@ -68022,19 +69723,21 @@ RFC 2782.</doc>
|
|
68022
69723
|
</function>
|
68023
69724
|
</record>
|
68024
69725
|
<record name="StaticResource" c:type="GStaticResource">
|
68025
|
-
<
|
69726
|
+
<doc xml:space="preserve">#GStaticResource is an opaque data structure and can only be accessed
|
69727
|
+
using the following functions.</doc>
|
69728
|
+
<field name="data" readable="0" private="1">
|
68026
69729
|
<type name="guint8" c:type="const guint8*"/>
|
68027
69730
|
</field>
|
68028
|
-
<field name="data_len"
|
69731
|
+
<field name="data_len" readable="0" private="1">
|
68029
69732
|
<type name="gsize" c:type="gsize"/>
|
68030
69733
|
</field>
|
68031
|
-
<field name="resource"
|
69734
|
+
<field name="resource" readable="0" private="1">
|
68032
69735
|
<type name="Resource" c:type="GResource*"/>
|
68033
69736
|
</field>
|
68034
|
-
<field name="next"
|
69737
|
+
<field name="next" readable="0" private="1">
|
68035
69738
|
<type name="StaticResource" c:type="GStaticResource*"/>
|
68036
69739
|
</field>
|
68037
|
-
<field name="padding"
|
69740
|
+
<field name="padding" readable="0" private="1">
|
68038
69741
|
<type name="gpointer" c:type="gpointer"/>
|
68039
69742
|
</field>
|
68040
69743
|
<method name="fini" c:identifier="g_static_resource_fini" version="2.32">
|
@@ -69990,6 +71693,23 @@ g_task_set_check_cancellable() for more details.</doc>
|
|
69990
71693
|
</instance-parameter>
|
69991
71694
|
</parameters>
|
69992
71695
|
</method>
|
71696
|
+
<method name="get_completed"
|
71697
|
+
c:identifier="g_task_get_completed"
|
71698
|
+
version="2.44">
|
71699
|
+
<doc xml:space="preserve">Gets the value of #GTask:completed. This changes from %FALSE to %TRUE after
|
71700
|
+
the task’s callback is invoked, and will return %FALSE if called from inside
|
71701
|
+
the callback.</doc>
|
71702
|
+
<return-value transfer-ownership="none">
|
71703
|
+
<doc xml:space="preserve">%TRUE if the task has completed, %FALSE otherwise.</doc>
|
71704
|
+
<type name="gboolean" c:type="gboolean"/>
|
71705
|
+
</return-value>
|
71706
|
+
<parameters>
|
71707
|
+
<instance-parameter name="task" transfer-ownership="none">
|
71708
|
+
<doc xml:space="preserve">a #GTask.</doc>
|
71709
|
+
<type name="Task" c:type="GTask*"/>
|
71710
|
+
</instance-parameter>
|
71711
|
+
</parameters>
|
71712
|
+
</method>
|
69993
71713
|
<method name="get_context"
|
69994
71714
|
c:identifier="g_task_get_context"
|
69995
71715
|
version="2.36">
|
@@ -70372,7 +72092,8 @@ See #GTaskThreadFunc for more details about how @task_func is handled.
|
|
70372
72092
|
|
70373
72093
|
Normally this is used with tasks created with a %NULL
|
70374
72094
|
`callback`, but note that even if the task does
|
70375
|
-
have a callback, it will not be invoked when @task_func returns
|
72095
|
+
have a callback, it will not be invoked when @task_func returns.
|
72096
|
+
#GTask:completed will be set to %TRUE just before this function returns.</doc>
|
70376
72097
|
<return-value transfer-ownership="none">
|
70377
72098
|
<type name="none" c:type="void"/>
|
70378
72099
|
</return-value>
|
@@ -70544,6 +72265,18 @@ particular place.</doc>
|
|
70544
72265
|
</parameter>
|
70545
72266
|
</parameters>
|
70546
72267
|
</method>
|
72268
|
+
<property name="completed" version="2.44" transfer-ownership="none">
|
72269
|
+
<doc xml:space="preserve">Whether the task has completed, meaning its callback (if set) has been
|
72270
|
+
invoked. This can only happen after g_task_return_pointer(),
|
72271
|
+
g_task_return_error() or one of the other return functions have been called
|
72272
|
+
on the task.
|
72273
|
+
|
72274
|
+
This property is guaranteed to change from %FALSE to %TRUE exactly once.
|
72275
|
+
|
72276
|
+
The #GObject::notify signal for this change is emitted in the same main
|
72277
|
+
context as the task’s callback, immediately after that callback is invoked.</doc>
|
72278
|
+
<type name="gboolean" c:type="gboolean"/>
|
72279
|
+
</property>
|
70547
72280
|
</class>
|
70548
72281
|
<record name="TaskClass"
|
70549
72282
|
c:type="GTaskClass"
|
@@ -70620,7 +72353,7 @@ g_tcp_connection_set_graceful_disconnect().</doc>
|
|
70620
72353
|
<method name="set_graceful_disconnect"
|
70621
72354
|
c:identifier="g_tcp_connection_set_graceful_disconnect"
|
70622
72355
|
version="2.22">
|
70623
|
-
<doc xml:space="preserve">This
|
72356
|
+
<doc xml:space="preserve">This enables graceful disconnects on close. A graceful disconnect
|
70624
72357
|
means that we signal the receiving end that the connection is terminated
|
70625
72358
|
and wait for it to close the connection before closing the connection.
|
70626
72359
|
|
@@ -71324,9 +73057,7 @@ not return until the connection is closed.</doc>
|
|
71324
73057
|
glib:type-name="GTlsBackend"
|
71325
73058
|
glib:get-type="g_tls_backend_get_type"
|
71326
73059
|
glib:type-struct="TlsBackendInterface">
|
71327
|
-
<doc xml:space="preserve">TLS (Transport Layer Security, aka SSL) backend
|
71328
|
-
internal type used to coordinate the different classes implemented
|
71329
|
-
by a TLS backend.</doc>
|
73060
|
+
<doc xml:space="preserve">TLS (Transport Layer Security, aka SSL) backend</doc>
|
71330
73061
|
<function name="get_default"
|
71331
73062
|
c:identifier="g_tls_backend_get_default"
|
71332
73063
|
version="2.28">
|
@@ -71549,8 +73280,17 @@ a certificate and a private key (which is needed when acting as a
|
|
71549
73280
|
c:identifier="g_tls_certificate_new_from_file"
|
71550
73281
|
version="2.28"
|
71551
73282
|
throws="1">
|
71552
|
-
<doc xml:space="preserve">Creates a #GTlsCertificate from the PEM-encoded data in @file.
|
71553
|
-
|
73283
|
+
<doc xml:space="preserve">Creates a #GTlsCertificate from the PEM-encoded data in @file. The
|
73284
|
+
returned certificate will be the first certificate found in @file. As
|
73285
|
+
of GLib 2.44, if @file contains more certificates it will try to load
|
73286
|
+
a certificate chain. All certificates will be verified in the order
|
73287
|
+
found (top-level certificate should be the last one in the file) and
|
73288
|
+
the #GTlsCertificate:issuer property of each certificate will be set
|
73289
|
+
accordingly if the verification succeeds. If any certificate in the
|
73290
|
+
chain cannot be verified, the first certificate in the file will
|
73291
|
+
still be returned.
|
73292
|
+
|
73293
|
+
If @file cannot be read or parsed, the function will return %NULL and
|
71554
73294
|
set @error. Otherwise, this behaves like
|
71555
73295
|
g_tls_certificate_new_from_pem().</doc>
|
71556
73296
|
<return-value transfer-ownership="full">
|
@@ -71569,16 +73309,27 @@ g_tls_certificate_new_from_pem().</doc>
|
|
71569
73309
|
version="2.28"
|
71570
73310
|
throws="1">
|
71571
73311
|
<doc xml:space="preserve">Creates a #GTlsCertificate from the PEM-encoded data in @cert_file
|
71572
|
-
and @key_file.
|
71573
|
-
|
71574
|
-
|
73312
|
+
and @key_file. The returned certificate will be the first certificate
|
73313
|
+
found in @cert_file. As of GLib 2.44, if @cert_file contains more
|
73314
|
+
certificates it will try to load a certificate chain. All
|
73315
|
+
certificates will be verified in the order found (top-level
|
73316
|
+
certificate should be the last one in the file) and the
|
73317
|
+
#GTlsCertificate:issuer property of each certificate will be set
|
73318
|
+
accordingly if the verification succeeds. If any certificate in the
|
73319
|
+
chain cannot be verified, the first certificate in the file will
|
73320
|
+
still be returned.
|
73321
|
+
|
73322
|
+
If either file cannot be read or parsed, the function will return
|
73323
|
+
%NULL and set @error. Otherwise, this behaves like
|
73324
|
+
g_tls_certificate_new_from_pem().</doc>
|
71575
73325
|
<return-value transfer-ownership="full">
|
71576
73326
|
<doc xml:space="preserve">the new certificate, or %NULL on error</doc>
|
71577
73327
|
<type name="TlsCertificate" c:type="GTlsCertificate*"/>
|
71578
73328
|
</return-value>
|
71579
73329
|
<parameters>
|
71580
73330
|
<parameter name="cert_file" transfer-ownership="none">
|
71581
|
-
<doc xml:space="preserve">file containing
|
73331
|
+
<doc xml:space="preserve">file containing one or more PEM-encoded certificates to
|
73332
|
+
import</doc>
|
71582
73333
|
<type name="utf8" c:type="const gchar*"/>
|
71583
73334
|
</parameter>
|
71584
73335
|
<parameter name="key_file" transfer-ownership="none">
|
@@ -71591,14 +73342,20 @@ like g_tls_certificate_new_from_pem().</doc>
|
|
71591
73342
|
c:identifier="g_tls_certificate_new_from_pem"
|
71592
73343
|
version="2.28"
|
71593
73344
|
throws="1">
|
71594
|
-
<doc xml:space="preserve">Creates a
|
71595
|
-
|
73345
|
+
<doc xml:space="preserve">Creates a #GTlsCertificate from the PEM-encoded data in @data. If
|
73346
|
+
@data includes both a certificate and a private key, then the
|
71596
73347
|
returned certificate will include the private key data as well. (See
|
71597
73348
|
the #GTlsCertificate:private-key-pem property for information about
|
71598
73349
|
supported formats.)
|
71599
73350
|
|
71600
|
-
|
71601
|
-
|
73351
|
+
The returned certificate will be the first certificate found in
|
73352
|
+
@data. As of GLib 2.44, if @data contains more certificates it will
|
73353
|
+
try to load a certificate chain. All certificates will be verified in
|
73354
|
+
the order found (top-level certificate should be the last one in the
|
73355
|
+
file) and the #GTlsCertificate:issuer property of each certificate
|
73356
|
+
will be set accordingly if the verification succeeds. If any
|
73357
|
+
certificate in the chain cannot be verified, the first certificate in
|
73358
|
+
the file will still be returned.</doc>
|
71602
73359
|
<return-value transfer-ownership="full">
|
71603
73360
|
<doc xml:space="preserve">the new certificate, or %NULL if @data is invalid</doc>
|
71604
73361
|
<type name="TlsCertificate" c:type="GTlsCertificate*"/>
|
@@ -72185,11 +73942,16 @@ virtual hosts.</doc>
|
|
72185
73942
|
writable="1"
|
72186
73943
|
construct="1"
|
72187
73944
|
transfer-ownership="none">
|
72188
|
-
<doc xml:space="preserve">If %TRUE, tells the connection to use
|
72189
|
-
to negotiate the best version of TLS
|
72190
|
-
used when talking to servers that don't
|
72191
|
-
negotiation correctly and therefore refuse to
|
72192
|
-
a "modern" TLS handshake
|
73945
|
+
<doc xml:space="preserve">If %TRUE, tells the connection to use a fallback version of TLS
|
73946
|
+
or SSL, rather than trying to negotiate the best version of TLS
|
73947
|
+
to use. This can be used when talking to servers that don't
|
73948
|
+
implement version negotiation correctly and therefore refuse to
|
73949
|
+
handshake at all with a "modern" TLS handshake.
|
73950
|
+
|
73951
|
+
Despite the property name, the fallback version is not
|
73952
|
+
necessarily SSL 3.0; if SSL 3.0 has been disabled, the
|
73953
|
+
#GTlsClientConnection will use the next highest available version
|
73954
|
+
(normally TLS 1.0) as the fallback version.</doc>
|
72193
73955
|
<type name="gboolean" c:type="gboolean"/>
|
72194
73956
|
</property>
|
72195
73957
|
<property name="validation-flags"
|
@@ -72206,8 +73968,11 @@ overrides the default via #GTlsConnection::accept-certificate.</doc>
|
|
72206
73968
|
</interface>
|
72207
73969
|
<record name="TlsClientConnectionInterface"
|
72208
73970
|
c:type="GTlsClientConnectionInterface"
|
72209
|
-
glib:is-gtype-struct-for="TlsClientConnection"
|
73971
|
+
glib:is-gtype-struct-for="TlsClientConnection"
|
73972
|
+
version="2.26">
|
73973
|
+
<doc xml:space="preserve">vtable for a #GTlsClientConnection implementation.</doc>
|
72210
73974
|
<field name="g_iface">
|
73975
|
+
<doc xml:space="preserve">The parent interface.</doc>
|
72211
73976
|
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
|
72212
73977
|
</field>
|
72213
73978
|
</record>
|
@@ -76031,6 +77796,7 @@ g_tls_password_get_flags().</doc>
|
|
76031
77796
|
<record name="TlsPasswordClass"
|
76032
77797
|
c:type="GTlsPasswordClass"
|
76033
77798
|
glib:is-gtype-struct-for="TlsPassword">
|
77799
|
+
<doc xml:space="preserve">Class structure for #GTlsPassword.</doc>
|
76034
77800
|
<field name="parent_class">
|
76035
77801
|
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
|
76036
77802
|
</field>
|
@@ -76212,8 +77978,11 @@ rehandshake with a different mode from the initial handshake.</doc>
|
|
76212
77978
|
</interface>
|
76213
77979
|
<record name="TlsServerConnectionInterface"
|
76214
77980
|
c:type="GTlsServerConnectionInterface"
|
76215
|
-
glib:is-gtype-struct-for="TlsServerConnection"
|
77981
|
+
glib:is-gtype-struct-for="TlsServerConnection"
|
77982
|
+
version="2.26">
|
77983
|
+
<doc xml:space="preserve">vtable for a #GTlsServerConnection implementation.</doc>
|
76216
77984
|
<field name="g_iface">
|
77985
|
+
<doc xml:space="preserve">The parent interface.</doc>
|
76217
77986
|
<type name="GObject.TypeInterface" c:type="GTypeInterface"/>
|
76218
77987
|
</field>
|
76219
77988
|
</record>
|