@girs/xed-1.0 4.3.0 → 4.5.0
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 +52 -38
- package/package.json +20 -20
- package/tsconfig.json +1 -1
- package/xed-1.0-surface.d.ts +20 -0
- package/xed-1.0-surface.js +6 -0
- package/xed-1.0-vocabulary.d.ts +302 -0
- package/xed-1.0-vocabulary.js +66 -0
- package/xed-1.0.d.ts +189 -52
package/xed-1.0.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ export namespace Xed {
|
|
|
44
44
|
* @gir-type Enum
|
|
45
45
|
*/
|
|
46
46
|
enum SearchMode {
|
|
47
|
-
SEARCH,
|
|
48
|
-
REPLACE,
|
|
47
|
+
SEARCH = 0,
|
|
48
|
+
REPLACE = 1,
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
|
|
@@ -60,28 +60,37 @@ export namespace Xed {
|
|
|
60
60
|
* @gir-type Enum
|
|
61
61
|
*/
|
|
62
62
|
enum TabState {
|
|
63
|
-
STATE_NORMAL,
|
|
64
|
-
STATE_LOADING,
|
|
65
|
-
STATE_REVERTING,
|
|
66
|
-
STATE_SAVING,
|
|
67
|
-
STATE_PRINTING,
|
|
68
|
-
STATE_PRINT_PREVIEWING,
|
|
69
|
-
STATE_SHOWING_PRINT_PREVIEW,
|
|
70
|
-
STATE_GENERIC_NOT_EDITABLE,
|
|
71
|
-
STATE_LOADING_ERROR,
|
|
72
|
-
STATE_REVERTING_ERROR,
|
|
73
|
-
STATE_SAVING_ERROR,
|
|
74
|
-
STATE_GENERIC_ERROR,
|
|
75
|
-
STATE_CLOSING,
|
|
76
|
-
STATE_EXTERNALLY_MODIFIED_NOTIFICATION,
|
|
77
|
-
NUM_OF_STATES,
|
|
63
|
+
STATE_NORMAL = 0,
|
|
64
|
+
STATE_LOADING = 1,
|
|
65
|
+
STATE_REVERTING = 2,
|
|
66
|
+
STATE_SAVING = 3,
|
|
67
|
+
STATE_PRINTING = 4,
|
|
68
|
+
STATE_PRINT_PREVIEWING = 5,
|
|
69
|
+
STATE_SHOWING_PRINT_PREVIEW = 6,
|
|
70
|
+
STATE_GENERIC_NOT_EDITABLE = 7,
|
|
71
|
+
STATE_LOADING_ERROR = 8,
|
|
72
|
+
STATE_REVERTING_ERROR = 9,
|
|
73
|
+
STATE_SAVING_ERROR = 10,
|
|
74
|
+
STATE_GENERIC_ERROR = 11,
|
|
75
|
+
STATE_CLOSING = 12,
|
|
76
|
+
STATE_EXTERNALLY_MODIFIED_NOTIFICATION = 13,
|
|
77
|
+
NUM_OF_STATES = 14,
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
|
|
81
|
+
/**
|
|
82
|
+
* @default metadata::xed-encoding
|
|
83
|
+
*/
|
|
81
84
|
const METADATA_ATTRIBUTE_ENCODING: string;
|
|
82
85
|
|
|
86
|
+
/**
|
|
87
|
+
* @default metadata::xed-language
|
|
88
|
+
*/
|
|
83
89
|
const METADATA_ATTRIBUTE_LANGUAGE: string;
|
|
84
90
|
|
|
91
|
+
/**
|
|
92
|
+
* @default metadata::xed-position
|
|
93
|
+
*/
|
|
85
94
|
const METADATA_ATTRIBUTE_POSITION: string;
|
|
86
95
|
|
|
87
96
|
/**
|
|
@@ -314,22 +323,22 @@ export namespace Xed {
|
|
|
314
323
|
* @gir-type Flags
|
|
315
324
|
*/
|
|
316
325
|
enum DebugSection {
|
|
317
|
-
NO_DEBUG,
|
|
318
|
-
DEBUG_VIEW,
|
|
319
|
-
DEBUG_SEARCH,
|
|
320
|
-
DEBUG_PRINT,
|
|
321
|
-
DEBUG_PREFS,
|
|
322
|
-
DEBUG_PLUGINS,
|
|
323
|
-
DEBUG_TAB,
|
|
324
|
-
DEBUG_DOCUMENT,
|
|
325
|
-
DEBUG_COMMANDS,
|
|
326
|
-
DEBUG_APP,
|
|
327
|
-
DEBUG_SESSION,
|
|
328
|
-
DEBUG_UTILS,
|
|
329
|
-
DEBUG_METADATA,
|
|
330
|
-
DEBUG_WINDOW,
|
|
331
|
-
DEBUG_LOADER,
|
|
332
|
-
DEBUG_SAVER,
|
|
326
|
+
NO_DEBUG = 0,
|
|
327
|
+
DEBUG_VIEW = 1,
|
|
328
|
+
DEBUG_SEARCH = 2,
|
|
329
|
+
DEBUG_PRINT = 4,
|
|
330
|
+
DEBUG_PREFS = 8,
|
|
331
|
+
DEBUG_PLUGINS = 16,
|
|
332
|
+
DEBUG_TAB = 32,
|
|
333
|
+
DEBUG_DOCUMENT = 64,
|
|
334
|
+
DEBUG_COMMANDS = 128,
|
|
335
|
+
DEBUG_APP = 256,
|
|
336
|
+
DEBUG_SESSION = 512,
|
|
337
|
+
DEBUG_UTILS = 1024,
|
|
338
|
+
DEBUG_METADATA = 2048,
|
|
339
|
+
DEBUG_WINDOW = 4096,
|
|
340
|
+
DEBUG_LOADER = 8192,
|
|
341
|
+
DEBUG_SAVER = 16384,
|
|
333
342
|
}
|
|
334
343
|
|
|
335
344
|
|
|
@@ -344,12 +353,12 @@ export namespace Xed {
|
|
|
344
353
|
* @gir-type Flags
|
|
345
354
|
*/
|
|
346
355
|
enum WindowState {
|
|
347
|
-
NORMAL,
|
|
348
|
-
SAVING,
|
|
349
|
-
PRINTING,
|
|
350
|
-
LOADING,
|
|
351
|
-
ERROR,
|
|
352
|
-
SAVING_SESSION,
|
|
356
|
+
NORMAL = 0,
|
|
357
|
+
SAVING = 2,
|
|
358
|
+
PRINTING = 4,
|
|
359
|
+
LOADING = 8,
|
|
360
|
+
ERROR = 16,
|
|
361
|
+
SAVING_SESSION = 32,
|
|
353
362
|
}
|
|
354
363
|
|
|
355
364
|
|
|
@@ -1005,12 +1014,14 @@ export namespace Xed {
|
|
|
1005
1014
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1006
1015
|
* @param attribute an attribute on the renderer
|
|
1007
1016
|
* @param column the column position on the model to get the attribute from
|
|
1017
|
+
* @since 2.4
|
|
1008
1018
|
*/
|
|
1009
1019
|
add_attribute(cell: Gtk.CellRenderer, attribute: string, column: number): void;
|
|
1010
1020
|
|
|
1011
1021
|
/**
|
|
1012
1022
|
* Unsets all the mappings on all renderers on `cell_layout` and
|
|
1013
1023
|
* removes all renderers from `cell_layout`.
|
|
1024
|
+
* @since 2.4
|
|
1014
1025
|
*/
|
|
1015
1026
|
clear(): void;
|
|
1016
1027
|
|
|
@@ -1018,6 +1029,7 @@ export namespace Xed {
|
|
|
1018
1029
|
* Clears all existing attributes previously set with
|
|
1019
1030
|
* `gtk_cell_layout_set_attributes()`.
|
|
1020
1031
|
* @param cell a {@link Gtk.CellRenderer} to clear the attribute mapping on
|
|
1032
|
+
* @since 2.4
|
|
1021
1033
|
*/
|
|
1022
1034
|
clear_attributes(cell: Gtk.CellRenderer): void;
|
|
1023
1035
|
|
|
@@ -1026,12 +1038,14 @@ export namespace Xed {
|
|
|
1026
1038
|
* if called on a {@link Gtk.CellArea} or might be `null` if no {@link Gtk.CellArea}
|
|
1027
1039
|
* is used by `cell_layout`.
|
|
1028
1040
|
* @returns the cell area used by `cell_layout`, or `null` in case no cell area is used.
|
|
1041
|
+
* @since 3.0
|
|
1029
1042
|
*/
|
|
1030
1043
|
get_area(): Gtk.CellArea | null;
|
|
1031
1044
|
|
|
1032
1045
|
/**
|
|
1033
1046
|
* Returns the cell renderers which have been added to `cell_layout`.
|
|
1034
1047
|
* @returns a list of cell renderers. The list, but not the renderers has been newly allocated and should be freed with `g_list_free()` when no longer needed.
|
|
1048
|
+
* @since 2.12
|
|
1035
1049
|
*/
|
|
1036
1050
|
get_cells(): Gtk.CellRenderer[];
|
|
1037
1051
|
|
|
@@ -1043,6 +1057,7 @@ export namespace Xed {
|
|
|
1043
1057
|
* Note that reusing the same cell renderer is not supported.
|
|
1044
1058
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1045
1059
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
1060
|
+
* @since 2.4
|
|
1046
1061
|
*/
|
|
1047
1062
|
pack_end(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
1048
1063
|
|
|
@@ -1054,6 +1069,7 @@ export namespace Xed {
|
|
|
1054
1069
|
* Note that reusing the same cell renderer is not supported.
|
|
1055
1070
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1056
1071
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
1072
|
+
* @since 2.4
|
|
1057
1073
|
*/
|
|
1058
1074
|
pack_start(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
1059
1075
|
|
|
@@ -1064,6 +1080,7 @@ export namespace Xed {
|
|
|
1064
1080
|
* for this to function properly.
|
|
1065
1081
|
* @param cell a {@link Gtk.CellRenderer} to reorder
|
|
1066
1082
|
* @param position new position to insert `cell` at
|
|
1083
|
+
* @since 2.4
|
|
1067
1084
|
*/
|
|
1068
1085
|
reorder(cell: Gtk.CellRenderer, position: number): void;
|
|
1069
1086
|
|
|
@@ -1077,6 +1094,7 @@ export namespace Xed {
|
|
|
1077
1094
|
* `func` may be `null` to remove a previously set function.
|
|
1078
1095
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1079
1096
|
* @param func the {@link Gtk.CellLayoutDataFunc} to use, or `null`
|
|
1097
|
+
* @since 2.4
|
|
1080
1098
|
*/
|
|
1081
1099
|
set_cell_data_func(cell: Gtk.CellRenderer, func: Gtk.CellLayoutDataFunc | null): void;
|
|
1082
1100
|
|
|
@@ -1090,6 +1108,7 @@ export namespace Xed {
|
|
|
1090
1108
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1091
1109
|
* @param attribute an attribute on the renderer
|
|
1092
1110
|
* @param column the column position on the model to get the attribute from
|
|
1111
|
+
* @since 2.4
|
|
1093
1112
|
* @virtual
|
|
1094
1113
|
*/
|
|
1095
1114
|
vfunc_add_attribute(cell: Gtk.CellRenderer, attribute: string, column: number): void;
|
|
@@ -1097,6 +1116,7 @@ export namespace Xed {
|
|
|
1097
1116
|
/**
|
|
1098
1117
|
* Unsets all the mappings on all renderers on `cell_layout` and
|
|
1099
1118
|
* removes all renderers from `cell_layout`.
|
|
1119
|
+
* @since 2.4
|
|
1100
1120
|
* @virtual
|
|
1101
1121
|
*/
|
|
1102
1122
|
vfunc_clear(): void;
|
|
@@ -1105,6 +1125,7 @@ export namespace Xed {
|
|
|
1105
1125
|
* Clears all existing attributes previously set with
|
|
1106
1126
|
* `gtk_cell_layout_set_attributes()`.
|
|
1107
1127
|
* @param cell a {@link Gtk.CellRenderer} to clear the attribute mapping on
|
|
1128
|
+
* @since 2.4
|
|
1108
1129
|
* @virtual
|
|
1109
1130
|
*/
|
|
1110
1131
|
vfunc_clear_attributes(cell: Gtk.CellRenderer): void;
|
|
@@ -1113,12 +1134,14 @@ export namespace Xed {
|
|
|
1113
1134
|
* Returns the underlying {@link Gtk.CellArea} which might be `cell_layout`
|
|
1114
1135
|
* if called on a {@link Gtk.CellArea} or might be `null` if no {@link Gtk.CellArea}
|
|
1115
1136
|
* is used by `cell_layout`.
|
|
1137
|
+
* @since 3.0
|
|
1116
1138
|
* @virtual
|
|
1117
1139
|
*/
|
|
1118
1140
|
vfunc_get_area(): Gtk.CellArea | null;
|
|
1119
1141
|
|
|
1120
1142
|
/**
|
|
1121
1143
|
* Returns the cell renderers which have been added to `cell_layout`.
|
|
1144
|
+
* @since 2.12
|
|
1122
1145
|
* @virtual
|
|
1123
1146
|
*/
|
|
1124
1147
|
vfunc_get_cells(): Gtk.CellRenderer[];
|
|
@@ -1131,6 +1154,7 @@ export namespace Xed {
|
|
|
1131
1154
|
* Note that reusing the same cell renderer is not supported.
|
|
1132
1155
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1133
1156
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
1157
|
+
* @since 2.4
|
|
1134
1158
|
* @virtual
|
|
1135
1159
|
*/
|
|
1136
1160
|
vfunc_pack_end(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
@@ -1143,6 +1167,7 @@ export namespace Xed {
|
|
|
1143
1167
|
* Note that reusing the same cell renderer is not supported.
|
|
1144
1168
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1145
1169
|
* @param expand `true` if `cell` is to be given extra space allocated to `cell_layout`
|
|
1170
|
+
* @since 2.4
|
|
1146
1171
|
* @virtual
|
|
1147
1172
|
*/
|
|
1148
1173
|
vfunc_pack_start(cell: Gtk.CellRenderer, expand: boolean): void;
|
|
@@ -1154,6 +1179,7 @@ export namespace Xed {
|
|
|
1154
1179
|
* for this to function properly.
|
|
1155
1180
|
* @param cell a {@link Gtk.CellRenderer} to reorder
|
|
1156
1181
|
* @param position new position to insert `cell` at
|
|
1182
|
+
* @since 2.4
|
|
1157
1183
|
* @virtual
|
|
1158
1184
|
*/
|
|
1159
1185
|
vfunc_reorder(cell: Gtk.CellRenderer, position: number): void;
|
|
@@ -1168,6 +1194,7 @@ export namespace Xed {
|
|
|
1168
1194
|
* `func` may be `null` to remove a previously set function.
|
|
1169
1195
|
* @param cell a {@link Gtk.CellRenderer}
|
|
1170
1196
|
* @param func the {@link Gtk.CellLayoutDataFunc} to use, or `null`
|
|
1197
|
+
* @since 2.4
|
|
1171
1198
|
* @virtual
|
|
1172
1199
|
*/
|
|
1173
1200
|
vfunc_set_cell_data_func(cell: Gtk.CellRenderer, func: Gtk.CellLayoutDataFunc | null): void;
|
|
@@ -1194,6 +1221,7 @@ export namespace Xed {
|
|
|
1194
1221
|
* Returns whether the widget should grab focus when it is clicked with the mouse.
|
|
1195
1222
|
* See `gtk_widget_set_focus_on_click()`.
|
|
1196
1223
|
* @returns `true` if the widget should grab focus when it is clicked with the mouse.
|
|
1224
|
+
* @since 3.20
|
|
1197
1225
|
*/
|
|
1198
1226
|
get_focus_on_click(): boolean;
|
|
1199
1227
|
|
|
@@ -1203,6 +1231,7 @@ export namespace Xed {
|
|
|
1203
1231
|
* you don’t want the keyboard focus removed from the main area of the
|
|
1204
1232
|
* application.
|
|
1205
1233
|
* @param focus_on_click whether the widget should grab focus when clicked with the mouse
|
|
1234
|
+
* @since 3.20
|
|
1206
1235
|
*/
|
|
1207
1236
|
set_focus_on_click(focus_on_click: boolean): void;
|
|
1208
1237
|
}
|
|
@@ -1503,6 +1532,7 @@ export namespace Xed {
|
|
|
1503
1532
|
* @param label user-visible label for the added choice
|
|
1504
1533
|
* @param options ids for the options of the choice, or `null` for a boolean choice
|
|
1505
1534
|
* @param option_labels user-visible labels for the options, must be the same length as `options`
|
|
1535
|
+
* @since 3.22
|
|
1506
1536
|
*/
|
|
1507
1537
|
add_choice(id: string, label: string, options: string[] | null, option_labels: string[] | null): void;
|
|
1508
1538
|
|
|
@@ -1514,6 +1544,7 @@ export namespace Xed {
|
|
|
1514
1544
|
* Note that the `chooser` takes ownership of the filter, so you have to
|
|
1515
1545
|
* ref and sink it if you want to keep a reference.
|
|
1516
1546
|
* @param filter a {@link Gtk.FileFilter}
|
|
1547
|
+
* @since 2.4
|
|
1517
1548
|
*/
|
|
1518
1549
|
add_filter(filter: Gtk.FileFilter): void;
|
|
1519
1550
|
|
|
@@ -1524,6 +1555,8 @@ export namespace Xed {
|
|
|
1524
1555
|
* “/usr/share/mydrawprogram/Clipart” folder to the volume list.
|
|
1525
1556
|
* @param folder filename of the folder to add
|
|
1526
1557
|
* @returns `true` if the folder could be added successfully, `false` otherwise. In the latter case, the `error` will be set as appropriate.
|
|
1558
|
+
* @since 2.4
|
|
1559
|
+
* @throws GLib.Error
|
|
1527
1560
|
*/
|
|
1528
1561
|
add_shortcut_folder(folder: string): boolean;
|
|
1529
1562
|
|
|
@@ -1534,6 +1567,8 @@ export namespace Xed {
|
|
|
1534
1567
|
* “file:///usr/share/mydrawprogram/Clipart” folder to the volume list.
|
|
1535
1568
|
* @param uri URI of the folder to add
|
|
1536
1569
|
* @returns `true` if the folder could be added successfully, `false` otherwise. In the latter case, the `error` will be set as appropriate.
|
|
1570
|
+
* @since 2.4
|
|
1571
|
+
* @throws GLib.Error
|
|
1537
1572
|
*/
|
|
1538
1573
|
add_shortcut_folder_uri(uri: string): boolean;
|
|
1539
1574
|
|
|
@@ -1541,6 +1576,7 @@ export namespace Xed {
|
|
|
1541
1576
|
* Gets the type of operation that the file chooser is performing; see
|
|
1542
1577
|
* `gtk_file_chooser_set_action()`.
|
|
1543
1578
|
* @returns the action that the file selector is performing
|
|
1579
|
+
* @since 2.4
|
|
1544
1580
|
*/
|
|
1545
1581
|
get_action(): Gtk.FileChooserAction;
|
|
1546
1582
|
|
|
@@ -1548,6 +1584,7 @@ export namespace Xed {
|
|
|
1548
1584
|
* Gets the currently selected option in the 'choice' with the given ID.
|
|
1549
1585
|
* @param id the ID of the choice to get
|
|
1550
1586
|
* @returns the ID of the currenly selected option
|
|
1587
|
+
* @since 3.22
|
|
1551
1588
|
*/
|
|
1552
1589
|
get_choice(id: string): string;
|
|
1553
1590
|
|
|
@@ -1555,6 +1592,7 @@ export namespace Xed {
|
|
|
1555
1592
|
* Gets whether file choser will offer to create new folders.
|
|
1556
1593
|
* See `gtk_file_chooser_set_create_folders()`.
|
|
1557
1594
|
* @returns `true` if the Create Folder button should be displayed.
|
|
1595
|
+
* @since 2.18
|
|
1558
1596
|
*/
|
|
1559
1597
|
get_create_folders(): boolean;
|
|
1560
1598
|
|
|
@@ -1570,6 +1608,7 @@ export namespace Xed {
|
|
|
1570
1608
|
* currently-selected folder in that mode, use `gtk_file_chooser_get_uri()` as the
|
|
1571
1609
|
* usual way to get the selection.
|
|
1572
1610
|
* @returns the full path of the current folder, or `null` if the current path cannot be represented as a local filename. Free with `g_free()`. This function will also return `null` if the file chooser was unable to load the last folder that was requested from it; for example, as would be for calling `gtk_file_chooser_set_current_folder()` on a nonexistent folder.
|
|
1611
|
+
* @since 2.4
|
|
1573
1612
|
*/
|
|
1574
1613
|
get_current_folder(): string | null;
|
|
1575
1614
|
|
|
@@ -1577,6 +1616,7 @@ export namespace Xed {
|
|
|
1577
1616
|
* Gets the current folder of `chooser` as {@link Gio.File}.
|
|
1578
1617
|
* See `gtk_file_chooser_get_current_folder_uri()`.
|
|
1579
1618
|
* @returns the {@link Gio.File} for the current folder.
|
|
1619
|
+
* @since 2.14
|
|
1580
1620
|
*/
|
|
1581
1621
|
get_current_folder_file(): Gio.File | null;
|
|
1582
1622
|
|
|
@@ -1592,6 +1632,7 @@ export namespace Xed {
|
|
|
1592
1632
|
* currently-selected folder in that mode, use `gtk_file_chooser_get_uri()` as the
|
|
1593
1633
|
* usual way to get the selection.
|
|
1594
1634
|
* @returns the URI for the current folder. Free with `g_free()`. This function will also return `null` if the file chooser was unable to load the last folder that was requested from it; for example, as would be for calling `gtk_file_chooser_set_current_folder_uri()` on a nonexistent folder.
|
|
1635
|
+
* @since 2.4
|
|
1595
1636
|
*/
|
|
1596
1637
|
get_current_folder_uri(): string | null;
|
|
1597
1638
|
|
|
@@ -1605,6 +1646,7 @@ export namespace Xed {
|
|
|
1605
1646
|
* change the extension of the typed filename based on the chosen format, say,
|
|
1606
1647
|
* from “.jpg” to “.png”.
|
|
1607
1648
|
* @returns The raw text from the file chooser’s “Name” entry. Free this with `g_free()`. Note that this string is not a full pathname or URI; it is whatever the contents of the entry are. Note also that this string is in UTF-8 encoding, which is not necessarily the system’s encoding for filenames.
|
|
1649
|
+
* @since 3.10
|
|
1608
1650
|
*/
|
|
1609
1651
|
get_current_name(): string;
|
|
1610
1652
|
|
|
@@ -1612,6 +1654,7 @@ export namespace Xed {
|
|
|
1612
1654
|
* Queries whether a file chooser is set to confirm for overwriting when the user
|
|
1613
1655
|
* types a file name that already exists.
|
|
1614
1656
|
* @returns `true` if the file chooser will present a confirmation dialog; `false` otherwise.
|
|
1657
|
+
* @since 2.8
|
|
1615
1658
|
*/
|
|
1616
1659
|
get_do_overwrite_confirmation(): boolean;
|
|
1617
1660
|
|
|
@@ -1619,6 +1662,7 @@ export namespace Xed {
|
|
|
1619
1662
|
* Gets the current extra widget; see
|
|
1620
1663
|
* `gtk_file_chooser_set_extra_widget()`.
|
|
1621
1664
|
* @returns the current extra widget, or `null`
|
|
1665
|
+
* @since 2.4
|
|
1622
1666
|
*/
|
|
1623
1667
|
get_extra_widget(): Gtk.Widget | null;
|
|
1624
1668
|
|
|
@@ -1630,6 +1674,7 @@ export namespace Xed {
|
|
|
1630
1674
|
* If the file chooser is in folder mode, this function returns the selected
|
|
1631
1675
|
* folder.
|
|
1632
1676
|
* @returns a selected {@link Gio.File}. You own the returned file; use `g_object_unref()` to release it.
|
|
1677
|
+
* @since 2.14
|
|
1633
1678
|
*/
|
|
1634
1679
|
get_file(): Gio.File;
|
|
1635
1680
|
|
|
@@ -1642,6 +1687,7 @@ export namespace Xed {
|
|
|
1642
1687
|
* If the file chooser is in folder mode, this function returns the selected
|
|
1643
1688
|
* folder.
|
|
1644
1689
|
* @returns The currently selected filename, or `null` if no file is selected, or the selected file can't be represented with a local filename. Free with `g_free()`.
|
|
1690
|
+
* @since 2.4
|
|
1645
1691
|
*/
|
|
1646
1692
|
get_filename(): string | null;
|
|
1647
1693
|
|
|
@@ -1651,6 +1697,7 @@ export namespace Xed {
|
|
|
1651
1697
|
* folder cannot be represented as local filenames they will be ignored. (See
|
|
1652
1698
|
* `gtk_file_chooser_get_uris()`)
|
|
1653
1699
|
* @returns a {@link GLib.SList} containing the filenames of all selected files and subfolders in the current folder. Free the returned list with `g_slist_free()`, and the filenames with `g_free()`.
|
|
1700
|
+
* @since 2.4
|
|
1654
1701
|
*/
|
|
1655
1702
|
get_filenames(): string[];
|
|
1656
1703
|
|
|
@@ -1658,12 +1705,14 @@ export namespace Xed {
|
|
|
1658
1705
|
* Lists all the selected files and subfolders in the current folder of `chooser`
|
|
1659
1706
|
* as {@link Gio.File}. An internal function, see `gtk_file_chooser_get_uris()`.
|
|
1660
1707
|
* @returns a {@link GLib.SList} containing a {@link Gio.File} for each selected file and subfolder in the current folder. Free the returned list with `g_slist_free()`, and the files with `g_object_unref()`.
|
|
1708
|
+
* @since 2.14
|
|
1661
1709
|
*/
|
|
1662
1710
|
get_files(): Gio.File[];
|
|
1663
1711
|
|
|
1664
1712
|
/**
|
|
1665
1713
|
* Gets the current filter; see `gtk_file_chooser_set_filter()`.
|
|
1666
1714
|
* @returns the current filter, or `null`
|
|
1715
|
+
* @since 2.4
|
|
1667
1716
|
*/
|
|
1668
1717
|
get_filter(): Gtk.FileFilter | null;
|
|
1669
1718
|
|
|
@@ -1671,6 +1720,7 @@ export namespace Xed {
|
|
|
1671
1720
|
* Gets whether only local files can be selected in the
|
|
1672
1721
|
* file selector. See `gtk_file_chooser_set_local_only()`
|
|
1673
1722
|
* @returns `true` if only local files can be selected.
|
|
1723
|
+
* @since 2.4
|
|
1674
1724
|
*/
|
|
1675
1725
|
get_local_only(): boolean;
|
|
1676
1726
|
|
|
@@ -1678,6 +1728,7 @@ export namespace Xed {
|
|
|
1678
1728
|
* Gets the {@link Gio.File} that should be previewed in a custom preview
|
|
1679
1729
|
* Internal function, see `gtk_file_chooser_get_preview_uri()`.
|
|
1680
1730
|
* @returns the {@link Gio.File} for the file to preview, or `null` if no file is selected. Free with `g_object_unref()`.
|
|
1731
|
+
* @since 2.14
|
|
1681
1732
|
*/
|
|
1682
1733
|
get_preview_file(): Gio.File | null;
|
|
1683
1734
|
|
|
@@ -1685,6 +1736,7 @@ export namespace Xed {
|
|
|
1685
1736
|
* Gets the filename that should be previewed in a custom preview
|
|
1686
1737
|
* widget. See `gtk_file_chooser_set_preview_widget()`.
|
|
1687
1738
|
* @returns the filename to preview, or `null` if no file is selected, or if the selected file cannot be represented as a local filename. Free with `g_free()`
|
|
1739
|
+
* @since 2.4
|
|
1688
1740
|
*/
|
|
1689
1741
|
get_preview_filename(): string | null;
|
|
1690
1742
|
|
|
@@ -1692,6 +1744,7 @@ export namespace Xed {
|
|
|
1692
1744
|
* Gets the URI that should be previewed in a custom preview
|
|
1693
1745
|
* widget. See `gtk_file_chooser_set_preview_widget()`.
|
|
1694
1746
|
* @returns the URI for the file to preview, or `null` if no file is selected. Free with `g_free()`.
|
|
1747
|
+
* @since 2.4
|
|
1695
1748
|
*/
|
|
1696
1749
|
get_preview_uri(): string | null;
|
|
1697
1750
|
|
|
@@ -1699,6 +1752,7 @@ export namespace Xed {
|
|
|
1699
1752
|
* Gets the current preview widget; see
|
|
1700
1753
|
* `gtk_file_chooser_set_preview_widget()`.
|
|
1701
1754
|
* @returns the current preview widget, or `null`
|
|
1755
|
+
* @since 2.4
|
|
1702
1756
|
*/
|
|
1703
1757
|
get_preview_widget(): Gtk.Widget | null;
|
|
1704
1758
|
|
|
@@ -1707,6 +1761,7 @@ export namespace Xed {
|
|
|
1707
1761
|
* should be shown for the current filename. See
|
|
1708
1762
|
* `gtk_file_chooser_set_preview_widget_active()`.
|
|
1709
1763
|
* @returns `true` if the preview widget is active for the current filename.
|
|
1764
|
+
* @since 2.4
|
|
1710
1765
|
*/
|
|
1711
1766
|
get_preview_widget_active(): boolean;
|
|
1712
1767
|
|
|
@@ -1714,6 +1769,7 @@ export namespace Xed {
|
|
|
1714
1769
|
* Gets whether multiple files can be selected in the file
|
|
1715
1770
|
* selector. See `gtk_file_chooser_set_select_multiple()`.
|
|
1716
1771
|
* @returns `true` if multiple files can be selected.
|
|
1772
|
+
* @since 2.4
|
|
1717
1773
|
*/
|
|
1718
1774
|
get_select_multiple(): boolean;
|
|
1719
1775
|
|
|
@@ -1721,6 +1777,7 @@ export namespace Xed {
|
|
|
1721
1777
|
* Gets whether hidden files and folders are displayed in the file selector.
|
|
1722
1778
|
* See `gtk_file_chooser_set_show_hidden()`.
|
|
1723
1779
|
* @returns `true` if hidden files and folders are displayed.
|
|
1780
|
+
* @since 2.6
|
|
1724
1781
|
*/
|
|
1725
1782
|
get_show_hidden(): boolean;
|
|
1726
1783
|
|
|
@@ -1732,6 +1789,7 @@ export namespace Xed {
|
|
|
1732
1789
|
* If the file chooser is in folder mode, this function returns the selected
|
|
1733
1790
|
* folder.
|
|
1734
1791
|
* @returns The currently selected URI, or `null` if no file is selected. If `gtk_file_chooser_set_local_only()` is set to `true` (the default) a local URI will be returned for any FUSE locations. Free with `g_free()`
|
|
1792
|
+
* @since 2.4
|
|
1735
1793
|
*/
|
|
1736
1794
|
get_uri(): string | null;
|
|
1737
1795
|
|
|
@@ -1739,6 +1797,7 @@ export namespace Xed {
|
|
|
1739
1797
|
* Lists all the selected files and subfolders in the current folder of
|
|
1740
1798
|
* `chooser`. The returned names are full absolute URIs.
|
|
1741
1799
|
* @returns a {@link GLib.SList} containing the URIs of all selected files and subfolders in the current folder. Free the returned list with `g_slist_free()`, and the filenames with `g_free()`.
|
|
1800
|
+
* @since 2.4
|
|
1742
1801
|
*/
|
|
1743
1802
|
get_uris(): string[];
|
|
1744
1803
|
|
|
@@ -1753,6 +1812,7 @@ export namespace Xed {
|
|
|
1753
1812
|
* Lists the current set of user-selectable filters; see
|
|
1754
1813
|
* `gtk_file_chooser_add_filter()`, `gtk_file_chooser_remove_filter()`.
|
|
1755
1814
|
* @returns a {@link GLib.SList} containing the current set of user selectable filters. The contents of the list are owned by GTK+, but you must free the list itself with `g_slist_free()` when you are done with it.
|
|
1815
|
+
* @since 2.4
|
|
1756
1816
|
*/
|
|
1757
1817
|
list_filters(): Gtk.FileFilter[];
|
|
1758
1818
|
|
|
@@ -1760,6 +1820,7 @@ export namespace Xed {
|
|
|
1760
1820
|
* Queries the list of shortcut folders in the file chooser, as set by
|
|
1761
1821
|
* `gtk_file_chooser_add_shortcut_folder_uri()`.
|
|
1762
1822
|
* @returns A list of folder URIs, or `null` if there are no shortcut folders. Free the returned list with `g_slist_free()`, and the URIs with `g_free()`.
|
|
1823
|
+
* @since 2.4
|
|
1763
1824
|
*/
|
|
1764
1825
|
list_shortcut_folder_uris(): string[] | null;
|
|
1765
1826
|
|
|
@@ -1767,18 +1828,21 @@ export namespace Xed {
|
|
|
1767
1828
|
* Queries the list of shortcut folders in the file chooser, as set by
|
|
1768
1829
|
* `gtk_file_chooser_add_shortcut_folder()`.
|
|
1769
1830
|
* @returns A list of folder filenames, or `null` if there are no shortcut folders. Free the returned list with `g_slist_free()`, and the filenames with `g_free()`.
|
|
1831
|
+
* @since 2.4
|
|
1770
1832
|
*/
|
|
1771
1833
|
list_shortcut_folders(): string[] | null;
|
|
1772
1834
|
|
|
1773
1835
|
/**
|
|
1774
1836
|
* Removes a 'choice' that has been added with `gtk_file_chooser_add_choice()`.
|
|
1775
1837
|
* @param id the ID of the choice to remove
|
|
1838
|
+
* @since 3.22
|
|
1776
1839
|
*/
|
|
1777
1840
|
remove_choice(id: string): void;
|
|
1778
1841
|
|
|
1779
1842
|
/**
|
|
1780
1843
|
* Removes `filter` from the list of filters that the user can select between.
|
|
1781
1844
|
* @param filter a {@link Gtk.FileFilter}
|
|
1845
|
+
* @since 2.4
|
|
1782
1846
|
*/
|
|
1783
1847
|
remove_filter(filter: Gtk.FileFilter): void;
|
|
1784
1848
|
|
|
@@ -1786,6 +1850,8 @@ export namespace Xed {
|
|
|
1786
1850
|
* Removes a folder from a file chooser’s list of shortcut folders.
|
|
1787
1851
|
* @param folder filename of the folder to remove
|
|
1788
1852
|
* @returns `true` if the operation succeeds, `false` otherwise. In the latter case, the `error` will be set as appropriate. See also: `gtk_file_chooser_add_shortcut_folder()`
|
|
1853
|
+
* @since 2.4
|
|
1854
|
+
* @throws GLib.Error
|
|
1789
1855
|
*/
|
|
1790
1856
|
remove_shortcut_folder(folder: string): boolean;
|
|
1791
1857
|
|
|
@@ -1793,11 +1859,14 @@ export namespace Xed {
|
|
|
1793
1859
|
* Removes a folder URI from a file chooser’s list of shortcut folders.
|
|
1794
1860
|
* @param uri URI of the folder to remove
|
|
1795
1861
|
* @returns `true` if the operation succeeds, `false` otherwise. In the latter case, the `error` will be set as appropriate. See also: `gtk_file_chooser_add_shortcut_folder_uri()`
|
|
1862
|
+
* @since 2.4
|
|
1863
|
+
* @throws GLib.Error
|
|
1796
1864
|
*/
|
|
1797
1865
|
remove_shortcut_folder_uri(uri: string): boolean;
|
|
1798
1866
|
|
|
1799
1867
|
/**
|
|
1800
1868
|
* Selects all the files in the current folder of a file chooser.
|
|
1869
|
+
* @since 2.4
|
|
1801
1870
|
*/
|
|
1802
1871
|
select_all(): void;
|
|
1803
1872
|
|
|
@@ -1806,6 +1875,8 @@ export namespace Xed {
|
|
|
1806
1875
|
* _gtk_file_chooser_select_uri().
|
|
1807
1876
|
* @param file the file to select
|
|
1808
1877
|
* @returns Not useful.
|
|
1878
|
+
* @since 2.14
|
|
1879
|
+
* @throws GLib.Error
|
|
1809
1880
|
*/
|
|
1810
1881
|
select_file(file: Gio.File): boolean;
|
|
1811
1882
|
|
|
@@ -1815,6 +1886,7 @@ export namespace Xed {
|
|
|
1815
1886
|
* be changed to the folder containing `filename`.
|
|
1816
1887
|
* @param filename the filename to select
|
|
1817
1888
|
* @returns Not useful. See also: `gtk_file_chooser_set_filename()`
|
|
1889
|
+
* @since 2.4
|
|
1818
1890
|
*/
|
|
1819
1891
|
select_filename(filename: string): boolean;
|
|
1820
1892
|
|
|
@@ -1824,6 +1896,7 @@ export namespace Xed {
|
|
|
1824
1896
|
* `chooser` will be changed to the folder containing `filename`.
|
|
1825
1897
|
* @param uri the URI to select
|
|
1826
1898
|
* @returns Not useful.
|
|
1899
|
+
* @since 2.4
|
|
1827
1900
|
*/
|
|
1828
1901
|
select_uri(uri: string): boolean;
|
|
1829
1902
|
|
|
@@ -1834,6 +1907,7 @@ export namespace Xed {
|
|
|
1834
1907
|
* {@link Gtk.FileChooserAction.SAVE} but not if the action is
|
|
1835
1908
|
* {@link Gtk.FileChooserAction.OPEN}.
|
|
1836
1909
|
* @param action the action that the file selector is performing
|
|
1910
|
+
* @since 2.4
|
|
1837
1911
|
*/
|
|
1838
1912
|
set_action(action: Gtk.FileChooserAction): void;
|
|
1839
1913
|
|
|
@@ -1843,6 +1917,7 @@ export namespace Xed {
|
|
|
1843
1917
|
* possible options are "true" and "false".
|
|
1844
1918
|
* @param id the ID of the choice to set
|
|
1845
1919
|
* @param option the ID of the option to select
|
|
1920
|
+
* @since 3.22
|
|
1846
1921
|
*/
|
|
1847
1922
|
set_choice(id: string, option: string): void;
|
|
1848
1923
|
|
|
@@ -1851,6 +1926,7 @@ export namespace Xed {
|
|
|
1851
1926
|
* This is only relevant if the action is not set to be
|
|
1852
1927
|
* {@link Gtk.FileChooserAction.OPEN}.
|
|
1853
1928
|
* @param create_folders `true` if the Create Folder button should be displayed
|
|
1929
|
+
* @since 2.18
|
|
1854
1930
|
*/
|
|
1855
1931
|
set_create_folders(create_folders: boolean): void;
|
|
1856
1932
|
|
|
@@ -1864,6 +1940,7 @@ export namespace Xed {
|
|
|
1864
1940
|
* for the rationale behind this.
|
|
1865
1941
|
* @param filename the full path of the new current folder
|
|
1866
1942
|
* @returns Not useful.
|
|
1943
|
+
* @since 2.4
|
|
1867
1944
|
*/
|
|
1868
1945
|
set_current_folder(filename: string): boolean;
|
|
1869
1946
|
|
|
@@ -1872,6 +1949,8 @@ export namespace Xed {
|
|
|
1872
1949
|
* Internal function, see `gtk_file_chooser_set_current_folder_uri()`.
|
|
1873
1950
|
* @param file the {@link Gio.File} for the new folder
|
|
1874
1951
|
* @returns `true` if the folder could be changed successfully, `false` otherwise.
|
|
1952
|
+
* @since 2.14
|
|
1953
|
+
* @throws GLib.Error
|
|
1875
1954
|
*/
|
|
1876
1955
|
set_current_folder_file(file: Gio.File): boolean;
|
|
1877
1956
|
|
|
@@ -1885,6 +1964,7 @@ export namespace Xed {
|
|
|
1885
1964
|
* for the rationale behind this.
|
|
1886
1965
|
* @param uri the URI for the new current folder
|
|
1887
1966
|
* @returns `true` if the folder could be changed successfully, `false` otherwise.
|
|
1967
|
+
* @since 2.4
|
|
1888
1968
|
*/
|
|
1889
1969
|
set_current_folder_uri(uri: string): boolean;
|
|
1890
1970
|
|
|
@@ -1900,6 +1980,7 @@ export namespace Xed {
|
|
|
1900
1980
|
* Please see the documentation for those functions for an example of using
|
|
1901
1981
|
* `gtk_file_chooser_set_current_name()` as well.
|
|
1902
1982
|
* @param name the filename to use, as a UTF-8 string
|
|
1983
|
+
* @since 2.4
|
|
1903
1984
|
*/
|
|
1904
1985
|
set_current_name(name: string): void;
|
|
1905
1986
|
|
|
@@ -1916,12 +1997,14 @@ export namespace Xed {
|
|
|
1916
1997
|
* {@link Gtk.FileChooser.SignalSignatures.confirm_overwrite | Gtk.FileChooser::confirm-overwrite} signal; please refer to its documentation
|
|
1917
1998
|
* for the details.
|
|
1918
1999
|
* @param do_overwrite_confirmation whether to confirm overwriting in save mode
|
|
2000
|
+
* @since 2.8
|
|
1919
2001
|
*/
|
|
1920
2002
|
set_do_overwrite_confirmation(do_overwrite_confirmation: boolean): void;
|
|
1921
2003
|
|
|
1922
2004
|
/**
|
|
1923
2005
|
* Sets an application-supplied widget to provide extra options to the user.
|
|
1924
2006
|
* @param extra_widget widget for extra options
|
|
2007
|
+
* @since 2.4
|
|
1925
2008
|
*/
|
|
1926
2009
|
set_extra_widget(extra_widget: Gtk.Widget): void;
|
|
1927
2010
|
|
|
@@ -1963,6 +2046,8 @@ export namespace Xed {
|
|
|
1963
2046
|
*
|
|
1964
2047
|
* @param file the {@link Gio.File} to set as current
|
|
1965
2048
|
* @returns Not useful.
|
|
2049
|
+
* @since 2.14
|
|
2050
|
+
* @throws GLib.Error
|
|
1966
2051
|
*/
|
|
1967
2052
|
set_file(file: Gio.File): boolean;
|
|
1968
2053
|
|
|
@@ -2003,6 +2088,7 @@ export namespace Xed {
|
|
|
2003
2088
|
* is already known, so the file chooser will use it.
|
|
2004
2089
|
* @param filename the filename to set as current
|
|
2005
2090
|
* @returns Not useful.
|
|
2091
|
+
* @since 2.4
|
|
2006
2092
|
*/
|
|
2007
2093
|
set_filename(filename: string): boolean;
|
|
2008
2094
|
|
|
@@ -2014,6 +2100,7 @@ export namespace Xed {
|
|
|
2014
2100
|
* filters is empty is useful if you want to restrict the displayed
|
|
2015
2101
|
* set of files without letting the user change it.
|
|
2016
2102
|
* @param filter a {@link Gtk.FileFilter}
|
|
2103
|
+
* @since 2.4
|
|
2017
2104
|
*/
|
|
2018
2105
|
set_filter(filter: Gtk.FileFilter): void;
|
|
2019
2106
|
|
|
@@ -2032,6 +2119,7 @@ export namespace Xed {
|
|
|
2032
2119
|
* available using the native filesystem via a userspace
|
|
2033
2120
|
* filesystem (FUSE).
|
|
2034
2121
|
* @param local_only `true` if only local files can be selected
|
|
2122
|
+
* @since 2.4
|
|
2035
2123
|
*/
|
|
2036
2124
|
set_local_only(local_only: boolean): void;
|
|
2037
2125
|
|
|
@@ -2049,6 +2137,7 @@ export namespace Xed {
|
|
|
2049
2137
|
* application-supplied preview widget is not active, the file chooser
|
|
2050
2138
|
* will display no preview at all.
|
|
2051
2139
|
* @param preview_widget widget for displaying preview.
|
|
2140
|
+
* @since 2.4
|
|
2052
2141
|
*/
|
|
2053
2142
|
set_preview_widget(preview_widget: Gtk.Widget): void;
|
|
2054
2143
|
|
|
@@ -2060,6 +2149,7 @@ export namespace Xed {
|
|
|
2060
2149
|
* or it may display no preview at all. See
|
|
2061
2150
|
* `gtk_file_chooser_set_preview_widget()` for more details.
|
|
2062
2151
|
* @param active whether to display the user-specified preview widget
|
|
2152
|
+
* @since 2.4
|
|
2063
2153
|
*/
|
|
2064
2154
|
set_preview_widget_active(active: boolean): void;
|
|
2065
2155
|
|
|
@@ -2068,12 +2158,14 @@ export namespace Xed {
|
|
|
2068
2158
|
* only relevant if the action is set to be {@link Gtk.FileChooserAction.OPEN} or
|
|
2069
2159
|
* {@link Gtk.FileChooserAction.SELECT_FOLDER}.
|
|
2070
2160
|
* @param select_multiple `true` if multiple files can be selected.
|
|
2161
|
+
* @since 2.4
|
|
2071
2162
|
*/
|
|
2072
2163
|
set_select_multiple(select_multiple: boolean): void;
|
|
2073
2164
|
|
|
2074
2165
|
/**
|
|
2075
2166
|
* Sets whether hidden files and folders are displayed in the file selector.
|
|
2076
2167
|
* @param show_hidden `true` if hidden files and folders should be displayed.
|
|
2168
|
+
* @since 2.6
|
|
2077
2169
|
*/
|
|
2078
2170
|
set_show_hidden(show_hidden: boolean): void;
|
|
2079
2171
|
|
|
@@ -2114,6 +2206,7 @@ export namespace Xed {
|
|
|
2114
2206
|
* is already known, so the file chooser will use it.
|
|
2115
2207
|
* @param uri the URI to set as current
|
|
2116
2208
|
* @returns Not useful.
|
|
2209
|
+
* @since 2.4
|
|
2117
2210
|
*/
|
|
2118
2211
|
set_uri(uri: string): boolean;
|
|
2119
2212
|
|
|
@@ -2125,11 +2218,13 @@ export namespace Xed {
|
|
|
2125
2218
|
*
|
|
2126
2219
|
* See also: `gtk_file_chooser_set_preview_widget()`
|
|
2127
2220
|
* @param use_label whether to display a stock label with the name of the previewed file
|
|
2221
|
+
* @since 2.4
|
|
2128
2222
|
*/
|
|
2129
2223
|
set_use_preview_label(use_label: boolean): void;
|
|
2130
2224
|
|
|
2131
2225
|
/**
|
|
2132
2226
|
* Unselects all the files in the current folder of a file chooser.
|
|
2227
|
+
* @since 2.4
|
|
2133
2228
|
*/
|
|
2134
2229
|
unselect_all(): void;
|
|
2135
2230
|
|
|
@@ -2137,6 +2232,7 @@ export namespace Xed {
|
|
|
2137
2232
|
* Unselects the file referred to by `file`. If the file is not in the current
|
|
2138
2233
|
* directory, does not exist, or is otherwise not currently selected, does nothing.
|
|
2139
2234
|
* @param file a {@link Gio.File}
|
|
2235
|
+
* @since 2.14
|
|
2140
2236
|
*/
|
|
2141
2237
|
unselect_file(file: Gio.File): void;
|
|
2142
2238
|
|
|
@@ -2145,6 +2241,7 @@ export namespace Xed {
|
|
|
2145
2241
|
* is not in the current directory, does not exist, or
|
|
2146
2242
|
* is otherwise not currently selected, does nothing.
|
|
2147
2243
|
* @param filename the filename to unselect
|
|
2244
|
+
* @since 2.4
|
|
2148
2245
|
*/
|
|
2149
2246
|
unselect_filename(filename: string): void;
|
|
2150
2247
|
|
|
@@ -2153,6 +2250,7 @@ export namespace Xed {
|
|
|
2153
2250
|
* is not in the current directory, does not exist, or
|
|
2154
2251
|
* is otherwise not currently selected, does nothing.
|
|
2155
2252
|
* @param uri the URI to unselect
|
|
2253
|
+
* @since 2.4
|
|
2156
2254
|
*/
|
|
2157
2255
|
unselect_uri(uri: string): void;
|
|
2158
2256
|
}
|
|
@@ -2302,21 +2400,21 @@ export namespace Xed {
|
|
|
2302
2400
|
* @signal
|
|
2303
2401
|
* @run-last
|
|
2304
2402
|
*/
|
|
2305
|
-
dispatch: (
|
|
2403
|
+
dispatch: (message: Message) => void;
|
|
2306
2404
|
/**
|
|
2307
2405
|
* The "registered" signal is emitted when a message has been registered
|
|
2308
2406
|
* on the bus.
|
|
2309
2407
|
* @signal
|
|
2310
2408
|
* @run-last
|
|
2311
2409
|
*/
|
|
2312
|
-
registered: (
|
|
2410
|
+
registered: (message_type: MessageType) => void;
|
|
2313
2411
|
/**
|
|
2314
2412
|
* The "unregistered" signal is emitted when a message has been
|
|
2315
2413
|
* unregistered from the bus.
|
|
2316
2414
|
* @signal
|
|
2317
2415
|
* @run-last
|
|
2318
2416
|
*/
|
|
2319
|
-
unregistered: (
|
|
2417
|
+
unregistered: (message_type: MessageType) => void;
|
|
2320
2418
|
}
|
|
2321
2419
|
|
|
2322
2420
|
// Constructor properties interface
|
|
@@ -2515,22 +2613,22 @@ export namespace Xed {
|
|
|
2515
2613
|
* @signal
|
|
2516
2614
|
* @run-first
|
|
2517
2615
|
*/
|
|
2518
|
-
"tab-added": (
|
|
2616
|
+
"tab-added": (object: Tab) => void;
|
|
2519
2617
|
/**
|
|
2520
2618
|
* @signal
|
|
2521
2619
|
* @run-last
|
|
2522
2620
|
*/
|
|
2523
|
-
"tab-close-request": (
|
|
2621
|
+
"tab-close-request": (object: Tab) => void;
|
|
2524
2622
|
/**
|
|
2525
2623
|
* @signal
|
|
2526
2624
|
* @run-first
|
|
2527
2625
|
*/
|
|
2528
|
-
"tab-detached": (
|
|
2626
|
+
"tab-detached": (object: Tab) => void;
|
|
2529
2627
|
/**
|
|
2530
2628
|
* @signal
|
|
2531
2629
|
* @run-first
|
|
2532
2630
|
*/
|
|
2533
|
-
"tab-removed": (
|
|
2631
|
+
"tab-removed": (object: Tab) => void;
|
|
2534
2632
|
/**
|
|
2535
2633
|
* @signal
|
|
2536
2634
|
* @run-first
|
|
@@ -2763,12 +2861,12 @@ export namespace Xed {
|
|
|
2763
2861
|
* @signal
|
|
2764
2862
|
* @run-first
|
|
2765
2863
|
*/
|
|
2766
|
-
"item-added": (
|
|
2864
|
+
"item-added": (object: Gtk.Widget) => void;
|
|
2767
2865
|
/**
|
|
2768
2866
|
* @signal
|
|
2769
2867
|
* @run-first
|
|
2770
2868
|
*/
|
|
2771
|
-
"item-removed": (
|
|
2869
|
+
"item-removed": (object: Gtk.Widget) => void;
|
|
2772
2870
|
"notify::orientation": (pspec: GObject.ParamSpec) => void;
|
|
2773
2871
|
"notify::border-width": (pspec: GObject.ParamSpec) => void;
|
|
2774
2872
|
"notify::child": (pspec: GObject.ParamSpec) => void;
|
|
@@ -3226,12 +3324,14 @@ export namespace Xed {
|
|
|
3226
3324
|
/**
|
|
3227
3325
|
* Retrieves the orientation of the `orientable`.
|
|
3228
3326
|
* @returns the orientation of the `orientable`.
|
|
3327
|
+
* @since 2.16
|
|
3229
3328
|
*/
|
|
3230
3329
|
get_orientation(): Gtk.Orientation;
|
|
3231
3330
|
|
|
3232
3331
|
/**
|
|
3233
3332
|
* Sets the orientation of the `orientable`.
|
|
3234
3333
|
* @param orientation the orientable’s new orientation.
|
|
3334
|
+
* @since 2.16
|
|
3235
3335
|
*/
|
|
3236
3336
|
set_orientation(orientation: Gtk.Orientation): void;
|
|
3237
3337
|
}
|
|
@@ -3569,12 +3669,14 @@ export namespace Xed {
|
|
|
3569
3669
|
/**
|
|
3570
3670
|
* Retrieves the orientation of the `orientable`.
|
|
3571
3671
|
* @returns the orientation of the `orientable`.
|
|
3672
|
+
* @since 2.16
|
|
3572
3673
|
*/
|
|
3573
3674
|
get_orientation(): Gtk.Orientation;
|
|
3574
3675
|
|
|
3575
3676
|
/**
|
|
3576
3677
|
* Sets the orientation of the `orientable`.
|
|
3577
3678
|
* @param orientation the orientable’s new orientation.
|
|
3679
|
+
* @since 2.16
|
|
3578
3680
|
*/
|
|
3579
3681
|
set_orientation(orientation: Gtk.Orientation): void;
|
|
3580
3682
|
}
|
|
@@ -3588,7 +3690,7 @@ export namespace Xed {
|
|
|
3588
3690
|
* @action
|
|
3589
3691
|
* @run-last
|
|
3590
3692
|
*/
|
|
3591
|
-
"drop-uris": (
|
|
3693
|
+
"drop-uris": (object: string[]) => void;
|
|
3592
3694
|
"notify::auto-indent": (pspec: GObject.ParamSpec) => void;
|
|
3593
3695
|
"notify::background-pattern": (pspec: GObject.ParamSpec) => void;
|
|
3594
3696
|
"notify::completion": (pspec: GObject.ParamSpec) => void;
|
|
@@ -3781,7 +3883,7 @@ export namespace Xed {
|
|
|
3781
3883
|
* @signal
|
|
3782
3884
|
* @run-first
|
|
3783
3885
|
*/
|
|
3784
|
-
"active-tab-changed": (
|
|
3886
|
+
"active-tab-changed": (object: Tab) => void;
|
|
3785
3887
|
/**
|
|
3786
3888
|
* @signal
|
|
3787
3889
|
* @run-first
|
|
@@ -3791,12 +3893,12 @@ export namespace Xed {
|
|
|
3791
3893
|
* @signal
|
|
3792
3894
|
* @run-first
|
|
3793
3895
|
*/
|
|
3794
|
-
"tab-added": (
|
|
3896
|
+
"tab-added": (object: Tab) => void;
|
|
3795
3897
|
/**
|
|
3796
3898
|
* @signal
|
|
3797
3899
|
* @run-first
|
|
3798
3900
|
*/
|
|
3799
|
-
"tab-removed": (
|
|
3901
|
+
"tab-removed": (object: Tab) => void;
|
|
3800
3902
|
/**
|
|
3801
3903
|
* @signal
|
|
3802
3904
|
* @run-first
|
|
@@ -4120,6 +4222,7 @@ export namespace Xed {
|
|
|
4120
4222
|
*
|
|
4121
4223
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
4122
4224
|
* @param action_name the name of an action in the group
|
|
4225
|
+
* @since 2.28
|
|
4123
4226
|
*/
|
|
4124
4227
|
action_added(action_name: string): void;
|
|
4125
4228
|
|
|
@@ -4129,6 +4232,7 @@ export namespace Xed {
|
|
|
4129
4232
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
4130
4233
|
* @param action_name the name of an action in the group
|
|
4131
4234
|
* @param enabled whether the action is now enabled
|
|
4235
|
+
* @since 2.28
|
|
4132
4236
|
*/
|
|
4133
4237
|
action_enabled_changed(action_name: string, enabled: boolean): void;
|
|
4134
4238
|
|
|
@@ -4137,6 +4241,7 @@ export namespace Xed {
|
|
|
4137
4241
|
*
|
|
4138
4242
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
4139
4243
|
* @param action_name the name of an action in the group
|
|
4244
|
+
* @since 2.28
|
|
4140
4245
|
*/
|
|
4141
4246
|
action_removed(action_name: string): void;
|
|
4142
4247
|
|
|
@@ -4146,6 +4251,7 @@ export namespace Xed {
|
|
|
4146
4251
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
4147
4252
|
* @param action_name the name of an action in the group
|
|
4148
4253
|
* @param state the new state of the named action
|
|
4254
|
+
* @since 2.28
|
|
4149
4255
|
*/
|
|
4150
4256
|
action_state_changed(action_name: string, state: GLib.Variant): void;
|
|
4151
4257
|
|
|
@@ -4185,6 +4291,7 @@ export namespace Xed {
|
|
|
4185
4291
|
* ```
|
|
4186
4292
|
* @param action_name the name of the action to activate
|
|
4187
4293
|
* @param parameter parameters to the activation
|
|
4294
|
+
* @since 2.28
|
|
4188
4295
|
*/
|
|
4189
4296
|
activate_action(action_name: string, parameter: GLib.Variant | null): void;
|
|
4190
4297
|
|
|
@@ -4202,6 +4309,7 @@ export namespace Xed {
|
|
|
4202
4309
|
* If the `value` GVariant is floating, it is consumed.
|
|
4203
4310
|
* @param action_name the name of the action to request the change on
|
|
4204
4311
|
* @param value the new state
|
|
4312
|
+
* @since 2.28
|
|
4205
4313
|
*/
|
|
4206
4314
|
change_action_state(action_name: string, value: GLib.Variant): void;
|
|
4207
4315
|
|
|
@@ -4212,6 +4320,7 @@ export namespace Xed {
|
|
|
4212
4320
|
* have its state changed from outside callers.
|
|
4213
4321
|
* @param action_name the name of the action to query
|
|
4214
4322
|
* @returns whether the action is currently enabled
|
|
4323
|
+
* @since 2.28
|
|
4215
4324
|
*/
|
|
4216
4325
|
get_action_enabled(action_name: string): boolean;
|
|
4217
4326
|
|
|
@@ -4231,6 +4340,7 @@ export namespace Xed {
|
|
|
4231
4340
|
* with the same name but a different parameter type.
|
|
4232
4341
|
* @param action_name the name of the action to query
|
|
4233
4342
|
* @returns the parameter type
|
|
4343
|
+
* @since 2.28
|
|
4234
4344
|
*/
|
|
4235
4345
|
get_action_parameter_type(action_name: string): GLib.VariantType | null;
|
|
4236
4346
|
|
|
@@ -4245,6 +4355,7 @@ export namespace Xed {
|
|
|
4245
4355
|
* {@link GLib.Variant.unref} when it is no longer required.
|
|
4246
4356
|
* @param action_name the name of the action to query
|
|
4247
4357
|
* @returns the current state of the action
|
|
4358
|
+
* @since 2.28
|
|
4248
4359
|
*/
|
|
4249
4360
|
get_action_state(action_name: string): GLib.Variant | null;
|
|
4250
4361
|
|
|
@@ -4269,6 +4380,7 @@ export namespace Xed {
|
|
|
4269
4380
|
* {@link GLib.Variant.unref} when it is no longer required.
|
|
4270
4381
|
* @param action_name the name of the action to query
|
|
4271
4382
|
* @returns the state range hint
|
|
4383
|
+
* @since 2.28
|
|
4272
4384
|
*/
|
|
4273
4385
|
get_action_state_hint(action_name: string): GLib.Variant | null;
|
|
4274
4386
|
|
|
@@ -4291,6 +4403,7 @@ export namespace Xed {
|
|
|
4291
4403
|
* with the same name but a different state type.
|
|
4292
4404
|
* @param action_name the name of the action to query
|
|
4293
4405
|
* @returns the state type, if the action is stateful
|
|
4406
|
+
* @since 2.28
|
|
4294
4407
|
*/
|
|
4295
4408
|
get_action_state_type(action_name: string): GLib.VariantType | null;
|
|
4296
4409
|
|
|
@@ -4298,6 +4411,7 @@ export namespace Xed {
|
|
|
4298
4411
|
* Checks if the named action exists within `action_group`.
|
|
4299
4412
|
* @param action_name the name of the action to check for
|
|
4300
4413
|
* @returns whether the named action exists
|
|
4414
|
+
* @since 2.28
|
|
4301
4415
|
*/
|
|
4302
4416
|
has_action(action_name: string): boolean;
|
|
4303
4417
|
|
|
@@ -4307,6 +4421,7 @@ export namespace Xed {
|
|
|
4307
4421
|
* The caller is responsible for freeing the list with {@link GLib.strfreev} when
|
|
4308
4422
|
* it is no longer required.
|
|
4309
4423
|
* @returns a `NULL`-terminated array of the names of the actions in the group
|
|
4424
|
+
* @since 2.28
|
|
4310
4425
|
*/
|
|
4311
4426
|
list_actions(): string[];
|
|
4312
4427
|
|
|
@@ -4340,6 +4455,7 @@ export namespace Xed {
|
|
|
4340
4455
|
* fields may or may not have been modified.
|
|
4341
4456
|
* @param action_name the name of an action in the group
|
|
4342
4457
|
* @returns `TRUE` if the action exists, else `FALSE`
|
|
4458
|
+
* @since 2.32
|
|
4343
4459
|
*/
|
|
4344
4460
|
query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null];
|
|
4345
4461
|
|
|
@@ -4348,6 +4464,7 @@ export namespace Xed {
|
|
|
4348
4464
|
*
|
|
4349
4465
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
4350
4466
|
* @param action_name the name of an action in the group
|
|
4467
|
+
* @since 2.28
|
|
4351
4468
|
* @virtual
|
|
4352
4469
|
*/
|
|
4353
4470
|
vfunc_action_added(action_name: string): void;
|
|
@@ -4358,6 +4475,7 @@ export namespace Xed {
|
|
|
4358
4475
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
4359
4476
|
* @param action_name the name of an action in the group
|
|
4360
4477
|
* @param enabled whether the action is now enabled
|
|
4478
|
+
* @since 2.28
|
|
4361
4479
|
* @virtual
|
|
4362
4480
|
*/
|
|
4363
4481
|
vfunc_action_enabled_changed(action_name: string, enabled: boolean): void;
|
|
@@ -4367,6 +4485,7 @@ export namespace Xed {
|
|
|
4367
4485
|
*
|
|
4368
4486
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
4369
4487
|
* @param action_name the name of an action in the group
|
|
4488
|
+
* @since 2.28
|
|
4370
4489
|
* @virtual
|
|
4371
4490
|
*/
|
|
4372
4491
|
vfunc_action_removed(action_name: string): void;
|
|
@@ -4377,6 +4496,7 @@ export namespace Xed {
|
|
|
4377
4496
|
* This function should only be called by {@link Gio.ActionGroup} implementations.
|
|
4378
4497
|
* @param action_name the name of an action in the group
|
|
4379
4498
|
* @param state the new state of the named action
|
|
4499
|
+
* @since 2.28
|
|
4380
4500
|
* @virtual
|
|
4381
4501
|
*/
|
|
4382
4502
|
vfunc_action_state_changed(action_name: string, state: GLib.Variant): void;
|
|
@@ -4417,6 +4537,7 @@ export namespace Xed {
|
|
|
4417
4537
|
* ```
|
|
4418
4538
|
* @param action_name the name of the action to activate
|
|
4419
4539
|
* @param parameter parameters to the activation
|
|
4540
|
+
* @since 2.28
|
|
4420
4541
|
* @virtual
|
|
4421
4542
|
*/
|
|
4422
4543
|
vfunc_activate_action(action_name: string, parameter: GLib.Variant | null): void;
|
|
@@ -4435,6 +4556,7 @@ export namespace Xed {
|
|
|
4435
4556
|
* If the `value` GVariant is floating, it is consumed.
|
|
4436
4557
|
* @param action_name the name of the action to request the change on
|
|
4437
4558
|
* @param value the new state
|
|
4559
|
+
* @since 2.28
|
|
4438
4560
|
* @virtual
|
|
4439
4561
|
*/
|
|
4440
4562
|
vfunc_change_action_state(action_name: string, value: GLib.Variant): void;
|
|
@@ -4445,6 +4567,7 @@ export namespace Xed {
|
|
|
4445
4567
|
* An action must be enabled in order to be activated or in order to
|
|
4446
4568
|
* have its state changed from outside callers.
|
|
4447
4569
|
* @param action_name the name of the action to query
|
|
4570
|
+
* @since 2.28
|
|
4448
4571
|
* @virtual
|
|
4449
4572
|
*/
|
|
4450
4573
|
vfunc_get_action_enabled(action_name: string): boolean;
|
|
@@ -4464,6 +4587,7 @@ export namespace Xed {
|
|
|
4464
4587
|
* possible for an action to be removed and for a new action to be added
|
|
4465
4588
|
* with the same name but a different parameter type.
|
|
4466
4589
|
* @param action_name the name of the action to query
|
|
4590
|
+
* @since 2.28
|
|
4467
4591
|
* @virtual
|
|
4468
4592
|
*/
|
|
4469
4593
|
vfunc_get_action_parameter_type(action_name: string): GLib.VariantType | null;
|
|
@@ -4478,6 +4602,7 @@ export namespace Xed {
|
|
|
4478
4602
|
* The return value (if non-`NULL`) should be freed with
|
|
4479
4603
|
* {@link GLib.Variant.unref} when it is no longer required.
|
|
4480
4604
|
* @param action_name the name of the action to query
|
|
4605
|
+
* @since 2.28
|
|
4481
4606
|
* @virtual
|
|
4482
4607
|
*/
|
|
4483
4608
|
vfunc_get_action_state(action_name: string): GLib.Variant | null;
|
|
@@ -4502,6 +4627,7 @@ export namespace Xed {
|
|
|
4502
4627
|
* The return value (if non-`NULL`) should be freed with
|
|
4503
4628
|
* {@link GLib.Variant.unref} when it is no longer required.
|
|
4504
4629
|
* @param action_name the name of the action to query
|
|
4630
|
+
* @since 2.28
|
|
4505
4631
|
* @virtual
|
|
4506
4632
|
*/
|
|
4507
4633
|
vfunc_get_action_state_hint(action_name: string): GLib.Variant | null;
|
|
@@ -4524,6 +4650,7 @@ export namespace Xed {
|
|
|
4524
4650
|
* possible for an action to be removed and for a new action to be added
|
|
4525
4651
|
* with the same name but a different state type.
|
|
4526
4652
|
* @param action_name the name of the action to query
|
|
4653
|
+
* @since 2.28
|
|
4527
4654
|
* @virtual
|
|
4528
4655
|
*/
|
|
4529
4656
|
vfunc_get_action_state_type(action_name: string): GLib.VariantType | null;
|
|
@@ -4531,6 +4658,7 @@ export namespace Xed {
|
|
|
4531
4658
|
/**
|
|
4532
4659
|
* Checks if the named action exists within `action_group`.
|
|
4533
4660
|
* @param action_name the name of the action to check for
|
|
4661
|
+
* @since 2.28
|
|
4534
4662
|
* @virtual
|
|
4535
4663
|
*/
|
|
4536
4664
|
vfunc_has_action(action_name: string): boolean;
|
|
@@ -4540,6 +4668,7 @@ export namespace Xed {
|
|
|
4540
4668
|
*
|
|
4541
4669
|
* The caller is responsible for freeing the list with {@link GLib.strfreev} when
|
|
4542
4670
|
* it is no longer required.
|
|
4671
|
+
* @since 2.28
|
|
4543
4672
|
* @virtual
|
|
4544
4673
|
*/
|
|
4545
4674
|
vfunc_list_actions(): string[];
|
|
@@ -4573,6 +4702,7 @@ export namespace Xed {
|
|
|
4573
4702
|
* filled. If the action doesn’t exist, `FALSE` is returned and the
|
|
4574
4703
|
* fields may or may not have been modified.
|
|
4575
4704
|
* @param action_name the name of an action in the group
|
|
4705
|
+
* @since 2.32
|
|
4576
4706
|
* @virtual
|
|
4577
4707
|
*/
|
|
4578
4708
|
vfunc_query_action(action_name: string): [boolean, boolean, GLib.VariantType | null, GLib.VariantType | null, GLib.Variant | null, GLib.Variant | null];
|
|
@@ -4585,6 +4715,7 @@ export namespace Xed {
|
|
|
4585
4715
|
*
|
|
4586
4716
|
* The action map takes its own reference on `action`.
|
|
4587
4717
|
* @param action a {@link Gio.Action}
|
|
4718
|
+
* @since 2.32
|
|
4588
4719
|
*/
|
|
4589
4720
|
add_action(action: Gio.Action): void;
|
|
4590
4721
|
|
|
@@ -4601,6 +4732,7 @@ export namespace Xed {
|
|
|
4601
4732
|
* If no such action exists, returns `NULL`.
|
|
4602
4733
|
* @param action_name the name of an action
|
|
4603
4734
|
* @returns a {@link Gio.Action}
|
|
4735
|
+
* @since 2.32
|
|
4604
4736
|
*/
|
|
4605
4737
|
lookup_action(action_name: string): Gio.Action | null;
|
|
4606
4738
|
|
|
@@ -4609,6 +4741,7 @@ export namespace Xed {
|
|
|
4609
4741
|
*
|
|
4610
4742
|
* If no action of this name is in the map then nothing happens.
|
|
4611
4743
|
* @param action_name the name of the action
|
|
4744
|
+
* @since 2.32
|
|
4612
4745
|
*/
|
|
4613
4746
|
remove_action(action_name: string): void;
|
|
4614
4747
|
|
|
@@ -4636,6 +4769,7 @@ export namespace Xed {
|
|
|
4636
4769
|
* }
|
|
4637
4770
|
* ```
|
|
4638
4771
|
* @param entries a pointer to the first item in an array of {@link Gio.ActionEntry} structs
|
|
4772
|
+
* @since 2.78
|
|
4639
4773
|
*/
|
|
4640
4774
|
remove_action_entries(entries: Gio.ActionEntry[]): void;
|
|
4641
4775
|
|
|
@@ -4647,6 +4781,7 @@ export namespace Xed {
|
|
|
4647
4781
|
*
|
|
4648
4782
|
* The action map takes its own reference on `action`.
|
|
4649
4783
|
* @param action a {@link Gio.Action}
|
|
4784
|
+
* @since 2.32
|
|
4650
4785
|
* @virtual
|
|
4651
4786
|
*/
|
|
4652
4787
|
vfunc_add_action(action: Gio.Action): void;
|
|
@@ -4656,6 +4791,7 @@ export namespace Xed {
|
|
|
4656
4791
|
*
|
|
4657
4792
|
* If no such action exists, returns `NULL`.
|
|
4658
4793
|
* @param action_name the name of an action
|
|
4794
|
+
* @since 2.32
|
|
4659
4795
|
* @virtual
|
|
4660
4796
|
*/
|
|
4661
4797
|
vfunc_lookup_action(action_name: string): Gio.Action | null;
|
|
@@ -4665,6 +4801,7 @@ export namespace Xed {
|
|
|
4665
4801
|
*
|
|
4666
4802
|
* If no action of this name is in the map then nothing happens.
|
|
4667
4803
|
* @param action_name the name of the action
|
|
4804
|
+
* @since 2.32
|
|
4668
4805
|
* @virtual
|
|
4669
4806
|
*/
|
|
4670
4807
|
vfunc_remove_action(action_name: string): void;
|