@girs/midori-0.6 0.6.0-4.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -0
- package/midori-0.6-ambient.d.ts +12 -0
- package/midori-0.6-ambient.js +2 -0
- package/midori-0.6-import.d.ts +12 -0
- package/midori-0.6-import.js +3 -0
- package/midori-0.6.d.ts +3522 -0
- package/midori-0.6.js +6 -0
- package/package.json +70 -0
- package/tsconfig.json +23 -0
- package/typedoc.json +7 -0
package/midori-0.6.d.ts
ADDED
|
@@ -0,0 +1,3522 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
3
|
+
*
|
|
4
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
5
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import './midori-0.6-ambient.d.ts';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Midori-0.6
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import type Peas from '@girs/peas-1.0';
|
|
15
|
+
import type Gio from '@girs/gio-2.0';
|
|
16
|
+
import type GObject from '@girs/gobject-2.0';
|
|
17
|
+
import type GLib from '@girs/glib-2.0';
|
|
18
|
+
import type GModule from '@girs/gmodule-2.0';
|
|
19
|
+
import type GIRepository from '@girs/girepository-2.0';
|
|
20
|
+
import type cairo from '@girs/cairo-1.0';
|
|
21
|
+
import type WebKit2 from '@girs/webkit2-4.0';
|
|
22
|
+
import type Soup from '@girs/soup-2.4';
|
|
23
|
+
import type JavaScriptCore from '@girs/javascriptcore-4.0';
|
|
24
|
+
import type Gtk from '@girs/gtk-3.0';
|
|
25
|
+
import type xlib from '@girs/xlib-2.0';
|
|
26
|
+
import type Gdk from '@girs/gdk-3.0';
|
|
27
|
+
import type Pango from '@girs/pango-1.0';
|
|
28
|
+
import type HarfBuzz from '@girs/harfbuzz-0.0';
|
|
29
|
+
import type freetype2 from '@girs/freetype2-2.0';
|
|
30
|
+
import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
|
|
31
|
+
import type Atk from '@girs/atk-1.0';
|
|
32
|
+
|
|
33
|
+
export namespace Midori {
|
|
34
|
+
enum DebugFlags {
|
|
35
|
+
NONE,
|
|
36
|
+
HISTORY,
|
|
37
|
+
}
|
|
38
|
+
enum StartupType {
|
|
39
|
+
SPEED_DIAL,
|
|
40
|
+
HOMEPAGE,
|
|
41
|
+
LAST_OPEN_PAGES,
|
|
42
|
+
DELAYED_PAGES,
|
|
43
|
+
}
|
|
44
|
+
enum ProxyType {
|
|
45
|
+
AUTOMATIC,
|
|
46
|
+
HTTP,
|
|
47
|
+
NONE,
|
|
48
|
+
}
|
|
49
|
+
class DatabaseError extends GLib.Error {
|
|
50
|
+
static $gtype: GObject.GType<DatabaseError>;
|
|
51
|
+
|
|
52
|
+
// Static fields of Midori.DatabaseError
|
|
53
|
+
|
|
54
|
+
static OPEN: number;
|
|
55
|
+
static NAMING: number;
|
|
56
|
+
static FILENAME: number;
|
|
57
|
+
static EXECUTE: number;
|
|
58
|
+
static COMPILE: number;
|
|
59
|
+
static TYPE: number;
|
|
60
|
+
|
|
61
|
+
// Constructors of Midori.DatabaseError
|
|
62
|
+
|
|
63
|
+
constructor(options: { message: string; code: number });
|
|
64
|
+
_init(...args: any[]): void;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const keys: GLib.DebugKey[];
|
|
68
|
+
interface DatabaseCallback {
|
|
69
|
+
(): boolean;
|
|
70
|
+
}
|
|
71
|
+
module App {
|
|
72
|
+
// Constructor properties interface
|
|
73
|
+
|
|
74
|
+
interface ConstructorProps extends Gtk.Application.ConstructorProps {
|
|
75
|
+
exec_path: Gio.File;
|
|
76
|
+
execPath: Gio.File;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
class App extends Gtk.Application {
|
|
81
|
+
static $gtype: GObject.GType<App>;
|
|
82
|
+
|
|
83
|
+
// Own properties of Midori.App
|
|
84
|
+
|
|
85
|
+
get exec_path(): Gio.File;
|
|
86
|
+
set exec_path(val: Gio.File);
|
|
87
|
+
get execPath(): Gio.File;
|
|
88
|
+
set execPath(val: Gio.File);
|
|
89
|
+
|
|
90
|
+
// Constructors of Midori.App
|
|
91
|
+
|
|
92
|
+
constructor(properties?: Partial<App.ConstructorProps>, ...args: any[]);
|
|
93
|
+
|
|
94
|
+
_init(...args: any[]): void;
|
|
95
|
+
|
|
96
|
+
static ['new'](): App;
|
|
97
|
+
|
|
98
|
+
// Own methods of Midori.App
|
|
99
|
+
|
|
100
|
+
get_exec_path(): Gio.File | null;
|
|
101
|
+
set_exec_path(value?: Gio.File | null): void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
module Browser {
|
|
105
|
+
// Signal callback interfaces
|
|
106
|
+
|
|
107
|
+
interface DefaultTab {
|
|
108
|
+
(): boolean;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Constructor properties interface
|
|
112
|
+
|
|
113
|
+
interface ConstructorProps extends Gtk.ApplicationWindow.ConstructorProps {
|
|
114
|
+
web_context: WebKit2.WebContext;
|
|
115
|
+
webContext: WebKit2.WebContext;
|
|
116
|
+
is_loading: boolean;
|
|
117
|
+
isLoading: boolean;
|
|
118
|
+
uri: string;
|
|
119
|
+
tab: Tab;
|
|
120
|
+
trash: Gio.ListStore;
|
|
121
|
+
is_fullscreen: boolean;
|
|
122
|
+
isFullscreen: boolean;
|
|
123
|
+
is_locked: boolean;
|
|
124
|
+
isLocked: boolean;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
class Browser extends Gtk.ApplicationWindow {
|
|
129
|
+
static $gtype: GObject.GType<Browser>;
|
|
130
|
+
|
|
131
|
+
// Own properties of Midori.Browser
|
|
132
|
+
|
|
133
|
+
get web_context(): WebKit2.WebContext;
|
|
134
|
+
set web_context(val: WebKit2.WebContext);
|
|
135
|
+
get webContext(): WebKit2.WebContext;
|
|
136
|
+
set webContext(val: WebKit2.WebContext);
|
|
137
|
+
get is_loading(): boolean;
|
|
138
|
+
set is_loading(val: boolean);
|
|
139
|
+
get isLoading(): boolean;
|
|
140
|
+
set isLoading(val: boolean);
|
|
141
|
+
get uri(): string;
|
|
142
|
+
set uri(val: string);
|
|
143
|
+
get tab(): Tab;
|
|
144
|
+
set tab(val: Tab);
|
|
145
|
+
get trash(): Gio.ListStore;
|
|
146
|
+
set trash(val: Gio.ListStore);
|
|
147
|
+
get is_fullscreen(): boolean;
|
|
148
|
+
set is_fullscreen(val: boolean);
|
|
149
|
+
get isFullscreen(): boolean;
|
|
150
|
+
set isFullscreen(val: boolean);
|
|
151
|
+
get is_locked(): boolean;
|
|
152
|
+
set is_locked(val: boolean);
|
|
153
|
+
get isLocked(): boolean;
|
|
154
|
+
set isLocked(val: boolean);
|
|
155
|
+
|
|
156
|
+
// Own fields of Midori.Browser
|
|
157
|
+
|
|
158
|
+
tabs: Gtk.Stack;
|
|
159
|
+
overlay: Gtk.Overlay;
|
|
160
|
+
statusbar: Statusbar;
|
|
161
|
+
|
|
162
|
+
// Constructors of Midori.Browser
|
|
163
|
+
|
|
164
|
+
constructor(properties?: Partial<Browser.ConstructorProps>, ...args: any[]);
|
|
165
|
+
|
|
166
|
+
_init(...args: any[]): void;
|
|
167
|
+
|
|
168
|
+
static ['new'](app: App, is_locked: boolean): Browser;
|
|
169
|
+
// Conflicted with Gtk.ApplicationWindow.new
|
|
170
|
+
|
|
171
|
+
static ['new'](...args: never[]): any;
|
|
172
|
+
|
|
173
|
+
static incognito(app: App): Browser;
|
|
174
|
+
|
|
175
|
+
// Own signals of Midori.Browser
|
|
176
|
+
|
|
177
|
+
connect(id: string, callback: (...args: any[]) => any): number;
|
|
178
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
179
|
+
emit(id: string, ...args: any[]): void;
|
|
180
|
+
connect(signal: 'default-tab', callback: (_source: this) => boolean): number;
|
|
181
|
+
connect_after(signal: 'default-tab', callback: (_source: this) => boolean): number;
|
|
182
|
+
emit(signal: 'default-tab'): void;
|
|
183
|
+
|
|
184
|
+
// Own methods of Midori.Browser
|
|
185
|
+
|
|
186
|
+
add_button(button: Gtk.Button): void;
|
|
187
|
+
add_panel(widget: Gtk.Widget): void;
|
|
188
|
+
add(tab: Tab): void;
|
|
189
|
+
get_web_context(): WebKit2.WebContext;
|
|
190
|
+
set_web_context(value: WebKit2.WebContext): void;
|
|
191
|
+
get_is_loading(): boolean;
|
|
192
|
+
set_is_loading(value: boolean): void;
|
|
193
|
+
get_uri(): string | null;
|
|
194
|
+
set_uri(value?: string | null): void;
|
|
195
|
+
get_tab(): Tab | null;
|
|
196
|
+
set_tab(value?: Tab | null): void;
|
|
197
|
+
get_trash(): Gio.ListStore;
|
|
198
|
+
set_trash(value: Gio.ListStore): void;
|
|
199
|
+
get_is_fullscreen(): boolean;
|
|
200
|
+
set_is_fullscreen(value: boolean): void;
|
|
201
|
+
get_is_locked(): boolean;
|
|
202
|
+
set_is_locked(value: boolean): void;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
module ClearPrivateData {
|
|
206
|
+
// Constructor properties interface
|
|
207
|
+
|
|
208
|
+
interface ConstructorProps extends Gtk.Dialog.ConstructorProps {}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
class ClearPrivateData extends Gtk.Dialog {
|
|
212
|
+
static $gtype: GObject.GType<ClearPrivateData>;
|
|
213
|
+
|
|
214
|
+
// Constructors of Midori.ClearPrivateData
|
|
215
|
+
|
|
216
|
+
constructor(properties?: Partial<ClearPrivateData.ConstructorProps>, ...args: any[]);
|
|
217
|
+
|
|
218
|
+
_init(...args: any[]): void;
|
|
219
|
+
|
|
220
|
+
static ['new'](parent: Gtk.Window): ClearPrivateData;
|
|
221
|
+
// Conflicted with Gtk.Dialog.new
|
|
222
|
+
|
|
223
|
+
static ['new'](...args: never[]): any;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
module SuggestionItem {
|
|
227
|
+
// Constructor properties interface
|
|
228
|
+
|
|
229
|
+
interface ConstructorProps extends DatabaseItem.ConstructorProps {
|
|
230
|
+
search: string;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
class SuggestionItem extends DatabaseItem {
|
|
235
|
+
static $gtype: GObject.GType<SuggestionItem>;
|
|
236
|
+
|
|
237
|
+
// Own properties of Midori.SuggestionItem
|
|
238
|
+
|
|
239
|
+
get search(): string;
|
|
240
|
+
set search(val: string);
|
|
241
|
+
|
|
242
|
+
// Constructors of Midori.SuggestionItem
|
|
243
|
+
|
|
244
|
+
constructor(properties?: Partial<SuggestionItem.ConstructorProps>, ...args: any[]);
|
|
245
|
+
|
|
246
|
+
_init(...args: any[]): void;
|
|
247
|
+
|
|
248
|
+
static for_input(uri: string, title?: string | null): SuggestionItem;
|
|
249
|
+
|
|
250
|
+
// Own methods of Midori.SuggestionItem
|
|
251
|
+
|
|
252
|
+
get_search(): string | null;
|
|
253
|
+
set_search(value?: string | null): void;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
module Completion {
|
|
257
|
+
// Constructor properties interface
|
|
258
|
+
|
|
259
|
+
interface ConstructorProps<A extends GObject.Object = GObject.Object>
|
|
260
|
+
extends GObject.Object.ConstructorProps,
|
|
261
|
+
Gio.ListModel.ConstructorProps {
|
|
262
|
+
incognito: boolean;
|
|
263
|
+
key: string;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
class Completion<A extends GObject.Object = GObject.Object> extends GObject.Object implements Gio.ListModel<A> {
|
|
268
|
+
static $gtype: GObject.GType<Completion>;
|
|
269
|
+
|
|
270
|
+
// Own properties of Midori.Completion
|
|
271
|
+
|
|
272
|
+
get incognito(): boolean;
|
|
273
|
+
set incognito(val: boolean);
|
|
274
|
+
get key(): string;
|
|
275
|
+
set key(val: string);
|
|
276
|
+
|
|
277
|
+
// Constructors of Midori.Completion
|
|
278
|
+
|
|
279
|
+
constructor(properties?: Partial<Completion.ConstructorProps>, ...args: any[]);
|
|
280
|
+
|
|
281
|
+
_init(...args: any[]): void;
|
|
282
|
+
|
|
283
|
+
static ['new'](incognito: boolean): Completion;
|
|
284
|
+
|
|
285
|
+
// Own methods of Midori.Completion
|
|
286
|
+
|
|
287
|
+
add(model: Gio.ListModel): void;
|
|
288
|
+
get_incognito(): boolean;
|
|
289
|
+
set_incognito(value: boolean): void;
|
|
290
|
+
get_key(): string | null;
|
|
291
|
+
set_key(value?: string | null): void;
|
|
292
|
+
|
|
293
|
+
// Inherited methods
|
|
294
|
+
/**
|
|
295
|
+
* Gets the type of the items in `list`.
|
|
296
|
+
*
|
|
297
|
+
* All items returned from g_list_model_get_item() are of the type
|
|
298
|
+
* returned by this function, or a subtype, or if the type is an
|
|
299
|
+
* interface, they are an implementation of that interface.
|
|
300
|
+
*
|
|
301
|
+
* The item type of a #GListModel can not change during the life of the
|
|
302
|
+
* model.
|
|
303
|
+
* @returns the #GType of the items contained in @list.
|
|
304
|
+
*/
|
|
305
|
+
get_item_type(): GObject.GType;
|
|
306
|
+
/**
|
|
307
|
+
* Gets the number of items in `list`.
|
|
308
|
+
*
|
|
309
|
+
* Depending on the model implementation, calling this function may be
|
|
310
|
+
* less efficient than iterating the list with increasing values for
|
|
311
|
+
* `position` until g_list_model_get_item() returns %NULL.
|
|
312
|
+
* @returns the number of items in @list.
|
|
313
|
+
*/
|
|
314
|
+
get_n_items(): number;
|
|
315
|
+
/**
|
|
316
|
+
* Get the item at `position`.
|
|
317
|
+
*
|
|
318
|
+
* If `position` is greater than the number of items in `list,` %NULL is
|
|
319
|
+
* returned.
|
|
320
|
+
*
|
|
321
|
+
* %NULL is never returned for an index that is smaller than the length
|
|
322
|
+
* of the list.
|
|
323
|
+
*
|
|
324
|
+
* This function is meant to be used by language bindings in place
|
|
325
|
+
* of g_list_model_get_item().
|
|
326
|
+
*
|
|
327
|
+
* See also: g_list_model_get_n_items()
|
|
328
|
+
* @param position the position of the item to fetch
|
|
329
|
+
* @returns the object at @position.
|
|
330
|
+
*/
|
|
331
|
+
get_item(position: number): A | null;
|
|
332
|
+
/**
|
|
333
|
+
* Emits the #GListModel::items-changed signal on `list`.
|
|
334
|
+
*
|
|
335
|
+
* This function should only be called by classes implementing
|
|
336
|
+
* #GListModel. It has to be called after the internal representation
|
|
337
|
+
* of `list` has been updated, because handlers connected to this signal
|
|
338
|
+
* might query the new state of the list.
|
|
339
|
+
*
|
|
340
|
+
* Implementations must only make changes to the model (as visible to
|
|
341
|
+
* its consumer) in places that will not cause problems for that
|
|
342
|
+
* consumer. For models that are driven directly by a write API (such
|
|
343
|
+
* as #GListStore), changes can be reported in response to uses of that
|
|
344
|
+
* API. For models that represent remote data, changes should only be
|
|
345
|
+
* made from a fresh mainloop dispatch. It is particularly not
|
|
346
|
+
* permitted to make changes in response to a call to the #GListModel
|
|
347
|
+
* consumer API.
|
|
348
|
+
*
|
|
349
|
+
* Stated another way: in general, it is assumed that code making a
|
|
350
|
+
* series of accesses to the model via the API, without returning to the
|
|
351
|
+
* mainloop, and without calling other code, will continue to view the
|
|
352
|
+
* same contents of the model.
|
|
353
|
+
* @param position the position at which @list changed
|
|
354
|
+
* @param removed the number of items removed
|
|
355
|
+
* @param added the number of items added
|
|
356
|
+
*/
|
|
357
|
+
items_changed(position: number, removed: number, added: number): void;
|
|
358
|
+
/**
|
|
359
|
+
* Get the item at `position`. If `position` is greater than the number of
|
|
360
|
+
* items in `list,` %NULL is returned.
|
|
361
|
+
*
|
|
362
|
+
* %NULL is never returned for an index that is smaller than the length
|
|
363
|
+
* of the list. See g_list_model_get_n_items().
|
|
364
|
+
*
|
|
365
|
+
* The same #GObject instance may not appear more than once in a #GListModel.
|
|
366
|
+
* @param position the position of the item to fetch
|
|
367
|
+
*/
|
|
368
|
+
vfunc_get_item(position: number): A | null;
|
|
369
|
+
/**
|
|
370
|
+
* Gets the type of the items in `list`.
|
|
371
|
+
*
|
|
372
|
+
* All items returned from g_list_model_get_item() are of the type
|
|
373
|
+
* returned by this function, or a subtype, or if the type is an
|
|
374
|
+
* interface, they are an implementation of that interface.
|
|
375
|
+
*
|
|
376
|
+
* The item type of a #GListModel can not change during the life of the
|
|
377
|
+
* model.
|
|
378
|
+
*/
|
|
379
|
+
vfunc_get_item_type(): GObject.GType;
|
|
380
|
+
/**
|
|
381
|
+
* Gets the number of items in `list`.
|
|
382
|
+
*
|
|
383
|
+
* Depending on the model implementation, calling this function may be
|
|
384
|
+
* less efficient than iterating the list with increasing values for
|
|
385
|
+
* `position` until g_list_model_get_item() returns %NULL.
|
|
386
|
+
*/
|
|
387
|
+
vfunc_get_n_items(): number;
|
|
388
|
+
/**
|
|
389
|
+
* Creates a binding between `source_property` on `source` and `target_property`
|
|
390
|
+
* on `target`.
|
|
391
|
+
*
|
|
392
|
+
* Whenever the `source_property` is changed the `target_property` is
|
|
393
|
+
* updated using the same value. For instance:
|
|
394
|
+
*
|
|
395
|
+
*
|
|
396
|
+
* ```c
|
|
397
|
+
* g_object_bind_property (action, "active", widget, "sensitive", 0);
|
|
398
|
+
* ```
|
|
399
|
+
*
|
|
400
|
+
*
|
|
401
|
+
* Will result in the "sensitive" property of the widget #GObject instance to be
|
|
402
|
+
* updated with the same value of the "active" property of the action #GObject
|
|
403
|
+
* instance.
|
|
404
|
+
*
|
|
405
|
+
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
|
|
406
|
+
* if `target_property` on `target` changes then the `source_property` on `source`
|
|
407
|
+
* will be updated as well.
|
|
408
|
+
*
|
|
409
|
+
* The binding will automatically be removed when either the `source` or the
|
|
410
|
+
* `target` instances are finalized. To remove the binding without affecting the
|
|
411
|
+
* `source` and the `target` you can just call g_object_unref() on the returned
|
|
412
|
+
* #GBinding instance.
|
|
413
|
+
*
|
|
414
|
+
* Removing the binding by calling g_object_unref() on it must only be done if
|
|
415
|
+
* the binding, `source` and `target` are only used from a single thread and it
|
|
416
|
+
* is clear that both `source` and `target` outlive the binding. Especially it
|
|
417
|
+
* is not safe to rely on this if the binding, `source` or `target` can be
|
|
418
|
+
* finalized from different threads. Keep another reference to the binding and
|
|
419
|
+
* use g_binding_unbind() instead to be on the safe side.
|
|
420
|
+
*
|
|
421
|
+
* A #GObject can have multiple bindings.
|
|
422
|
+
* @param source_property the property on @source to bind
|
|
423
|
+
* @param target the target #GObject
|
|
424
|
+
* @param target_property the property on @target to bind
|
|
425
|
+
* @param flags flags to pass to #GBinding
|
|
426
|
+
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
|
|
427
|
+
*/
|
|
428
|
+
bind_property(
|
|
429
|
+
source_property: string,
|
|
430
|
+
target: GObject.Object,
|
|
431
|
+
target_property: string,
|
|
432
|
+
flags: GObject.BindingFlags,
|
|
433
|
+
): GObject.Binding;
|
|
434
|
+
/**
|
|
435
|
+
* Complete version of g_object_bind_property().
|
|
436
|
+
*
|
|
437
|
+
* Creates a binding between `source_property` on `source` and `target_property`
|
|
438
|
+
* on `target,` allowing you to set the transformation functions to be used by
|
|
439
|
+
* the binding.
|
|
440
|
+
*
|
|
441
|
+
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
|
|
442
|
+
* if `target_property` on `target` changes then the `source_property` on `source`
|
|
443
|
+
* will be updated as well. The `transform_from` function is only used in case
|
|
444
|
+
* of bidirectional bindings, otherwise it will be ignored
|
|
445
|
+
*
|
|
446
|
+
* The binding will automatically be removed when either the `source` or the
|
|
447
|
+
* `target` instances are finalized. This will release the reference that is
|
|
448
|
+
* being held on the #GBinding instance; if you want to hold on to the
|
|
449
|
+
* #GBinding instance, you will need to hold a reference to it.
|
|
450
|
+
*
|
|
451
|
+
* To remove the binding, call g_binding_unbind().
|
|
452
|
+
*
|
|
453
|
+
* A #GObject can have multiple bindings.
|
|
454
|
+
*
|
|
455
|
+
* The same `user_data` parameter will be used for both `transform_to`
|
|
456
|
+
* and `transform_from` transformation functions; the `notify` function will
|
|
457
|
+
* be called once, when the binding is removed. If you need different data
|
|
458
|
+
* for each transformation function, please use
|
|
459
|
+
* g_object_bind_property_with_closures() instead.
|
|
460
|
+
* @param source_property the property on @source to bind
|
|
461
|
+
* @param target the target #GObject
|
|
462
|
+
* @param target_property the property on @target to bind
|
|
463
|
+
* @param flags flags to pass to #GBinding
|
|
464
|
+
* @param transform_to the transformation function from the @source to the @target, or %NULL to use the default
|
|
465
|
+
* @param transform_from the transformation function from the @target to the @source, or %NULL to use the default
|
|
466
|
+
* @param notify a function to call when disposing the binding, to free resources used by the transformation functions, or %NULL if not required
|
|
467
|
+
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
|
|
468
|
+
*/
|
|
469
|
+
bind_property_full(
|
|
470
|
+
source_property: string,
|
|
471
|
+
target: GObject.Object,
|
|
472
|
+
target_property: string,
|
|
473
|
+
flags: GObject.BindingFlags,
|
|
474
|
+
transform_to?: GObject.BindingTransformFunc | null,
|
|
475
|
+
transform_from?: GObject.BindingTransformFunc | null,
|
|
476
|
+
notify?: GLib.DestroyNotify | null,
|
|
477
|
+
): GObject.Binding;
|
|
478
|
+
// Conflicted with GObject.Object.bind_property_full
|
|
479
|
+
bind_property_full(...args: never[]): any;
|
|
480
|
+
/**
|
|
481
|
+
* This function is intended for #GObject implementations to re-enforce
|
|
482
|
+
* a [floating][floating-ref] object reference. Doing this is seldom
|
|
483
|
+
* required: all #GInitiallyUnowneds are created with a floating reference
|
|
484
|
+
* which usually just needs to be sunken by calling g_object_ref_sink().
|
|
485
|
+
*/
|
|
486
|
+
force_floating(): void;
|
|
487
|
+
/**
|
|
488
|
+
* Increases the freeze count on `object`. If the freeze count is
|
|
489
|
+
* non-zero, the emission of "notify" signals on `object` is
|
|
490
|
+
* stopped. The signals are queued until the freeze count is decreased
|
|
491
|
+
* to zero. Duplicate notifications are squashed so that at most one
|
|
492
|
+
* #GObject::notify signal is emitted for each property modified while the
|
|
493
|
+
* object is frozen.
|
|
494
|
+
*
|
|
495
|
+
* This is necessary for accessors that modify multiple properties to prevent
|
|
496
|
+
* premature notification while the object is still being modified.
|
|
497
|
+
*/
|
|
498
|
+
freeze_notify(): void;
|
|
499
|
+
/**
|
|
500
|
+
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
501
|
+
* @param key name of the key for that association
|
|
502
|
+
* @returns the data if found, or %NULL if no such data exists.
|
|
503
|
+
*/
|
|
504
|
+
get_data(key: string): any | null;
|
|
505
|
+
get_property(property_name: string): any;
|
|
506
|
+
/**
|
|
507
|
+
* This function gets back user data pointers stored via
|
|
508
|
+
* g_object_set_qdata().
|
|
509
|
+
* @param quark A #GQuark, naming the user data pointer
|
|
510
|
+
* @returns The user data pointer set, or %NULL
|
|
511
|
+
*/
|
|
512
|
+
get_qdata(quark: GLib.Quark): any | null;
|
|
513
|
+
/**
|
|
514
|
+
* Gets `n_properties` properties for an `object`.
|
|
515
|
+
* Obtained properties will be set to `values`. All properties must be valid.
|
|
516
|
+
* Warnings will be emitted and undefined behaviour may result if invalid
|
|
517
|
+
* properties are passed in.
|
|
518
|
+
* @param names the names of each property to get
|
|
519
|
+
* @param values the values of each property to get
|
|
520
|
+
*/
|
|
521
|
+
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
522
|
+
/**
|
|
523
|
+
* Checks whether `object` has a [floating][floating-ref] reference.
|
|
524
|
+
* @returns %TRUE if @object has a floating reference
|
|
525
|
+
*/
|
|
526
|
+
is_floating(): boolean;
|
|
527
|
+
/**
|
|
528
|
+
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
529
|
+
*
|
|
530
|
+
* When possible, eg. when signaling a property change from within the class
|
|
531
|
+
* that registered the property, you should use g_object_notify_by_pspec()
|
|
532
|
+
* instead.
|
|
533
|
+
*
|
|
534
|
+
* Note that emission of the notify signal may be blocked with
|
|
535
|
+
* g_object_freeze_notify(). In this case, the signal emissions are queued
|
|
536
|
+
* and will be emitted (in reverse order) when g_object_thaw_notify() is
|
|
537
|
+
* called.
|
|
538
|
+
* @param property_name the name of a property installed on the class of @object.
|
|
539
|
+
*/
|
|
540
|
+
notify(property_name: string): void;
|
|
541
|
+
/**
|
|
542
|
+
* Emits a "notify" signal for the property specified by `pspec` on `object`.
|
|
543
|
+
*
|
|
544
|
+
* This function omits the property name lookup, hence it is faster than
|
|
545
|
+
* g_object_notify().
|
|
546
|
+
*
|
|
547
|
+
* One way to avoid using g_object_notify() from within the
|
|
548
|
+
* class that registered the properties, and using g_object_notify_by_pspec()
|
|
549
|
+
* instead, is to store the GParamSpec used with
|
|
550
|
+
* g_object_class_install_property() inside a static array, e.g.:
|
|
551
|
+
*
|
|
552
|
+
*
|
|
553
|
+
* ```c
|
|
554
|
+
* typedef enum
|
|
555
|
+
* {
|
|
556
|
+
* PROP_FOO = 1,
|
|
557
|
+
* PROP_LAST
|
|
558
|
+
* } MyObjectProperty;
|
|
559
|
+
*
|
|
560
|
+
* static GParamSpec *properties[PROP_LAST];
|
|
561
|
+
*
|
|
562
|
+
* static void
|
|
563
|
+
* my_object_class_init (MyObjectClass *klass)
|
|
564
|
+
* {
|
|
565
|
+
* properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
|
|
566
|
+
* 0, 100,
|
|
567
|
+
* 50,
|
|
568
|
+
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
|
569
|
+
* g_object_class_install_property (gobject_class,
|
|
570
|
+
* PROP_FOO,
|
|
571
|
+
* properties[PROP_FOO]);
|
|
572
|
+
* }
|
|
573
|
+
* ```
|
|
574
|
+
*
|
|
575
|
+
*
|
|
576
|
+
* and then notify a change on the "foo" property with:
|
|
577
|
+
*
|
|
578
|
+
*
|
|
579
|
+
* ```c
|
|
580
|
+
* g_object_notify_by_pspec (self, properties[PROP_FOO]);
|
|
581
|
+
* ```
|
|
582
|
+
*
|
|
583
|
+
* @param pspec the #GParamSpec of a property installed on the class of @object.
|
|
584
|
+
*/
|
|
585
|
+
notify_by_pspec(pspec: GObject.ParamSpec): void;
|
|
586
|
+
/**
|
|
587
|
+
* Increases the reference count of `object`.
|
|
588
|
+
*
|
|
589
|
+
* Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
|
|
590
|
+
* of `object` will be propagated to the return type (using the GCC typeof()
|
|
591
|
+
* extension), so any casting the caller needs to do on the return type must be
|
|
592
|
+
* explicit.
|
|
593
|
+
* @returns the same @object
|
|
594
|
+
*/
|
|
595
|
+
ref(): GObject.Object;
|
|
596
|
+
/**
|
|
597
|
+
* Increase the reference count of `object,` and possibly remove the
|
|
598
|
+
* [floating][floating-ref] reference, if `object` has a floating reference.
|
|
599
|
+
*
|
|
600
|
+
* In other words, if the object is floating, then this call "assumes
|
|
601
|
+
* ownership" of the floating reference, converting it to a normal
|
|
602
|
+
* reference by clearing the floating flag while leaving the reference
|
|
603
|
+
* count unchanged. If the object is not floating, then this call
|
|
604
|
+
* adds a new normal reference increasing the reference count by one.
|
|
605
|
+
*
|
|
606
|
+
* Since GLib 2.56, the type of `object` will be propagated to the return type
|
|
607
|
+
* under the same conditions as for g_object_ref().
|
|
608
|
+
* @returns @object
|
|
609
|
+
*/
|
|
610
|
+
ref_sink(): GObject.Object;
|
|
611
|
+
/**
|
|
612
|
+
* Releases all references to other objects. This can be used to break
|
|
613
|
+
* reference cycles.
|
|
614
|
+
*
|
|
615
|
+
* This function should only be called from object system implementations.
|
|
616
|
+
*/
|
|
617
|
+
run_dispose(): void;
|
|
618
|
+
/**
|
|
619
|
+
* Each object carries around a table of associations from
|
|
620
|
+
* strings to pointers. This function lets you set an association.
|
|
621
|
+
*
|
|
622
|
+
* If the object already had an association with that name,
|
|
623
|
+
* the old association will be destroyed.
|
|
624
|
+
*
|
|
625
|
+
* Internally, the `key` is converted to a #GQuark using g_quark_from_string().
|
|
626
|
+
* This means a copy of `key` is kept permanently (even after `object` has been
|
|
627
|
+
* finalized) — so it is recommended to only use a small, bounded set of values
|
|
628
|
+
* for `key` in your program, to avoid the #GQuark storage growing unbounded.
|
|
629
|
+
* @param key name of the key
|
|
630
|
+
* @param data data to associate with that key
|
|
631
|
+
*/
|
|
632
|
+
set_data(key: string, data?: any | null): void;
|
|
633
|
+
set_property(property_name: string, value: any): void;
|
|
634
|
+
/**
|
|
635
|
+
* Remove a specified datum from the object's data associations,
|
|
636
|
+
* without invoking the association's destroy handler.
|
|
637
|
+
* @param key name of the key
|
|
638
|
+
* @returns the data if found, or %NULL if no such data exists.
|
|
639
|
+
*/
|
|
640
|
+
steal_data(key: string): any | null;
|
|
641
|
+
/**
|
|
642
|
+
* This function gets back user data pointers stored via
|
|
643
|
+
* g_object_set_qdata() and removes the `data` from object
|
|
644
|
+
* without invoking its destroy() function (if any was
|
|
645
|
+
* set).
|
|
646
|
+
* Usually, calling this function is only required to update
|
|
647
|
+
* user data pointers with a destroy notifier, for example:
|
|
648
|
+
*
|
|
649
|
+
* ```c
|
|
650
|
+
* void
|
|
651
|
+
* object_add_to_user_list (GObject *object,
|
|
652
|
+
* const gchar *new_string)
|
|
653
|
+
* {
|
|
654
|
+
* // the quark, naming the object data
|
|
655
|
+
* GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
|
|
656
|
+
* // retrieve the old string list
|
|
657
|
+
* GList *list = g_object_steal_qdata (object, quark_string_list);
|
|
658
|
+
*
|
|
659
|
+
* // prepend new string
|
|
660
|
+
* list = g_list_prepend (list, g_strdup (new_string));
|
|
661
|
+
* // this changed 'list', so we need to set it again
|
|
662
|
+
* g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
|
|
663
|
+
* }
|
|
664
|
+
* static void
|
|
665
|
+
* free_string_list (gpointer data)
|
|
666
|
+
* {
|
|
667
|
+
* GList *node, *list = data;
|
|
668
|
+
*
|
|
669
|
+
* for (node = list; node; node = node->next)
|
|
670
|
+
* g_free (node->data);
|
|
671
|
+
* g_list_free (list);
|
|
672
|
+
* }
|
|
673
|
+
* ```
|
|
674
|
+
*
|
|
675
|
+
* Using g_object_get_qdata() in the above example, instead of
|
|
676
|
+
* g_object_steal_qdata() would have left the destroy function set,
|
|
677
|
+
* and thus the partial string list would have been freed upon
|
|
678
|
+
* g_object_set_qdata_full().
|
|
679
|
+
* @param quark A #GQuark, naming the user data pointer
|
|
680
|
+
* @returns The user data pointer set, or %NULL
|
|
681
|
+
*/
|
|
682
|
+
steal_qdata(quark: GLib.Quark): any | null;
|
|
683
|
+
/**
|
|
684
|
+
* Reverts the effect of a previous call to
|
|
685
|
+
* g_object_freeze_notify(). The freeze count is decreased on `object`
|
|
686
|
+
* and when it reaches zero, queued "notify" signals are emitted.
|
|
687
|
+
*
|
|
688
|
+
* Duplicate notifications for each property are squashed so that at most one
|
|
689
|
+
* #GObject::notify signal is emitted for each property, in the reverse order
|
|
690
|
+
* in which they have been queued.
|
|
691
|
+
*
|
|
692
|
+
* It is an error to call this function when the freeze count is zero.
|
|
693
|
+
*/
|
|
694
|
+
thaw_notify(): void;
|
|
695
|
+
/**
|
|
696
|
+
* Decreases the reference count of `object`. When its reference count
|
|
697
|
+
* drops to 0, the object is finalized (i.e. its memory is freed).
|
|
698
|
+
*
|
|
699
|
+
* If the pointer to the #GObject may be reused in future (for example, if it is
|
|
700
|
+
* an instance variable of another object), it is recommended to clear the
|
|
701
|
+
* pointer to %NULL rather than retain a dangling pointer to a potentially
|
|
702
|
+
* invalid #GObject instance. Use g_clear_object() for this.
|
|
703
|
+
*/
|
|
704
|
+
unref(): void;
|
|
705
|
+
/**
|
|
706
|
+
* This function essentially limits the life time of the `closure` to
|
|
707
|
+
* the life time of the object. That is, when the object is finalized,
|
|
708
|
+
* the `closure` is invalidated by calling g_closure_invalidate() on
|
|
709
|
+
* it, in order to prevent invocations of the closure with a finalized
|
|
710
|
+
* (nonexisting) object. Also, g_object_ref() and g_object_unref() are
|
|
711
|
+
* added as marshal guards to the `closure,` to ensure that an extra
|
|
712
|
+
* reference count is held on `object` during invocation of the
|
|
713
|
+
* `closure`. Usually, this function will be called on closures that
|
|
714
|
+
* use this `object` as closure data.
|
|
715
|
+
* @param closure #GClosure to watch
|
|
716
|
+
*/
|
|
717
|
+
watch_closure(closure: GObject.Closure): void;
|
|
718
|
+
vfunc_constructed(): void;
|
|
719
|
+
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
720
|
+
vfunc_dispose(): void;
|
|
721
|
+
vfunc_finalize(): void;
|
|
722
|
+
vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
723
|
+
/**
|
|
724
|
+
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
725
|
+
*
|
|
726
|
+
* When possible, eg. when signaling a property change from within the class
|
|
727
|
+
* that registered the property, you should use g_object_notify_by_pspec()
|
|
728
|
+
* instead.
|
|
729
|
+
*
|
|
730
|
+
* Note that emission of the notify signal may be blocked with
|
|
731
|
+
* g_object_freeze_notify(). In this case, the signal emissions are queued
|
|
732
|
+
* and will be emitted (in reverse order) when g_object_thaw_notify() is
|
|
733
|
+
* called.
|
|
734
|
+
* @param pspec
|
|
735
|
+
*/
|
|
736
|
+
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
737
|
+
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
738
|
+
disconnect(id: number): void;
|
|
739
|
+
set(properties: { [key: string]: any }): void;
|
|
740
|
+
block_signal_handler(id: number): any;
|
|
741
|
+
unblock_signal_handler(id: number): any;
|
|
742
|
+
stop_emission_by_name(detailedName: string): any;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
module DatabaseStatement {
|
|
746
|
+
// Constructor properties interface
|
|
747
|
+
|
|
748
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps, Gio.Initable.ConstructorProps {
|
|
749
|
+
database: Database;
|
|
750
|
+
query: string;
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
class DatabaseStatement extends GObject.Object implements Gio.Initable {
|
|
755
|
+
static $gtype: GObject.GType<DatabaseStatement>;
|
|
756
|
+
|
|
757
|
+
// Own properties of Midori.DatabaseStatement
|
|
758
|
+
|
|
759
|
+
get database(): Database;
|
|
760
|
+
set database(val: Database);
|
|
761
|
+
get query(): string;
|
|
762
|
+
set query(val: string);
|
|
763
|
+
|
|
764
|
+
// Constructors of Midori.DatabaseStatement
|
|
765
|
+
|
|
766
|
+
constructor(properties?: Partial<DatabaseStatement.ConstructorProps>, ...args: any[]);
|
|
767
|
+
|
|
768
|
+
_init(...args: any[]): void;
|
|
769
|
+
|
|
770
|
+
static ['new'](database: Database, query: string): DatabaseStatement;
|
|
771
|
+
|
|
772
|
+
// Own virtual methods of Midori.DatabaseStatement
|
|
773
|
+
|
|
774
|
+
vfunc_init(cancellable?: Gio.Cancellable | null): boolean;
|
|
775
|
+
|
|
776
|
+
// Own methods of Midori.DatabaseStatement
|
|
777
|
+
|
|
778
|
+
init(cancellable?: Gio.Cancellable | null): boolean;
|
|
779
|
+
exec(): boolean;
|
|
780
|
+
step(): boolean;
|
|
781
|
+
row_id(): number;
|
|
782
|
+
get_string(name: string): string | null;
|
|
783
|
+
get_int64(name: string): number;
|
|
784
|
+
get_double(name: string): number;
|
|
785
|
+
get_database(): Database | null;
|
|
786
|
+
set_database(value?: Database | null): void;
|
|
787
|
+
get_query(): string | null;
|
|
788
|
+
set_query(value?: string | null): void;
|
|
789
|
+
|
|
790
|
+
// Inherited methods
|
|
791
|
+
/**
|
|
792
|
+
* Creates a binding between `source_property` on `source` and `target_property`
|
|
793
|
+
* on `target`.
|
|
794
|
+
*
|
|
795
|
+
* Whenever the `source_property` is changed the `target_property` is
|
|
796
|
+
* updated using the same value. For instance:
|
|
797
|
+
*
|
|
798
|
+
*
|
|
799
|
+
* ```c
|
|
800
|
+
* g_object_bind_property (action, "active", widget, "sensitive", 0);
|
|
801
|
+
* ```
|
|
802
|
+
*
|
|
803
|
+
*
|
|
804
|
+
* Will result in the "sensitive" property of the widget #GObject instance to be
|
|
805
|
+
* updated with the same value of the "active" property of the action #GObject
|
|
806
|
+
* instance.
|
|
807
|
+
*
|
|
808
|
+
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
|
|
809
|
+
* if `target_property` on `target` changes then the `source_property` on `source`
|
|
810
|
+
* will be updated as well.
|
|
811
|
+
*
|
|
812
|
+
* The binding will automatically be removed when either the `source` or the
|
|
813
|
+
* `target` instances are finalized. To remove the binding without affecting the
|
|
814
|
+
* `source` and the `target` you can just call g_object_unref() on the returned
|
|
815
|
+
* #GBinding instance.
|
|
816
|
+
*
|
|
817
|
+
* Removing the binding by calling g_object_unref() on it must only be done if
|
|
818
|
+
* the binding, `source` and `target` are only used from a single thread and it
|
|
819
|
+
* is clear that both `source` and `target` outlive the binding. Especially it
|
|
820
|
+
* is not safe to rely on this if the binding, `source` or `target` can be
|
|
821
|
+
* finalized from different threads. Keep another reference to the binding and
|
|
822
|
+
* use g_binding_unbind() instead to be on the safe side.
|
|
823
|
+
*
|
|
824
|
+
* A #GObject can have multiple bindings.
|
|
825
|
+
* @param source_property the property on @source to bind
|
|
826
|
+
* @param target the target #GObject
|
|
827
|
+
* @param target_property the property on @target to bind
|
|
828
|
+
* @param flags flags to pass to #GBinding
|
|
829
|
+
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
|
|
830
|
+
*/
|
|
831
|
+
bind_property(
|
|
832
|
+
source_property: string,
|
|
833
|
+
target: GObject.Object,
|
|
834
|
+
target_property: string,
|
|
835
|
+
flags: GObject.BindingFlags,
|
|
836
|
+
): GObject.Binding;
|
|
837
|
+
/**
|
|
838
|
+
* Complete version of g_object_bind_property().
|
|
839
|
+
*
|
|
840
|
+
* Creates a binding between `source_property` on `source` and `target_property`
|
|
841
|
+
* on `target,` allowing you to set the transformation functions to be used by
|
|
842
|
+
* the binding.
|
|
843
|
+
*
|
|
844
|
+
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
|
|
845
|
+
* if `target_property` on `target` changes then the `source_property` on `source`
|
|
846
|
+
* will be updated as well. The `transform_from` function is only used in case
|
|
847
|
+
* of bidirectional bindings, otherwise it will be ignored
|
|
848
|
+
*
|
|
849
|
+
* The binding will automatically be removed when either the `source` or the
|
|
850
|
+
* `target` instances are finalized. This will release the reference that is
|
|
851
|
+
* being held on the #GBinding instance; if you want to hold on to the
|
|
852
|
+
* #GBinding instance, you will need to hold a reference to it.
|
|
853
|
+
*
|
|
854
|
+
* To remove the binding, call g_binding_unbind().
|
|
855
|
+
*
|
|
856
|
+
* A #GObject can have multiple bindings.
|
|
857
|
+
*
|
|
858
|
+
* The same `user_data` parameter will be used for both `transform_to`
|
|
859
|
+
* and `transform_from` transformation functions; the `notify` function will
|
|
860
|
+
* be called once, when the binding is removed. If you need different data
|
|
861
|
+
* for each transformation function, please use
|
|
862
|
+
* g_object_bind_property_with_closures() instead.
|
|
863
|
+
* @param source_property the property on @source to bind
|
|
864
|
+
* @param target the target #GObject
|
|
865
|
+
* @param target_property the property on @target to bind
|
|
866
|
+
* @param flags flags to pass to #GBinding
|
|
867
|
+
* @param transform_to the transformation function from the @source to the @target, or %NULL to use the default
|
|
868
|
+
* @param transform_from the transformation function from the @target to the @source, or %NULL to use the default
|
|
869
|
+
* @param notify a function to call when disposing the binding, to free resources used by the transformation functions, or %NULL if not required
|
|
870
|
+
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
|
|
871
|
+
*/
|
|
872
|
+
bind_property_full(
|
|
873
|
+
source_property: string,
|
|
874
|
+
target: GObject.Object,
|
|
875
|
+
target_property: string,
|
|
876
|
+
flags: GObject.BindingFlags,
|
|
877
|
+
transform_to?: GObject.BindingTransformFunc | null,
|
|
878
|
+
transform_from?: GObject.BindingTransformFunc | null,
|
|
879
|
+
notify?: GLib.DestroyNotify | null,
|
|
880
|
+
): GObject.Binding;
|
|
881
|
+
// Conflicted with GObject.Object.bind_property_full
|
|
882
|
+
bind_property_full(...args: never[]): any;
|
|
883
|
+
/**
|
|
884
|
+
* This function is intended for #GObject implementations to re-enforce
|
|
885
|
+
* a [floating][floating-ref] object reference. Doing this is seldom
|
|
886
|
+
* required: all #GInitiallyUnowneds are created with a floating reference
|
|
887
|
+
* which usually just needs to be sunken by calling g_object_ref_sink().
|
|
888
|
+
*/
|
|
889
|
+
force_floating(): void;
|
|
890
|
+
/**
|
|
891
|
+
* Increases the freeze count on `object`. If the freeze count is
|
|
892
|
+
* non-zero, the emission of "notify" signals on `object` is
|
|
893
|
+
* stopped. The signals are queued until the freeze count is decreased
|
|
894
|
+
* to zero. Duplicate notifications are squashed so that at most one
|
|
895
|
+
* #GObject::notify signal is emitted for each property modified while the
|
|
896
|
+
* object is frozen.
|
|
897
|
+
*
|
|
898
|
+
* This is necessary for accessors that modify multiple properties to prevent
|
|
899
|
+
* premature notification while the object is still being modified.
|
|
900
|
+
*/
|
|
901
|
+
freeze_notify(): void;
|
|
902
|
+
/**
|
|
903
|
+
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
904
|
+
* @param key name of the key for that association
|
|
905
|
+
* @returns the data if found, or %NULL if no such data exists.
|
|
906
|
+
*/
|
|
907
|
+
get_data(key: string): any | null;
|
|
908
|
+
get_property(property_name: string): any;
|
|
909
|
+
/**
|
|
910
|
+
* This function gets back user data pointers stored via
|
|
911
|
+
* g_object_set_qdata().
|
|
912
|
+
* @param quark A #GQuark, naming the user data pointer
|
|
913
|
+
* @returns The user data pointer set, or %NULL
|
|
914
|
+
*/
|
|
915
|
+
get_qdata(quark: GLib.Quark): any | null;
|
|
916
|
+
/**
|
|
917
|
+
* Gets `n_properties` properties for an `object`.
|
|
918
|
+
* Obtained properties will be set to `values`. All properties must be valid.
|
|
919
|
+
* Warnings will be emitted and undefined behaviour may result if invalid
|
|
920
|
+
* properties are passed in.
|
|
921
|
+
* @param names the names of each property to get
|
|
922
|
+
* @param values the values of each property to get
|
|
923
|
+
*/
|
|
924
|
+
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
925
|
+
/**
|
|
926
|
+
* Checks whether `object` has a [floating][floating-ref] reference.
|
|
927
|
+
* @returns %TRUE if @object has a floating reference
|
|
928
|
+
*/
|
|
929
|
+
is_floating(): boolean;
|
|
930
|
+
/**
|
|
931
|
+
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
932
|
+
*
|
|
933
|
+
* When possible, eg. when signaling a property change from within the class
|
|
934
|
+
* that registered the property, you should use g_object_notify_by_pspec()
|
|
935
|
+
* instead.
|
|
936
|
+
*
|
|
937
|
+
* Note that emission of the notify signal may be blocked with
|
|
938
|
+
* g_object_freeze_notify(). In this case, the signal emissions are queued
|
|
939
|
+
* and will be emitted (in reverse order) when g_object_thaw_notify() is
|
|
940
|
+
* called.
|
|
941
|
+
* @param property_name the name of a property installed on the class of @object.
|
|
942
|
+
*/
|
|
943
|
+
notify(property_name: string): void;
|
|
944
|
+
/**
|
|
945
|
+
* Emits a "notify" signal for the property specified by `pspec` on `object`.
|
|
946
|
+
*
|
|
947
|
+
* This function omits the property name lookup, hence it is faster than
|
|
948
|
+
* g_object_notify().
|
|
949
|
+
*
|
|
950
|
+
* One way to avoid using g_object_notify() from within the
|
|
951
|
+
* class that registered the properties, and using g_object_notify_by_pspec()
|
|
952
|
+
* instead, is to store the GParamSpec used with
|
|
953
|
+
* g_object_class_install_property() inside a static array, e.g.:
|
|
954
|
+
*
|
|
955
|
+
*
|
|
956
|
+
* ```c
|
|
957
|
+
* typedef enum
|
|
958
|
+
* {
|
|
959
|
+
* PROP_FOO = 1,
|
|
960
|
+
* PROP_LAST
|
|
961
|
+
* } MyObjectProperty;
|
|
962
|
+
*
|
|
963
|
+
* static GParamSpec *properties[PROP_LAST];
|
|
964
|
+
*
|
|
965
|
+
* static void
|
|
966
|
+
* my_object_class_init (MyObjectClass *klass)
|
|
967
|
+
* {
|
|
968
|
+
* properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
|
|
969
|
+
* 0, 100,
|
|
970
|
+
* 50,
|
|
971
|
+
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
|
972
|
+
* g_object_class_install_property (gobject_class,
|
|
973
|
+
* PROP_FOO,
|
|
974
|
+
* properties[PROP_FOO]);
|
|
975
|
+
* }
|
|
976
|
+
* ```
|
|
977
|
+
*
|
|
978
|
+
*
|
|
979
|
+
* and then notify a change on the "foo" property with:
|
|
980
|
+
*
|
|
981
|
+
*
|
|
982
|
+
* ```c
|
|
983
|
+
* g_object_notify_by_pspec (self, properties[PROP_FOO]);
|
|
984
|
+
* ```
|
|
985
|
+
*
|
|
986
|
+
* @param pspec the #GParamSpec of a property installed on the class of @object.
|
|
987
|
+
*/
|
|
988
|
+
notify_by_pspec(pspec: GObject.ParamSpec): void;
|
|
989
|
+
/**
|
|
990
|
+
* Increases the reference count of `object`.
|
|
991
|
+
*
|
|
992
|
+
* Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
|
|
993
|
+
* of `object` will be propagated to the return type (using the GCC typeof()
|
|
994
|
+
* extension), so any casting the caller needs to do on the return type must be
|
|
995
|
+
* explicit.
|
|
996
|
+
* @returns the same @object
|
|
997
|
+
*/
|
|
998
|
+
ref(): GObject.Object;
|
|
999
|
+
/**
|
|
1000
|
+
* Increase the reference count of `object,` and possibly remove the
|
|
1001
|
+
* [floating][floating-ref] reference, if `object` has a floating reference.
|
|
1002
|
+
*
|
|
1003
|
+
* In other words, if the object is floating, then this call "assumes
|
|
1004
|
+
* ownership" of the floating reference, converting it to a normal
|
|
1005
|
+
* reference by clearing the floating flag while leaving the reference
|
|
1006
|
+
* count unchanged. If the object is not floating, then this call
|
|
1007
|
+
* adds a new normal reference increasing the reference count by one.
|
|
1008
|
+
*
|
|
1009
|
+
* Since GLib 2.56, the type of `object` will be propagated to the return type
|
|
1010
|
+
* under the same conditions as for g_object_ref().
|
|
1011
|
+
* @returns @object
|
|
1012
|
+
*/
|
|
1013
|
+
ref_sink(): GObject.Object;
|
|
1014
|
+
/**
|
|
1015
|
+
* Releases all references to other objects. This can be used to break
|
|
1016
|
+
* reference cycles.
|
|
1017
|
+
*
|
|
1018
|
+
* This function should only be called from object system implementations.
|
|
1019
|
+
*/
|
|
1020
|
+
run_dispose(): void;
|
|
1021
|
+
/**
|
|
1022
|
+
* Each object carries around a table of associations from
|
|
1023
|
+
* strings to pointers. This function lets you set an association.
|
|
1024
|
+
*
|
|
1025
|
+
* If the object already had an association with that name,
|
|
1026
|
+
* the old association will be destroyed.
|
|
1027
|
+
*
|
|
1028
|
+
* Internally, the `key` is converted to a #GQuark using g_quark_from_string().
|
|
1029
|
+
* This means a copy of `key` is kept permanently (even after `object` has been
|
|
1030
|
+
* finalized) — so it is recommended to only use a small, bounded set of values
|
|
1031
|
+
* for `key` in your program, to avoid the #GQuark storage growing unbounded.
|
|
1032
|
+
* @param key name of the key
|
|
1033
|
+
* @param data data to associate with that key
|
|
1034
|
+
*/
|
|
1035
|
+
set_data(key: string, data?: any | null): void;
|
|
1036
|
+
set_property(property_name: string, value: any): void;
|
|
1037
|
+
/**
|
|
1038
|
+
* Remove a specified datum from the object's data associations,
|
|
1039
|
+
* without invoking the association's destroy handler.
|
|
1040
|
+
* @param key name of the key
|
|
1041
|
+
* @returns the data if found, or %NULL if no such data exists.
|
|
1042
|
+
*/
|
|
1043
|
+
steal_data(key: string): any | null;
|
|
1044
|
+
/**
|
|
1045
|
+
* This function gets back user data pointers stored via
|
|
1046
|
+
* g_object_set_qdata() and removes the `data` from object
|
|
1047
|
+
* without invoking its destroy() function (if any was
|
|
1048
|
+
* set).
|
|
1049
|
+
* Usually, calling this function is only required to update
|
|
1050
|
+
* user data pointers with a destroy notifier, for example:
|
|
1051
|
+
*
|
|
1052
|
+
* ```c
|
|
1053
|
+
* void
|
|
1054
|
+
* object_add_to_user_list (GObject *object,
|
|
1055
|
+
* const gchar *new_string)
|
|
1056
|
+
* {
|
|
1057
|
+
* // the quark, naming the object data
|
|
1058
|
+
* GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
|
|
1059
|
+
* // retrieve the old string list
|
|
1060
|
+
* GList *list = g_object_steal_qdata (object, quark_string_list);
|
|
1061
|
+
*
|
|
1062
|
+
* // prepend new string
|
|
1063
|
+
* list = g_list_prepend (list, g_strdup (new_string));
|
|
1064
|
+
* // this changed 'list', so we need to set it again
|
|
1065
|
+
* g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
|
|
1066
|
+
* }
|
|
1067
|
+
* static void
|
|
1068
|
+
* free_string_list (gpointer data)
|
|
1069
|
+
* {
|
|
1070
|
+
* GList *node, *list = data;
|
|
1071
|
+
*
|
|
1072
|
+
* for (node = list; node; node = node->next)
|
|
1073
|
+
* g_free (node->data);
|
|
1074
|
+
* g_list_free (list);
|
|
1075
|
+
* }
|
|
1076
|
+
* ```
|
|
1077
|
+
*
|
|
1078
|
+
* Using g_object_get_qdata() in the above example, instead of
|
|
1079
|
+
* g_object_steal_qdata() would have left the destroy function set,
|
|
1080
|
+
* and thus the partial string list would have been freed upon
|
|
1081
|
+
* g_object_set_qdata_full().
|
|
1082
|
+
* @param quark A #GQuark, naming the user data pointer
|
|
1083
|
+
* @returns The user data pointer set, or %NULL
|
|
1084
|
+
*/
|
|
1085
|
+
steal_qdata(quark: GLib.Quark): any | null;
|
|
1086
|
+
/**
|
|
1087
|
+
* Reverts the effect of a previous call to
|
|
1088
|
+
* g_object_freeze_notify(). The freeze count is decreased on `object`
|
|
1089
|
+
* and when it reaches zero, queued "notify" signals are emitted.
|
|
1090
|
+
*
|
|
1091
|
+
* Duplicate notifications for each property are squashed so that at most one
|
|
1092
|
+
* #GObject::notify signal is emitted for each property, in the reverse order
|
|
1093
|
+
* in which they have been queued.
|
|
1094
|
+
*
|
|
1095
|
+
* It is an error to call this function when the freeze count is zero.
|
|
1096
|
+
*/
|
|
1097
|
+
thaw_notify(): void;
|
|
1098
|
+
/**
|
|
1099
|
+
* Decreases the reference count of `object`. When its reference count
|
|
1100
|
+
* drops to 0, the object is finalized (i.e. its memory is freed).
|
|
1101
|
+
*
|
|
1102
|
+
* If the pointer to the #GObject may be reused in future (for example, if it is
|
|
1103
|
+
* an instance variable of another object), it is recommended to clear the
|
|
1104
|
+
* pointer to %NULL rather than retain a dangling pointer to a potentially
|
|
1105
|
+
* invalid #GObject instance. Use g_clear_object() for this.
|
|
1106
|
+
*/
|
|
1107
|
+
unref(): void;
|
|
1108
|
+
/**
|
|
1109
|
+
* This function essentially limits the life time of the `closure` to
|
|
1110
|
+
* the life time of the object. That is, when the object is finalized,
|
|
1111
|
+
* the `closure` is invalidated by calling g_closure_invalidate() on
|
|
1112
|
+
* it, in order to prevent invocations of the closure with a finalized
|
|
1113
|
+
* (nonexisting) object. Also, g_object_ref() and g_object_unref() are
|
|
1114
|
+
* added as marshal guards to the `closure,` to ensure that an extra
|
|
1115
|
+
* reference count is held on `object` during invocation of the
|
|
1116
|
+
* `closure`. Usually, this function will be called on closures that
|
|
1117
|
+
* use this `object` as closure data.
|
|
1118
|
+
* @param closure #GClosure to watch
|
|
1119
|
+
*/
|
|
1120
|
+
watch_closure(closure: GObject.Closure): void;
|
|
1121
|
+
vfunc_constructed(): void;
|
|
1122
|
+
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
1123
|
+
vfunc_dispose(): void;
|
|
1124
|
+
vfunc_finalize(): void;
|
|
1125
|
+
vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
1126
|
+
/**
|
|
1127
|
+
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
1128
|
+
*
|
|
1129
|
+
* When possible, eg. when signaling a property change from within the class
|
|
1130
|
+
* that registered the property, you should use g_object_notify_by_pspec()
|
|
1131
|
+
* instead.
|
|
1132
|
+
*
|
|
1133
|
+
* Note that emission of the notify signal may be blocked with
|
|
1134
|
+
* g_object_freeze_notify(). In this case, the signal emissions are queued
|
|
1135
|
+
* and will be emitted (in reverse order) when g_object_thaw_notify() is
|
|
1136
|
+
* called.
|
|
1137
|
+
* @param pspec
|
|
1138
|
+
*/
|
|
1139
|
+
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
1140
|
+
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
1141
|
+
disconnect(id: number): void;
|
|
1142
|
+
set(properties: { [key: string]: any }): void;
|
|
1143
|
+
block_signal_handler(id: number): any;
|
|
1144
|
+
unblock_signal_handler(id: number): any;
|
|
1145
|
+
stop_emission_by_name(detailedName: string): any;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
module DatabaseItem {
|
|
1149
|
+
// Constructor properties interface
|
|
1150
|
+
|
|
1151
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1152
|
+
database: Database;
|
|
1153
|
+
id: number;
|
|
1154
|
+
uri: string;
|
|
1155
|
+
title: string;
|
|
1156
|
+
date: number;
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
class DatabaseItem extends GObject.Object {
|
|
1161
|
+
static $gtype: GObject.GType<DatabaseItem>;
|
|
1162
|
+
|
|
1163
|
+
// Own properties of Midori.DatabaseItem
|
|
1164
|
+
|
|
1165
|
+
get database(): Database;
|
|
1166
|
+
set database(val: Database);
|
|
1167
|
+
get id(): number;
|
|
1168
|
+
set id(val: number);
|
|
1169
|
+
get uri(): string;
|
|
1170
|
+
set uri(val: string);
|
|
1171
|
+
get title(): string;
|
|
1172
|
+
set title(val: string);
|
|
1173
|
+
get date(): number;
|
|
1174
|
+
set date(val: number);
|
|
1175
|
+
|
|
1176
|
+
// Constructors of Midori.DatabaseItem
|
|
1177
|
+
|
|
1178
|
+
constructor(properties?: Partial<DatabaseItem.ConstructorProps>, ...args: any[]);
|
|
1179
|
+
|
|
1180
|
+
_init(...args: any[]): void;
|
|
1181
|
+
|
|
1182
|
+
static ['new'](uri: string, title: string | null, date: number): DatabaseItem;
|
|
1183
|
+
|
|
1184
|
+
// Own methods of Midori.DatabaseItem
|
|
1185
|
+
|
|
1186
|
+
['delete'](_callback_?: Gio.AsyncReadyCallback<this> | null): void;
|
|
1187
|
+
delete_finish(_res_: Gio.AsyncResult): boolean;
|
|
1188
|
+
get_database(): Database | null;
|
|
1189
|
+
set_database(value?: Database | null): void;
|
|
1190
|
+
get_id(): number;
|
|
1191
|
+
set_id(value: number): void;
|
|
1192
|
+
get_uri(): string;
|
|
1193
|
+
set_uri(value: string): void;
|
|
1194
|
+
get_title(): string | null;
|
|
1195
|
+
set_title(value?: string | null): void;
|
|
1196
|
+
get_date(): number;
|
|
1197
|
+
set_date(value: number): void;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
module Database {
|
|
1201
|
+
// Constructor properties interface
|
|
1202
|
+
|
|
1203
|
+
interface ConstructorProps<A extends GObject.Object = GObject.Object>
|
|
1204
|
+
extends GObject.Object.ConstructorProps,
|
|
1205
|
+
Gio.Initable.ConstructorProps,
|
|
1206
|
+
Gio.ListModel.ConstructorProps,
|
|
1207
|
+
Loggable.ConstructorProps {
|
|
1208
|
+
table: string;
|
|
1209
|
+
path: string;
|
|
1210
|
+
key: string;
|
|
1211
|
+
readonly: boolean;
|
|
1212
|
+
first_use: boolean;
|
|
1213
|
+
firstUse: boolean;
|
|
1214
|
+
last_row_id: number;
|
|
1215
|
+
lastRowId: number;
|
|
1216
|
+
errmsg: string;
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
class Database<A extends GObject.Object = GObject.Object>
|
|
1221
|
+
extends GObject.Object
|
|
1222
|
+
implements Gio.Initable, Gio.ListModel<A>, Loggable
|
|
1223
|
+
{
|
|
1224
|
+
static $gtype: GObject.GType<Database>;
|
|
1225
|
+
|
|
1226
|
+
// Own properties of Midori.Database
|
|
1227
|
+
|
|
1228
|
+
get table(): string;
|
|
1229
|
+
set table(val: string);
|
|
1230
|
+
get path(): string;
|
|
1231
|
+
set path(val: string);
|
|
1232
|
+
get key(): string;
|
|
1233
|
+
set key(val: string);
|
|
1234
|
+
get readonly(): boolean;
|
|
1235
|
+
set readonly(val: boolean);
|
|
1236
|
+
get first_use(): boolean;
|
|
1237
|
+
set first_use(val: boolean);
|
|
1238
|
+
get firstUse(): boolean;
|
|
1239
|
+
set firstUse(val: boolean);
|
|
1240
|
+
get last_row_id(): number;
|
|
1241
|
+
get lastRowId(): number;
|
|
1242
|
+
get errmsg(): string;
|
|
1243
|
+
|
|
1244
|
+
// Own fields of Midori.Database
|
|
1245
|
+
|
|
1246
|
+
db: any;
|
|
1247
|
+
|
|
1248
|
+
// Constructors of Midori.Database
|
|
1249
|
+
|
|
1250
|
+
constructor(properties?: Partial<Database.ConstructorProps>, ...args: any[]);
|
|
1251
|
+
|
|
1252
|
+
_init(...args: any[]): void;
|
|
1253
|
+
|
|
1254
|
+
static ['new'](path: string): Database;
|
|
1255
|
+
|
|
1256
|
+
// Own virtual methods of Midori.Database
|
|
1257
|
+
|
|
1258
|
+
vfunc_init(cancellable?: Gio.Cancellable | null): boolean;
|
|
1259
|
+
vfunc_delete(item: DatabaseItem, _callback_?: Gio.AsyncReadyCallback<this> | null): void;
|
|
1260
|
+
vfunc_delete_finish(_res_: Gio.AsyncResult): boolean;
|
|
1261
|
+
vfunc_lookup(uri: string, _callback_?: Gio.AsyncReadyCallback<this> | null): void;
|
|
1262
|
+
vfunc_lookup_finish(_res_: Gio.AsyncResult): DatabaseItem | null;
|
|
1263
|
+
vfunc_query(
|
|
1264
|
+
filter: string | null,
|
|
1265
|
+
max_items: number,
|
|
1266
|
+
cancellable?: Gio.Cancellable | null,
|
|
1267
|
+
_callback_?: Gio.AsyncReadyCallback<this> | null,
|
|
1268
|
+
): void;
|
|
1269
|
+
vfunc_query_finish(_res_: Gio.AsyncResult): DatabaseItem[] | null;
|
|
1270
|
+
vfunc_update(item: DatabaseItem, _callback_?: Gio.AsyncReadyCallback<this> | null): void;
|
|
1271
|
+
vfunc_update_finish(_res_: Gio.AsyncResult): boolean;
|
|
1272
|
+
vfunc_insert(item: DatabaseItem, _callback_?: Gio.AsyncReadyCallback<this> | null): void;
|
|
1273
|
+
vfunc_insert_finish(_res_: Gio.AsyncResult): boolean;
|
|
1274
|
+
vfunc_clear(timespan: GLib.TimeSpan, _callback_?: Gio.AsyncReadyCallback<this> | null): void;
|
|
1275
|
+
vfunc_clear_finish(_res_: Gio.AsyncResult): boolean;
|
|
1276
|
+
|
|
1277
|
+
// Own methods of Midori.Database
|
|
1278
|
+
|
|
1279
|
+
init(cancellable?: Gio.Cancellable | null): boolean;
|
|
1280
|
+
exists(path: string): boolean;
|
|
1281
|
+
exec_script(filename: string): boolean;
|
|
1282
|
+
transaction(callback: DatabaseCallback): boolean;
|
|
1283
|
+
exec(query: string): boolean;
|
|
1284
|
+
['delete'](item: DatabaseItem, _callback_?: Gio.AsyncReadyCallback<this> | null): void;
|
|
1285
|
+
delete_finish(_res_: Gio.AsyncResult): boolean;
|
|
1286
|
+
lookup(uri: string, _callback_?: Gio.AsyncReadyCallback<this> | null): void;
|
|
1287
|
+
lookup_finish(_res_: Gio.AsyncResult): DatabaseItem | null;
|
|
1288
|
+
contains(item: DatabaseItem): boolean;
|
|
1289
|
+
query(
|
|
1290
|
+
filter: string | null,
|
|
1291
|
+
max_items: number,
|
|
1292
|
+
cancellable?: Gio.Cancellable | null,
|
|
1293
|
+
_callback_?: Gio.AsyncReadyCallback<this> | null,
|
|
1294
|
+
): void;
|
|
1295
|
+
query_finish(_res_: Gio.AsyncResult): DatabaseItem[] | null;
|
|
1296
|
+
update(item: DatabaseItem, _callback_?: Gio.AsyncReadyCallback<this> | null): void;
|
|
1297
|
+
update_finish(_res_: Gio.AsyncResult): boolean;
|
|
1298
|
+
insert(item: DatabaseItem, _callback_?: Gio.AsyncReadyCallback<this> | null): void;
|
|
1299
|
+
insert_finish(_res_: Gio.AsyncResult): boolean;
|
|
1300
|
+
clear(timespan: GLib.TimeSpan, _callback_?: Gio.AsyncReadyCallback<this> | null): void;
|
|
1301
|
+
clear_finish(_res_: Gio.AsyncResult): boolean;
|
|
1302
|
+
get_table(): string | null;
|
|
1303
|
+
set_table(value?: string | null): void;
|
|
1304
|
+
get_path(): string;
|
|
1305
|
+
set_path(value: string): void;
|
|
1306
|
+
get_key(): string | null;
|
|
1307
|
+
set_key(value?: string | null): void;
|
|
1308
|
+
get_readonly(): boolean;
|
|
1309
|
+
set_readonly(value: boolean): void;
|
|
1310
|
+
get_first_use(): boolean;
|
|
1311
|
+
set_first_use(value: boolean): void;
|
|
1312
|
+
get_last_row_id(): number;
|
|
1313
|
+
get_errmsg(): string;
|
|
1314
|
+
|
|
1315
|
+
// Inherited methods
|
|
1316
|
+
/**
|
|
1317
|
+
* Gets the type of the items in `list`.
|
|
1318
|
+
*
|
|
1319
|
+
* All items returned from g_list_model_get_item() are of the type
|
|
1320
|
+
* returned by this function, or a subtype, or if the type is an
|
|
1321
|
+
* interface, they are an implementation of that interface.
|
|
1322
|
+
*
|
|
1323
|
+
* The item type of a #GListModel can not change during the life of the
|
|
1324
|
+
* model.
|
|
1325
|
+
* @returns the #GType of the items contained in @list.
|
|
1326
|
+
*/
|
|
1327
|
+
get_item_type(): GObject.GType;
|
|
1328
|
+
/**
|
|
1329
|
+
* Gets the number of items in `list`.
|
|
1330
|
+
*
|
|
1331
|
+
* Depending on the model implementation, calling this function may be
|
|
1332
|
+
* less efficient than iterating the list with increasing values for
|
|
1333
|
+
* `position` until g_list_model_get_item() returns %NULL.
|
|
1334
|
+
* @returns the number of items in @list.
|
|
1335
|
+
*/
|
|
1336
|
+
get_n_items(): number;
|
|
1337
|
+
/**
|
|
1338
|
+
* Get the item at `position`.
|
|
1339
|
+
*
|
|
1340
|
+
* If `position` is greater than the number of items in `list,` %NULL is
|
|
1341
|
+
* returned.
|
|
1342
|
+
*
|
|
1343
|
+
* %NULL is never returned for an index that is smaller than the length
|
|
1344
|
+
* of the list.
|
|
1345
|
+
*
|
|
1346
|
+
* This function is meant to be used by language bindings in place
|
|
1347
|
+
* of g_list_model_get_item().
|
|
1348
|
+
*
|
|
1349
|
+
* See also: g_list_model_get_n_items()
|
|
1350
|
+
* @param position the position of the item to fetch
|
|
1351
|
+
* @returns the object at @position.
|
|
1352
|
+
*/
|
|
1353
|
+
get_item(position: number): A | null;
|
|
1354
|
+
/**
|
|
1355
|
+
* Emits the #GListModel::items-changed signal on `list`.
|
|
1356
|
+
*
|
|
1357
|
+
* This function should only be called by classes implementing
|
|
1358
|
+
* #GListModel. It has to be called after the internal representation
|
|
1359
|
+
* of `list` has been updated, because handlers connected to this signal
|
|
1360
|
+
* might query the new state of the list.
|
|
1361
|
+
*
|
|
1362
|
+
* Implementations must only make changes to the model (as visible to
|
|
1363
|
+
* its consumer) in places that will not cause problems for that
|
|
1364
|
+
* consumer. For models that are driven directly by a write API (such
|
|
1365
|
+
* as #GListStore), changes can be reported in response to uses of that
|
|
1366
|
+
* API. For models that represent remote data, changes should only be
|
|
1367
|
+
* made from a fresh mainloop dispatch. It is particularly not
|
|
1368
|
+
* permitted to make changes in response to a call to the #GListModel
|
|
1369
|
+
* consumer API.
|
|
1370
|
+
*
|
|
1371
|
+
* Stated another way: in general, it is assumed that code making a
|
|
1372
|
+
* series of accesses to the model via the API, without returning to the
|
|
1373
|
+
* mainloop, and without calling other code, will continue to view the
|
|
1374
|
+
* same contents of the model.
|
|
1375
|
+
* @param position the position at which @list changed
|
|
1376
|
+
* @param removed the number of items removed
|
|
1377
|
+
* @param added the number of items added
|
|
1378
|
+
*/
|
|
1379
|
+
items_changed(position: number, removed: number, added: number): void;
|
|
1380
|
+
/**
|
|
1381
|
+
* Get the item at `position`. If `position` is greater than the number of
|
|
1382
|
+
* items in `list,` %NULL is returned.
|
|
1383
|
+
*
|
|
1384
|
+
* %NULL is never returned for an index that is smaller than the length
|
|
1385
|
+
* of the list. See g_list_model_get_n_items().
|
|
1386
|
+
*
|
|
1387
|
+
* The same #GObject instance may not appear more than once in a #GListModel.
|
|
1388
|
+
* @param position the position of the item to fetch
|
|
1389
|
+
*/
|
|
1390
|
+
vfunc_get_item(position: number): A | null;
|
|
1391
|
+
/**
|
|
1392
|
+
* Gets the type of the items in `list`.
|
|
1393
|
+
*
|
|
1394
|
+
* All items returned from g_list_model_get_item() are of the type
|
|
1395
|
+
* returned by this function, or a subtype, or if the type is an
|
|
1396
|
+
* interface, they are an implementation of that interface.
|
|
1397
|
+
*
|
|
1398
|
+
* The item type of a #GListModel can not change during the life of the
|
|
1399
|
+
* model.
|
|
1400
|
+
*/
|
|
1401
|
+
vfunc_get_item_type(): GObject.GType;
|
|
1402
|
+
/**
|
|
1403
|
+
* Gets the number of items in `list`.
|
|
1404
|
+
*
|
|
1405
|
+
* Depending on the model implementation, calling this function may be
|
|
1406
|
+
* less efficient than iterating the list with increasing values for
|
|
1407
|
+
* `position` until g_list_model_get_item() returns %NULL.
|
|
1408
|
+
*/
|
|
1409
|
+
vfunc_get_n_items(): number;
|
|
1410
|
+
get_domain(): string;
|
|
1411
|
+
get_logging(): boolean;
|
|
1412
|
+
/**
|
|
1413
|
+
* Creates a binding between `source_property` on `source` and `target_property`
|
|
1414
|
+
* on `target`.
|
|
1415
|
+
*
|
|
1416
|
+
* Whenever the `source_property` is changed the `target_property` is
|
|
1417
|
+
* updated using the same value. For instance:
|
|
1418
|
+
*
|
|
1419
|
+
*
|
|
1420
|
+
* ```c
|
|
1421
|
+
* g_object_bind_property (action, "active", widget, "sensitive", 0);
|
|
1422
|
+
* ```
|
|
1423
|
+
*
|
|
1424
|
+
*
|
|
1425
|
+
* Will result in the "sensitive" property of the widget #GObject instance to be
|
|
1426
|
+
* updated with the same value of the "active" property of the action #GObject
|
|
1427
|
+
* instance.
|
|
1428
|
+
*
|
|
1429
|
+
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
|
|
1430
|
+
* if `target_property` on `target` changes then the `source_property` on `source`
|
|
1431
|
+
* will be updated as well.
|
|
1432
|
+
*
|
|
1433
|
+
* The binding will automatically be removed when either the `source` or the
|
|
1434
|
+
* `target` instances are finalized. To remove the binding without affecting the
|
|
1435
|
+
* `source` and the `target` you can just call g_object_unref() on the returned
|
|
1436
|
+
* #GBinding instance.
|
|
1437
|
+
*
|
|
1438
|
+
* Removing the binding by calling g_object_unref() on it must only be done if
|
|
1439
|
+
* the binding, `source` and `target` are only used from a single thread and it
|
|
1440
|
+
* is clear that both `source` and `target` outlive the binding. Especially it
|
|
1441
|
+
* is not safe to rely on this if the binding, `source` or `target` can be
|
|
1442
|
+
* finalized from different threads. Keep another reference to the binding and
|
|
1443
|
+
* use g_binding_unbind() instead to be on the safe side.
|
|
1444
|
+
*
|
|
1445
|
+
* A #GObject can have multiple bindings.
|
|
1446
|
+
* @param source_property the property on @source to bind
|
|
1447
|
+
* @param target the target #GObject
|
|
1448
|
+
* @param target_property the property on @target to bind
|
|
1449
|
+
* @param flags flags to pass to #GBinding
|
|
1450
|
+
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
|
|
1451
|
+
*/
|
|
1452
|
+
bind_property(
|
|
1453
|
+
source_property: string,
|
|
1454
|
+
target: GObject.Object,
|
|
1455
|
+
target_property: string,
|
|
1456
|
+
flags: GObject.BindingFlags,
|
|
1457
|
+
): GObject.Binding;
|
|
1458
|
+
/**
|
|
1459
|
+
* Complete version of g_object_bind_property().
|
|
1460
|
+
*
|
|
1461
|
+
* Creates a binding between `source_property` on `source` and `target_property`
|
|
1462
|
+
* on `target,` allowing you to set the transformation functions to be used by
|
|
1463
|
+
* the binding.
|
|
1464
|
+
*
|
|
1465
|
+
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
|
|
1466
|
+
* if `target_property` on `target` changes then the `source_property` on `source`
|
|
1467
|
+
* will be updated as well. The `transform_from` function is only used in case
|
|
1468
|
+
* of bidirectional bindings, otherwise it will be ignored
|
|
1469
|
+
*
|
|
1470
|
+
* The binding will automatically be removed when either the `source` or the
|
|
1471
|
+
* `target` instances are finalized. This will release the reference that is
|
|
1472
|
+
* being held on the #GBinding instance; if you want to hold on to the
|
|
1473
|
+
* #GBinding instance, you will need to hold a reference to it.
|
|
1474
|
+
*
|
|
1475
|
+
* To remove the binding, call g_binding_unbind().
|
|
1476
|
+
*
|
|
1477
|
+
* A #GObject can have multiple bindings.
|
|
1478
|
+
*
|
|
1479
|
+
* The same `user_data` parameter will be used for both `transform_to`
|
|
1480
|
+
* and `transform_from` transformation functions; the `notify` function will
|
|
1481
|
+
* be called once, when the binding is removed. If you need different data
|
|
1482
|
+
* for each transformation function, please use
|
|
1483
|
+
* g_object_bind_property_with_closures() instead.
|
|
1484
|
+
* @param source_property the property on @source to bind
|
|
1485
|
+
* @param target the target #GObject
|
|
1486
|
+
* @param target_property the property on @target to bind
|
|
1487
|
+
* @param flags flags to pass to #GBinding
|
|
1488
|
+
* @param transform_to the transformation function from the @source to the @target, or %NULL to use the default
|
|
1489
|
+
* @param transform_from the transformation function from the @target to the @source, or %NULL to use the default
|
|
1490
|
+
* @param notify a function to call when disposing the binding, to free resources used by the transformation functions, or %NULL if not required
|
|
1491
|
+
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
|
|
1492
|
+
*/
|
|
1493
|
+
bind_property_full(
|
|
1494
|
+
source_property: string,
|
|
1495
|
+
target: GObject.Object,
|
|
1496
|
+
target_property: string,
|
|
1497
|
+
flags: GObject.BindingFlags,
|
|
1498
|
+
transform_to?: GObject.BindingTransformFunc | null,
|
|
1499
|
+
transform_from?: GObject.BindingTransformFunc | null,
|
|
1500
|
+
notify?: GLib.DestroyNotify | null,
|
|
1501
|
+
): GObject.Binding;
|
|
1502
|
+
// Conflicted with GObject.Object.bind_property_full
|
|
1503
|
+
bind_property_full(...args: never[]): any;
|
|
1504
|
+
/**
|
|
1505
|
+
* This function is intended for #GObject implementations to re-enforce
|
|
1506
|
+
* a [floating][floating-ref] object reference. Doing this is seldom
|
|
1507
|
+
* required: all #GInitiallyUnowneds are created with a floating reference
|
|
1508
|
+
* which usually just needs to be sunken by calling g_object_ref_sink().
|
|
1509
|
+
*/
|
|
1510
|
+
force_floating(): void;
|
|
1511
|
+
/**
|
|
1512
|
+
* Increases the freeze count on `object`. If the freeze count is
|
|
1513
|
+
* non-zero, the emission of "notify" signals on `object` is
|
|
1514
|
+
* stopped. The signals are queued until the freeze count is decreased
|
|
1515
|
+
* to zero. Duplicate notifications are squashed so that at most one
|
|
1516
|
+
* #GObject::notify signal is emitted for each property modified while the
|
|
1517
|
+
* object is frozen.
|
|
1518
|
+
*
|
|
1519
|
+
* This is necessary for accessors that modify multiple properties to prevent
|
|
1520
|
+
* premature notification while the object is still being modified.
|
|
1521
|
+
*/
|
|
1522
|
+
freeze_notify(): void;
|
|
1523
|
+
/**
|
|
1524
|
+
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
1525
|
+
* @param key name of the key for that association
|
|
1526
|
+
* @returns the data if found, or %NULL if no such data exists.
|
|
1527
|
+
*/
|
|
1528
|
+
get_data(key: string): any | null;
|
|
1529
|
+
get_property(property_name: string): any;
|
|
1530
|
+
/**
|
|
1531
|
+
* This function gets back user data pointers stored via
|
|
1532
|
+
* g_object_set_qdata().
|
|
1533
|
+
* @param quark A #GQuark, naming the user data pointer
|
|
1534
|
+
* @returns The user data pointer set, or %NULL
|
|
1535
|
+
*/
|
|
1536
|
+
get_qdata(quark: GLib.Quark): any | null;
|
|
1537
|
+
/**
|
|
1538
|
+
* Gets `n_properties` properties for an `object`.
|
|
1539
|
+
* Obtained properties will be set to `values`. All properties must be valid.
|
|
1540
|
+
* Warnings will be emitted and undefined behaviour may result if invalid
|
|
1541
|
+
* properties are passed in.
|
|
1542
|
+
* @param names the names of each property to get
|
|
1543
|
+
* @param values the values of each property to get
|
|
1544
|
+
*/
|
|
1545
|
+
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
1546
|
+
/**
|
|
1547
|
+
* Checks whether `object` has a [floating][floating-ref] reference.
|
|
1548
|
+
* @returns %TRUE if @object has a floating reference
|
|
1549
|
+
*/
|
|
1550
|
+
is_floating(): boolean;
|
|
1551
|
+
/**
|
|
1552
|
+
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
1553
|
+
*
|
|
1554
|
+
* When possible, eg. when signaling a property change from within the class
|
|
1555
|
+
* that registered the property, you should use g_object_notify_by_pspec()
|
|
1556
|
+
* instead.
|
|
1557
|
+
*
|
|
1558
|
+
* Note that emission of the notify signal may be blocked with
|
|
1559
|
+
* g_object_freeze_notify(). In this case, the signal emissions are queued
|
|
1560
|
+
* and will be emitted (in reverse order) when g_object_thaw_notify() is
|
|
1561
|
+
* called.
|
|
1562
|
+
* @param property_name the name of a property installed on the class of @object.
|
|
1563
|
+
*/
|
|
1564
|
+
notify(property_name: string): void;
|
|
1565
|
+
/**
|
|
1566
|
+
* Emits a "notify" signal for the property specified by `pspec` on `object`.
|
|
1567
|
+
*
|
|
1568
|
+
* This function omits the property name lookup, hence it is faster than
|
|
1569
|
+
* g_object_notify().
|
|
1570
|
+
*
|
|
1571
|
+
* One way to avoid using g_object_notify() from within the
|
|
1572
|
+
* class that registered the properties, and using g_object_notify_by_pspec()
|
|
1573
|
+
* instead, is to store the GParamSpec used with
|
|
1574
|
+
* g_object_class_install_property() inside a static array, e.g.:
|
|
1575
|
+
*
|
|
1576
|
+
*
|
|
1577
|
+
* ```c
|
|
1578
|
+
* typedef enum
|
|
1579
|
+
* {
|
|
1580
|
+
* PROP_FOO = 1,
|
|
1581
|
+
* PROP_LAST
|
|
1582
|
+
* } MyObjectProperty;
|
|
1583
|
+
*
|
|
1584
|
+
* static GParamSpec *properties[PROP_LAST];
|
|
1585
|
+
*
|
|
1586
|
+
* static void
|
|
1587
|
+
* my_object_class_init (MyObjectClass *klass)
|
|
1588
|
+
* {
|
|
1589
|
+
* properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
|
|
1590
|
+
* 0, 100,
|
|
1591
|
+
* 50,
|
|
1592
|
+
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
|
1593
|
+
* g_object_class_install_property (gobject_class,
|
|
1594
|
+
* PROP_FOO,
|
|
1595
|
+
* properties[PROP_FOO]);
|
|
1596
|
+
* }
|
|
1597
|
+
* ```
|
|
1598
|
+
*
|
|
1599
|
+
*
|
|
1600
|
+
* and then notify a change on the "foo" property with:
|
|
1601
|
+
*
|
|
1602
|
+
*
|
|
1603
|
+
* ```c
|
|
1604
|
+
* g_object_notify_by_pspec (self, properties[PROP_FOO]);
|
|
1605
|
+
* ```
|
|
1606
|
+
*
|
|
1607
|
+
* @param pspec the #GParamSpec of a property installed on the class of @object.
|
|
1608
|
+
*/
|
|
1609
|
+
notify_by_pspec(pspec: GObject.ParamSpec): void;
|
|
1610
|
+
/**
|
|
1611
|
+
* Increases the reference count of `object`.
|
|
1612
|
+
*
|
|
1613
|
+
* Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
|
|
1614
|
+
* of `object` will be propagated to the return type (using the GCC typeof()
|
|
1615
|
+
* extension), so any casting the caller needs to do on the return type must be
|
|
1616
|
+
* explicit.
|
|
1617
|
+
* @returns the same @object
|
|
1618
|
+
*/
|
|
1619
|
+
ref(): GObject.Object;
|
|
1620
|
+
/**
|
|
1621
|
+
* Increase the reference count of `object,` and possibly remove the
|
|
1622
|
+
* [floating][floating-ref] reference, if `object` has a floating reference.
|
|
1623
|
+
*
|
|
1624
|
+
* In other words, if the object is floating, then this call "assumes
|
|
1625
|
+
* ownership" of the floating reference, converting it to a normal
|
|
1626
|
+
* reference by clearing the floating flag while leaving the reference
|
|
1627
|
+
* count unchanged. If the object is not floating, then this call
|
|
1628
|
+
* adds a new normal reference increasing the reference count by one.
|
|
1629
|
+
*
|
|
1630
|
+
* Since GLib 2.56, the type of `object` will be propagated to the return type
|
|
1631
|
+
* under the same conditions as for g_object_ref().
|
|
1632
|
+
* @returns @object
|
|
1633
|
+
*/
|
|
1634
|
+
ref_sink(): GObject.Object;
|
|
1635
|
+
/**
|
|
1636
|
+
* Releases all references to other objects. This can be used to break
|
|
1637
|
+
* reference cycles.
|
|
1638
|
+
*
|
|
1639
|
+
* This function should only be called from object system implementations.
|
|
1640
|
+
*/
|
|
1641
|
+
run_dispose(): void;
|
|
1642
|
+
/**
|
|
1643
|
+
* Each object carries around a table of associations from
|
|
1644
|
+
* strings to pointers. This function lets you set an association.
|
|
1645
|
+
*
|
|
1646
|
+
* If the object already had an association with that name,
|
|
1647
|
+
* the old association will be destroyed.
|
|
1648
|
+
*
|
|
1649
|
+
* Internally, the `key` is converted to a #GQuark using g_quark_from_string().
|
|
1650
|
+
* This means a copy of `key` is kept permanently (even after `object` has been
|
|
1651
|
+
* finalized) — so it is recommended to only use a small, bounded set of values
|
|
1652
|
+
* for `key` in your program, to avoid the #GQuark storage growing unbounded.
|
|
1653
|
+
* @param key name of the key
|
|
1654
|
+
* @param data data to associate with that key
|
|
1655
|
+
*/
|
|
1656
|
+
set_data(key: string, data?: any | null): void;
|
|
1657
|
+
set_property(property_name: string, value: any): void;
|
|
1658
|
+
/**
|
|
1659
|
+
* Remove a specified datum from the object's data associations,
|
|
1660
|
+
* without invoking the association's destroy handler.
|
|
1661
|
+
* @param key name of the key
|
|
1662
|
+
* @returns the data if found, or %NULL if no such data exists.
|
|
1663
|
+
*/
|
|
1664
|
+
steal_data(key: string): any | null;
|
|
1665
|
+
/**
|
|
1666
|
+
* This function gets back user data pointers stored via
|
|
1667
|
+
* g_object_set_qdata() and removes the `data` from object
|
|
1668
|
+
* without invoking its destroy() function (if any was
|
|
1669
|
+
* set).
|
|
1670
|
+
* Usually, calling this function is only required to update
|
|
1671
|
+
* user data pointers with a destroy notifier, for example:
|
|
1672
|
+
*
|
|
1673
|
+
* ```c
|
|
1674
|
+
* void
|
|
1675
|
+
* object_add_to_user_list (GObject *object,
|
|
1676
|
+
* const gchar *new_string)
|
|
1677
|
+
* {
|
|
1678
|
+
* // the quark, naming the object data
|
|
1679
|
+
* GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
|
|
1680
|
+
* // retrieve the old string list
|
|
1681
|
+
* GList *list = g_object_steal_qdata (object, quark_string_list);
|
|
1682
|
+
*
|
|
1683
|
+
* // prepend new string
|
|
1684
|
+
* list = g_list_prepend (list, g_strdup (new_string));
|
|
1685
|
+
* // this changed 'list', so we need to set it again
|
|
1686
|
+
* g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
|
|
1687
|
+
* }
|
|
1688
|
+
* static void
|
|
1689
|
+
* free_string_list (gpointer data)
|
|
1690
|
+
* {
|
|
1691
|
+
* GList *node, *list = data;
|
|
1692
|
+
*
|
|
1693
|
+
* for (node = list; node; node = node->next)
|
|
1694
|
+
* g_free (node->data);
|
|
1695
|
+
* g_list_free (list);
|
|
1696
|
+
* }
|
|
1697
|
+
* ```
|
|
1698
|
+
*
|
|
1699
|
+
* Using g_object_get_qdata() in the above example, instead of
|
|
1700
|
+
* g_object_steal_qdata() would have left the destroy function set,
|
|
1701
|
+
* and thus the partial string list would have been freed upon
|
|
1702
|
+
* g_object_set_qdata_full().
|
|
1703
|
+
* @param quark A #GQuark, naming the user data pointer
|
|
1704
|
+
* @returns The user data pointer set, or %NULL
|
|
1705
|
+
*/
|
|
1706
|
+
steal_qdata(quark: GLib.Quark): any | null;
|
|
1707
|
+
/**
|
|
1708
|
+
* Reverts the effect of a previous call to
|
|
1709
|
+
* g_object_freeze_notify(). The freeze count is decreased on `object`
|
|
1710
|
+
* and when it reaches zero, queued "notify" signals are emitted.
|
|
1711
|
+
*
|
|
1712
|
+
* Duplicate notifications for each property are squashed so that at most one
|
|
1713
|
+
* #GObject::notify signal is emitted for each property, in the reverse order
|
|
1714
|
+
* in which they have been queued.
|
|
1715
|
+
*
|
|
1716
|
+
* It is an error to call this function when the freeze count is zero.
|
|
1717
|
+
*/
|
|
1718
|
+
thaw_notify(): void;
|
|
1719
|
+
/**
|
|
1720
|
+
* Decreases the reference count of `object`. When its reference count
|
|
1721
|
+
* drops to 0, the object is finalized (i.e. its memory is freed).
|
|
1722
|
+
*
|
|
1723
|
+
* If the pointer to the #GObject may be reused in future (for example, if it is
|
|
1724
|
+
* an instance variable of another object), it is recommended to clear the
|
|
1725
|
+
* pointer to %NULL rather than retain a dangling pointer to a potentially
|
|
1726
|
+
* invalid #GObject instance. Use g_clear_object() for this.
|
|
1727
|
+
*/
|
|
1728
|
+
unref(): void;
|
|
1729
|
+
/**
|
|
1730
|
+
* This function essentially limits the life time of the `closure` to
|
|
1731
|
+
* the life time of the object. That is, when the object is finalized,
|
|
1732
|
+
* the `closure` is invalidated by calling g_closure_invalidate() on
|
|
1733
|
+
* it, in order to prevent invocations of the closure with a finalized
|
|
1734
|
+
* (nonexisting) object. Also, g_object_ref() and g_object_unref() are
|
|
1735
|
+
* added as marshal guards to the `closure,` to ensure that an extra
|
|
1736
|
+
* reference count is held on `object` during invocation of the
|
|
1737
|
+
* `closure`. Usually, this function will be called on closures that
|
|
1738
|
+
* use this `object` as closure data.
|
|
1739
|
+
* @param closure #GClosure to watch
|
|
1740
|
+
*/
|
|
1741
|
+
watch_closure(closure: GObject.Closure): void;
|
|
1742
|
+
vfunc_constructed(): void;
|
|
1743
|
+
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
1744
|
+
vfunc_dispose(): void;
|
|
1745
|
+
vfunc_finalize(): void;
|
|
1746
|
+
vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
1747
|
+
/**
|
|
1748
|
+
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
1749
|
+
*
|
|
1750
|
+
* When possible, eg. when signaling a property change from within the class
|
|
1751
|
+
* that registered the property, you should use g_object_notify_by_pspec()
|
|
1752
|
+
* instead.
|
|
1753
|
+
*
|
|
1754
|
+
* Note that emission of the notify signal may be blocked with
|
|
1755
|
+
* g_object_freeze_notify(). In this case, the signal emissions are queued
|
|
1756
|
+
* and will be emitted (in reverse order) when g_object_thaw_notify() is
|
|
1757
|
+
* called.
|
|
1758
|
+
* @param pspec
|
|
1759
|
+
*/
|
|
1760
|
+
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
1761
|
+
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
1762
|
+
disconnect(id: number): void;
|
|
1763
|
+
set(properties: { [key: string]: any }): void;
|
|
1764
|
+
block_signal_handler(id: number): any;
|
|
1765
|
+
unblock_signal_handler(id: number): any;
|
|
1766
|
+
stop_emission_by_name(detailedName: string): any;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
module DownloadButton {
|
|
1770
|
+
// Signal callback interfaces
|
|
1771
|
+
|
|
1772
|
+
interface ShowDownloads {
|
|
1773
|
+
(): void;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
// Constructor properties interface
|
|
1777
|
+
|
|
1778
|
+
interface ConstructorProps extends Gtk.Button.ConstructorProps {}
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
class DownloadButton extends Gtk.Button {
|
|
1782
|
+
static $gtype: GObject.GType<DownloadButton>;
|
|
1783
|
+
|
|
1784
|
+
// Own fields of Midori.DownloadButton
|
|
1785
|
+
|
|
1786
|
+
popover: Gtk.Popover;
|
|
1787
|
+
clear: Gtk.Button;
|
|
1788
|
+
listbox: Gtk.ListBox;
|
|
1789
|
+
|
|
1790
|
+
// Constructors of Midori.DownloadButton
|
|
1791
|
+
|
|
1792
|
+
constructor(properties?: Partial<DownloadButton.ConstructorProps>, ...args: any[]);
|
|
1793
|
+
|
|
1794
|
+
_init(...args: any[]): void;
|
|
1795
|
+
|
|
1796
|
+
static ['new'](): DownloadButton;
|
|
1797
|
+
|
|
1798
|
+
// Own signals of Midori.DownloadButton
|
|
1799
|
+
|
|
1800
|
+
connect(id: string, callback: (...args: any[]) => any): number;
|
|
1801
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
1802
|
+
emit(id: string, ...args: any[]): void;
|
|
1803
|
+
connect(signal: 'show-downloads', callback: (_source: this) => void): number;
|
|
1804
|
+
connect_after(signal: 'show-downloads', callback: (_source: this) => void): number;
|
|
1805
|
+
emit(signal: 'show-downloads'): void;
|
|
1806
|
+
|
|
1807
|
+
// Own virtual methods of Midori.DownloadButton
|
|
1808
|
+
|
|
1809
|
+
vfunc_show_downloads(): void;
|
|
1810
|
+
|
|
1811
|
+
// Own methods of Midori.DownloadButton
|
|
1812
|
+
|
|
1813
|
+
create_row(item: GObject.Object): Gtk.Widget;
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
module DownloadItem {
|
|
1817
|
+
// Signal callback interfaces
|
|
1818
|
+
|
|
1819
|
+
interface Finished {
|
|
1820
|
+
(): void;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
// Constructor properties interface
|
|
1824
|
+
|
|
1825
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1826
|
+
content_type: string;
|
|
1827
|
+
contentType: string;
|
|
1828
|
+
icon: Gio.Icon;
|
|
1829
|
+
filename: string;
|
|
1830
|
+
basename: string;
|
|
1831
|
+
progress: number;
|
|
1832
|
+
download: WebKit2.Download;
|
|
1833
|
+
loading: boolean;
|
|
1834
|
+
error: string;
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
class DownloadItem extends GObject.Object {
|
|
1839
|
+
static $gtype: GObject.GType<DownloadItem>;
|
|
1840
|
+
|
|
1841
|
+
// Own properties of Midori.DownloadItem
|
|
1842
|
+
|
|
1843
|
+
get content_type(): string;
|
|
1844
|
+
get contentType(): string;
|
|
1845
|
+
get icon(): Gio.Icon;
|
|
1846
|
+
get filename(): string;
|
|
1847
|
+
set filename(val: string);
|
|
1848
|
+
get basename(): string;
|
|
1849
|
+
set basename(val: string);
|
|
1850
|
+
get progress(): number;
|
|
1851
|
+
set progress(val: number);
|
|
1852
|
+
get download(): WebKit2.Download;
|
|
1853
|
+
set download(val: WebKit2.Download);
|
|
1854
|
+
get loading(): boolean;
|
|
1855
|
+
set loading(val: boolean);
|
|
1856
|
+
get error(): string;
|
|
1857
|
+
set error(val: string);
|
|
1858
|
+
|
|
1859
|
+
// Own fields of Midori.DownloadItem
|
|
1860
|
+
|
|
1861
|
+
mime_type: string | null;
|
|
1862
|
+
|
|
1863
|
+
// Constructors of Midori.DownloadItem
|
|
1864
|
+
|
|
1865
|
+
constructor(properties?: Partial<DownloadItem.ConstructorProps>, ...args: any[]);
|
|
1866
|
+
|
|
1867
|
+
_init(...args: any[]): void;
|
|
1868
|
+
|
|
1869
|
+
static ['new'](filename: string): DownloadItem;
|
|
1870
|
+
|
|
1871
|
+
static with_download(download: WebKit2.Download): DownloadItem;
|
|
1872
|
+
|
|
1873
|
+
// Own signals of Midori.DownloadItem
|
|
1874
|
+
|
|
1875
|
+
connect(id: string, callback: (...args: any[]) => any): number;
|
|
1876
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
1877
|
+
emit(id: string, ...args: any[]): void;
|
|
1878
|
+
connect(signal: 'finished', callback: (_source: this) => void): number;
|
|
1879
|
+
connect_after(signal: 'finished', callback: (_source: this) => void): number;
|
|
1880
|
+
emit(signal: 'finished'): void;
|
|
1881
|
+
|
|
1882
|
+
// Own methods of Midori.DownloadItem
|
|
1883
|
+
|
|
1884
|
+
cancel(): void;
|
|
1885
|
+
get_content_type(): string;
|
|
1886
|
+
get_icon(): Gio.Icon;
|
|
1887
|
+
get_filename(): string | null;
|
|
1888
|
+
set_filename(value?: string | null): void;
|
|
1889
|
+
get_basename(): string | null;
|
|
1890
|
+
set_basename(value?: string | null): void;
|
|
1891
|
+
get_progress(): number;
|
|
1892
|
+
set_progress(value: number): void;
|
|
1893
|
+
get_download(): WebKit2.Download | null;
|
|
1894
|
+
set_download(value?: WebKit2.Download | null): void;
|
|
1895
|
+
get_loading(): boolean;
|
|
1896
|
+
set_loading(value: boolean): void;
|
|
1897
|
+
get_error(): string | null;
|
|
1898
|
+
set_error(value?: string | null): void;
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
module DownloadRow {
|
|
1902
|
+
// Constructor properties interface
|
|
1903
|
+
|
|
1904
|
+
interface ConstructorProps extends Gtk.ListBoxRow.ConstructorProps {
|
|
1905
|
+
item: DownloadItem;
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
class DownloadRow extends Gtk.ListBoxRow {
|
|
1910
|
+
static $gtype: GObject.GType<DownloadRow>;
|
|
1911
|
+
|
|
1912
|
+
// Own properties of Midori.DownloadRow
|
|
1913
|
+
|
|
1914
|
+
get item(): DownloadItem;
|
|
1915
|
+
set item(val: DownloadItem);
|
|
1916
|
+
|
|
1917
|
+
// Own fields of Midori.DownloadRow
|
|
1918
|
+
|
|
1919
|
+
icon: Gtk.Image;
|
|
1920
|
+
filename: Gtk.Label;
|
|
1921
|
+
progress: Gtk.ProgressBar;
|
|
1922
|
+
cancel: Gtk.Button;
|
|
1923
|
+
open: Gtk.Button;
|
|
1924
|
+
error: Gtk.Image;
|
|
1925
|
+
status: Gtk.Label;
|
|
1926
|
+
|
|
1927
|
+
// Constructors of Midori.DownloadRow
|
|
1928
|
+
|
|
1929
|
+
constructor(properties?: Partial<DownloadRow.ConstructorProps>, ...args: any[]);
|
|
1930
|
+
|
|
1931
|
+
_init(...args: any[]): void;
|
|
1932
|
+
|
|
1933
|
+
static ['new'](item: DownloadItem): DownloadRow;
|
|
1934
|
+
// Conflicted with Gtk.ListBoxRow.new
|
|
1935
|
+
|
|
1936
|
+
static ['new'](...args: never[]): any;
|
|
1937
|
+
|
|
1938
|
+
// Own methods of Midori.DownloadRow
|
|
1939
|
+
|
|
1940
|
+
get_item(): DownloadItem;
|
|
1941
|
+
set_item(value: DownloadItem): void;
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
module Favicon {
|
|
1945
|
+
// Constructor properties interface
|
|
1946
|
+
|
|
1947
|
+
interface ConstructorProps extends Gtk.Image.ConstructorProps {
|
|
1948
|
+
surface: cairo.Surface;
|
|
1949
|
+
uri: string;
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
class Favicon extends Gtk.Image {
|
|
1954
|
+
static $gtype: GObject.GType<Favicon>;
|
|
1955
|
+
|
|
1956
|
+
// Own properties of Midori.Favicon
|
|
1957
|
+
|
|
1958
|
+
set surface(val: cairo.Surface);
|
|
1959
|
+
get uri(): string;
|
|
1960
|
+
set uri(val: string);
|
|
1961
|
+
|
|
1962
|
+
// Constructors of Midori.Favicon
|
|
1963
|
+
|
|
1964
|
+
constructor(properties?: Partial<Favicon.ConstructorProps>, ...args: any[]);
|
|
1965
|
+
|
|
1966
|
+
_init(...args: any[]): void;
|
|
1967
|
+
|
|
1968
|
+
static ['new'](): Favicon;
|
|
1969
|
+
|
|
1970
|
+
// Own methods of Midori.Favicon
|
|
1971
|
+
|
|
1972
|
+
set_surface(value?: cairo.Surface | null): void;
|
|
1973
|
+
get_uri(): string | null;
|
|
1974
|
+
set_uri(value?: string | null): void;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
module HistoryDatabase {
|
|
1978
|
+
// Constructor properties interface
|
|
1979
|
+
|
|
1980
|
+
interface ConstructorProps<A extends GObject.Object = GObject.Object> extends Database.ConstructorProps<A> {}
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
class HistoryDatabase<A extends GObject.Object = GObject.Object> extends Database<A> {
|
|
1984
|
+
static $gtype: GObject.GType<HistoryDatabase>;
|
|
1985
|
+
|
|
1986
|
+
// Constructors of Midori.HistoryDatabase
|
|
1987
|
+
|
|
1988
|
+
constructor(properties?: Partial<HistoryDatabase.ConstructorProps>, ...args: any[]);
|
|
1989
|
+
|
|
1990
|
+
_init(...args: any[]): void;
|
|
1991
|
+
|
|
1992
|
+
// Own static methods of Midori.HistoryDatabase
|
|
1993
|
+
|
|
1994
|
+
static get_default(incognito: boolean): HistoryDatabase;
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
module Navigationbar {
|
|
1998
|
+
// Constructor properties interface
|
|
1999
|
+
|
|
2000
|
+
interface ConstructorProps extends Gtk.ActionBar.ConstructorProps {}
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
class Navigationbar extends Gtk.ActionBar {
|
|
2004
|
+
static $gtype: GObject.GType<Navigationbar>;
|
|
2005
|
+
|
|
2006
|
+
// Own fields of Midori.Navigationbar
|
|
2007
|
+
|
|
2008
|
+
actionbox: Gtk.Box;
|
|
2009
|
+
go_back: Gtk.Button;
|
|
2010
|
+
go_forward: Gtk.Button;
|
|
2011
|
+
reload: Gtk.Button;
|
|
2012
|
+
stop_loading: Gtk.Button;
|
|
2013
|
+
homepage: Gtk.Button;
|
|
2014
|
+
urlbar: Urlbar;
|
|
2015
|
+
restore: Gtk.Button;
|
|
2016
|
+
|
|
2017
|
+
// Constructors of Midori.Navigationbar
|
|
2018
|
+
|
|
2019
|
+
constructor(properties?: Partial<Navigationbar.ConstructorProps>, ...args: any[]);
|
|
2020
|
+
|
|
2021
|
+
_init(...args: any[]): void;
|
|
2022
|
+
|
|
2023
|
+
static ['new'](): Navigationbar;
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
module NetworkCheck {
|
|
2027
|
+
// Constructor properties interface
|
|
2028
|
+
|
|
2029
|
+
interface ConstructorProps extends Gtk.ActionBar.ConstructorProps {}
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
class NetworkCheck extends Gtk.ActionBar {
|
|
2033
|
+
static $gtype: GObject.GType<NetworkCheck>;
|
|
2034
|
+
|
|
2035
|
+
// Constructors of Midori.NetworkCheck
|
|
2036
|
+
|
|
2037
|
+
constructor(properties?: Partial<NetworkCheck.ConstructorProps>, ...args: any[]);
|
|
2038
|
+
|
|
2039
|
+
_init(...args: any[]): void;
|
|
2040
|
+
|
|
2041
|
+
static ['new'](): NetworkCheck;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
module Plugins {
|
|
2045
|
+
// Constructor properties interface
|
|
2046
|
+
|
|
2047
|
+
interface ConstructorProps extends Peas.Engine.ConstructorProps, Loggable.ConstructorProps {
|
|
2048
|
+
builtin_path: string;
|
|
2049
|
+
builtinPath: string;
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
class Plugins extends Peas.Engine implements Loggable {
|
|
2054
|
+
static $gtype: GObject.GType<Plugins>;
|
|
2055
|
+
|
|
2056
|
+
// Own properties of Midori.Plugins
|
|
2057
|
+
|
|
2058
|
+
get builtin_path(): string;
|
|
2059
|
+
set builtin_path(val: string);
|
|
2060
|
+
get builtinPath(): string;
|
|
2061
|
+
set builtinPath(val: string);
|
|
2062
|
+
|
|
2063
|
+
// Constructors of Midori.Plugins
|
|
2064
|
+
|
|
2065
|
+
constructor(properties?: Partial<Plugins.ConstructorProps>, ...args: any[]);
|
|
2066
|
+
|
|
2067
|
+
_init(...args: any[]): void;
|
|
2068
|
+
|
|
2069
|
+
// Own methods of Midori.Plugins
|
|
2070
|
+
|
|
2071
|
+
plug(
|
|
2072
|
+
t_type: GObject.GType,
|
|
2073
|
+
t_dup_func: GObject.BoxedCopyFunc,
|
|
2074
|
+
name: string,
|
|
2075
|
+
object: GObject.Object,
|
|
2076
|
+
): Peas.ExtensionSet;
|
|
2077
|
+
get_builtin_path(): string;
|
|
2078
|
+
set_builtin_path(value: string): void;
|
|
2079
|
+
|
|
2080
|
+
// Inherited methods
|
|
2081
|
+
get_domain(): string;
|
|
2082
|
+
get_logging(): boolean;
|
|
2083
|
+
/**
|
|
2084
|
+
* Creates a binding between `source_property` on `source` and `target_property`
|
|
2085
|
+
* on `target`.
|
|
2086
|
+
*
|
|
2087
|
+
* Whenever the `source_property` is changed the `target_property` is
|
|
2088
|
+
* updated using the same value. For instance:
|
|
2089
|
+
*
|
|
2090
|
+
*
|
|
2091
|
+
* ```c
|
|
2092
|
+
* g_object_bind_property (action, "active", widget, "sensitive", 0);
|
|
2093
|
+
* ```
|
|
2094
|
+
*
|
|
2095
|
+
*
|
|
2096
|
+
* Will result in the "sensitive" property of the widget #GObject instance to be
|
|
2097
|
+
* updated with the same value of the "active" property of the action #GObject
|
|
2098
|
+
* instance.
|
|
2099
|
+
*
|
|
2100
|
+
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
|
|
2101
|
+
* if `target_property` on `target` changes then the `source_property` on `source`
|
|
2102
|
+
* will be updated as well.
|
|
2103
|
+
*
|
|
2104
|
+
* The binding will automatically be removed when either the `source` or the
|
|
2105
|
+
* `target` instances are finalized. To remove the binding without affecting the
|
|
2106
|
+
* `source` and the `target` you can just call g_object_unref() on the returned
|
|
2107
|
+
* #GBinding instance.
|
|
2108
|
+
*
|
|
2109
|
+
* Removing the binding by calling g_object_unref() on it must only be done if
|
|
2110
|
+
* the binding, `source` and `target` are only used from a single thread and it
|
|
2111
|
+
* is clear that both `source` and `target` outlive the binding. Especially it
|
|
2112
|
+
* is not safe to rely on this if the binding, `source` or `target` can be
|
|
2113
|
+
* finalized from different threads. Keep another reference to the binding and
|
|
2114
|
+
* use g_binding_unbind() instead to be on the safe side.
|
|
2115
|
+
*
|
|
2116
|
+
* A #GObject can have multiple bindings.
|
|
2117
|
+
* @param source_property the property on @source to bind
|
|
2118
|
+
* @param target the target #GObject
|
|
2119
|
+
* @param target_property the property on @target to bind
|
|
2120
|
+
* @param flags flags to pass to #GBinding
|
|
2121
|
+
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
|
|
2122
|
+
*/
|
|
2123
|
+
bind_property(
|
|
2124
|
+
source_property: string,
|
|
2125
|
+
target: GObject.Object,
|
|
2126
|
+
target_property: string,
|
|
2127
|
+
flags: GObject.BindingFlags,
|
|
2128
|
+
): GObject.Binding;
|
|
2129
|
+
/**
|
|
2130
|
+
* Complete version of g_object_bind_property().
|
|
2131
|
+
*
|
|
2132
|
+
* Creates a binding between `source_property` on `source` and `target_property`
|
|
2133
|
+
* on `target,` allowing you to set the transformation functions to be used by
|
|
2134
|
+
* the binding.
|
|
2135
|
+
*
|
|
2136
|
+
* If `flags` contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
|
|
2137
|
+
* if `target_property` on `target` changes then the `source_property` on `source`
|
|
2138
|
+
* will be updated as well. The `transform_from` function is only used in case
|
|
2139
|
+
* of bidirectional bindings, otherwise it will be ignored
|
|
2140
|
+
*
|
|
2141
|
+
* The binding will automatically be removed when either the `source` or the
|
|
2142
|
+
* `target` instances are finalized. This will release the reference that is
|
|
2143
|
+
* being held on the #GBinding instance; if you want to hold on to the
|
|
2144
|
+
* #GBinding instance, you will need to hold a reference to it.
|
|
2145
|
+
*
|
|
2146
|
+
* To remove the binding, call g_binding_unbind().
|
|
2147
|
+
*
|
|
2148
|
+
* A #GObject can have multiple bindings.
|
|
2149
|
+
*
|
|
2150
|
+
* The same `user_data` parameter will be used for both `transform_to`
|
|
2151
|
+
* and `transform_from` transformation functions; the `notify` function will
|
|
2152
|
+
* be called once, when the binding is removed. If you need different data
|
|
2153
|
+
* for each transformation function, please use
|
|
2154
|
+
* g_object_bind_property_with_closures() instead.
|
|
2155
|
+
* @param source_property the property on @source to bind
|
|
2156
|
+
* @param target the target #GObject
|
|
2157
|
+
* @param target_property the property on @target to bind
|
|
2158
|
+
* @param flags flags to pass to #GBinding
|
|
2159
|
+
* @param transform_to the transformation function from the @source to the @target, or %NULL to use the default
|
|
2160
|
+
* @param transform_from the transformation function from the @target to the @source, or %NULL to use the default
|
|
2161
|
+
* @param notify a function to call when disposing the binding, to free resources used by the transformation functions, or %NULL if not required
|
|
2162
|
+
* @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
|
|
2163
|
+
*/
|
|
2164
|
+
bind_property_full(
|
|
2165
|
+
source_property: string,
|
|
2166
|
+
target: GObject.Object,
|
|
2167
|
+
target_property: string,
|
|
2168
|
+
flags: GObject.BindingFlags,
|
|
2169
|
+
transform_to?: GObject.BindingTransformFunc | null,
|
|
2170
|
+
transform_from?: GObject.BindingTransformFunc | null,
|
|
2171
|
+
notify?: GLib.DestroyNotify | null,
|
|
2172
|
+
): GObject.Binding;
|
|
2173
|
+
// Conflicted with GObject.Object.bind_property_full
|
|
2174
|
+
bind_property_full(...args: never[]): any;
|
|
2175
|
+
/**
|
|
2176
|
+
* This function is intended for #GObject implementations to re-enforce
|
|
2177
|
+
* a [floating][floating-ref] object reference. Doing this is seldom
|
|
2178
|
+
* required: all #GInitiallyUnowneds are created with a floating reference
|
|
2179
|
+
* which usually just needs to be sunken by calling g_object_ref_sink().
|
|
2180
|
+
*/
|
|
2181
|
+
force_floating(): void;
|
|
2182
|
+
/**
|
|
2183
|
+
* Increases the freeze count on `object`. If the freeze count is
|
|
2184
|
+
* non-zero, the emission of "notify" signals on `object` is
|
|
2185
|
+
* stopped. The signals are queued until the freeze count is decreased
|
|
2186
|
+
* to zero. Duplicate notifications are squashed so that at most one
|
|
2187
|
+
* #GObject::notify signal is emitted for each property modified while the
|
|
2188
|
+
* object is frozen.
|
|
2189
|
+
*
|
|
2190
|
+
* This is necessary for accessors that modify multiple properties to prevent
|
|
2191
|
+
* premature notification while the object is still being modified.
|
|
2192
|
+
*/
|
|
2193
|
+
freeze_notify(): void;
|
|
2194
|
+
/**
|
|
2195
|
+
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
2196
|
+
* @param key name of the key for that association
|
|
2197
|
+
* @returns the data if found, or %NULL if no such data exists.
|
|
2198
|
+
*/
|
|
2199
|
+
get_data(key: string): any | null;
|
|
2200
|
+
get_property(property_name: string): any;
|
|
2201
|
+
/**
|
|
2202
|
+
* This function gets back user data pointers stored via
|
|
2203
|
+
* g_object_set_qdata().
|
|
2204
|
+
* @param quark A #GQuark, naming the user data pointer
|
|
2205
|
+
* @returns The user data pointer set, or %NULL
|
|
2206
|
+
*/
|
|
2207
|
+
get_qdata(quark: GLib.Quark): any | null;
|
|
2208
|
+
/**
|
|
2209
|
+
* Gets `n_properties` properties for an `object`.
|
|
2210
|
+
* Obtained properties will be set to `values`. All properties must be valid.
|
|
2211
|
+
* Warnings will be emitted and undefined behaviour may result if invalid
|
|
2212
|
+
* properties are passed in.
|
|
2213
|
+
* @param names the names of each property to get
|
|
2214
|
+
* @param values the values of each property to get
|
|
2215
|
+
*/
|
|
2216
|
+
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
2217
|
+
/**
|
|
2218
|
+
* Checks whether `object` has a [floating][floating-ref] reference.
|
|
2219
|
+
* @returns %TRUE if @object has a floating reference
|
|
2220
|
+
*/
|
|
2221
|
+
is_floating(): boolean;
|
|
2222
|
+
/**
|
|
2223
|
+
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
2224
|
+
*
|
|
2225
|
+
* When possible, eg. when signaling a property change from within the class
|
|
2226
|
+
* that registered the property, you should use g_object_notify_by_pspec()
|
|
2227
|
+
* instead.
|
|
2228
|
+
*
|
|
2229
|
+
* Note that emission of the notify signal may be blocked with
|
|
2230
|
+
* g_object_freeze_notify(). In this case, the signal emissions are queued
|
|
2231
|
+
* and will be emitted (in reverse order) when g_object_thaw_notify() is
|
|
2232
|
+
* called.
|
|
2233
|
+
* @param property_name the name of a property installed on the class of @object.
|
|
2234
|
+
*/
|
|
2235
|
+
notify(property_name: string): void;
|
|
2236
|
+
/**
|
|
2237
|
+
* Emits a "notify" signal for the property specified by `pspec` on `object`.
|
|
2238
|
+
*
|
|
2239
|
+
* This function omits the property name lookup, hence it is faster than
|
|
2240
|
+
* g_object_notify().
|
|
2241
|
+
*
|
|
2242
|
+
* One way to avoid using g_object_notify() from within the
|
|
2243
|
+
* class that registered the properties, and using g_object_notify_by_pspec()
|
|
2244
|
+
* instead, is to store the GParamSpec used with
|
|
2245
|
+
* g_object_class_install_property() inside a static array, e.g.:
|
|
2246
|
+
*
|
|
2247
|
+
*
|
|
2248
|
+
* ```c
|
|
2249
|
+
* typedef enum
|
|
2250
|
+
* {
|
|
2251
|
+
* PROP_FOO = 1,
|
|
2252
|
+
* PROP_LAST
|
|
2253
|
+
* } MyObjectProperty;
|
|
2254
|
+
*
|
|
2255
|
+
* static GParamSpec *properties[PROP_LAST];
|
|
2256
|
+
*
|
|
2257
|
+
* static void
|
|
2258
|
+
* my_object_class_init (MyObjectClass *klass)
|
|
2259
|
+
* {
|
|
2260
|
+
* properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
|
|
2261
|
+
* 0, 100,
|
|
2262
|
+
* 50,
|
|
2263
|
+
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
|
2264
|
+
* g_object_class_install_property (gobject_class,
|
|
2265
|
+
* PROP_FOO,
|
|
2266
|
+
* properties[PROP_FOO]);
|
|
2267
|
+
* }
|
|
2268
|
+
* ```
|
|
2269
|
+
*
|
|
2270
|
+
*
|
|
2271
|
+
* and then notify a change on the "foo" property with:
|
|
2272
|
+
*
|
|
2273
|
+
*
|
|
2274
|
+
* ```c
|
|
2275
|
+
* g_object_notify_by_pspec (self, properties[PROP_FOO]);
|
|
2276
|
+
* ```
|
|
2277
|
+
*
|
|
2278
|
+
* @param pspec the #GParamSpec of a property installed on the class of @object.
|
|
2279
|
+
*/
|
|
2280
|
+
notify_by_pspec(pspec: GObject.ParamSpec): void;
|
|
2281
|
+
/**
|
|
2282
|
+
* Increases the reference count of `object`.
|
|
2283
|
+
*
|
|
2284
|
+
* Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
|
|
2285
|
+
* of `object` will be propagated to the return type (using the GCC typeof()
|
|
2286
|
+
* extension), so any casting the caller needs to do on the return type must be
|
|
2287
|
+
* explicit.
|
|
2288
|
+
* @returns the same @object
|
|
2289
|
+
*/
|
|
2290
|
+
ref(): GObject.Object;
|
|
2291
|
+
/**
|
|
2292
|
+
* Increase the reference count of `object,` and possibly remove the
|
|
2293
|
+
* [floating][floating-ref] reference, if `object` has a floating reference.
|
|
2294
|
+
*
|
|
2295
|
+
* In other words, if the object is floating, then this call "assumes
|
|
2296
|
+
* ownership" of the floating reference, converting it to a normal
|
|
2297
|
+
* reference by clearing the floating flag while leaving the reference
|
|
2298
|
+
* count unchanged. If the object is not floating, then this call
|
|
2299
|
+
* adds a new normal reference increasing the reference count by one.
|
|
2300
|
+
*
|
|
2301
|
+
* Since GLib 2.56, the type of `object` will be propagated to the return type
|
|
2302
|
+
* under the same conditions as for g_object_ref().
|
|
2303
|
+
* @returns @object
|
|
2304
|
+
*/
|
|
2305
|
+
ref_sink(): GObject.Object;
|
|
2306
|
+
/**
|
|
2307
|
+
* Releases all references to other objects. This can be used to break
|
|
2308
|
+
* reference cycles.
|
|
2309
|
+
*
|
|
2310
|
+
* This function should only be called from object system implementations.
|
|
2311
|
+
*/
|
|
2312
|
+
run_dispose(): void;
|
|
2313
|
+
/**
|
|
2314
|
+
* Each object carries around a table of associations from
|
|
2315
|
+
* strings to pointers. This function lets you set an association.
|
|
2316
|
+
*
|
|
2317
|
+
* If the object already had an association with that name,
|
|
2318
|
+
* the old association will be destroyed.
|
|
2319
|
+
*
|
|
2320
|
+
* Internally, the `key` is converted to a #GQuark using g_quark_from_string().
|
|
2321
|
+
* This means a copy of `key` is kept permanently (even after `object` has been
|
|
2322
|
+
* finalized) — so it is recommended to only use a small, bounded set of values
|
|
2323
|
+
* for `key` in your program, to avoid the #GQuark storage growing unbounded.
|
|
2324
|
+
* @param key name of the key
|
|
2325
|
+
* @param data data to associate with that key
|
|
2326
|
+
*/
|
|
2327
|
+
set_data(key: string, data?: any | null): void;
|
|
2328
|
+
set_property(property_name: string, value: any): void;
|
|
2329
|
+
/**
|
|
2330
|
+
* Remove a specified datum from the object's data associations,
|
|
2331
|
+
* without invoking the association's destroy handler.
|
|
2332
|
+
* @param key name of the key
|
|
2333
|
+
* @returns the data if found, or %NULL if no such data exists.
|
|
2334
|
+
*/
|
|
2335
|
+
steal_data(key: string): any | null;
|
|
2336
|
+
/**
|
|
2337
|
+
* This function gets back user data pointers stored via
|
|
2338
|
+
* g_object_set_qdata() and removes the `data` from object
|
|
2339
|
+
* without invoking its destroy() function (if any was
|
|
2340
|
+
* set).
|
|
2341
|
+
* Usually, calling this function is only required to update
|
|
2342
|
+
* user data pointers with a destroy notifier, for example:
|
|
2343
|
+
*
|
|
2344
|
+
* ```c
|
|
2345
|
+
* void
|
|
2346
|
+
* object_add_to_user_list (GObject *object,
|
|
2347
|
+
* const gchar *new_string)
|
|
2348
|
+
* {
|
|
2349
|
+
* // the quark, naming the object data
|
|
2350
|
+
* GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
|
|
2351
|
+
* // retrieve the old string list
|
|
2352
|
+
* GList *list = g_object_steal_qdata (object, quark_string_list);
|
|
2353
|
+
*
|
|
2354
|
+
* // prepend new string
|
|
2355
|
+
* list = g_list_prepend (list, g_strdup (new_string));
|
|
2356
|
+
* // this changed 'list', so we need to set it again
|
|
2357
|
+
* g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
|
|
2358
|
+
* }
|
|
2359
|
+
* static void
|
|
2360
|
+
* free_string_list (gpointer data)
|
|
2361
|
+
* {
|
|
2362
|
+
* GList *node, *list = data;
|
|
2363
|
+
*
|
|
2364
|
+
* for (node = list; node; node = node->next)
|
|
2365
|
+
* g_free (node->data);
|
|
2366
|
+
* g_list_free (list);
|
|
2367
|
+
* }
|
|
2368
|
+
* ```
|
|
2369
|
+
*
|
|
2370
|
+
* Using g_object_get_qdata() in the above example, instead of
|
|
2371
|
+
* g_object_steal_qdata() would have left the destroy function set,
|
|
2372
|
+
* and thus the partial string list would have been freed upon
|
|
2373
|
+
* g_object_set_qdata_full().
|
|
2374
|
+
* @param quark A #GQuark, naming the user data pointer
|
|
2375
|
+
* @returns The user data pointer set, or %NULL
|
|
2376
|
+
*/
|
|
2377
|
+
steal_qdata(quark: GLib.Quark): any | null;
|
|
2378
|
+
/**
|
|
2379
|
+
* Reverts the effect of a previous call to
|
|
2380
|
+
* g_object_freeze_notify(). The freeze count is decreased on `object`
|
|
2381
|
+
* and when it reaches zero, queued "notify" signals are emitted.
|
|
2382
|
+
*
|
|
2383
|
+
* Duplicate notifications for each property are squashed so that at most one
|
|
2384
|
+
* #GObject::notify signal is emitted for each property, in the reverse order
|
|
2385
|
+
* in which they have been queued.
|
|
2386
|
+
*
|
|
2387
|
+
* It is an error to call this function when the freeze count is zero.
|
|
2388
|
+
*/
|
|
2389
|
+
thaw_notify(): void;
|
|
2390
|
+
/**
|
|
2391
|
+
* Decreases the reference count of `object`. When its reference count
|
|
2392
|
+
* drops to 0, the object is finalized (i.e. its memory is freed).
|
|
2393
|
+
*
|
|
2394
|
+
* If the pointer to the #GObject may be reused in future (for example, if it is
|
|
2395
|
+
* an instance variable of another object), it is recommended to clear the
|
|
2396
|
+
* pointer to %NULL rather than retain a dangling pointer to a potentially
|
|
2397
|
+
* invalid #GObject instance. Use g_clear_object() for this.
|
|
2398
|
+
*/
|
|
2399
|
+
unref(): void;
|
|
2400
|
+
/**
|
|
2401
|
+
* This function essentially limits the life time of the `closure` to
|
|
2402
|
+
* the life time of the object. That is, when the object is finalized,
|
|
2403
|
+
* the `closure` is invalidated by calling g_closure_invalidate() on
|
|
2404
|
+
* it, in order to prevent invocations of the closure with a finalized
|
|
2405
|
+
* (nonexisting) object. Also, g_object_ref() and g_object_unref() are
|
|
2406
|
+
* added as marshal guards to the `closure,` to ensure that an extra
|
|
2407
|
+
* reference count is held on `object` during invocation of the
|
|
2408
|
+
* `closure`. Usually, this function will be called on closures that
|
|
2409
|
+
* use this `object` as closure data.
|
|
2410
|
+
* @param closure #GClosure to watch
|
|
2411
|
+
*/
|
|
2412
|
+
watch_closure(closure: GObject.Closure): void;
|
|
2413
|
+
vfunc_constructed(): void;
|
|
2414
|
+
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
2415
|
+
vfunc_dispose(): void;
|
|
2416
|
+
vfunc_finalize(): void;
|
|
2417
|
+
vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
2418
|
+
/**
|
|
2419
|
+
* Emits a "notify" signal for the property `property_name` on `object`.
|
|
2420
|
+
*
|
|
2421
|
+
* When possible, eg. when signaling a property change from within the class
|
|
2422
|
+
* that registered the property, you should use g_object_notify_by_pspec()
|
|
2423
|
+
* instead.
|
|
2424
|
+
*
|
|
2425
|
+
* Note that emission of the notify signal may be blocked with
|
|
2426
|
+
* g_object_freeze_notify(). In this case, the signal emissions are queued
|
|
2427
|
+
* and will be emitted (in reverse order) when g_object_thaw_notify() is
|
|
2428
|
+
* called.
|
|
2429
|
+
* @param pspec
|
|
2430
|
+
*/
|
|
2431
|
+
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
2432
|
+
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
2433
|
+
disconnect(id: number): void;
|
|
2434
|
+
set(properties: { [key: string]: any }): void;
|
|
2435
|
+
block_signal_handler(id: number): any;
|
|
2436
|
+
unblock_signal_handler(id: number): any;
|
|
2437
|
+
stop_emission_by_name(detailedName: string): any;
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
module LabelWidget {
|
|
2441
|
+
// Constructor properties interface
|
|
2442
|
+
|
|
2443
|
+
interface ConstructorProps extends Gtk.Box.ConstructorProps {
|
|
2444
|
+
title: string;
|
|
2445
|
+
label: Gtk.Label;
|
|
2446
|
+
widget: Gtk.Widget | any;
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
class LabelWidget extends Gtk.Box {
|
|
2451
|
+
static $gtype: GObject.GType<LabelWidget>;
|
|
2452
|
+
|
|
2453
|
+
// Own properties of Midori.LabelWidget
|
|
2454
|
+
|
|
2455
|
+
get title(): string;
|
|
2456
|
+
set title(val: string);
|
|
2457
|
+
get label(): Gtk.Label;
|
|
2458
|
+
set label(val: Gtk.Label);
|
|
2459
|
+
// This accessor conflicts with a property or field in a parent class or interface.
|
|
2460
|
+
widget: Gtk.Widget | any;
|
|
2461
|
+
|
|
2462
|
+
// Constructors of Midori.LabelWidget
|
|
2463
|
+
|
|
2464
|
+
constructor(properties?: Partial<LabelWidget.ConstructorProps>, ...args: any[]);
|
|
2465
|
+
|
|
2466
|
+
_init(...args: any[]): void;
|
|
2467
|
+
|
|
2468
|
+
static ['new'](title?: string | null, widget?: Gtk.Widget | null): LabelWidget;
|
|
2469
|
+
// Conflicted with Gtk.Box.new
|
|
2470
|
+
|
|
2471
|
+
static ['new'](...args: never[]): any;
|
|
2472
|
+
|
|
2473
|
+
// Own methods of Midori.LabelWidget
|
|
2474
|
+
|
|
2475
|
+
get_title(): string | null;
|
|
2476
|
+
set_title(value?: string | null): void;
|
|
2477
|
+
get_label(): Gtk.Label;
|
|
2478
|
+
set_label(value: Gtk.Label): void;
|
|
2479
|
+
get_widget(): Gtk.Widget | null;
|
|
2480
|
+
set_widget(value?: Gtk.Widget | null): void;
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
module Preferences {
|
|
2484
|
+
// Constructor properties interface
|
|
2485
|
+
|
|
2486
|
+
interface ConstructorProps extends Gtk.Dialog.ConstructorProps {}
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
class Preferences extends Gtk.Dialog {
|
|
2490
|
+
static $gtype: GObject.GType<Preferences>;
|
|
2491
|
+
|
|
2492
|
+
// Constructors of Midori.Preferences
|
|
2493
|
+
|
|
2494
|
+
constructor(properties?: Partial<Preferences.ConstructorProps>, ...args: any[]);
|
|
2495
|
+
|
|
2496
|
+
_init(...args: any[]): void;
|
|
2497
|
+
|
|
2498
|
+
static ['new'](parent: Gtk.Window): Preferences;
|
|
2499
|
+
// Conflicted with Gtk.Dialog.new
|
|
2500
|
+
|
|
2501
|
+
static ['new'](...args: never[]): any;
|
|
2502
|
+
|
|
2503
|
+
// Own methods of Midori.Preferences
|
|
2504
|
+
|
|
2505
|
+
add(label: string, widget: Gtk.Widget): void;
|
|
2506
|
+
// Conflicted with Gtk.Container.add
|
|
2507
|
+
add(...args: never[]): any;
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
module CoreSettings {
|
|
2511
|
+
// Constructor properties interface
|
|
2512
|
+
|
|
2513
|
+
interface ConstructorProps extends Settings.ConstructorProps {
|
|
2514
|
+
last_window_width: number;
|
|
2515
|
+
lastWindowWidth: number;
|
|
2516
|
+
last_window_height: number;
|
|
2517
|
+
lastWindowHeight: number;
|
|
2518
|
+
load_on_startup: StartupType;
|
|
2519
|
+
loadOnStartup: StartupType;
|
|
2520
|
+
enable_spell_checking: boolean;
|
|
2521
|
+
enableSpellChecking: boolean;
|
|
2522
|
+
auto_load_images: boolean;
|
|
2523
|
+
autoLoadImages: boolean;
|
|
2524
|
+
enable_javascript: boolean;
|
|
2525
|
+
enableJavascript: boolean;
|
|
2526
|
+
enable_plugins: boolean;
|
|
2527
|
+
enablePlugins: boolean;
|
|
2528
|
+
enable_caret_browsing: boolean;
|
|
2529
|
+
enableCaretBrowsing: boolean;
|
|
2530
|
+
close_buttons_on_tabs: boolean;
|
|
2531
|
+
closeButtonsOnTabs: boolean;
|
|
2532
|
+
location_entry_search: string;
|
|
2533
|
+
locationEntrySearch: string;
|
|
2534
|
+
homepage: string;
|
|
2535
|
+
proxy_type: ProxyType;
|
|
2536
|
+
proxyType: ProxyType;
|
|
2537
|
+
http_proxy: string;
|
|
2538
|
+
httpProxy: string;
|
|
2539
|
+
http_proxy_port: number;
|
|
2540
|
+
httpProxyPort: number;
|
|
2541
|
+
first_party_cookies_only: boolean;
|
|
2542
|
+
firstPartyCookiesOnly: boolean;
|
|
2543
|
+
maximum_history_age: number;
|
|
2544
|
+
maximumHistoryAge: number;
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
class CoreSettings extends Settings {
|
|
2549
|
+
static $gtype: GObject.GType<CoreSettings>;
|
|
2550
|
+
|
|
2551
|
+
// Own properties of Midori.CoreSettings
|
|
2552
|
+
|
|
2553
|
+
get last_window_width(): number;
|
|
2554
|
+
set last_window_width(val: number);
|
|
2555
|
+
get lastWindowWidth(): number;
|
|
2556
|
+
set lastWindowWidth(val: number);
|
|
2557
|
+
get last_window_height(): number;
|
|
2558
|
+
set last_window_height(val: number);
|
|
2559
|
+
get lastWindowHeight(): number;
|
|
2560
|
+
set lastWindowHeight(val: number);
|
|
2561
|
+
get load_on_startup(): StartupType;
|
|
2562
|
+
set load_on_startup(val: StartupType);
|
|
2563
|
+
get loadOnStartup(): StartupType;
|
|
2564
|
+
set loadOnStartup(val: StartupType);
|
|
2565
|
+
get enable_spell_checking(): boolean;
|
|
2566
|
+
set enable_spell_checking(val: boolean);
|
|
2567
|
+
get enableSpellChecking(): boolean;
|
|
2568
|
+
set enableSpellChecking(val: boolean);
|
|
2569
|
+
get auto_load_images(): boolean;
|
|
2570
|
+
set auto_load_images(val: boolean);
|
|
2571
|
+
get autoLoadImages(): boolean;
|
|
2572
|
+
set autoLoadImages(val: boolean);
|
|
2573
|
+
get enable_javascript(): boolean;
|
|
2574
|
+
set enable_javascript(val: boolean);
|
|
2575
|
+
get enableJavascript(): boolean;
|
|
2576
|
+
set enableJavascript(val: boolean);
|
|
2577
|
+
get enable_plugins(): boolean;
|
|
2578
|
+
set enable_plugins(val: boolean);
|
|
2579
|
+
get enablePlugins(): boolean;
|
|
2580
|
+
set enablePlugins(val: boolean);
|
|
2581
|
+
get enable_caret_browsing(): boolean;
|
|
2582
|
+
set enable_caret_browsing(val: boolean);
|
|
2583
|
+
get enableCaretBrowsing(): boolean;
|
|
2584
|
+
set enableCaretBrowsing(val: boolean);
|
|
2585
|
+
get close_buttons_on_tabs(): boolean;
|
|
2586
|
+
set close_buttons_on_tabs(val: boolean);
|
|
2587
|
+
get closeButtonsOnTabs(): boolean;
|
|
2588
|
+
set closeButtonsOnTabs(val: boolean);
|
|
2589
|
+
get location_entry_search(): string;
|
|
2590
|
+
set location_entry_search(val: string);
|
|
2591
|
+
get locationEntrySearch(): string;
|
|
2592
|
+
set locationEntrySearch(val: string);
|
|
2593
|
+
get homepage(): string;
|
|
2594
|
+
set homepage(val: string);
|
|
2595
|
+
get proxy_type(): ProxyType;
|
|
2596
|
+
set proxy_type(val: ProxyType);
|
|
2597
|
+
get proxyType(): ProxyType;
|
|
2598
|
+
set proxyType(val: ProxyType);
|
|
2599
|
+
get http_proxy(): string;
|
|
2600
|
+
set http_proxy(val: string);
|
|
2601
|
+
get httpProxy(): string;
|
|
2602
|
+
set httpProxy(val: string);
|
|
2603
|
+
get http_proxy_port(): number;
|
|
2604
|
+
set http_proxy_port(val: number);
|
|
2605
|
+
get httpProxyPort(): number;
|
|
2606
|
+
set httpProxyPort(val: number);
|
|
2607
|
+
get first_party_cookies_only(): boolean;
|
|
2608
|
+
set first_party_cookies_only(val: boolean);
|
|
2609
|
+
get firstPartyCookiesOnly(): boolean;
|
|
2610
|
+
set firstPartyCookiesOnly(val: boolean);
|
|
2611
|
+
get maximum_history_age(): number;
|
|
2612
|
+
set maximum_history_age(val: number);
|
|
2613
|
+
get maximumHistoryAge(): number;
|
|
2614
|
+
set maximumHistoryAge(val: number);
|
|
2615
|
+
|
|
2616
|
+
// Constructors of Midori.CoreSettings
|
|
2617
|
+
|
|
2618
|
+
constructor(properties?: Partial<CoreSettings.ConstructorProps>, ...args: any[]);
|
|
2619
|
+
|
|
2620
|
+
_init(...args: any[]): void;
|
|
2621
|
+
|
|
2622
|
+
// Own static methods of Midori.CoreSettings
|
|
2623
|
+
|
|
2624
|
+
static get_default(): CoreSettings;
|
|
2625
|
+
|
|
2626
|
+
// Own methods of Midori.CoreSettings
|
|
2627
|
+
|
|
2628
|
+
get_plugin_enabled(plugin: string): boolean;
|
|
2629
|
+
set_plugin_enabled(plugin: string, enabled: boolean): void;
|
|
2630
|
+
uri_for_search(keywords?: string | null, search?: string | null): string;
|
|
2631
|
+
get_last_window_width(): number;
|
|
2632
|
+
set_last_window_width(value: number): void;
|
|
2633
|
+
get_last_window_height(): number;
|
|
2634
|
+
set_last_window_height(value: number): void;
|
|
2635
|
+
get_load_on_startup(): StartupType;
|
|
2636
|
+
set_load_on_startup(value: StartupType): void;
|
|
2637
|
+
get_enable_spell_checking(): boolean;
|
|
2638
|
+
set_enable_spell_checking(value: boolean): void;
|
|
2639
|
+
get_auto_load_images(): boolean;
|
|
2640
|
+
set_auto_load_images(value: boolean): void;
|
|
2641
|
+
get_enable_javascript(): boolean;
|
|
2642
|
+
set_enable_javascript(value: boolean): void;
|
|
2643
|
+
get_enable_plugins(): boolean;
|
|
2644
|
+
set_enable_plugins(value: boolean): void;
|
|
2645
|
+
get_enable_caret_browsing(): boolean;
|
|
2646
|
+
set_enable_caret_browsing(value: boolean): void;
|
|
2647
|
+
get_close_buttons_on_tabs(): boolean;
|
|
2648
|
+
set_close_buttons_on_tabs(value: boolean): void;
|
|
2649
|
+
get_location_entry_search(): string;
|
|
2650
|
+
set_location_entry_search(value: string): void;
|
|
2651
|
+
get_homepage(): string;
|
|
2652
|
+
set_homepage(value: string): void;
|
|
2653
|
+
get_proxy_type(): ProxyType;
|
|
2654
|
+
set_proxy_type(value: ProxyType): void;
|
|
2655
|
+
get_http_proxy(): string;
|
|
2656
|
+
set_http_proxy(value: string): void;
|
|
2657
|
+
get_http_proxy_port(): number;
|
|
2658
|
+
set_http_proxy_port(value: number): void;
|
|
2659
|
+
get_first_party_cookies_only(): boolean;
|
|
2660
|
+
set_first_party_cookies_only(value: boolean): void;
|
|
2661
|
+
get_maximum_history_age(): number;
|
|
2662
|
+
set_maximum_history_age(value: number): void;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
module Settings {
|
|
2666
|
+
// Constructor properties interface
|
|
2667
|
+
|
|
2668
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
2669
|
+
filename: string;
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
class Settings extends GObject.Object {
|
|
2674
|
+
static $gtype: GObject.GType<Settings>;
|
|
2675
|
+
|
|
2676
|
+
// Own properties of Midori.Settings
|
|
2677
|
+
|
|
2678
|
+
get filename(): string;
|
|
2679
|
+
set filename(val: string);
|
|
2680
|
+
|
|
2681
|
+
// Constructors of Midori.Settings
|
|
2682
|
+
|
|
2683
|
+
constructor(properties?: Partial<Settings.ConstructorProps>, ...args: any[]);
|
|
2684
|
+
|
|
2685
|
+
_init(...args: any[]): void;
|
|
2686
|
+
|
|
2687
|
+
static ['new'](): Settings;
|
|
2688
|
+
|
|
2689
|
+
// Own methods of Midori.Settings
|
|
2690
|
+
|
|
2691
|
+
set_boolean(group: string, key: string, value: boolean, _default_: boolean): void;
|
|
2692
|
+
get_boolean(group: string, key: string, _default_: boolean): boolean;
|
|
2693
|
+
set_string(group: string, key: string, value: string, _default_?: string | null): void;
|
|
2694
|
+
get_string(group: string, key: string, _default_?: string | null): string | null;
|
|
2695
|
+
get_filename(): string;
|
|
2696
|
+
set_filename(value: string): void;
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
module Statusbar {
|
|
2700
|
+
// Constructor properties interface
|
|
2701
|
+
|
|
2702
|
+
interface ConstructorProps extends Gtk.Statusbar.ConstructorProps {
|
|
2703
|
+
label: string;
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
class Statusbar extends Gtk.Statusbar {
|
|
2708
|
+
static $gtype: GObject.GType<Statusbar>;
|
|
2709
|
+
|
|
2710
|
+
// Own properties of Midori.Statusbar
|
|
2711
|
+
|
|
2712
|
+
get label(): string;
|
|
2713
|
+
set label(val: string);
|
|
2714
|
+
|
|
2715
|
+
// Own fields of Midori.Statusbar
|
|
2716
|
+
|
|
2717
|
+
has_children: boolean;
|
|
2718
|
+
|
|
2719
|
+
// Constructors of Midori.Statusbar
|
|
2720
|
+
|
|
2721
|
+
constructor(properties?: Partial<Statusbar.ConstructorProps>, ...args: any[]);
|
|
2722
|
+
|
|
2723
|
+
_init(...args: any[]): void;
|
|
2724
|
+
|
|
2725
|
+
static ['new'](): Statusbar;
|
|
2726
|
+
|
|
2727
|
+
// Own methods of Midori.Statusbar
|
|
2728
|
+
|
|
2729
|
+
get_label(): string | null;
|
|
2730
|
+
set_label(value?: string | null): void;
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
module SuggestionRow {
|
|
2734
|
+
// Constructor properties interface
|
|
2735
|
+
|
|
2736
|
+
interface ConstructorProps extends Gtk.ListBoxRow.ConstructorProps {
|
|
2737
|
+
item: DatabaseItem;
|
|
2738
|
+
location: string;
|
|
2739
|
+
regex: GLib.Regex;
|
|
2740
|
+
key: string;
|
|
2741
|
+
}
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
class SuggestionRow extends Gtk.ListBoxRow {
|
|
2745
|
+
static $gtype: GObject.GType<SuggestionRow>;
|
|
2746
|
+
|
|
2747
|
+
// Own properties of Midori.SuggestionRow
|
|
2748
|
+
|
|
2749
|
+
get item(): DatabaseItem;
|
|
2750
|
+
set item(val: DatabaseItem);
|
|
2751
|
+
get location(): string;
|
|
2752
|
+
set location(val: string);
|
|
2753
|
+
get regex(): GLib.Regex;
|
|
2754
|
+
set regex(val: GLib.Regex);
|
|
2755
|
+
get key(): string;
|
|
2756
|
+
set key(val: string);
|
|
2757
|
+
|
|
2758
|
+
// Constructors of Midori.SuggestionRow
|
|
2759
|
+
|
|
2760
|
+
constructor(properties?: Partial<SuggestionRow.ConstructorProps>, ...args: any[]);
|
|
2761
|
+
|
|
2762
|
+
_init(...args: any[]): void;
|
|
2763
|
+
|
|
2764
|
+
static ['new'](item: DatabaseItem): SuggestionRow;
|
|
2765
|
+
// Conflicted with Gtk.ListBoxRow.new
|
|
2766
|
+
|
|
2767
|
+
static ['new'](...args: never[]): any;
|
|
2768
|
+
|
|
2769
|
+
// Own methods of Midori.SuggestionRow
|
|
2770
|
+
|
|
2771
|
+
get_item(): DatabaseItem;
|
|
2772
|
+
set_item(value: DatabaseItem): void;
|
|
2773
|
+
get_location(): string | null;
|
|
2774
|
+
set_location(value?: string | null): void;
|
|
2775
|
+
get_regex(): GLib.Regex | null;
|
|
2776
|
+
set_regex(value?: GLib.Regex | null): void;
|
|
2777
|
+
get_key(): string | null;
|
|
2778
|
+
set_key(value?: string | null): void;
|
|
2779
|
+
}
|
|
2780
|
+
|
|
2781
|
+
module Switcher {
|
|
2782
|
+
// Constructor properties interface
|
|
2783
|
+
|
|
2784
|
+
interface ConstructorProps extends Gtk.Box.ConstructorProps {
|
|
2785
|
+
stack: Gtk.Stack;
|
|
2786
|
+
show_close_buttons: boolean;
|
|
2787
|
+
showCloseButtons: boolean;
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2791
|
+
class Switcher extends Gtk.Box {
|
|
2792
|
+
static $gtype: GObject.GType<Switcher>;
|
|
2793
|
+
|
|
2794
|
+
// Own properties of Midori.Switcher
|
|
2795
|
+
|
|
2796
|
+
get stack(): Gtk.Stack;
|
|
2797
|
+
set stack(val: Gtk.Stack);
|
|
2798
|
+
get show_close_buttons(): boolean;
|
|
2799
|
+
set show_close_buttons(val: boolean);
|
|
2800
|
+
get showCloseButtons(): boolean;
|
|
2801
|
+
set showCloseButtons(val: boolean);
|
|
2802
|
+
|
|
2803
|
+
// Constructors of Midori.Switcher
|
|
2804
|
+
|
|
2805
|
+
constructor(properties?: Partial<Switcher.ConstructorProps>, ...args: any[]);
|
|
2806
|
+
|
|
2807
|
+
_init(...args: any[]): void;
|
|
2808
|
+
|
|
2809
|
+
static ['new'](): Switcher;
|
|
2810
|
+
|
|
2811
|
+
// Own methods of Midori.Switcher
|
|
2812
|
+
|
|
2813
|
+
get_stack(): Gtk.Stack | null;
|
|
2814
|
+
set_stack(value?: Gtk.Stack | null): void;
|
|
2815
|
+
get_show_close_buttons(): boolean;
|
|
2816
|
+
set_show_close_buttons(value: boolean): void;
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
module Tab {
|
|
2820
|
+
// Constructor properties interface
|
|
2821
|
+
|
|
2822
|
+
interface ConstructorProps extends WebKit2.WebView.ConstructorProps {
|
|
2823
|
+
id: string;
|
|
2824
|
+
progress: number;
|
|
2825
|
+
can_go_back: boolean | any;
|
|
2826
|
+
canGoBack: boolean;
|
|
2827
|
+
can_go_forward: boolean | any;
|
|
2828
|
+
canGoForward: boolean;
|
|
2829
|
+
item: DatabaseItem;
|
|
2830
|
+
display_uri: string;
|
|
2831
|
+
displayUri: string;
|
|
2832
|
+
display_title: string;
|
|
2833
|
+
displayTitle: string;
|
|
2834
|
+
color: string;
|
|
2835
|
+
pinned: boolean;
|
|
2836
|
+
secure: boolean;
|
|
2837
|
+
link_uri: string;
|
|
2838
|
+
linkUri: string;
|
|
2839
|
+
}
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
class Tab extends WebKit2.WebView {
|
|
2843
|
+
static $gtype: GObject.GType<Tab>;
|
|
2844
|
+
|
|
2845
|
+
// Own properties of Midori.Tab
|
|
2846
|
+
|
|
2847
|
+
get id(): string;
|
|
2848
|
+
get progress(): number;
|
|
2849
|
+
set progress(val: number);
|
|
2850
|
+
// This accessor conflicts with a property or field in a parent class or interface.
|
|
2851
|
+
can_go_back: boolean | any;
|
|
2852
|
+
get canGoBack(): boolean;
|
|
2853
|
+
set canGoBack(val: boolean);
|
|
2854
|
+
// This accessor conflicts with a property or field in a parent class or interface.
|
|
2855
|
+
can_go_forward: boolean | any;
|
|
2856
|
+
get canGoForward(): boolean;
|
|
2857
|
+
set canGoForward(val: boolean);
|
|
2858
|
+
get item(): DatabaseItem;
|
|
2859
|
+
set item(val: DatabaseItem);
|
|
2860
|
+
get display_uri(): string;
|
|
2861
|
+
set display_uri(val: string);
|
|
2862
|
+
get displayUri(): string;
|
|
2863
|
+
set displayUri(val: string);
|
|
2864
|
+
get display_title(): string;
|
|
2865
|
+
set display_title(val: string);
|
|
2866
|
+
get displayTitle(): string;
|
|
2867
|
+
set displayTitle(val: string);
|
|
2868
|
+
get color(): string;
|
|
2869
|
+
set color(val: string);
|
|
2870
|
+
get pinned(): boolean;
|
|
2871
|
+
set pinned(val: boolean);
|
|
2872
|
+
get secure(): boolean;
|
|
2873
|
+
set secure(val: boolean);
|
|
2874
|
+
get link_uri(): string;
|
|
2875
|
+
set link_uri(val: string);
|
|
2876
|
+
get linkUri(): string;
|
|
2877
|
+
set linkUri(val: string);
|
|
2878
|
+
|
|
2879
|
+
// Own fields of Midori.Tab
|
|
2880
|
+
|
|
2881
|
+
popover: Gtk.Popover;
|
|
2882
|
+
|
|
2883
|
+
// Constructors of Midori.Tab
|
|
2884
|
+
|
|
2885
|
+
constructor(properties?: Partial<Tab.ConstructorProps>, ...args: any[]);
|
|
2886
|
+
|
|
2887
|
+
_init(...args: any[]): void;
|
|
2888
|
+
|
|
2889
|
+
static ['new'](
|
|
2890
|
+
related: Tab | null,
|
|
2891
|
+
web_context: WebKit2.WebContext,
|
|
2892
|
+
uri?: string | null,
|
|
2893
|
+
title?: string | null,
|
|
2894
|
+
): Tab;
|
|
2895
|
+
// Conflicted with WebKit2.WebView.new
|
|
2896
|
+
|
|
2897
|
+
static ['new'](...args: never[]): any;
|
|
2898
|
+
|
|
2899
|
+
// Own methods of Midori.Tab
|
|
2900
|
+
|
|
2901
|
+
get_id(): string;
|
|
2902
|
+
get_progress(): number;
|
|
2903
|
+
set_progress(value: number): void;
|
|
2904
|
+
get_can_go_back(): boolean;
|
|
2905
|
+
set_can_go_back(value: boolean): void;
|
|
2906
|
+
get_can_go_forward(): boolean;
|
|
2907
|
+
set_can_go_forward(value: boolean): void;
|
|
2908
|
+
get_item(): DatabaseItem | null;
|
|
2909
|
+
set_item(value?: DatabaseItem | null): void;
|
|
2910
|
+
get_display_uri(): string;
|
|
2911
|
+
set_display_uri(value: string): void;
|
|
2912
|
+
get_display_title(): string;
|
|
2913
|
+
set_display_title(value: string): void;
|
|
2914
|
+
get_color(): string | null;
|
|
2915
|
+
set_color(value?: string | null): void;
|
|
2916
|
+
get_pinned(): boolean;
|
|
2917
|
+
set_pinned(value: boolean): void;
|
|
2918
|
+
get_secure(): boolean;
|
|
2919
|
+
set_secure(value: boolean): void;
|
|
2920
|
+
get_link_uri(): string;
|
|
2921
|
+
set_link_uri(value: string): void;
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
module Tally {
|
|
2925
|
+
// Signal callback interfaces
|
|
2926
|
+
|
|
2927
|
+
interface Clicked {
|
|
2928
|
+
(): void;
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
// Constructor properties interface
|
|
2932
|
+
|
|
2933
|
+
interface ConstructorProps extends Gtk.EventBox.ConstructorProps {
|
|
2934
|
+
tab: Tab;
|
|
2935
|
+
uri: string;
|
|
2936
|
+
title: string;
|
|
2937
|
+
show_close: boolean;
|
|
2938
|
+
showClose: boolean;
|
|
2939
|
+
active: boolean;
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
class Tally extends Gtk.EventBox {
|
|
2944
|
+
static $gtype: GObject.GType<Tally>;
|
|
2945
|
+
|
|
2946
|
+
// Own properties of Midori.Tally
|
|
2947
|
+
|
|
2948
|
+
get tab(): Tab;
|
|
2949
|
+
set tab(val: Tab);
|
|
2950
|
+
get uri(): string;
|
|
2951
|
+
set uri(val: string);
|
|
2952
|
+
get title(): string;
|
|
2953
|
+
set title(val: string);
|
|
2954
|
+
get show_close(): boolean;
|
|
2955
|
+
set show_close(val: boolean);
|
|
2956
|
+
get showClose(): boolean;
|
|
2957
|
+
set showClose(val: boolean);
|
|
2958
|
+
get active(): boolean;
|
|
2959
|
+
set active(val: boolean);
|
|
2960
|
+
|
|
2961
|
+
// Constructors of Midori.Tally
|
|
2962
|
+
|
|
2963
|
+
constructor(properties?: Partial<Tally.ConstructorProps>, ...args: any[]);
|
|
2964
|
+
|
|
2965
|
+
_init(...args: any[]): void;
|
|
2966
|
+
|
|
2967
|
+
static ['new'](tab: Tab): Tally;
|
|
2968
|
+
// Conflicted with Gtk.EventBox.new
|
|
2969
|
+
|
|
2970
|
+
static ['new'](...args: never[]): any;
|
|
2971
|
+
|
|
2972
|
+
// Own signals of Midori.Tally
|
|
2973
|
+
|
|
2974
|
+
connect(id: string, callback: (...args: any[]) => any): number;
|
|
2975
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
2976
|
+
emit(id: string, ...args: any[]): void;
|
|
2977
|
+
connect(signal: 'clicked', callback: (_source: this) => void): number;
|
|
2978
|
+
connect_after(signal: 'clicked', callback: (_source: this) => void): number;
|
|
2979
|
+
emit(signal: 'clicked'): void;
|
|
2980
|
+
|
|
2981
|
+
// Own methods of Midori.Tally
|
|
2982
|
+
|
|
2983
|
+
get_tab(): Tab;
|
|
2984
|
+
set_tab(value: Tab): void;
|
|
2985
|
+
get_uri(): string | null;
|
|
2986
|
+
set_uri(value?: string | null): void;
|
|
2987
|
+
get_title(): string | null;
|
|
2988
|
+
set_title(value?: string | null): void;
|
|
2989
|
+
get_show_close(): boolean;
|
|
2990
|
+
set_show_close(value: boolean): void;
|
|
2991
|
+
get_active(): boolean;
|
|
2992
|
+
set_active(value: boolean): void;
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
module Urlbar {
|
|
2996
|
+
// Constructor properties interface
|
|
2997
|
+
|
|
2998
|
+
interface ConstructorProps extends Gtk.Entry.ConstructorProps {
|
|
2999
|
+
key: string;
|
|
3000
|
+
regex: GLib.Regex;
|
|
3001
|
+
location: string;
|
|
3002
|
+
uri: string;
|
|
3003
|
+
secure: boolean;
|
|
3004
|
+
}
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
class Urlbar extends Gtk.Entry {
|
|
3008
|
+
static $gtype: GObject.GType<Urlbar>;
|
|
3009
|
+
|
|
3010
|
+
// Own properties of Midori.Urlbar
|
|
3011
|
+
|
|
3012
|
+
get key(): string;
|
|
3013
|
+
set key(val: string);
|
|
3014
|
+
get regex(): GLib.Regex;
|
|
3015
|
+
set regex(val: GLib.Regex);
|
|
3016
|
+
get location(): string;
|
|
3017
|
+
set location(val: string);
|
|
3018
|
+
get uri(): string;
|
|
3019
|
+
set uri(val: string);
|
|
3020
|
+
get secure(): boolean;
|
|
3021
|
+
set secure(val: boolean);
|
|
3022
|
+
|
|
3023
|
+
// Constructors of Midori.Urlbar
|
|
3024
|
+
|
|
3025
|
+
constructor(properties?: Partial<Urlbar.ConstructorProps>, ...args: any[]);
|
|
3026
|
+
|
|
3027
|
+
_init(...args: any[]): void;
|
|
3028
|
+
|
|
3029
|
+
static ['new'](): Urlbar;
|
|
3030
|
+
|
|
3031
|
+
// Own methods of Midori.Urlbar
|
|
3032
|
+
|
|
3033
|
+
create_row(item: GObject.Object): Gtk.Widget;
|
|
3034
|
+
popdown(): void;
|
|
3035
|
+
get_key(): string | null;
|
|
3036
|
+
set_key(value?: string | null): void;
|
|
3037
|
+
get_regex(): GLib.Regex | null;
|
|
3038
|
+
set_regex(value?: GLib.Regex | null): void;
|
|
3039
|
+
get_location(): string | null;
|
|
3040
|
+
set_location(value?: string | null): void;
|
|
3041
|
+
get_uri(): string;
|
|
3042
|
+
set_uri(value: string): void;
|
|
3043
|
+
get_secure(): boolean;
|
|
3044
|
+
set_secure(value: boolean): void;
|
|
3045
|
+
}
|
|
3046
|
+
|
|
3047
|
+
type AppClass = typeof App;
|
|
3048
|
+
abstract class AppPrivate {
|
|
3049
|
+
static $gtype: GObject.GType<AppPrivate>;
|
|
3050
|
+
|
|
3051
|
+
// Constructors of Midori.AppPrivate
|
|
3052
|
+
|
|
3053
|
+
_init(...args: any[]): void;
|
|
3054
|
+
}
|
|
3055
|
+
|
|
3056
|
+
type BrowserClass = typeof Browser;
|
|
3057
|
+
abstract class BrowserPrivate {
|
|
3058
|
+
static $gtype: GObject.GType<BrowserPrivate>;
|
|
3059
|
+
|
|
3060
|
+
// Constructors of Midori.BrowserPrivate
|
|
3061
|
+
|
|
3062
|
+
_init(...args: any[]): void;
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
type ClearPrivateDataClass = typeof ClearPrivateData;
|
|
3066
|
+
abstract class ClearPrivateDataPrivate {
|
|
3067
|
+
static $gtype: GObject.GType<ClearPrivateDataPrivate>;
|
|
3068
|
+
|
|
3069
|
+
// Constructors of Midori.ClearPrivateDataPrivate
|
|
3070
|
+
|
|
3071
|
+
_init(...args: any[]): void;
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
type SuggestionItemClass = typeof SuggestionItem;
|
|
3075
|
+
abstract class SuggestionItemPrivate {
|
|
3076
|
+
static $gtype: GObject.GType<SuggestionItemPrivate>;
|
|
3077
|
+
|
|
3078
|
+
// Constructors of Midori.SuggestionItemPrivate
|
|
3079
|
+
|
|
3080
|
+
_init(...args: any[]): void;
|
|
3081
|
+
}
|
|
3082
|
+
|
|
3083
|
+
type CompletionClass = typeof Completion;
|
|
3084
|
+
abstract class CompletionPrivate {
|
|
3085
|
+
static $gtype: GObject.GType<CompletionPrivate>;
|
|
3086
|
+
|
|
3087
|
+
// Constructors of Midori.CompletionPrivate
|
|
3088
|
+
|
|
3089
|
+
_init(...args: any[]): void;
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
type DatabaseStatementClass = typeof DatabaseStatement;
|
|
3093
|
+
abstract class DatabaseStatementPrivate {
|
|
3094
|
+
static $gtype: GObject.GType<DatabaseStatementPrivate>;
|
|
3095
|
+
|
|
3096
|
+
// Constructors of Midori.DatabaseStatementPrivate
|
|
3097
|
+
|
|
3098
|
+
_init(...args: any[]): void;
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
type DatabaseItemClass = typeof DatabaseItem;
|
|
3102
|
+
abstract class DatabaseItemPrivate {
|
|
3103
|
+
static $gtype: GObject.GType<DatabaseItemPrivate>;
|
|
3104
|
+
|
|
3105
|
+
// Constructors of Midori.DatabaseItemPrivate
|
|
3106
|
+
|
|
3107
|
+
_init(...args: any[]): void;
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
type DatabaseClass = typeof Database;
|
|
3111
|
+
abstract class DatabasePrivate {
|
|
3112
|
+
static $gtype: GObject.GType<DatabasePrivate>;
|
|
3113
|
+
|
|
3114
|
+
// Constructors of Midori.DatabasePrivate
|
|
3115
|
+
|
|
3116
|
+
_init(...args: any[]): void;
|
|
3117
|
+
}
|
|
3118
|
+
|
|
3119
|
+
type DownloadButtonClass = typeof DownloadButton;
|
|
3120
|
+
abstract class DownloadButtonPrivate {
|
|
3121
|
+
static $gtype: GObject.GType<DownloadButtonPrivate>;
|
|
3122
|
+
|
|
3123
|
+
// Constructors of Midori.DownloadButtonPrivate
|
|
3124
|
+
|
|
3125
|
+
_init(...args: any[]): void;
|
|
3126
|
+
}
|
|
3127
|
+
|
|
3128
|
+
type DownloadItemClass = typeof DownloadItem;
|
|
3129
|
+
abstract class DownloadItemPrivate {
|
|
3130
|
+
static $gtype: GObject.GType<DownloadItemPrivate>;
|
|
3131
|
+
|
|
3132
|
+
// Constructors of Midori.DownloadItemPrivate
|
|
3133
|
+
|
|
3134
|
+
_init(...args: any[]): void;
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
type DownloadRowClass = typeof DownloadRow;
|
|
3138
|
+
abstract class DownloadRowPrivate {
|
|
3139
|
+
static $gtype: GObject.GType<DownloadRowPrivate>;
|
|
3140
|
+
|
|
3141
|
+
// Constructors of Midori.DownloadRowPrivate
|
|
3142
|
+
|
|
3143
|
+
_init(...args: any[]): void;
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
type FaviconClass = typeof Favicon;
|
|
3147
|
+
abstract class FaviconPrivate {
|
|
3148
|
+
static $gtype: GObject.GType<FaviconPrivate>;
|
|
3149
|
+
|
|
3150
|
+
// Constructors of Midori.FaviconPrivate
|
|
3151
|
+
|
|
3152
|
+
_init(...args: any[]): void;
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
type HistoryDatabaseClass = typeof HistoryDatabase;
|
|
3156
|
+
abstract class HistoryDatabasePrivate {
|
|
3157
|
+
static $gtype: GObject.GType<HistoryDatabasePrivate>;
|
|
3158
|
+
|
|
3159
|
+
// Constructors of Midori.HistoryDatabasePrivate
|
|
3160
|
+
|
|
3161
|
+
_init(...args: any[]): void;
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
type NavigationbarClass = typeof Navigationbar;
|
|
3165
|
+
abstract class NavigationbarPrivate {
|
|
3166
|
+
static $gtype: GObject.GType<NavigationbarPrivate>;
|
|
3167
|
+
|
|
3168
|
+
// Constructors of Midori.NavigationbarPrivate
|
|
3169
|
+
|
|
3170
|
+
_init(...args: any[]): void;
|
|
3171
|
+
}
|
|
3172
|
+
|
|
3173
|
+
type NetworkCheckClass = typeof NetworkCheck;
|
|
3174
|
+
abstract class NetworkCheckPrivate {
|
|
3175
|
+
static $gtype: GObject.GType<NetworkCheckPrivate>;
|
|
3176
|
+
|
|
3177
|
+
// Constructors of Midori.NetworkCheckPrivate
|
|
3178
|
+
|
|
3179
|
+
_init(...args: any[]): void;
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
type PluginsClass = typeof Plugins;
|
|
3183
|
+
abstract class PluginsPrivate {
|
|
3184
|
+
static $gtype: GObject.GType<PluginsPrivate>;
|
|
3185
|
+
|
|
3186
|
+
// Constructors of Midori.PluginsPrivate
|
|
3187
|
+
|
|
3188
|
+
_init(...args: any[]): void;
|
|
3189
|
+
}
|
|
3190
|
+
|
|
3191
|
+
type LabelWidgetClass = typeof LabelWidget;
|
|
3192
|
+
abstract class LabelWidgetPrivate {
|
|
3193
|
+
static $gtype: GObject.GType<LabelWidgetPrivate>;
|
|
3194
|
+
|
|
3195
|
+
// Constructors of Midori.LabelWidgetPrivate
|
|
3196
|
+
|
|
3197
|
+
_init(...args: any[]): void;
|
|
3198
|
+
}
|
|
3199
|
+
|
|
3200
|
+
type PreferencesClass = typeof Preferences;
|
|
3201
|
+
abstract class PreferencesPrivate {
|
|
3202
|
+
static $gtype: GObject.GType<PreferencesPrivate>;
|
|
3203
|
+
|
|
3204
|
+
// Constructors of Midori.PreferencesPrivate
|
|
3205
|
+
|
|
3206
|
+
_init(...args: any[]): void;
|
|
3207
|
+
}
|
|
3208
|
+
|
|
3209
|
+
type CoreSettingsClass = typeof CoreSettings;
|
|
3210
|
+
abstract class CoreSettingsPrivate {
|
|
3211
|
+
static $gtype: GObject.GType<CoreSettingsPrivate>;
|
|
3212
|
+
|
|
3213
|
+
// Constructors of Midori.CoreSettingsPrivate
|
|
3214
|
+
|
|
3215
|
+
_init(...args: any[]): void;
|
|
3216
|
+
}
|
|
3217
|
+
|
|
3218
|
+
type SettingsClass = typeof Settings;
|
|
3219
|
+
abstract class SettingsPrivate {
|
|
3220
|
+
static $gtype: GObject.GType<SettingsPrivate>;
|
|
3221
|
+
|
|
3222
|
+
// Constructors of Midori.SettingsPrivate
|
|
3223
|
+
|
|
3224
|
+
_init(...args: any[]): void;
|
|
3225
|
+
}
|
|
3226
|
+
|
|
3227
|
+
type StatusbarClass = typeof Statusbar;
|
|
3228
|
+
abstract class StatusbarPrivate {
|
|
3229
|
+
static $gtype: GObject.GType<StatusbarPrivate>;
|
|
3230
|
+
|
|
3231
|
+
// Constructors of Midori.StatusbarPrivate
|
|
3232
|
+
|
|
3233
|
+
_init(...args: any[]): void;
|
|
3234
|
+
}
|
|
3235
|
+
|
|
3236
|
+
type SuggestionRowClass = typeof SuggestionRow;
|
|
3237
|
+
abstract class SuggestionRowPrivate {
|
|
3238
|
+
static $gtype: GObject.GType<SuggestionRowPrivate>;
|
|
3239
|
+
|
|
3240
|
+
// Constructors of Midori.SuggestionRowPrivate
|
|
3241
|
+
|
|
3242
|
+
_init(...args: any[]): void;
|
|
3243
|
+
}
|
|
3244
|
+
|
|
3245
|
+
type SwitcherClass = typeof Switcher;
|
|
3246
|
+
abstract class SwitcherPrivate {
|
|
3247
|
+
static $gtype: GObject.GType<SwitcherPrivate>;
|
|
3248
|
+
|
|
3249
|
+
// Constructors of Midori.SwitcherPrivate
|
|
3250
|
+
|
|
3251
|
+
_init(...args: any[]): void;
|
|
3252
|
+
}
|
|
3253
|
+
|
|
3254
|
+
type TabClass = typeof Tab;
|
|
3255
|
+
abstract class TabPrivate {
|
|
3256
|
+
static $gtype: GObject.GType<TabPrivate>;
|
|
3257
|
+
|
|
3258
|
+
// Constructors of Midori.TabPrivate
|
|
3259
|
+
|
|
3260
|
+
_init(...args: any[]): void;
|
|
3261
|
+
}
|
|
3262
|
+
|
|
3263
|
+
type TallyClass = typeof Tally;
|
|
3264
|
+
abstract class TallyPrivate {
|
|
3265
|
+
static $gtype: GObject.GType<TallyPrivate>;
|
|
3266
|
+
|
|
3267
|
+
// Constructors of Midori.TallyPrivate
|
|
3268
|
+
|
|
3269
|
+
_init(...args: any[]): void;
|
|
3270
|
+
}
|
|
3271
|
+
|
|
3272
|
+
type UrlbarClass = typeof Urlbar;
|
|
3273
|
+
abstract class UrlbarPrivate {
|
|
3274
|
+
static $gtype: GObject.GType<UrlbarPrivate>;
|
|
3275
|
+
|
|
3276
|
+
// Constructors of Midori.UrlbarPrivate
|
|
3277
|
+
|
|
3278
|
+
_init(...args: any[]): void;
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3281
|
+
type AppActivatableIface = typeof AppActivatable;
|
|
3282
|
+
type BrowserActivatableIface = typeof BrowserActivatable;
|
|
3283
|
+
type ClearPrivateDataActivatableIface = typeof ClearPrivateDataActivatable;
|
|
3284
|
+
type CompletionActivatableIface = typeof CompletionActivatable;
|
|
3285
|
+
type LoggableIface = typeof Loggable;
|
|
3286
|
+
type PreferencesActivatableIface = typeof PreferencesActivatable;
|
|
3287
|
+
type TabActivatableIface = typeof TabActivatable;
|
|
3288
|
+
module AppActivatable {
|
|
3289
|
+
// Constructor properties interface
|
|
3290
|
+
|
|
3291
|
+
interface ConstructorProps extends Peas.ExtensionBase.ConstructorProps {
|
|
3292
|
+
app: App;
|
|
3293
|
+
}
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3296
|
+
export interface AppActivatableNamespace {
|
|
3297
|
+
$gtype: GObject.GType<AppActivatable>;
|
|
3298
|
+
prototype: AppActivatable;
|
|
3299
|
+
}
|
|
3300
|
+
interface AppActivatable extends Peas.ExtensionBase {
|
|
3301
|
+
// Own properties of Midori.AppActivatable
|
|
3302
|
+
|
|
3303
|
+
get app(): App;
|
|
3304
|
+
set app(val: App);
|
|
3305
|
+
|
|
3306
|
+
// Own methods of Midori.AppActivatable
|
|
3307
|
+
|
|
3308
|
+
activate(): void;
|
|
3309
|
+
get_app(): App;
|
|
3310
|
+
set_app(value: App): void;
|
|
3311
|
+
|
|
3312
|
+
// Own virtual methods of Midori.AppActivatable
|
|
3313
|
+
|
|
3314
|
+
vfunc_activate(): void;
|
|
3315
|
+
vfunc_get_app(): App;
|
|
3316
|
+
vfunc_set_app(value: App): void;
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
export const AppActivatable: AppActivatableNamespace;
|
|
3320
|
+
|
|
3321
|
+
module BrowserActivatable {
|
|
3322
|
+
// Constructor properties interface
|
|
3323
|
+
|
|
3324
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
3325
|
+
browser: Browser;
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
|
|
3329
|
+
export interface BrowserActivatableNamespace {
|
|
3330
|
+
$gtype: GObject.GType<BrowserActivatable>;
|
|
3331
|
+
prototype: BrowserActivatable;
|
|
3332
|
+
}
|
|
3333
|
+
interface BrowserActivatable extends GObject.Object {
|
|
3334
|
+
// Own properties of Midori.BrowserActivatable
|
|
3335
|
+
|
|
3336
|
+
get browser(): Browser;
|
|
3337
|
+
set browser(val: Browser);
|
|
3338
|
+
|
|
3339
|
+
// Own methods of Midori.BrowserActivatable
|
|
3340
|
+
|
|
3341
|
+
activate(): void;
|
|
3342
|
+
get_browser(): Browser;
|
|
3343
|
+
set_browser(value: Browser): void;
|
|
3344
|
+
|
|
3345
|
+
// Own virtual methods of Midori.BrowserActivatable
|
|
3346
|
+
|
|
3347
|
+
vfunc_activate(): void;
|
|
3348
|
+
vfunc_get_browser(): Browser;
|
|
3349
|
+
vfunc_set_browser(value: Browser): void;
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
export const BrowserActivatable: BrowserActivatableNamespace;
|
|
3353
|
+
|
|
3354
|
+
module ClearPrivateDataActivatable {
|
|
3355
|
+
// Constructor properties interface
|
|
3356
|
+
|
|
3357
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
3358
|
+
box: Gtk.Box;
|
|
3359
|
+
}
|
|
3360
|
+
}
|
|
3361
|
+
|
|
3362
|
+
export interface ClearPrivateDataActivatableNamespace {
|
|
3363
|
+
$gtype: GObject.GType<ClearPrivateDataActivatable>;
|
|
3364
|
+
prototype: ClearPrivateDataActivatable;
|
|
3365
|
+
}
|
|
3366
|
+
interface ClearPrivateDataActivatable extends GObject.Object {
|
|
3367
|
+
// Own properties of Midori.ClearPrivateDataActivatable
|
|
3368
|
+
|
|
3369
|
+
get box(): Gtk.Box;
|
|
3370
|
+
set box(val: Gtk.Box);
|
|
3371
|
+
|
|
3372
|
+
// Own methods of Midori.ClearPrivateDataActivatable
|
|
3373
|
+
|
|
3374
|
+
activate(): void;
|
|
3375
|
+
clear(timespan: GLib.TimeSpan, _callback_?: Gio.AsyncReadyCallback<this> | null): void;
|
|
3376
|
+
clear_finish(_res_: Gio.AsyncResult): void;
|
|
3377
|
+
get_box(): Gtk.Box;
|
|
3378
|
+
set_box(value: Gtk.Box): void;
|
|
3379
|
+
|
|
3380
|
+
// Own virtual methods of Midori.ClearPrivateDataActivatable
|
|
3381
|
+
|
|
3382
|
+
vfunc_activate(): void;
|
|
3383
|
+
vfunc_clear(timespan: GLib.TimeSpan, _callback_?: Gio.AsyncReadyCallback<this> | null): void;
|
|
3384
|
+
vfunc_clear_finish(_res_: Gio.AsyncResult): void;
|
|
3385
|
+
vfunc_get_box(): Gtk.Box;
|
|
3386
|
+
vfunc_set_box(value: Gtk.Box): void;
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3389
|
+
export const ClearPrivateDataActivatable: ClearPrivateDataActivatableNamespace;
|
|
3390
|
+
|
|
3391
|
+
module CompletionActivatable {
|
|
3392
|
+
// Constructor properties interface
|
|
3393
|
+
|
|
3394
|
+
interface ConstructorProps extends Peas.ExtensionBase.ConstructorProps {
|
|
3395
|
+
completion: Completion;
|
|
3396
|
+
}
|
|
3397
|
+
}
|
|
3398
|
+
|
|
3399
|
+
export interface CompletionActivatableNamespace {
|
|
3400
|
+
$gtype: GObject.GType<CompletionActivatable>;
|
|
3401
|
+
prototype: CompletionActivatable;
|
|
3402
|
+
}
|
|
3403
|
+
interface CompletionActivatable extends Peas.ExtensionBase {
|
|
3404
|
+
// Own properties of Midori.CompletionActivatable
|
|
3405
|
+
|
|
3406
|
+
get completion(): Completion;
|
|
3407
|
+
set completion(val: Completion);
|
|
3408
|
+
|
|
3409
|
+
// Own methods of Midori.CompletionActivatable
|
|
3410
|
+
|
|
3411
|
+
activate(): void;
|
|
3412
|
+
get_completion(): Completion;
|
|
3413
|
+
set_completion(value: Completion): void;
|
|
3414
|
+
|
|
3415
|
+
// Own virtual methods of Midori.CompletionActivatable
|
|
3416
|
+
|
|
3417
|
+
vfunc_activate(): void;
|
|
3418
|
+
vfunc_get_completion(): Completion;
|
|
3419
|
+
vfunc_set_completion(value: Completion): void;
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3422
|
+
export const CompletionActivatable: CompletionActivatableNamespace;
|
|
3423
|
+
|
|
3424
|
+
module Loggable {
|
|
3425
|
+
// Constructor properties interface
|
|
3426
|
+
|
|
3427
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
3428
|
+
}
|
|
3429
|
+
|
|
3430
|
+
export interface LoggableNamespace {
|
|
3431
|
+
$gtype: GObject.GType<Loggable>;
|
|
3432
|
+
prototype: Loggable;
|
|
3433
|
+
}
|
|
3434
|
+
interface Loggable extends GObject.Object {
|
|
3435
|
+
// Own methods of Midori.Loggable
|
|
3436
|
+
|
|
3437
|
+
get_domain(): string;
|
|
3438
|
+
get_logging(): boolean;
|
|
3439
|
+
}
|
|
3440
|
+
|
|
3441
|
+
export const Loggable: LoggableNamespace;
|
|
3442
|
+
|
|
3443
|
+
module PreferencesActivatable {
|
|
3444
|
+
// Constructor properties interface
|
|
3445
|
+
|
|
3446
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
3447
|
+
preferences: Preferences;
|
|
3448
|
+
}
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
export interface PreferencesActivatableNamespace {
|
|
3452
|
+
$gtype: GObject.GType<PreferencesActivatable>;
|
|
3453
|
+
prototype: PreferencesActivatable;
|
|
3454
|
+
}
|
|
3455
|
+
interface PreferencesActivatable extends GObject.Object {
|
|
3456
|
+
// Own properties of Midori.PreferencesActivatable
|
|
3457
|
+
|
|
3458
|
+
get preferences(): Preferences;
|
|
3459
|
+
set preferences(val: Preferences);
|
|
3460
|
+
|
|
3461
|
+
// Own methods of Midori.PreferencesActivatable
|
|
3462
|
+
|
|
3463
|
+
activate(): void;
|
|
3464
|
+
get_preferences(): Preferences;
|
|
3465
|
+
set_preferences(value: Preferences): void;
|
|
3466
|
+
|
|
3467
|
+
// Own virtual methods of Midori.PreferencesActivatable
|
|
3468
|
+
|
|
3469
|
+
vfunc_activate(): void;
|
|
3470
|
+
vfunc_get_preferences(): Preferences;
|
|
3471
|
+
vfunc_set_preferences(value: Preferences): void;
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
export const PreferencesActivatable: PreferencesActivatableNamespace;
|
|
3475
|
+
|
|
3476
|
+
module TabActivatable {
|
|
3477
|
+
// Constructor properties interface
|
|
3478
|
+
|
|
3479
|
+
interface ConstructorProps extends Peas.ExtensionBase.ConstructorProps {
|
|
3480
|
+
tab: Tab;
|
|
3481
|
+
}
|
|
3482
|
+
}
|
|
3483
|
+
|
|
3484
|
+
export interface TabActivatableNamespace {
|
|
3485
|
+
$gtype: GObject.GType<TabActivatable>;
|
|
3486
|
+
prototype: TabActivatable;
|
|
3487
|
+
}
|
|
3488
|
+
interface TabActivatable extends Peas.ExtensionBase {
|
|
3489
|
+
// Own properties of Midori.TabActivatable
|
|
3490
|
+
|
|
3491
|
+
get tab(): Tab;
|
|
3492
|
+
set tab(val: Tab);
|
|
3493
|
+
|
|
3494
|
+
// Own methods of Midori.TabActivatable
|
|
3495
|
+
|
|
3496
|
+
activate(): void;
|
|
3497
|
+
get_tab(): Tab;
|
|
3498
|
+
set_tab(value: Tab): void;
|
|
3499
|
+
|
|
3500
|
+
// Own virtual methods of Midori.TabActivatable
|
|
3501
|
+
|
|
3502
|
+
vfunc_activate(): void;
|
|
3503
|
+
vfunc_get_tab(): Tab;
|
|
3504
|
+
vfunc_set_tab(value: Tab): void;
|
|
3505
|
+
}
|
|
3506
|
+
|
|
3507
|
+
export const TabActivatable: TabActivatableNamespace;
|
|
3508
|
+
|
|
3509
|
+
/**
|
|
3510
|
+
* Name of the imported GIR library
|
|
3511
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
3512
|
+
*/
|
|
3513
|
+
const __name__: string;
|
|
3514
|
+
/**
|
|
3515
|
+
* Version of the imported GIR library
|
|
3516
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
3517
|
+
*/
|
|
3518
|
+
const __version__: string;
|
|
3519
|
+
}
|
|
3520
|
+
|
|
3521
|
+
export default Midori;
|
|
3522
|
+
// END
|