@gtkx/react 0.9.3 → 0.10.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.
Files changed (182) hide show
  1. package/README.md +55 -67
  2. package/dist/errors.d.ts +3 -3
  3. package/dist/errors.js +8 -8
  4. package/dist/factory.d.ts +3 -5
  5. package/dist/factory.js +18 -71
  6. package/dist/fiber-root.d.ts +1 -1
  7. package/dist/fiber-root.js +1 -2
  8. package/dist/generated/internal.d.ts +3 -6
  9. package/dist/generated/internal.js +10386 -13577
  10. package/dist/generated/jsx.d.ts +2325 -2219
  11. package/dist/generated/jsx.js +1339 -1574
  12. package/dist/generated/registry.d.ts +4 -0
  13. package/dist/generated/registry.js +13 -0
  14. package/dist/host-config.d.ts +7 -4
  15. package/dist/host-config.js +53 -18
  16. package/dist/index.d.ts +2 -22
  17. package/dist/index.js +2 -40
  18. package/dist/jsx.d.ts +719 -0
  19. package/dist/jsx.js +392 -0
  20. package/dist/node.d.ts +15 -32
  21. package/dist/node.js +20 -240
  22. package/dist/nodes/action-row-child.d.ts +21 -0
  23. package/dist/nodes/action-row-child.js +69 -0
  24. package/dist/nodes/action-row.js +33 -0
  25. package/dist/nodes/application.d.ts +1 -0
  26. package/dist/nodes/application.js +38 -0
  27. package/dist/nodes/autowrapped.d.ts +1 -0
  28. package/dist/nodes/autowrapped.js +109 -0
  29. package/dist/nodes/column-view-column.d.ts +16 -0
  30. package/dist/nodes/column-view-column.js +54 -0
  31. package/dist/nodes/column-view.d.ts +0 -59
  32. package/dist/nodes/column-view.js +107 -226
  33. package/dist/nodes/fixed-child.d.ts +1 -0
  34. package/dist/nodes/fixed-child.js +45 -0
  35. package/dist/nodes/grid-child.d.ts +1 -0
  36. package/dist/nodes/grid-child.js +54 -0
  37. package/dist/nodes/index.d.ts +34 -0
  38. package/dist/nodes/index.js +34 -0
  39. package/dist/nodes/internal/list-item-renderer.d.ts +18 -0
  40. package/dist/nodes/internal/list-item-renderer.js +67 -0
  41. package/dist/nodes/internal/list-store.d.ts +16 -0
  42. package/dist/nodes/internal/list-store.js +69 -0
  43. package/dist/nodes/internal/predicates.d.ts +26 -0
  44. package/dist/nodes/internal/predicates.js +36 -0
  45. package/dist/nodes/internal/signal-store.d.ts +9 -0
  46. package/dist/nodes/internal/signal-store.js +54 -0
  47. package/dist/nodes/internal/simple-list-store.d.ts +14 -0
  48. package/dist/nodes/internal/simple-list-store.js +60 -0
  49. package/dist/nodes/internal/tree-list-item-renderer.d.ts +18 -0
  50. package/dist/nodes/internal/tree-list-item-renderer.js +90 -0
  51. package/dist/nodes/internal/tree-store.d.ts +28 -0
  52. package/dist/nodes/internal/tree-store.js +153 -0
  53. package/dist/nodes/internal/utils.d.ts +3 -0
  54. package/dist/nodes/internal/utils.js +20 -0
  55. package/dist/nodes/list-item.d.ts +12 -0
  56. package/dist/nodes/list-item.js +24 -0
  57. package/dist/nodes/list-view.d.ts +0 -22
  58. package/dist/nodes/list-view.js +45 -38
  59. package/dist/nodes/menu.d.ts +6 -106
  60. package/dist/nodes/menu.js +16 -268
  61. package/dist/nodes/models/list.d.ts +24 -0
  62. package/dist/nodes/models/list.js +102 -0
  63. package/dist/nodes/models/menu.d.ts +45 -0
  64. package/dist/nodes/models/menu.js +265 -0
  65. package/dist/nodes/models/tree-list.d.ts +28 -0
  66. package/dist/nodes/models/tree-list.js +141 -0
  67. package/dist/nodes/navigation-page.d.ts +21 -0
  68. package/dist/nodes/navigation-page.js +95 -0
  69. package/dist/nodes/navigation-view.d.ts +1 -0
  70. package/dist/nodes/navigation-view.js +29 -0
  71. package/dist/nodes/notebook-page-tab.d.ts +15 -0
  72. package/dist/nodes/notebook-page-tab.js +42 -0
  73. package/dist/nodes/notebook-page.d.ts +23 -0
  74. package/dist/nodes/notebook-page.js +106 -0
  75. package/dist/nodes/notebook.d.ts +0 -32
  76. package/dist/nodes/notebook.js +20 -113
  77. package/dist/nodes/overlay-child.d.ts +1 -0
  78. package/dist/nodes/overlay-child.js +30 -0
  79. package/dist/nodes/pack-child.d.ts +21 -0
  80. package/dist/nodes/pack-child.js +68 -0
  81. package/dist/nodes/pack.d.ts +1 -0
  82. package/dist/nodes/pack.js +33 -0
  83. package/dist/nodes/popover-menu.d.ts +1 -0
  84. package/dist/nodes/popover-menu.js +58 -0
  85. package/dist/nodes/simple-list-item.d.ts +9 -0
  86. package/dist/nodes/simple-list-item.js +9 -0
  87. package/dist/nodes/simple-list-view.d.ts +1 -0
  88. package/dist/nodes/simple-list-view.js +75 -0
  89. package/dist/nodes/slot.d.ts +18 -10
  90. package/dist/nodes/slot.js +83 -51
  91. package/dist/nodes/stack-page.d.ts +1 -0
  92. package/dist/nodes/stack-page.js +80 -0
  93. package/dist/nodes/stack.d.ts +1 -22
  94. package/dist/nodes/stack.js +21 -60
  95. package/dist/nodes/toast-overlay.d.ts +1 -0
  96. package/dist/nodes/toast-overlay.js +35 -0
  97. package/dist/nodes/toast.d.ts +17 -0
  98. package/dist/nodes/toast.js +77 -0
  99. package/dist/nodes/toolbar-child.d.ts +9 -0
  100. package/dist/nodes/toolbar-child.js +33 -0
  101. package/dist/nodes/toolbar.d.ts +1 -0
  102. package/dist/nodes/toolbar.js +42 -0
  103. package/dist/nodes/tree-list-item.d.ts +20 -0
  104. package/dist/nodes/tree-list-item.js +102 -0
  105. package/dist/nodes/tree-list-view.d.ts +1 -0
  106. package/dist/nodes/tree-list-view.js +57 -0
  107. package/dist/nodes/virtual.d.ts +13 -0
  108. package/dist/nodes/virtual.js +21 -0
  109. package/dist/nodes/widget.d.ts +17 -3
  110. package/dist/nodes/widget.js +258 -2
  111. package/dist/nodes/window.d.ts +1 -12
  112. package/dist/nodes/window.js +66 -27
  113. package/dist/portal.d.ts +18 -13
  114. package/dist/portal.js +17 -14
  115. package/dist/reconciler.d.ts +0 -4
  116. package/dist/reconciler.js +1 -9
  117. package/dist/registry.d.ts +8 -0
  118. package/dist/registry.js +5 -0
  119. package/dist/render.d.ts +108 -12
  120. package/dist/render.js +140 -16
  121. package/dist/scheduler.d.ts +4 -0
  122. package/dist/scheduler.js +10 -0
  123. package/dist/types.d.ts +3 -136
  124. package/package.json +6 -6
  125. package/dist/batch.d.ts +0 -5
  126. package/dist/batch.js +0 -31
  127. package/dist/codegen/jsx-generator.d.ts +0 -56
  128. package/dist/codegen/jsx-generator.js +0 -959
  129. package/dist/containers.d.ts +0 -58
  130. package/dist/nodes/about-dialog.d.ts +0 -8
  131. package/dist/nodes/about-dialog.js +0 -16
  132. package/dist/nodes/action-bar.d.ts +0 -5
  133. package/dist/nodes/action-bar.js +0 -6
  134. package/dist/nodes/combo-row.d.ts +0 -5
  135. package/dist/nodes/combo-row.js +0 -6
  136. package/dist/nodes/drop-down.d.ts +0 -9
  137. package/dist/nodes/drop-down.js +0 -12
  138. package/dist/nodes/flow-box.d.ts +0 -10
  139. package/dist/nodes/flow-box.js +0 -41
  140. package/dist/nodes/grid.d.ts +0 -30
  141. package/dist/nodes/grid.js +0 -84
  142. package/dist/nodes/header-bar.d.ts +0 -43
  143. package/dist/nodes/header-bar.js +0 -116
  144. package/dist/nodes/indexed-child-container.d.ts +0 -16
  145. package/dist/nodes/indexed-child-container.js +0 -22
  146. package/dist/nodes/list-box.d.ts +0 -10
  147. package/dist/nodes/list-box.js +0 -48
  148. package/dist/nodes/list-item-factory.d.ts +0 -19
  149. package/dist/nodes/list-item-factory.js +0 -58
  150. package/dist/nodes/overlay.d.ts +0 -11
  151. package/dist/nodes/overlay.js +0 -50
  152. package/dist/nodes/paged-stack.d.ts +0 -31
  153. package/dist/nodes/paged-stack.js +0 -95
  154. package/dist/nodes/root.d.ts +0 -8
  155. package/dist/nodes/root.js +0 -13
  156. package/dist/nodes/selectable-list.d.ts +0 -45
  157. package/dist/nodes/selectable-list.js +0 -260
  158. package/dist/nodes/stack-page-props.d.ts +0 -11
  159. package/dist/nodes/stack-page-props.js +0 -23
  160. package/dist/nodes/string-list-container.d.ts +0 -34
  161. package/dist/nodes/string-list-container.js +0 -118
  162. package/dist/nodes/string-list-item.d.ts +0 -19
  163. package/dist/nodes/string-list-item.js +0 -50
  164. package/dist/nodes/string-list-store.d.ts +0 -13
  165. package/dist/nodes/string-list-store.js +0 -44
  166. package/dist/nodes/text-view.d.ts +0 -8
  167. package/dist/nodes/text-view.js +0 -16
  168. package/dist/nodes/toggle-button.d.ts +0 -14
  169. package/dist/nodes/toggle-button.js +0 -39
  170. package/dist/nodes/toolbar-view.d.ts +0 -14
  171. package/dist/nodes/toolbar-view.js +0 -78
  172. package/dist/nodes/view-stack.d.ts +0 -9
  173. package/dist/nodes/view-stack.js +0 -28
  174. package/dist/nodes/virtual-item.d.ts +0 -19
  175. package/dist/nodes/virtual-item.js +0 -48
  176. package/dist/nodes/virtual-slot.d.ts +0 -25
  177. package/dist/nodes/virtual-slot.js +0 -57
  178. package/dist/predicates.d.ts +0 -29
  179. package/dist/predicates.js +0 -37
  180. package/dist/props.d.ts +0 -7
  181. package/dist/props.js +0 -12
  182. /package/dist/{containers.js → nodes/action-row.d.ts} +0 -0
@@ -1,5 +1,3 @@
1
- import "react";
2
- import { createElement } from "react";
3
1
  /**
4
2
  * The base class for all widgets.
5
3
  *
@@ -85,37 +83,37 @@ import { createElement } from "react";
85
83
  * ```c
86
84
  * static void
87
85
  * foo_widget_measure (GtkWidget *widget,
88
- * GtkOrientation orientation,
89
- * int for_size,
90
- * int *minimum_size,
91
- * int *natural_size,
92
- * int *minimum_baseline,
93
- * int *natural_baseline)
86
+ * GtkOrientation orientation,
87
+ * int for_size,
88
+ * int *minimum_size,
89
+ * int *natural_size,
90
+ * int *minimum_baseline,
91
+ * int *natural_baseline)
94
92
  * {
95
- * if (orientation == GTK_ORIENTATION_HORIZONTAL)
96
- * {
97
- * // Calculate minimum and natural width
98
- * }
99
- * else // VERTICAL
100
- * {
101
- * if (i_am_in_height_for_width_mode)
102
- * {
103
- * int min_width, dummy;
104
- *
105
- * // First, get the minimum width of our widget
106
- * GTK_WIDGET_GET_CLASS (widget)->measure (widget, GTK_ORIENTATION_HORIZONTAL, -1,
107
- * &min_width, &dummy, &dummy, &dummy);
108
- *
109
- * // Now use the minimum width to retrieve the minimum and natural height to display
110
- * // that width.
111
- * GTK_WIDGET_GET_CLASS (widget)->measure (widget, GTK_ORIENTATION_VERTICAL, min_width,
112
- * minimum_size, natural_size, &dummy, &dummy);
113
- * }
114
- * else
115
- * {
116
- * // ... some widgets do both.
117
- * }
118
- * }
93
+ * if (orientation == GTK_ORIENTATION_HORIZONTAL)
94
+ * {
95
+ * // Calculate minimum and natural width
96
+ * }
97
+ * else // VERTICAL
98
+ * {
99
+ * if (i_am_in_height_for_width_mode)
100
+ * {
101
+ * int min_width, dummy;
102
+ *
103
+ * // First, get the minimum width of our widget
104
+ * GTK_WIDGET_GET_CLASS (widget)->measure (widget, GTK_ORIENTATION_HORIZONTAL, -1,
105
+ * &min_width, &dummy, &dummy, &dummy);
106
+ *
107
+ * // Now use the minimum width to retrieve the minimum and natural height to display
108
+ * // that width.
109
+ * GTK_WIDGET_GET_CLASS (widget)->measure (widget, GTK_ORIENTATION_VERTICAL, min_width,
110
+ * minimum_size, natural_size, &dummy, &dummy);
111
+ * }
112
+ * else
113
+ * {
114
+ * // ... some widgets do both.
115
+ * }
116
+ * }
119
117
  * }
120
118
  * ```
121
119
  *
@@ -169,27 +167,27 @@ import { createElement } from "react";
169
167
  *
170
168
  * ```xml
171
169
  * <object class="GtkGrid" id="my_grid">
172
- * <child>
173
- * <object class="GtkLabel" id="label1">
174
- * <property name="label">Description</property>
175
- * <layout>
176
- * <property name="column">0</property>
177
- * <property name="row">0</property>
178
- * <property name="row-span">1</property>
179
- * <property name="column-span">1</property>
180
- * </layout>
181
- * </object>
182
- * </child>
183
- * <child>
184
- * <object class="GtkEntry" id="description_entry">
185
- * <layout>
186
- * <property name="column">1</property>
187
- * <property name="row">0</property>
188
- * <property name="row-span">1</property>
189
- * <property name="column-span">1</property>
190
- * </layout>
191
- * </object>
192
- * </child>
170
+ * <child>
171
+ * <object class="GtkLabel" id="label1">
172
+ * <property name="label">Description</property>
173
+ * <layout>
174
+ * <property name="column">0</property>
175
+ * <property name="row">0</property>
176
+ * <property name="row-span">1</property>
177
+ * <property name="column-span">1</property>
178
+ * </layout>
179
+ * </object>
180
+ * </child>
181
+ * <child>
182
+ * <object class="GtkEntry" id="description_entry">
183
+ * <layout>
184
+ * <property name="column">1</property>
185
+ * <property name="row">0</property>
186
+ * <property name="row-span">1</property>
187
+ * <property name="column-span">1</property>
188
+ * </layout>
189
+ * </object>
190
+ * </child>
193
191
  * </object>
194
192
  * ```
195
193
  *
@@ -198,10 +196,10 @@ import { createElement } from "react";
198
196
  *
199
197
  * ```xml
200
198
  * <object class="GtkButton" id="button1">
201
- * <style>
202
- * <class name="my-special-button-class"/>
203
- * <class name="dark-button"/>
204
- * </style>
199
+ * <style>
200
+ * <class name="my-special-button-class"/>
201
+ * <class name="dark-button"/>
202
+ * </style>
205
203
  * </object>
206
204
  * ```
207
205
  *
@@ -210,10 +208,10 @@ import { createElement } from "react";
210
208
  *
211
209
  * ```xml
212
210
  * <object class="GtkButton" id="button1">
213
- * <accessibility>
214
- * <property name="label">Download</property>
215
- * <relation name="labelled-by">label1</relation>
216
- * </accessibility>
211
+ * <accessibility>
212
+ * <property name="label">Download</property>
213
+ * <relation name="labelled-by">label1</relation>
214
+ * </accessibility>
217
215
  * </object>
218
216
  * ```
219
217
  *
@@ -259,21 +257,21 @@ import { createElement } from "react";
259
257
  *
260
258
  * ```xml
261
259
  * <interface>
262
- * <template class="FooWidget" parent="GtkBox">
263
- * <property name="orientation">horizontal</property>
264
- * <property name="spacing">4</property>
265
- * <child>
266
- * <object class="GtkButton" id="hello_button">
267
- * <property name="label">Hello World</property>
268
- * <signal name="clicked" handler="hello_button_clicked" object="FooWidget" swapped="yes"/>
269
- * </object>
270
- * </child>
271
- * <child>
272
- * <object class="GtkButton" id="goodbye_button">
273
- * <property name="label">Goodbye World</property>
274
- * </object>
275
- * </child>
276
- * </template>
260
+ * <template class="FooWidget" parent="GtkBox">
261
+ * <property name="orientation">horizontal</property>
262
+ * <property name="spacing">4</property>
263
+ * <child>
264
+ * <object class="GtkButton" id="hello_button">
265
+ * <property name="label">Hello World</property>
266
+ * <signal name="clicked" handler="hello_button_clicked" object="FooWidget" swapped="yes"/>
267
+ * </object>
268
+ * </child>
269
+ * <child>
270
+ * <object class="GtkButton" id="goodbye_button">
271
+ * <property name="label">Goodbye World</property>
272
+ * </object>
273
+ * </child>
274
+ * </template>
277
275
  * </interface>
278
276
  * ```
279
277
  *
@@ -286,10 +284,10 @@ import { createElement } from "react";
286
284
  * static void
287
285
  * foo_widget_class_init (FooWidgetClass *klass)
288
286
  * {
289
- * // ...
287
+ * // ...
290
288
  *
291
- * gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
292
- * "/com/example/ui/foowidget.ui");
289
+ * gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
290
+ * "/com/example/ui/foowidget.ui");
293
291
  * }
294
292
  * ```
295
293
  *
@@ -300,9 +298,9 @@ import { createElement } from "react";
300
298
  * static void
301
299
  * foo_widget_init (FooWidget *self)
302
300
  * {
303
- * gtk_widget_init_template (GTK_WIDGET (self));
301
+ * gtk_widget_init_template (GTK_WIDGET (self));
304
302
  *
305
- * // Initialize the rest of the widget...
303
+ * // Initialize the rest of the widget...
306
304
  * }
307
305
  * ```
308
306
  *
@@ -313,14 +311,14 @@ import { createElement } from "react";
313
311
  * static void
314
312
  * foo_widget_dispose (GObject *gobject)
315
313
  * {
316
- * FooWidget *self = FOO_WIDGET (gobject);
314
+ * FooWidget *self = FOO_WIDGET (gobject);
317
315
  *
318
- * // Dispose objects for which you have a reference...
316
+ * // Dispose objects for which you have a reference...
319
317
  *
320
- * // Clear the template children for this widget type
321
- * gtk_widget_dispose_template (GTK_WIDGET (self), FOO_TYPE_WIDGET);
318
+ * // Clear the template children for this widget type
319
+ * gtk_widget_dispose_template (GTK_WIDGET (self), FOO_TYPE_WIDGET);
322
320
  *
323
- * G_OBJECT_CLASS (foo_widget_parent_class)->dispose (gobject);
321
+ * G_OBJECT_CLASS (foo_widget_parent_class)->dispose (gobject);
324
322
  * }
325
323
  * ```
326
324
  *
@@ -334,8 +332,8 @@ import { createElement } from "react";
334
332
  *
335
333
  * ```c
336
334
  * typedef struct {
337
- * GtkWidget *hello_button;
338
- * GtkWidget *goodbye_button;
335
+ * GtkWidget *hello_button;
336
+ * GtkWidget *goodbye_button;
339
337
  * } FooWidgetPrivate;
340
338
  *
341
339
  * G_DEFINE_TYPE_WITH_PRIVATE (FooWidget, foo_widget, GTK_TYPE_BOX)
@@ -343,29 +341,29 @@ import { createElement } from "react";
343
341
  * static void
344
342
  * foo_widget_dispose (GObject *gobject)
345
343
  * {
346
- * gtk_widget_dispose_template (GTK_WIDGET (gobject), FOO_TYPE_WIDGET);
344
+ * gtk_widget_dispose_template (GTK_WIDGET (gobject), FOO_TYPE_WIDGET);
347
345
  *
348
- * G_OBJECT_CLASS (foo_widget_parent_class)->dispose (gobject);
346
+ * G_OBJECT_CLASS (foo_widget_parent_class)->dispose (gobject);
349
347
  * }
350
348
  *
351
349
  * static void
352
350
  * foo_widget_class_init (FooWidgetClass *klass)
353
351
  * {
354
- * // ...
355
- * G_OBJECT_CLASS (klass)->dispose = foo_widget_dispose;
356
- *
357
- * gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
358
- * "/com/example/ui/foowidget.ui");
359
- * gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass),
360
- * FooWidget, hello_button);
361
- * gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass),
362
- * FooWidget, goodbye_button);
352
+ * // ...
353
+ * G_OBJECT_CLASS (klass)->dispose = foo_widget_dispose;
354
+ *
355
+ * gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
356
+ * "/com/example/ui/foowidget.ui");
357
+ * gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass),
358
+ * FooWidget, hello_button);
359
+ * gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass),
360
+ * FooWidget, goodbye_button);
363
361
  * }
364
362
  *
365
363
  * static void
366
364
  * foo_widget_init (FooWidget *widget)
367
365
  * {
368
- * gtk_widget_init_template (GTK_WIDGET (widget));
366
+ * gtk_widget_init_template (GTK_WIDGET (widget));
369
367
  * }
370
368
  * ```
371
369
  *
@@ -379,22 +377,22 @@ import { createElement } from "react";
379
377
  * // because of the swapped="yes" attribute in the template XML
380
378
  * static void
381
379
  * hello_button_clicked (FooWidget *self,
382
- * GtkButton *button)
380
+ * GtkButton *button)
383
381
  * {
384
- * g_print ("Hello, world!\n");
382
+ * g_print ("Hello, world!\n");
385
383
  * }
386
384
  *
387
385
  * static void
388
386
  * foo_widget_class_init (FooWidgetClass *klass)
389
387
  * {
390
- * // ...
391
- * gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
392
- * "/com/example/ui/foowidget.ui");
393
- * gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (klass), hello_button_clicked);
388
+ * // ...
389
+ * gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
390
+ * "/com/example/ui/foowidget.ui");
391
+ * gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (klass), hello_button_clicked);
394
392
  * }
395
393
  * ```
396
394
  */
397
- export const Widget = "Widget";
395
+ export const GtkWidget = "GtkWidget";
398
396
  /**
399
397
  * A toplevel window which can contain other widgets.
400
398
  *
@@ -468,14 +466,7 @@ export const Widget = "Widget";
468
466
  *
469
467
  * From GTK 4.12 to 4.18, it used the {@link AccessibleRole.application} role.
470
468
  */
471
- export const Window = {
472
- Root: "Window.Root",
473
- Child: "Window.Child",
474
- DefaultWidget: "Window.DefaultWidget",
475
- FocusWidget: "Window.FocusWidget",
476
- Titlebar: "Window.Titlebar",
477
- TransientFor: "Window.TransientFor",
478
- };
469
+ export const GtkWindow = "GtkWindow";
479
470
  /**
480
471
  * Displays information about a program.
481
472
  *
@@ -513,10 +504,10 @@ export const Window = {
513
504
  * g_object_unref (logo_file);
514
505
  *
515
506
  * gtk_show_about_dialog (NULL,
516
- * "program-name", "ExampleCode",
517
- * "logo", example_logo,
518
- * "title", _("About ExampleCode"),
519
- * NULL);
507
+ * "program-name", "ExampleCode",
508
+ * "logo", example_logo,
509
+ * "title", _("About ExampleCode"),
510
+ * NULL);
520
511
  * ```
521
512
  *
522
513
  * ## Shortcuts and Gestures
@@ -530,7 +521,7 @@ export const Window = {
530
521
  * `GtkAboutDialog` has a single CSS node with the name `window` and style
531
522
  * class `.aboutdialog`.
532
523
  */
533
- export const AboutDialog = "AboutDialog";
524
+ export const GtkAboutDialog = "GtkAboutDialog";
534
525
  /**
535
526
  * Presents contextual actions.
536
527
  *
@@ -556,12 +547,12 @@ export const AboutDialog = "AboutDialog";
556
547
  * ```
557
548
  * actionbar
558
549
  * ╰── revealer
559
- * ╰── box
560
- * ├── box.start
561
- * │ ╰── [start children]
562
- * ├── [center widget]
563
- * ╰── box.end
564
- * ╰── [end children]
550
+ * ╰── box
551
+ * ├── box.start
552
+ * │ ╰── [start children]
553
+ * ├── [center widget]
554
+ * ╰── box.end
555
+ * ╰── [end children]
565
556
  * ```
566
557
  *
567
558
  * A `GtkActionBar`'s CSS node is called `actionbar`. It contains a `revealer`
@@ -571,7 +562,7 @@ export const AboutDialog = "AboutDialog";
571
562
  *
572
563
  * Each of the boxes contains children packed for that side.
573
564
  */
574
- export const ActionBar = "ActionBar";
565
+ export const GtkActionBar = "GtkActionBar";
575
566
  /**
576
567
  * The `GtkAppChooserButton` lets the user select an application.
577
568
  *
@@ -601,7 +592,7 @@ export const ActionBar = "ActionBar";
601
592
  *
602
593
  * `GtkAppChooserButton` has a single CSS node with the name “appchooserbutton”.
603
594
  */
604
- export const AppChooserButton = "AppChooserButton";
595
+ export const GtkAppChooserButton = "GtkAppChooserButton";
605
596
  /**
606
597
  * `GtkAppChooserDialog` shows a `GtkAppChooserWidget` inside a `GtkDialog`.
607
598
  *
@@ -621,7 +612,7 @@ export const AppChooserButton = "AppChooserButton";
621
612
  * `GtkAppChooserDialog` has a single CSS node with the name `window` and style
622
613
  * class `.appchooser`.
623
614
  */
624
- export const AppChooserDialog = "AppChooserDialog";
615
+ export const GtkAppChooserDialog = "GtkAppChooserDialog";
625
616
  /**
626
617
  * `GtkAppChooserWidget` is a widget for selecting applications.
627
618
  *
@@ -647,7 +638,7 @@ export const AppChooserDialog = "AppChooserDialog";
647
638
  *
648
639
  * `GtkAppChooserWidget` has a single CSS node with name appchooser.
649
640
  */
650
- export const AppChooserWidget = "AppChooserWidget";
641
+ export const GtkAppChooserWidget = "GtkAppChooserWidget";
651
642
  /**
652
643
  * A `GtkWindow` subclass that integrates with `GtkApplication`.
653
644
  *
@@ -693,22 +684,22 @@ export const AppChooserWidget = "AppChooserWidget";
693
684
  * GtkApplication *app = gtk_application_new ("org.gtk.test", 0);
694
685
  *
695
686
  * GtkBuilder *builder = gtk_builder_new_from_string (
696
- * "<interface>"
697
- * " <menu id='menubar'>"
698
- * " <submenu>"
699
- * " <attribute name='label' translatable='yes'>_Edit</attribute>"
700
- * " <item>"
701
- * " <attribute name='label' translatable='yes'>_Copy</attribute>"
702
- * " <attribute name='action'>win.copy</attribute>"
703
- * " </item>"
704
- * " <item>"
705
- * " <attribute name='label' translatable='yes'>_Paste</attribute>"
706
- * " <attribute name='action'>win.paste</attribute>"
707
- * " </item>"
708
- * " </submenu>"
709
- * " </menu>"
710
- * "</interface>",
711
- * -1);
687
+ * "<interface>"
688
+ * " <menu id='menubar'>"
689
+ * " <submenu>"
690
+ * " <attribute name='label' translatable='yes'>_Edit</attribute>"
691
+ * " <item>"
692
+ * " <attribute name='label' translatable='yes'>_Copy</attribute>"
693
+ * " <attribute name='action'>win.copy</attribute>"
694
+ * " </item>"
695
+ * " <item>"
696
+ * " <attribute name='label' translatable='yes'>_Paste</attribute>"
697
+ * " <attribute name='action'>win.paste</attribute>"
698
+ * " </item>"
699
+ * " </submenu>"
700
+ * " </menu>"
701
+ * "</interface>",
702
+ * -1);
712
703
  *
713
704
  * GMenuModel *menubar = G_MENU_MODEL (gtk_builder_get_object (builder, "menubar"));
714
705
  * gtk_application_set_menubar (GTK_APPLICATION (app), menubar);
@@ -719,7 +710,7 @@ export const AppChooserWidget = "AppChooserWidget";
719
710
  * GtkWidget *window = gtk_application_window_new (app);
720
711
  * ```
721
712
  */
722
- export const ApplicationWindow = "ApplicationWindow";
713
+ export const GtkApplicationWindow = "GtkApplicationWindow";
723
714
  /**
724
715
  * Preserves the aspect ratio of its child.
725
716
  *
@@ -736,7 +727,7 @@ export const ApplicationWindow = "ApplicationWindow";
736
727
  *
737
728
  * Starting from GTK 4.12, `GtkAspectFrame` uses the {@link AccessibleRole.generic} role.
738
729
  */
739
- export const AspectFrame = "AspectFrame";
730
+ export const GtkAspectFrame = "GtkAspectFrame";
740
731
  /**
741
732
  * `GtkAssistant` is used to represent a complex as a series of steps.
742
733
  *
@@ -775,7 +766,7 @@ export const AspectFrame = "AspectFrame";
775
766
  * `GtkAssistant` has a single CSS node with the name window and style
776
767
  * class .assistant.
777
768
  */
778
- export const Assistant = "Assistant";
769
+ export const GtkAssistant = "GtkAssistant";
779
770
  /**
780
771
  * Arranges child widgets into a single row or column.
781
772
  *
@@ -812,7 +803,7 @@ export const Assistant = "Assistant";
812
803
  *
813
804
  * Starting from GTK 4.12, `GtkBox` uses the {@link AccessibleRole.generic} role.
814
805
  */
815
- export const Box = "Box";
806
+ export const GtkBox = "GtkBox";
816
807
  /**
817
808
  * Calls a callback function when the button is clicked.
818
809
  *
@@ -850,7 +841,7 @@ export const Box = "Box";
850
841
  *
851
842
  * `GtkButton` uses the {@link AccessibleRole.button} role.
852
843
  */
853
- export const Button = "Button";
844
+ export const GtkButton = "GtkButton";
854
845
  /**
855
846
  * Displays a Gregorian calendar, one month at a time.
856
847
  *
@@ -891,7 +882,7 @@ export const Button = "Button";
891
882
  * │ ├── label.year
892
883
  * │ ╰── button
893
884
  * ╰── grid
894
- * ╰── label[.day-name][.week-number][.day-number][.other-month][.today]
885
+ * ╰── label[.day-name][.week-number][.day-number][.other-month][.today]
895
886
  * ```
896
887
  *
897
888
  * `GtkCalendar` has a main node with name calendar. It contains a subnode
@@ -906,7 +897,7 @@ export const Button = "Button";
906
897
  *
907
898
  * Marked day labels get the :selected state assigned.
908
899
  */
909
- export const Calendar = "Calendar";
900
+ export const GtkCalendar = "GtkCalendar";
910
901
  /**
911
902
  * A widget displaying a single row of a GtkTreeModel
912
903
  *
@@ -928,7 +919,7 @@ export const Calendar = "Calendar";
928
919
  *
929
920
  * GtkCellView has a single CSS node with name cellview.
930
921
  */
931
- export const CellView = "CellView";
922
+ export const GtkCellView = "GtkCellView";
932
923
  /**
933
924
  * Arranges three children in a row, keeping the middle child
934
925
  * centered as well as possible.
@@ -966,12 +957,7 @@ export const CellView = "CellView";
966
957
  * Starting from GTK 4.12, `GtkCenterBox` uses the {@link AccessibleRole.generic}
967
958
  * role.
968
959
  */
969
- export const CenterBox = {
970
- Root: "CenterBox.Root",
971
- CenterWidget: "CenterBox.CenterWidget",
972
- EndWidget: "CenterBox.EndWidget",
973
- StartWidget: "CenterBox.StartWidget",
974
- };
960
+ export const GtkCenterBox = "GtkCenterBox";
975
961
  /**
976
962
  * Places a label next to an indicator.
977
963
  *
@@ -1037,11 +1023,7 @@ export const CenterBox = {
1037
1023
  *
1038
1024
  * `GtkCheckButton` uses the {@link AccessibleRole.checkbox} role.
1039
1025
  */
1040
- export const CheckButton = {
1041
- Root: "CheckButton.Root",
1042
- Child: "CheckButton.Child",
1043
- Group: "CheckButton.Group",
1044
- };
1026
+ export const GtkCheckButton = "GtkCheckButton";
1045
1027
  /**
1046
1028
  * The `GtkColorButton` allows to open a color chooser dialog to change
1047
1029
  * the color.
@@ -1055,14 +1037,14 @@ export const CheckButton = {
1055
1037
  * ```
1056
1038
  * colorbutton
1057
1039
  * ╰── button.color
1058
- * ╰── [content]
1040
+ * ╰── [content]
1059
1041
  * ```
1060
1042
  *
1061
1043
  * `GtkColorButton` has a single CSS node with name colorbutton which
1062
1044
  * contains a button node. To differentiate it from a plain `GtkButton`,
1063
1045
  * it gets the .color style class.
1064
1046
  */
1065
- export const ColorButton = "ColorButton";
1047
+ export const GtkColorButton = "GtkColorButton";
1066
1048
  /**
1067
1049
  * A dialog for choosing a color.
1068
1050
  *
@@ -1084,7 +1066,7 @@ export const ColorButton = "ColorButton";
1084
1066
  * `GtkColorChooserDialog` has a single CSS node with the name `window` and style
1085
1067
  * class `.colorchooser`.
1086
1068
  */
1087
- export const ColorChooserDialog = "ColorChooserDialog";
1069
+ export const GtkColorChooserDialog = "GtkColorChooserDialog";
1088
1070
  /**
1089
1071
  * The `GtkColorChooserWidget` widget lets the user select a color.
1090
1072
  *
@@ -1119,7 +1101,7 @@ export const ColorChooserDialog = "ColorChooserDialog";
1119
1101
  *
1120
1102
  * `GtkColorChooserWidget` has a single CSS node with name colorchooser.
1121
1103
  */
1122
- export const ColorChooserWidget = "ColorChooserWidget";
1104
+ export const GtkColorChooserWidget = "GtkColorChooserWidget";
1123
1105
  /**
1124
1106
  * Opens a color chooser dialog to select a color.
1125
1107
  *
@@ -1132,23 +1114,14 @@ export const ColorChooserWidget = "ColorChooserWidget";
1132
1114
  * ```
1133
1115
  * colorbutton
1134
1116
  * ╰── button.color
1135
- * ╰── [content]
1117
+ * ╰── [content]
1136
1118
  * ```
1137
1119
  *
1138
1120
  * `GtkColorDialogButton` has a single CSS node with name colorbutton which
1139
1121
  * contains a button node. To differentiate it from a plain `GtkButton`,
1140
1122
  * it gets the .color style class.
1141
1123
  */
1142
- export const ColorDialogButton = "ColorDialogButton";
1143
- function ColumnViewRoot(props) {
1144
- return createElement("ColumnView.Root", props);
1145
- }
1146
- function ColumnViewColumn(props) {
1147
- return createElement("ColumnView.Column", props);
1148
- }
1149
- function ColumnViewItem(props) {
1150
- return createElement("ColumnView.Item", props);
1151
- }
1124
+ export const GtkColorDialogButton = "GtkColorDialogButton";
1152
1125
  /**
1153
1126
  * Presents a large dynamic list of items using multiple columns with headers.
1154
1127
  *
@@ -1215,11 +1188,7 @@ function ColumnViewItem(props) {
1215
1188
  * are using the {@link AccessibleRole.row} role, and individual cells are using
1216
1189
  * the {@link AccessibleRole.grid_cell} role
1217
1190
  */
1218
- export const ColumnView = {
1219
- Root: ColumnViewRoot,
1220
- Column: ColumnViewColumn,
1221
- Item: ColumnViewItem,
1222
- };
1191
+ export const GtkColumnView = "GtkColumnView";
1223
1192
  /**
1224
1193
  * A `GtkComboBox` is a widget that allows the user to choose from a list of
1225
1194
  * valid choices.
@@ -1282,7 +1251,7 @@ export const ColumnView = {
1282
1251
  *
1283
1252
  * `GtkComboBox` uses the {@link AccessibleRole.combo_box} role.
1284
1253
  */
1285
- export const ComboBox = "ComboBox";
1254
+ export const GtkComboBox = "GtkComboBox";
1286
1255
  /**
1287
1256
  * A `GtkComboBoxText` is a simple variant of `GtkComboBox` for text-only
1288
1257
  * use cases.
@@ -1318,11 +1287,11 @@ export const ComboBox = "ComboBox";
1318
1287
  * Here is a UI definition fragment specifying `GtkComboBoxText` items:
1319
1288
  * ```xml
1320
1289
  * <object class="GtkComboBoxText">
1321
- * <items>
1322
- * <item translatable="yes" id="factory">Factory</item>
1323
- * <item translatable="yes" id="home">Home</item>
1324
- * <item translatable="yes" id="subway">Subway</item>
1325
- * </items>
1290
+ * <items>
1291
+ * <item translatable="yes" id="factory">Factory</item>
1292
+ * <item translatable="yes" id="home">Home</item>
1293
+ * <item translatable="yes" id="subway">Subway</item>
1294
+ * </items>
1326
1295
  * </object>
1327
1296
  * ```
1328
1297
  *
@@ -1331,16 +1300,16 @@ export const ComboBox = "ComboBox";
1331
1300
  * ```
1332
1301
  * combobox
1333
1302
  * ╰── box.linked
1334
- * ├── entry.combo
1335
- * ├── button.combo
1336
- * ╰── window.popup
1303
+ * ├── entry.combo
1304
+ * ├── button.combo
1305
+ * ╰── window.popup
1337
1306
  * ```
1338
1307
  *
1339
1308
  * `GtkComboBoxText` has a single CSS node with name combobox. It adds
1340
1309
  * the style class .combo to the main CSS nodes of its entry and button
1341
1310
  * children, and the .linked class to the node of its internal box.
1342
1311
  */
1343
- export const ComboBoxText = "ComboBoxText";
1312
+ export const GtkComboBoxText = "GtkComboBoxText";
1344
1313
  /**
1345
1314
  * Dialogs are a convenient way to prompt the user for a small amount
1346
1315
  * of input.
@@ -1396,31 +1365,31 @@ export const ComboBoxText = "ComboBoxText";
1396
1365
  * void
1397
1366
  * quick_message (GtkWindow *parent, char *message)
1398
1367
  * {
1399
- * GtkWidget *dialog, *label, *content_area;
1400
- * GtkDialogFlags flags;
1401
- *
1402
- * // Create the widgets
1403
- * flags = GTK_DIALOG_DESTROY_WITH_PARENT;
1404
- * dialog = gtk_dialog_new_with_buttons ("Message",
1405
- * parent,
1406
- * flags,
1407
- * _("_OK"),
1408
- * GTK_RESPONSE_NONE,
1409
- * NULL);
1410
- * content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
1411
- * label = gtk_label_new (message);
1412
- *
1413
- * // Ensure that the dialog box is destroyed when the user responds
1414
- *
1415
- * g_signal_connect_swapped (dialog,
1416
- * "response",
1417
- * G_CALLBACK (gtk_window_destroy),
1418
- * dialog);
1419
- *
1420
- * // Add the label, and show everything we’ve added
1421
- *
1422
- * gtk_box_append (GTK_BOX (content_area), label);
1423
- * gtk_widget_show (dialog);
1368
+ * GtkWidget *dialog, *label, *content_area;
1369
+ * GtkDialogFlags flags;
1370
+ *
1371
+ * // Create the widgets
1372
+ * flags = GTK_DIALOG_DESTROY_WITH_PARENT;
1373
+ * dialog = gtk_dialog_new_with_buttons ("Message",
1374
+ * parent,
1375
+ * flags,
1376
+ * _("_OK"),
1377
+ * GTK_RESPONSE_NONE,
1378
+ * NULL);
1379
+ * content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
1380
+ * label = gtk_label_new (message);
1381
+ *
1382
+ * // Ensure that the dialog box is destroyed when the user responds
1383
+ *
1384
+ * g_signal_connect_swapped (dialog,
1385
+ * "response",
1386
+ * G_CALLBACK (gtk_window_destroy),
1387
+ * dialog);
1388
+ *
1389
+ * // Add the label, and show everything we’ve added
1390
+ *
1391
+ * gtk_box_append (GTK_BOX (content_area), label);
1392
+ * gtk_widget_show (dialog);
1424
1393
  * }
1425
1394
  * ```
1426
1395
  *
@@ -1446,17 +1415,17 @@ export const ComboBoxText = "ComboBoxText";
1446
1415
  *
1447
1416
  * ```xml
1448
1417
  * <object class="GtkDialog" id="dialog1">
1449
- * <child type="action">
1450
- * <object class="GtkButton" id="button_cancel"/>
1451
- * </child>
1452
- * <child type="action">
1453
- * <object class="GtkButton" id="button_ok">
1454
- * </object>
1455
- * </child>
1456
- * <action-widgets>
1457
- * <action-widget response="cancel">button_cancel</action-widget>
1458
- * <action-widget response="ok" default="true">button_ok</action-widget>
1459
- * </action-widgets>
1418
+ * <child type="action">
1419
+ * <object class="GtkButton" id="button_cancel"/>
1420
+ * </child>
1421
+ * <child type="action">
1422
+ * <object class="GtkButton" id="button_ok">
1423
+ * </object>
1424
+ * </child>
1425
+ * <action-widgets>
1426
+ * <action-widget response="cancel">button_cancel</action-widget>
1427
+ * <action-widget response="ok" default="true">button_ok</action-widget>
1428
+ * </action-widgets>
1460
1429
  * </object>
1461
1430
  * ```
1462
1431
  *
@@ -1464,7 +1433,7 @@ export const ComboBoxText = "ComboBoxText";
1464
1433
  *
1465
1434
  * `GtkDialog` uses the %GTK_ACCESSIBLE_ROLE_DIALOG role.
1466
1435
  */
1467
- export const Dialog = "Dialog";
1436
+ export const GtkDialog = "GtkDialog";
1468
1437
  /**
1469
1438
  * A `GtkRoot` implementation for drag icons.
1470
1439
  *
@@ -1478,7 +1447,7 @@ export const Dialog = "Dialog";
1478
1447
  *
1479
1448
  * Keep in mind that drag icons do not allow user input.
1480
1449
  */
1481
- export const DragIcon = "DragIcon";
1450
+ export const GtkDragIcon = "GtkDragIcon";
1482
1451
  /**
1483
1452
  * Allows drawing with cairo.
1484
1453
  *
@@ -1506,37 +1475,37 @@ export const DragIcon = "DragIcon";
1506
1475
  * ```c
1507
1476
  * static void
1508
1477
  * draw_function (GtkDrawingArea *area,
1509
- * cairo_t *cr,
1510
- * int width,
1511
- * int height,
1512
- * gpointer data)
1478
+ * cairo_t *cr,
1479
+ * int width,
1480
+ * int height,
1481
+ * gpointer data)
1513
1482
  * {
1514
- * GdkRGBA color;
1483
+ * GdkRGBA color;
1515
1484
  *
1516
- * cairo_arc (cr,
1517
- * width / 2.0, height / 2.0,
1518
- * MIN (width, height) / 2.0,
1519
- * 0, 2 * G_PI);
1485
+ * cairo_arc (cr,
1486
+ * width / 2.0, height / 2.0,
1487
+ * MIN (width, height) / 2.0,
1488
+ * 0, 2 * G_PI);
1520
1489
  *
1521
- * gtk_widget_get_color (GTK_WIDGET (area),
1522
- * &color);
1523
- * gdk_cairo_set_source_rgba (cr, &color);
1490
+ * gtk_widget_get_color (GTK_WIDGET (area),
1491
+ * &color);
1492
+ * gdk_cairo_set_source_rgba (cr, &color);
1524
1493
  *
1525
- * cairo_fill (cr);
1494
+ * cairo_fill (cr);
1526
1495
  * }
1527
1496
  *
1528
1497
  * int
1529
1498
  * main (int argc, char **argv)
1530
1499
  * {
1531
- * gtk_init ();
1532
- *
1533
- * GtkWidget *area = gtk_drawing_area_new ();
1534
- * gtk_drawing_area_set_content_width (GTK_DRAWING_AREA (area), 100);
1535
- * gtk_drawing_area_set_content_height (GTK_DRAWING_AREA (area), 100);
1536
- * gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (area),
1537
- * draw_function,
1538
- * NULL, NULL);
1539
- * return 0;
1500
+ * gtk_init ();
1501
+ *
1502
+ * GtkWidget *area = gtk_drawing_area_new ();
1503
+ * gtk_drawing_area_set_content_width (GTK_DRAWING_AREA (area), 100);
1504
+ * gtk_drawing_area_set_content_height (GTK_DRAWING_AREA (area), 100);
1505
+ * gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (area),
1506
+ * draw_function,
1507
+ * NULL, NULL);
1508
+ * return 0;
1540
1509
  * }
1541
1510
  * ```
1542
1511
  *
@@ -1559,13 +1528,7 @@ export const DragIcon = "DragIcon";
1559
1528
  * If you need more complex control over your widget, you should consider
1560
1529
  * creating your own `GtkWidget` subclass.
1561
1530
  */
1562
- export const DrawingArea = "DrawingArea";
1563
- function DropDownRoot(props) {
1564
- return createElement("DropDown.Root", props);
1565
- }
1566
- function DropDownItem(props) {
1567
- return createElement("DropDown.Item", props);
1568
- }
1531
+ export const GtkDrawingArea = "GtkDrawingArea";
1569
1532
  /**
1570
1533
  * Allows the user to choose an item from a list of options.
1571
1534
  *
@@ -1595,15 +1558,15 @@ function DropDownItem(props) {
1595
1558
  *
1596
1559
  * ```xml
1597
1560
  * <object class="GtkDropDown">
1598
- * <property name="model">
1599
- * <object class="GtkStringList">
1600
- * <items>
1601
- * <item translatable="yes">Factory</item>
1602
- * <item translatable="yes">Home</item>
1603
- * <item translatable="yes">Subway</item>
1604
- * </items>
1605
- * </object>
1606
- * </property>
1561
+ * <property name="model">
1562
+ * <object class="GtkStringList">
1563
+ * <items>
1564
+ * <item translatable="yes">Factory</item>
1565
+ * <item translatable="yes">Home</item>
1566
+ * <item translatable="yes">Subway</item>
1567
+ * </items>
1568
+ * </object>
1569
+ * </property>
1607
1570
  * </object>
1608
1571
  * ```
1609
1572
  *
@@ -1623,10 +1586,7 @@ function DropDownItem(props) {
1623
1586
  *
1624
1587
  * `GtkDropDown` uses the {@link AccessibleRole.combo_box} role.
1625
1588
  */
1626
- export const DropDown = {
1627
- Root: DropDownRoot,
1628
- Item: DropDownItem,
1629
- };
1589
+ export const GtkDropDown = "GtkDropDown";
1630
1590
  /**
1631
1591
  * Allows users to edit the displayed text by switching to an “edit mode”.
1632
1592
  *
@@ -1659,8 +1619,8 @@ export const DropDown = {
1659
1619
  * ```
1660
1620
  * editablelabel[.editing]
1661
1621
  * ╰── stack
1662
- * ├── label
1663
- * ╰── text
1622
+ * ├── label
1623
+ * ╰── text
1664
1624
  * ```
1665
1625
  *
1666
1626
  * `GtkEditableLabel` has a main node with the name editablelabel.
@@ -1670,7 +1630,7 @@ export const DropDown = {
1670
1630
  * For all the subnodes added to the text node in various situations,
1671
1631
  * see {@link Text}.
1672
1632
  */
1673
- export const EditableLabel = "EditableLabel";
1633
+ export const GtkEditableLabel = "GtkEditableLabel";
1674
1634
  /**
1675
1635
  * Used by text widgets to let users insert Emoji characters.
1676
1636
  *
@@ -1699,9 +1659,9 @@ export const EditableLabel = "EditableLabel";
1699
1659
  * ├── box.emoji-searchbar
1700
1660
  * │ ╰── entry.search
1701
1661
  * ╰── box.emoji-toolbar
1702
- * ├── button.image-button.emoji-section
1703
- * ├── ...
1704
- * ╰── button.image-button.emoji-section
1662
+ * ├── button.image-button.emoji-section
1663
+ * ├── ...
1664
+ * ╰── button.image-button.emoji-section
1705
1665
  * ```
1706
1666
  *
1707
1667
  * Every `GtkEmojiChooser` consists of a main node called popover.
@@ -1713,7 +1673,7 @@ export const EditableLabel = "EditableLabel";
1713
1673
  * consists of buttons with the .emoji-section style class and gets the
1714
1674
  * .emoji-toolbar style class itself.
1715
1675
  */
1716
- export const EmojiChooser = "EmojiChooser";
1676
+ export const GtkEmojiChooser = "GtkEmojiChooser";
1717
1677
  /**
1718
1678
  * A single-line text entry widget.
1719
1679
  *
@@ -1786,10 +1746,10 @@ export const EmojiChooser = "EmojiChooser";
1786
1746
  * An example of a UI definition fragment specifying Pango attributes:
1787
1747
  * ```xml
1788
1748
  * <object class="GtkEntry">
1789
- * <attributes>
1790
- * <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
1791
- * <attribute name="background" value="red" start="5" end="10"/>
1792
- * </attributes>
1749
+ * <attributes>
1750
+ * <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
1751
+ * <attribute name="background" value="red" start="5" end="10"/>
1752
+ * </attributes>
1793
1753
  * </object>
1794
1754
  * ```
1795
1755
  *
@@ -1803,7 +1763,7 @@ export const EmojiChooser = "EmojiChooser";
1803
1763
  *
1804
1764
  * `GtkEntry` uses the {@link AccessibleRole.text_box} role.
1805
1765
  */
1806
- export const Entry = "Entry";
1766
+ export const GtkEntry = "GtkEntry";
1807
1767
  /**
1808
1768
  * Allows the user to reveal or conceal a child widget.
1809
1769
  *
@@ -1829,31 +1789,31 @@ export const Entry = "Entry";
1829
1789
  * ```c
1830
1790
  * static void
1831
1791
  * expander_callback (GObject *object,
1832
- * GParamSpec *param_spec,
1833
- * gpointer user_data)
1792
+ * GParamSpec *param_spec,
1793
+ * gpointer user_data)
1834
1794
  * {
1835
- * GtkExpander *expander;
1836
- *
1837
- * expander = GTK_EXPANDER (object);
1838
- *
1839
- * if (gtk_expander_get_expanded (expander))
1840
- * {
1841
- * // Show or create widgets
1842
- * }
1843
- * else
1844
- * {
1845
- * // Hide or destroy widgets
1846
- * }
1795
+ * GtkExpander *expander;
1796
+ *
1797
+ * expander = GTK_EXPANDER (object);
1798
+ *
1799
+ * if (gtk_expander_get_expanded (expander))
1800
+ * {
1801
+ * // Show or create widgets
1802
+ * }
1803
+ * else
1804
+ * {
1805
+ * // Hide or destroy widgets
1806
+ * }
1847
1807
  * }
1848
1808
  *
1849
1809
  * static void
1850
1810
  * create_expander (void)
1851
1811
  * {
1852
- * GtkWidget *expander = gtk_expander_new_with_mnemonic ("_More Options");
1853
- * g_signal_connect (expander, "notify::expanded",
1854
- * G_CALLBACK (expander_callback), NULL);
1812
+ * GtkWidget *expander = gtk_expander_new_with_mnemonic ("_More Options");
1813
+ * g_signal_connect (expander, "notify::expanded",
1814
+ * G_CALLBACK (expander_callback), NULL);
1855
1815
  *
1856
- * // ...
1816
+ * // ...
1857
1817
  * }
1858
1818
  * ```
1859
1819
  *
@@ -1863,12 +1823,12 @@ export const Entry = "Entry";
1863
1823
  *
1864
1824
  * ```xml
1865
1825
  * <object class="GtkExpander">
1866
- * <property name="label-widget">
1867
- * <object class="GtkLabel" id="expander-label"/>
1868
- * </property>
1869
- * <property name="child">
1870
- * <object class="GtkEntry" id="expander-content"/>
1871
- * </property>
1826
+ * <property name="label-widget">
1827
+ * <object class="GtkLabel" id="expander-label"/>
1828
+ * </property>
1829
+ * <property name="child">
1830
+ * <object class="GtkEntry" id="expander-content"/>
1831
+ * </property>
1872
1832
  * </object>
1873
1833
  * ```
1874
1834
  *
@@ -1877,10 +1837,10 @@ export const Entry = "Entry";
1877
1837
  * ```
1878
1838
  * expander-widget
1879
1839
  * ╰── box
1880
- * ├── title
1881
- * │ ├── expander
1882
- * │ ╰── <label widget>
1883
- * ╰── <child>
1840
+ * ├── title
1841
+ * │ ├── expander
1842
+ * │ ╰── <label widget>
1843
+ * ╰── <child>
1884
1844
  * ```
1885
1845
  *
1886
1846
  * `GtkExpander` has a main node `expander-widget`, and subnode `box` containing
@@ -1892,11 +1852,7 @@ export const Entry = "Entry";
1892
1852
  *
1893
1853
  * `GtkExpander` uses the {@link AccessibleRole.button} role.
1894
1854
  */
1895
- export const Expander = {
1896
- Root: "Expander.Root",
1897
- Child: "Expander.Child",
1898
- LabelWidget: "Expander.LabelWidget",
1899
- };
1855
+ export const GtkExpander = "GtkExpander";
1900
1856
  /**
1901
1857
  * `GtkFileChooserDialog` is a dialog suitable for use with
1902
1858
  * “File Open” or “File Save” commands.
@@ -1925,38 +1881,38 @@ export const Expander = {
1925
1881
  * ```c
1926
1882
  * static void
1927
1883
  * on_open_response (GtkDialog *dialog,
1928
- * int response)
1929
- * {
1930
- * if (response == GTK_RESPONSE_ACCEPT)
1884
+ * int response)
1931
1885
  * {
1932
- * GtkFileChooser *chooser = GTK_FILE_CHOOSER (dialog);
1886
+ * if (response == GTK_RESPONSE_ACCEPT)
1887
+ * {
1888
+ * GtkFileChooser *chooser = GTK_FILE_CHOOSER (dialog);
1933
1889
  *
1934
- * g_autoptr(GFile) file = gtk_file_chooser_get_file (chooser);
1890
+ * g_autoptr(GFile) file = gtk_file_chooser_get_file (chooser);
1935
1891
  *
1936
- * open_file (file);
1937
- * }
1892
+ * open_file (file);
1893
+ * }
1938
1894
  *
1939
- * gtk_window_destroy (GTK_WINDOW (dialog));
1895
+ * gtk_window_destroy (GTK_WINDOW (dialog));
1940
1896
  * }
1941
1897
  *
1942
- * // ...
1943
- * GtkWidget *dialog;
1944
- * GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN;
1898
+ * // ...
1899
+ * GtkWidget *dialog;
1900
+ * GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN;
1945
1901
  *
1946
- * dialog = gtk_file_chooser_dialog_new ("Open File",
1947
- * parent_window,
1948
- * action,
1949
- * _("_Cancel"),
1950
- * GTK_RESPONSE_CANCEL,
1951
- * _("_Open"),
1952
- * GTK_RESPONSE_ACCEPT,
1953
- * NULL);
1902
+ * dialog = gtk_file_chooser_dialog_new ("Open File",
1903
+ * parent_window,
1904
+ * action,
1905
+ * _("_Cancel"),
1906
+ * GTK_RESPONSE_CANCEL,
1907
+ * _("_Open"),
1908
+ * GTK_RESPONSE_ACCEPT,
1909
+ * NULL);
1954
1910
  *
1955
- * gtk_window_present (GTK_WINDOW (dialog));
1911
+ * gtk_window_present (GTK_WINDOW (dialog));
1956
1912
  *
1957
- * g_signal_connect (dialog, "response",
1958
- * G_CALLBACK (on_open_response),
1959
- * NULL);
1913
+ * g_signal_connect (dialog, "response",
1914
+ * G_CALLBACK (on_open_response),
1915
+ * NULL);
1960
1916
  * ```
1961
1917
  *
1962
1918
  * To use a dialog for saving, you can use this:
@@ -1964,45 +1920,45 @@ export const Expander = {
1964
1920
  * ```c
1965
1921
  * static void
1966
1922
  * on_save_response (GtkDialog *dialog,
1967
- * int response)
1968
- * {
1969
- * if (response == GTK_RESPONSE_ACCEPT)
1923
+ * int response)
1970
1924
  * {
1971
- * GtkFileChooser *chooser = GTK_FILE_CHOOSER (dialog);
1925
+ * if (response == GTK_RESPONSE_ACCEPT)
1926
+ * {
1927
+ * GtkFileChooser *chooser = GTK_FILE_CHOOSER (dialog);
1972
1928
  *
1973
- * g_autoptr(GFile) file = gtk_file_chooser_get_file (chooser);
1929
+ * g_autoptr(GFile) file = gtk_file_chooser_get_file (chooser);
1974
1930
  *
1975
- * save_to_file (file);
1976
- * }
1931
+ * save_to_file (file);
1932
+ * }
1977
1933
  *
1978
- * gtk_window_destroy (GTK_WINDOW (dialog));
1934
+ * gtk_window_destroy (GTK_WINDOW (dialog));
1979
1935
  * }
1980
1936
  *
1981
- * // ...
1982
- * GtkWidget *dialog;
1983
- * GtkFileChooser *chooser;
1984
- * GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_SAVE;
1985
- *
1986
- * dialog = gtk_file_chooser_dialog_new ("Save File",
1987
- * parent_window,
1988
- * action,
1989
- * _("_Cancel"),
1990
- * GTK_RESPONSE_CANCEL,
1991
- * _("_Save"),
1992
- * GTK_RESPONSE_ACCEPT,
1993
- * NULL);
1994
- * chooser = GTK_FILE_CHOOSER (dialog);
1995
- *
1996
- * if (user_edited_a_new_document)
1997
- * gtk_file_chooser_set_current_name (chooser, _("Untitled document"));
1998
- * else
1999
- * gtk_file_chooser_set_file (chooser, existing_filename);
1937
+ * // ...
1938
+ * GtkWidget *dialog;
1939
+ * GtkFileChooser *chooser;
1940
+ * GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_SAVE;
2000
1941
  *
2001
- * gtk_window_present (GTK_WINDOW (dialog));
1942
+ * dialog = gtk_file_chooser_dialog_new ("Save File",
1943
+ * parent_window,
1944
+ * action,
1945
+ * _("_Cancel"),
1946
+ * GTK_RESPONSE_CANCEL,
1947
+ * _("_Save"),
1948
+ * GTK_RESPONSE_ACCEPT,
1949
+ * NULL);
1950
+ * chooser = GTK_FILE_CHOOSER (dialog);
2002
1951
  *
2003
- * g_signal_connect (dialog, "response",
2004
- * G_CALLBACK (on_save_response),
2005
- * NULL);
1952
+ * if (user_edited_a_new_document)
1953
+ * gtk_file_chooser_set_current_name (chooser, _("Untitled document"));
1954
+ * else
1955
+ * gtk_file_chooser_set_file (chooser, existing_filename);
1956
+ *
1957
+ * gtk_window_present (GTK_WINDOW (dialog));
1958
+ *
1959
+ * g_signal_connect (dialog, "response",
1960
+ * G_CALLBACK (on_save_response),
1961
+ * NULL);
2006
1962
  * ```
2007
1963
  *
2008
1964
  * ## Setting up a file chooser dialog
@@ -2037,13 +1993,13 @@ export const Expander = {
2037
1993
  * GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN;
2038
1994
  *
2039
1995
  * dialog = gtk_file_chooser_dialog_new ("Open File",
2040
- * parent_window,
2041
- * action,
2042
- * _("_Cancel"),
2043
- * GTK_RESPONSE_CANCEL,
2044
- * _("_Open"),
2045
- * GTK_RESPONSE_ACCEPT,
2046
- * NULL);
1996
+ * parent_window,
1997
+ * action,
1998
+ * _("_Cancel"),
1999
+ * GTK_RESPONSE_CANCEL,
2000
+ * _("_Open"),
2001
+ * GTK_RESPONSE_ACCEPT,
2002
+ * NULL);
2047
2003
  * ```
2048
2004
  *
2049
2005
  * This will create buttons for “Cancel” and “Open” that use predefined
@@ -2071,7 +2027,7 @@ export const Expander = {
2071
2027
  * `GtkFileChooserDialog` has a single CSS node with the name `window` and style
2072
2028
  * class `.filechooser`.
2073
2029
  */
2074
- export const FileChooserDialog = "FileChooserDialog";
2030
+ export const GtkFileChooserDialog = "GtkFileChooserDialog";
2075
2031
  /**
2076
2032
  * `GtkFileChooserWidget` is a widget for choosing files.
2077
2033
  *
@@ -2104,7 +2060,7 @@ export const FileChooserDialog = "FileChooserDialog";
2104
2060
  *
2105
2061
  * `GtkFileChooserWidget` has a single CSS node with name filechooser.
2106
2062
  */
2107
- export const FileChooserWidget = "FileChooserWidget";
2063
+ export const GtkFileChooserWidget = "GtkFileChooserWidget";
2108
2064
  /**
2109
2065
  * Places its child widgets at fixed positions and with fixed sizes.
2110
2066
  *
@@ -2144,7 +2100,7 @@ export const FileChooserWidget = "FileChooserWidget";
2144
2100
  * and prefer the simplicity of `GtkFixed`, by all means use the
2145
2101
  * widget. But you should be aware of the tradeoffs.
2146
2102
  */
2147
- export const Fixed = "Fixed";
2103
+ export const GtkFixed = "GtkFixed";
2148
2104
  /**
2149
2105
  * Puts child widgets in a reflowing grid.
2150
2106
  *
@@ -2204,14 +2160,14 @@ export const Fixed = "Fixed";
2204
2160
  * `GtkFlowBox` uses the {@link AccessibleRole.grid} role, and `GtkFlowBoxChild`
2205
2161
  * uses the {@link AccessibleRole.grid_cell} role.
2206
2162
  */
2207
- export const FlowBox = "FlowBox";
2163
+ export const GtkFlowBox = "GtkFlowBox";
2208
2164
  /**
2209
2165
  * The kind of widget that can be added to a `GtkFlowBox`.
2210
2166
  *
2211
2167
  * {@link FlowBox} will automatically wrap its children in a `GtkFlowBoxChild`
2212
2168
  * when necessary.
2213
2169
  */
2214
- export const FlowBoxChild = "FlowBoxChild";
2170
+ export const GtkFlowBoxChild = "GtkFlowBoxChild";
2215
2171
  /**
2216
2172
  * The `GtkFontButton` allows to open a font chooser dialog to change
2217
2173
  * the font.
@@ -2225,13 +2181,13 @@ export const FlowBoxChild = "FlowBoxChild";
2225
2181
  * ```
2226
2182
  * fontbutton
2227
2183
  * ╰── button.font
2228
- * ╰── [content]
2184
+ * ╰── [content]
2229
2185
  * ```
2230
2186
  *
2231
2187
  * `GtkFontButton` has a single CSS node with name fontbutton which
2232
2188
  * contains a button node with the .font style class.
2233
2189
  */
2234
- export const FontButton = "FontButton";
2190
+ export const GtkFontButton = "GtkFontButton";
2235
2191
  /**
2236
2192
  * The `GtkFontChooserDialog` widget is a dialog for selecting a font.
2237
2193
  *
@@ -2253,7 +2209,7 @@ export const FontButton = "FontButton";
2253
2209
  * `GtkFontChooserDialog` has a single CSS node with the name `window` and style
2254
2210
  * class `.fontchooser`.
2255
2211
  */
2256
- export const FontChooserDialog = "FontChooserDialog";
2212
+ export const GtkFontChooserDialog = "GtkFontChooserDialog";
2257
2213
  /**
2258
2214
  * The `GtkFontChooserWidget` widget lets the user select a font.
2259
2215
  *
@@ -2273,7 +2229,7 @@ export const FontChooserDialog = "FontChooserDialog";
2273
2229
  *
2274
2230
  * `GtkFontChooserWidget` has a single CSS node with name fontchooser.
2275
2231
  */
2276
- export const FontChooserWidget = "FontChooserWidget";
2232
+ export const GtkFontChooserWidget = "GtkFontChooserWidget";
2277
2233
  /**
2278
2234
  * Opens a font chooser dialog to select a font.
2279
2235
  *
@@ -2286,13 +2242,13 @@ export const FontChooserWidget = "FontChooserWidget";
2286
2242
  * ```
2287
2243
  * fontbutton
2288
2244
  * ╰── button.font
2289
- * ╰── [content]
2245
+ * ╰── [content]
2290
2246
  * ```
2291
2247
  *
2292
2248
  * `GtkFontDialogButton` has a single CSS node with name fontbutton which
2293
2249
  * contains a button node with the .font style class.
2294
2250
  */
2295
- export const FontDialogButton = "FontDialogButton";
2251
+ export const GtkFontDialogButton = "GtkFontDialogButton";
2296
2252
  /**
2297
2253
  * Surrounds its child with a decorative frame and an optional label.
2298
2254
  *
@@ -2311,12 +2267,12 @@ export const FontDialogButton = "FontDialogButton";
2311
2267
  *
2312
2268
  * ```xml
2313
2269
  * <object class="GtkFrame">
2314
- * <property name="label-widget">
2315
- * <object class="GtkLabel" id="frame_label"/>
2316
- * </property>
2317
- * <property name="child">
2318
- * <object class="GtkEntry" id="frame_content"/>
2319
- * </property>
2270
+ * <property name="label-widget">
2271
+ * <object class="GtkLabel" id="frame_label"/>
2272
+ * </property>
2273
+ * <property name="child">
2274
+ * <object class="GtkEntry" id="frame_content"/>
2275
+ * </property>
2320
2276
  * </object>
2321
2277
  * ```
2322
2278
  *
@@ -2336,11 +2292,7 @@ export const FontDialogButton = "FontDialogButton";
2336
2292
  *
2337
2293
  * `GtkFrame` uses the {@link AccessibleRole.group} role.
2338
2294
  */
2339
- export const Frame = {
2340
- Root: "Frame.Root",
2341
- Child: "Frame.Child",
2342
- LabelWidget: "Frame.LabelWidget",
2343
- };
2295
+ export const GtkFrame = "GtkFrame";
2344
2296
  /**
2345
2297
  * Allows drawing with OpenGL.
2346
2298
  *
@@ -2374,38 +2326,38 @@ export const Frame = {
2374
2326
  * static gboolean
2375
2327
  * render (GtkGLArea *area, GdkGLContext *context)
2376
2328
  * {
2377
- * // inside this function it's safe to use GL; the given
2378
- * // GdkGLContext has been made current to the drawable
2379
- * // surface used by the `GtkGLArea` and the viewport has
2380
- * // already been set to be the size of the allocation
2381
- *
2382
- * // we can start by clearing the buffer
2383
- * glClearColor (0, 0, 0, 0);
2384
- * glClear (GL_COLOR_BUFFER_BIT);
2385
- *
2386
- * // record the active framebuffer ID, so we can return to it
2387
- * // with `glBindFramebuffer (GL_FRAMEBUFFER, screen_fb)` should
2388
- * // we, for instance, intend on utilizing the results of an
2389
- * // intermediate render texture pass
2390
- * GLuint screen_fb = 0;
2391
- * glGetIntegerv (GL_FRAMEBUFFER_BINDING, &screen_fb);
2392
- *
2393
- * // draw your object
2394
- * // draw_an_object ();
2395
- *
2396
- * // we completed our drawing; the draw commands will be
2397
- * // flushed at the end of the signal emission chain, and
2398
- * // the buffers will be drawn on the window
2399
- * return TRUE;
2329
+ * // inside this function it's safe to use GL; the given
2330
+ * // GdkGLContext has been made current to the drawable
2331
+ * // surface used by the `GtkGLArea` and the viewport has
2332
+ * // already been set to be the size of the allocation
2333
+ *
2334
+ * // we can start by clearing the buffer
2335
+ * glClearColor (0, 0, 0, 0);
2336
+ * glClear (GL_COLOR_BUFFER_BIT);
2337
+ *
2338
+ * // record the active framebuffer ID, so we can return to it
2339
+ * // with `glBindFramebuffer (GL_FRAMEBUFFER, screen_fb)` should
2340
+ * // we, for instance, intend on utilizing the results of an
2341
+ * // intermediate render texture pass
2342
+ * GLuint screen_fb = 0;
2343
+ * glGetIntegerv (GL_FRAMEBUFFER_BINDING, &screen_fb);
2344
+ *
2345
+ * // draw your object
2346
+ * // draw_an_object ();
2347
+ *
2348
+ * // we completed our drawing; the draw commands will be
2349
+ * // flushed at the end of the signal emission chain, and
2350
+ * // the buffers will be drawn on the window
2351
+ * return TRUE;
2400
2352
  * }
2401
2353
  *
2402
2354
  * void setup_glarea (void)
2403
2355
  * {
2404
- * // create a GtkGLArea instance
2405
- * GtkWidget *gl_area = gtk_gl_area_new ();
2356
+ * // create a GtkGLArea instance
2357
+ * GtkWidget *gl_area = gtk_gl_area_new ();
2406
2358
  *
2407
- * // connect to the "render" signal
2408
- * g_signal_connect (gl_area, "render", G_CALLBACK (render), NULL);
2359
+ * // connect to the "render" signal
2360
+ * g_signal_connect (gl_area, "render", G_CALLBACK (render), NULL);
2409
2361
  * }
2410
2362
  * ```
2411
2363
  *
@@ -2421,42 +2373,42 @@ export const Frame = {
2421
2373
  * static void
2422
2374
  * on_realize (GtkGLArea *area)
2423
2375
  * {
2424
- * // We need to make the context current if we want to
2425
- * // call GL API
2426
- * gtk_gl_area_make_current (area);
2427
- *
2428
- * // If there were errors during the initialization or
2429
- * // when trying to make the context current, this
2430
- * // function will return a GError for you to catch
2431
- * if (gtk_gl_area_get_error (area) != NULL)
2432
- * return;
2433
- *
2434
- * // You can also use gtk_gl_area_set_error() in order
2435
- * // to show eventual initialization errors on the
2436
- * // GtkGLArea widget itself
2437
- * GError *internal_error = NULL;
2438
- * init_buffer_objects (&error);
2439
- * if (error != NULL)
2440
- * {
2441
- * gtk_gl_area_set_error (area, error);
2442
- * g_error_free (error);
2443
- * return;
2444
- * }
2445
- *
2446
- * init_shaders (&error);
2447
- * if (error != NULL)
2448
- * {
2449
- * gtk_gl_area_set_error (area, error);
2450
- * g_error_free (error);
2451
- * return;
2452
- * }
2376
+ * // We need to make the context current if we want to
2377
+ * // call GL API
2378
+ * gtk_gl_area_make_current (area);
2379
+ *
2380
+ * // If there were errors during the initialization or
2381
+ * // when trying to make the context current, this
2382
+ * // function will return a GError for you to catch
2383
+ * if (gtk_gl_area_get_error (area) != NULL)
2384
+ * return;
2385
+ *
2386
+ * // You can also use gtk_gl_area_set_error() in order
2387
+ * // to show eventual initialization errors on the
2388
+ * // GtkGLArea widget itself
2389
+ * GError *internal_error = NULL;
2390
+ * init_buffer_objects (&error);
2391
+ * if (error != NULL)
2392
+ * {
2393
+ * gtk_gl_area_set_error (area, error);
2394
+ * g_error_free (error);
2395
+ * return;
2396
+ * }
2397
+ *
2398
+ * init_shaders (&error);
2399
+ * if (error != NULL)
2400
+ * {
2401
+ * gtk_gl_area_set_error (area, error);
2402
+ * g_error_free (error);
2403
+ * return;
2404
+ * }
2453
2405
  * }
2454
2406
  * ```
2455
2407
  *
2456
2408
  * If you need to change the options for creating the `GdkGLContext`
2457
2409
  * you should use the {@link GLArea.:create-context} signal.
2458
2410
  */
2459
- export const GLArea = "GLArea";
2411
+ export const GtkGLArea = "GtkGLArea";
2460
2412
  /**
2461
2413
  * Bypasses gsk rendering by passing the content of its child directly to the compositor.
2462
2414
  *
@@ -2494,7 +2446,7 @@ export const GLArea = "GLArea";
2494
2446
  *
2495
2447
  * The GTK inspector provides a visual debugging tool for graphics offload.
2496
2448
  */
2497
- export const GraphicsOffload = "GraphicsOffload";
2449
+ export const GtkGraphicsOffload = "GtkGraphicsOffload";
2498
2450
  /**
2499
2451
  * Arranges its child widgets in rows and columns.
2500
2452
  *
@@ -2523,44 +2475,44 @@ export const GraphicsOffload = "GraphicsOffload";
2523
2475
  *
2524
2476
  * ```xml
2525
2477
  * <object class="GtkGrid" id="my_grid">
2526
- * <child>
2527
- * <object class="GtkButton" id="button1">
2528
- * <property name="label">Button 1</property>
2529
- * <layout>
2530
- * <property name="column">0</property>
2531
- * <property name="row">0</property>
2532
- * </layout>
2533
- * </object>
2534
- * </child>
2535
- * <child>
2536
- * <object class="GtkButton" id="button2">
2537
- * <property name="label">Button 2</property>
2538
- * <layout>
2539
- * <property name="column">1</property>
2540
- * <property name="row">0</property>
2541
- * </layout>
2542
- * </object>
2543
- * </child>
2544
- * <child>
2545
- * <object class="GtkButton" id="button3">
2546
- * <property name="label">Button 3</property>
2547
- * <layout>
2548
- * <property name="column">2</property>
2549
- * <property name="row">0</property>
2550
- * <property name="row-span">2</property>
2551
- * </layout>
2552
- * </object>
2553
- * </child>
2554
- * <child>
2555
- * <object class="GtkButton" id="button4">
2556
- * <property name="label">Button 4</property>
2557
- * <layout>
2558
- * <property name="column">0</property>
2559
- * <property name="row">1</property>
2560
- * <property name="column-span">2</property>
2561
- * </layout>
2562
- * </object>
2563
- * </child>
2478
+ * <child>
2479
+ * <object class="GtkButton" id="button1">
2480
+ * <property name="label">Button 1</property>
2481
+ * <layout>
2482
+ * <property name="column">0</property>
2483
+ * <property name="row">0</property>
2484
+ * </layout>
2485
+ * </object>
2486
+ * </child>
2487
+ * <child>
2488
+ * <object class="GtkButton" id="button2">
2489
+ * <property name="label">Button 2</property>
2490
+ * <layout>
2491
+ * <property name="column">1</property>
2492
+ * <property name="row">0</property>
2493
+ * </layout>
2494
+ * </object>
2495
+ * </child>
2496
+ * <child>
2497
+ * <object class="GtkButton" id="button3">
2498
+ * <property name="label">Button 3</property>
2499
+ * <layout>
2500
+ * <property name="column">2</property>
2501
+ * <property name="row">0</property>
2502
+ * <property name="row-span">2</property>
2503
+ * </layout>
2504
+ * </object>
2505
+ * </child>
2506
+ * <child>
2507
+ * <object class="GtkButton" id="button4">
2508
+ * <property name="label">Button 4</property>
2509
+ * <layout>
2510
+ * <property name="column">0</property>
2511
+ * <property name="row">1</property>
2512
+ * <property name="column-span">2</property>
2513
+ * </layout>
2514
+ * </object>
2515
+ * </child>
2564
2516
  * </object>
2565
2517
  * ```
2566
2518
  *
@@ -2580,16 +2532,7 @@ export const GraphicsOffload = "GraphicsOffload";
2580
2532
  *
2581
2533
  * Starting from GTK 4.12, `GtkGrid` uses the {@link AccessibleRole.generic} role.
2582
2534
  */
2583
- export const Grid = {
2584
- Root: "Grid.Root",
2585
- Child: "Grid.Child",
2586
- };
2587
- function GridViewRoot(props) {
2588
- return createElement("GridView.Root", props);
2589
- }
2590
- function GridViewItem(props) {
2591
- return createElement("GridView.Item", props);
2592
- }
2535
+ export const GtkGrid = "GtkGrid";
2593
2536
  /**
2594
2537
  * Presents a large dynamic grid of items.
2595
2538
  *
@@ -2634,10 +2577,7 @@ function GridViewItem(props) {
2634
2577
  * `GtkGridView` uses the {@link AccessibleRole.grid} role, and the items
2635
2578
  * use the {@link AccessibleRole.grid_cell} role.
2636
2579
  */
2637
- export const GridView = {
2638
- Root: GridViewRoot,
2639
- Item: GridViewItem,
2640
- };
2580
+ export const GtkGridView = "GtkGridView";
2641
2581
  /**
2642
2582
  * Creates a custom titlebar for a window.
2643
2583
  *
@@ -2670,17 +2610,17 @@ export const GridView = {
2670
2610
  *
2671
2611
  * ```xml
2672
2612
  * <object class="GtkHeaderBar">
2673
- * <property name="title-widget">
2674
- * <object class="GtkLabel">
2675
- * <property name="label" translatable="yes">Label</property>
2676
- * <property name="single-line-mode">True</property>
2677
- * <property name="ellipsize">end</property>
2678
- * <property name="width-chars">5</property>
2679
- * <style>
2680
- * <class name="title"/>
2681
- * </style>
2682
- * </object>
2683
- * </property>
2613
+ * <property name="title-widget">
2614
+ * <object class="GtkLabel">
2615
+ * <property name="label" translatable="yes">Label</property>
2616
+ * <property name="single-line-mode">True</property>
2617
+ * <property name="ellipsize">end</property>
2618
+ * <property name="width-chars">5</property>
2619
+ * <style>
2620
+ * <class name="title"/>
2621
+ * </style>
2622
+ * </object>
2623
+ * </property>
2684
2624
  * </object>
2685
2625
  * ```
2686
2626
  *
@@ -2689,14 +2629,14 @@ export const GridView = {
2689
2629
  * ```
2690
2630
  * headerbar
2691
2631
  * ╰── windowhandle
2692
- * ╰── box
2693
- * ├── box.start
2694
- * │ ├── windowcontrols.start
2695
- * │ ╰── [other children]
2696
- * ├── [Title Widget]
2697
- * ╰── box.end
2698
- * ├── [other children]
2699
- * ╰── windowcontrols.end
2632
+ * ╰── box
2633
+ * ├── box.start
2634
+ * │ ├── windowcontrols.start
2635
+ * │ ╰── [other children]
2636
+ * ├── [Title Widget]
2637
+ * ╰── box.end
2638
+ * ├── [other children]
2639
+ * ╰── windowcontrols.end
2700
2640
  * ```
2701
2641
  *
2702
2642
  * A `GtkHeaderBar`'s CSS node is called `headerbar`. It contains a `windowhandle`
@@ -2711,10 +2651,7 @@ export const GridView = {
2711
2651
  *
2712
2652
  * `GtkHeaderBar` uses the {@link AccessibleRole.group} role.
2713
2653
  */
2714
- export const HeaderBar = {
2715
- Root: "HeaderBar.Root",
2716
- TitleWidget: "HeaderBar.TitleWidget",
2717
- };
2654
+ export const GtkHeaderBar = "GtkHeaderBar";
2718
2655
  /**
2719
2656
  * `GtkIconView` is a widget which displays data in a grid of icons.
2720
2657
  *
@@ -2742,7 +2679,7 @@ export const HeaderBar = {
2742
2679
  * `GtkIconView` has a single CSS node with name iconview and style class .view.
2743
2680
  * For rubberband selection, a subnode with name rubberband is used.
2744
2681
  */
2745
- export const IconView = "IconView";
2682
+ export const GtkIconView = "GtkIconView";
2746
2683
  /**
2747
2684
  * Displays an image.
2748
2685
  *
@@ -2784,7 +2721,7 @@ export const IconView = "IconView";
2784
2721
  *
2785
2722
  * `GtkImage` uses the {@link AccessibleRole.img} role.
2786
2723
  */
2787
- export const Image = "Image";
2724
+ export const GtkImage = "GtkImage";
2788
2725
  /**
2789
2726
  * `GtkInfoBar` can be used to show messages to the user without a dialog.
2790
2727
  *
@@ -2822,15 +2759,15 @@ export const Image = "Image";
2822
2759
  * message_label = gtk_label_new ("");
2823
2760
  * gtk_info_bar_add_child (bar, message_label);
2824
2761
  * gtk_info_bar_add_button (bar,
2825
- * _("_OK"),
2826
- * GTK_RESPONSE_OK);
2762
+ * _("_OK"),
2763
+ * GTK_RESPONSE_OK);
2827
2764
  * g_signal_connect (bar,
2828
- * "response",
2829
- * G_CALLBACK (gtk_widget_hide),
2830
- * NULL);
2765
+ * "response",
2766
+ * G_CALLBACK (gtk_widget_hide),
2767
+ * NULL);
2831
2768
  * gtk_grid_attach (GTK_GRID (grid),
2832
- * widget,
2833
- * 0, 2, 1, 1);
2769
+ * widget,
2770
+ * 0, 2, 1, 1);
2834
2771
  *
2835
2772
  * // ...
2836
2773
  *
@@ -2860,7 +2797,7 @@ export const Image = "Image";
2860
2797
  * If the info bar shows a close button, that button will have the .close
2861
2798
  * style class applied.
2862
2799
  */
2863
- export const InfoBar = "InfoBar";
2800
+ export const GtkInfoBar = "GtkInfoBar";
2864
2801
  /**
2865
2802
  * Shows text in a predefined area.
2866
2803
  *
@@ -2879,7 +2816,7 @@ export const InfoBar = "InfoBar";
2879
2816
  *
2880
2817
  * `GtkInscription` has a single CSS node with the name label.
2881
2818
  */
2882
- export const Inscription = "Inscription";
2819
+ export const GtkInscription = "GtkInscription";
2883
2820
  /**
2884
2821
  * Displays a small amount of text.
2885
2822
  *
@@ -2954,10 +2891,10 @@ export const Inscription = "Inscription";
2954
2891
  *
2955
2892
  * ```xml
2956
2893
  * <object class="GtkLabel">
2957
- * <attributes>
2958
- * <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
2959
- * <attribute name="background" value="red" start="5" end="10"/>
2960
- * </attributes>
2894
+ * <attributes>
2895
+ * <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
2896
+ * <attribute name="background" value="red" start="5" end="10"/>
2897
+ * </attributes>
2961
2898
  * </object>
2962
2899
  * ```
2963
2900
  *
@@ -3095,7 +3032,7 @@ export const Inscription = "Inscription";
3095
3032
  * with the {@link Label.:activate-link} signal and the
3096
3033
  * {@link Label.get_current_uri} function.
3097
3034
  */
3098
- export const Label = "Label";
3035
+ export const GtkLabel = "GtkLabel";
3099
3036
  /**
3100
3037
  * Shows a level indicator.
3101
3038
  *
@@ -3121,31 +3058,31 @@ export const Label = "Label";
3121
3058
  * static GtkWidget *
3122
3059
  * create_level_bar (void)
3123
3060
  * {
3124
- * GtkWidget *widget;
3125
- * GtkLevelBar *bar;
3061
+ * GtkWidget *widget;
3062
+ * GtkLevelBar *bar;
3126
3063
  *
3127
- * widget = gtk_level_bar_new ();
3128
- * bar = GTK_LEVEL_BAR (widget);
3064
+ * widget = gtk_level_bar_new ();
3065
+ * bar = GTK_LEVEL_BAR (widget);
3129
3066
  *
3130
- * // This changes the value of the default low offset
3067
+ * // This changes the value of the default low offset
3131
3068
  *
3132
- * gtk_level_bar_add_offset_value (bar,
3133
- * GTK_LEVEL_BAR_OFFSET_LOW,
3134
- * 0.10);
3069
+ * gtk_level_bar_add_offset_value (bar,
3070
+ * GTK_LEVEL_BAR_OFFSET_LOW,
3071
+ * 0.10);
3135
3072
  *
3136
- * // This adds a new offset to the bar; the application will
3137
- * // be able to change its color CSS like this:
3138
- * //
3139
- * // levelbar block.my-offset {
3140
- * // background-color: magenta;
3141
- * // border-style: solid;
3142
- * // border-color: black;
3143
- * // border-width: 1px;
3144
- * // }
3073
+ * // This adds a new offset to the bar; the application will
3074
+ * // be able to change its color CSS like this:
3075
+ * //
3076
+ * // levelbar block.my-offset {
3077
+ * // background-color: magenta;
3078
+ * // border-style: solid;
3079
+ * // border-color: black;
3080
+ * // border-width: 1px;
3081
+ * // }
3145
3082
  *
3146
- * gtk_level_bar_add_offset_value (bar, "my-offset", 0.60);
3083
+ * gtk_level_bar_add_offset_value (bar, "my-offset", 0.60);
3147
3084
  *
3148
- * return widget;
3085
+ * return widget;
3149
3086
  * }
3150
3087
  * ```
3151
3088
  *
@@ -3174,10 +3111,10 @@ export const Label = "Label";
3174
3111
  * ```
3175
3112
  * levelbar[.discrete]
3176
3113
  * ╰── trough
3177
- * ├── block.filled.level-name
3178
- *
3179
- * ├── block.empty
3180
- *
3114
+ * ├── block.filled.level-name
3115
+ *
3116
+ * ├── block.empty
3117
+ *
3181
3118
  * ```
3182
3119
  *
3183
3120
  * `GtkLevelBar` has a main CSS node with name levelbar and one of the style
@@ -3195,7 +3132,7 @@ export const Label = "Label";
3195
3132
  *
3196
3133
  * `GtkLevelBar` uses the {@link AccessibleRole.meter} role.
3197
3134
  */
3198
- export const LevelBar = "LevelBar";
3135
+ export const GtkLevelBar = "GtkLevelBar";
3199
3136
  /**
3200
3137
  * A button with a hyperlink.
3201
3138
  *
@@ -3237,7 +3174,7 @@ export const LevelBar = "LevelBar";
3237
3174
  *
3238
3175
  * `GtkLinkButton` uses the {@link AccessibleRole.link} role.
3239
3176
  */
3240
- export const LinkButton = "LinkButton";
3177
+ export const GtkLinkButton = "GtkLinkButton";
3241
3178
  /**
3242
3179
  * The abstract base class for GTK's list widgets.
3243
3180
  *
@@ -3284,7 +3221,7 @@ export const LinkButton = "LinkButton";
3284
3221
  * - `listitem.scroll-to` moves the visible area of the list to this item with
3285
3222
  * the minimum amount of scrolling required.
3286
3223
  */
3287
- export const ListBase = "ListBase";
3224
+ export const GtkListBase = "GtkListBase";
3288
3225
  /**
3289
3226
  * Shows a vertical list.
3290
3227
  *
@@ -3351,20 +3288,14 @@ export const ListBase = "ListBase";
3351
3288
  * `GtkListBox` uses the {@link AccessibleRole.list} role and `GtkListBoxRow` uses
3352
3289
  * the {@link AccessibleRole.list_item} role.
3353
3290
  */
3354
- export const ListBox = "ListBox";
3291
+ export const GtkListBox = "GtkListBox";
3355
3292
  /**
3356
3293
  * The kind of widget that can be added to a `GtkListBox`.
3357
3294
  *
3358
3295
  * {@link ListBox} will automatically wrap its children in a `GtkListboxRow`
3359
3296
  * when necessary.
3360
3297
  */
3361
- export const ListBoxRow = "ListBoxRow";
3362
- function ListViewRoot(props) {
3363
- return createElement("ListView.Root", props);
3364
- }
3365
- function ListViewItem(props) {
3366
- return createElement("ListView.Item", props);
3367
- }
3298
+ export const GtkListBoxRow = "GtkListBoxRow";
3368
3299
  /**
3369
3300
  * Presents a large dynamic list of items.
3370
3301
  *
@@ -3388,52 +3319,52 @@ function ListViewItem(props) {
3388
3319
  * ```c
3389
3320
  * static void
3390
3321
  * setup_listitem_cb (GtkListItemFactory *factory,
3391
- * GtkListItem *list_item)
3322
+ * GtkListItem *list_item)
3392
3323
  * {
3393
- * GtkWidget *image;
3324
+ * GtkWidget *image;
3394
3325
  *
3395
- * image = gtk_image_new ();
3396
- * gtk_image_set_icon_size (GTK_IMAGE (image), GTK_ICON_SIZE_LARGE);
3397
- * gtk_list_item_set_child (list_item, image);
3326
+ * image = gtk_image_new ();
3327
+ * gtk_image_set_icon_size (GTK_IMAGE (image), GTK_ICON_SIZE_LARGE);
3328
+ * gtk_list_item_set_child (list_item, image);
3398
3329
  * }
3399
3330
  *
3400
3331
  * static void
3401
3332
  * bind_listitem_cb (GtkListItemFactory *factory,
3402
- * GtkListItem *list_item)
3333
+ * GtkListItem *list_item)
3403
3334
  * {
3404
- * GtkWidget *image;
3405
- * GAppInfo *app_info;
3335
+ * GtkWidget *image;
3336
+ * GAppInfo *app_info;
3406
3337
  *
3407
- * image = gtk_list_item_get_child (list_item);
3408
- * app_info = gtk_list_item_get_item (list_item);
3409
- * gtk_image_set_from_gicon (GTK_IMAGE (image), g_app_info_get_icon (app_info));
3338
+ * image = gtk_list_item_get_child (list_item);
3339
+ * app_info = gtk_list_item_get_item (list_item);
3340
+ * gtk_image_set_from_gicon (GTK_IMAGE (image), g_app_info_get_icon (app_info));
3410
3341
  * }
3411
3342
  *
3412
3343
  * static void
3413
3344
  * activate_cb (GtkListView *list,
3414
- * guint position,
3415
- * gpointer unused)
3345
+ * guint position,
3346
+ * gpointer unused)
3416
3347
  * {
3417
- * GAppInfo *app_info;
3348
+ * GAppInfo *app_info;
3418
3349
  *
3419
- * app_info = g_list_model_get_item (G_LIST_MODEL (gtk_list_view_get_model (list)), position);
3420
- * g_app_info_launch (app_info, NULL, NULL, NULL);
3421
- * g_object_unref (app_info);
3350
+ * app_info = g_list_model_get_item (G_LIST_MODEL (gtk_list_view_get_model (list)), position);
3351
+ * g_app_info_launch (app_info, NULL, NULL, NULL);
3352
+ * g_object_unref (app_info);
3422
3353
  * }
3423
3354
  *
3424
3355
  * ...
3425
3356
  *
3426
- * model = create_application_list ();
3357
+ * model = create_application_list ();
3427
3358
  *
3428
- * factory = gtk_signal_list_item_factory_new ();
3429
- * g_signal_connect (factory, "setup", G_CALLBACK (setup_listitem_cb), NULL);
3430
- * g_signal_connect (factory, "bind", G_CALLBACK (bind_listitem_cb), NULL);
3359
+ * factory = gtk_signal_list_item_factory_new ();
3360
+ * g_signal_connect (factory, "setup", G_CALLBACK (setup_listitem_cb), NULL);
3361
+ * g_signal_connect (factory, "bind", G_CALLBACK (bind_listitem_cb), NULL);
3431
3362
  *
3432
- * list = gtk_list_view_new (GTK_SELECTION_MODEL (gtk_single_selection_new (model)), factory);
3363
+ * list = gtk_list_view_new (GTK_SELECTION_MODEL (gtk_single_selection_new (model)), factory);
3433
3364
  *
3434
- * g_signal_connect (list, "activate", G_CALLBACK (activate_cb), NULL);
3365
+ * g_signal_connect (list, "activate", G_CALLBACK (activate_cb), NULL);
3435
3366
  *
3436
- * gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), list);
3367
+ * gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), list);
3437
3368
  * ```
3438
3369
  *
3439
3370
  * # Actions
@@ -3471,10 +3402,7 @@ function ListViewItem(props) {
3471
3402
  * `GtkListView` uses the {@link AccessibleRole.list} role, and the list
3472
3403
  * items use the {@link AccessibleRole.list_item} role.
3473
3404
  */
3474
- export const ListView = {
3475
- Root: ListViewRoot,
3476
- Item: ListViewItem,
3477
- };
3405
+ export const GtkListView = "GtkListView";
3478
3406
  /**
3479
3407
  * `GtkLockButton` is a widget to obtain and revoke authorizations
3480
3408
  * needed to operate the controls.
@@ -3514,7 +3442,7 @@ export const ListView = {
3514
3442
  * {@link LockButton.tooltip-unlock} and
3515
3443
  * {@link LockButton.tooltip-not-authorized} properties.
3516
3444
  */
3517
- export const LockButton = "LockButton";
3445
+ export const GtkLockButton = "GtkLockButton";
3518
3446
  /**
3519
3447
  * Shows controls for video playback.
3520
3448
  *
@@ -3522,7 +3450,7 @@ export const LockButton = "LockButton";
3522
3450
  *
3523
3451
  * Usually, `GtkMediaControls` is used as part of {@link Video}.
3524
3452
  */
3525
- export const MediaControls = "MediaControls";
3453
+ export const GtkMediaControls = "GtkMediaControls";
3526
3454
  /**
3527
3455
  * Displays a popup when clicked.
3528
3456
  *
@@ -3562,8 +3490,8 @@ export const MediaControls = "MediaControls";
3562
3490
  * ```
3563
3491
  * menubutton
3564
3492
  * ╰── button.toggle
3565
- * ╰── <content>
3566
- * ╰── [arrow]
3493
+ * ╰── <content>
3494
+ * ╰── [arrow]
3567
3495
  * ```
3568
3496
  *
3569
3497
  * `GtkMenuButton` has a single CSS node with name `menubutton`
@@ -3587,11 +3515,7 @@ export const MediaControls = "MediaControls";
3587
3515
  *
3588
3516
  * `GtkMenuButton` uses the {@link AccessibleRole.button} role.
3589
3517
  */
3590
- export const MenuButton = {
3591
- Root: "MenuButton.Root",
3592
- Child: "MenuButton.Child",
3593
- Popover: "MenuButton.Popover",
3594
- };
3518
+ export const GtkMenuButton = "GtkMenuButton";
3595
3519
  /**
3596
3520
  * `GtkMessageDialog` presents a dialog with some message text.
3597
3521
  *
@@ -3611,18 +3535,18 @@ export const MenuButton = {
3611
3535
  * ```c
3612
3536
  * GtkDialogFlags flags = GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL;
3613
3537
  * dialog = gtk_message_dialog_new (parent_window,
3614
- * flags,
3615
- * GTK_MESSAGE_ERROR,
3616
- * GTK_BUTTONS_CLOSE,
3617
- * "Error reading “%s”: %s",
3618
- * filename,
3619
- * g_strerror (errno));
3538
+ * flags,
3539
+ * GTK_MESSAGE_ERROR,
3540
+ * GTK_BUTTONS_CLOSE,
3541
+ * "Error reading “%s”: %s",
3542
+ * filename,
3543
+ * g_strerror (errno));
3620
3544
  * // Destroy the dialog when the user responds to it
3621
3545
  * // (e.g. clicks a button)
3622
3546
  *
3623
3547
  * g_signal_connect (dialog, "response",
3624
- * G_CALLBACK (gtk_window_destroy),
3625
- * NULL);
3548
+ * G_CALLBACK (gtk_window_destroy),
3549
+ * NULL);
3626
3550
  * ```
3627
3551
  *
3628
3552
  * You might do a non-modal `GtkMessageDialog` simply by omitting the
@@ -3631,18 +3555,18 @@ export const MenuButton = {
3631
3555
  * ```c
3632
3556
  * GtkDialogFlags flags = GTK_DIALOG_DESTROY_WITH_PARENT;
3633
3557
  * dialog = gtk_message_dialog_new (parent_window,
3634
- * flags,
3635
- * GTK_MESSAGE_ERROR,
3636
- * GTK_BUTTONS_CLOSE,
3637
- * "Error reading “%s”: %s",
3638
- * filename,
3639
- * g_strerror (errno));
3558
+ * flags,
3559
+ * GTK_MESSAGE_ERROR,
3560
+ * GTK_BUTTONS_CLOSE,
3561
+ * "Error reading “%s”: %s",
3562
+ * filename,
3563
+ * g_strerror (errno));
3640
3564
  *
3641
3565
  * // Destroy the dialog when the user responds to it
3642
3566
  * // (e.g. clicks a button)
3643
3567
  * g_signal_connect (dialog, "response",
3644
- * G_CALLBACK (gtk_window_destroy),
3645
- * NULL);
3568
+ * G_CALLBACK (gtk_window_destroy),
3569
+ * NULL);
3646
3570
  * ```
3647
3571
  *
3648
3572
  * # GtkMessageDialog as GtkBuildable
@@ -3650,7 +3574,7 @@ export const MenuButton = {
3650
3574
  * The `GtkMessageDialog` implementation of the `GtkBuildable` interface exposes
3651
3575
  * the message area as an internal child with the name “message_area”.
3652
3576
  */
3653
- export const MessageDialog = "MessageDialog";
3577
+ export const GtkMessageDialog = "GtkMessageDialog";
3654
3578
  /**
3655
3579
  * Switches between children using tabs.
3656
3580
  *
@@ -3681,16 +3605,16 @@ export const MessageDialog = "MessageDialog";
3681
3605
  *
3682
3606
  * ```xml
3683
3607
  * <object class="GtkNotebook">
3684
- * <child>
3685
- * <object class="GtkLabel" id="notebook-content">
3686
- * <property name="label">Content</property>
3687
- * </object>
3688
- * </child>
3689
- * <child type="tab">
3690
- * <object class="GtkLabel" id="notebook-tab">
3691
- * <property name="label">Tab</property>
3692
- * </object>
3693
- * </child>
3608
+ * <child>
3609
+ * <object class="GtkLabel" id="notebook-content">
3610
+ * <property name="label">Content</property>
3611
+ * </object>
3612
+ * </child>
3613
+ * <child type="tab">
3614
+ * <object class="GtkLabel" id="notebook-tab">
3615
+ * <property name="label">Tab</property>
3616
+ * </object>
3617
+ * </child>
3694
3618
  * </object>
3695
3619
  * ```
3696
3620
  *
@@ -3736,9 +3660,9 @@ export const MessageDialog = "MessageDialog";
3736
3660
  * │ ╰── [<action widget>]
3737
3661
  * │
3738
3662
  * ╰── stack
3739
- * ├── <child>
3740
- *
3741
- * ╰── <child>
3663
+ * ├── <child>
3664
+ *
3665
+ * ╰── <child>
3742
3666
  * ```
3743
3667
  *
3744
3668
  * `GtkNotebook` has a main CSS node with name `notebook`, a subnode
@@ -3769,10 +3693,7 @@ export const MessageDialog = "MessageDialog";
3769
3693
  * - {@link AccessibleRole.tab} role for each tab
3770
3694
  * - {@link AccessibleRole.tab_panel} for each page
3771
3695
  */
3772
- export const Notebook = {
3773
- Root: "Notebook.Root",
3774
- Page: "Notebook.Page",
3775
- };
3696
+ export const GtkNotebook = "GtkNotebook";
3776
3697
  /**
3777
3698
  * Places “overlay” widgets on top of a single main child.
3778
3699
  *
@@ -3806,7 +3727,7 @@ export const Notebook = {
3806
3727
  * whose alignments cause them to be positioned at an edge get the style classes
3807
3728
  * “.left”, “.right”, “.top”, and/or “.bottom” according to their position.
3808
3729
  */
3809
- export const Overlay = "Overlay";
3730
+ export const GtkOverlay = "GtkOverlay";
3810
3731
  /**
3811
3732
  * Presents a page setup dialog for platforms which don’t provide
3812
3733
  * a native page setup dialog, like Unix.
@@ -3822,7 +3743,7 @@ export const Overlay = "Overlay";
3822
3743
  * `GtkPageSetupUnixDialog` has a single CSS node with the name `window` and
3823
3744
  * style class `.pagesetup`.
3824
3745
  */
3825
- export const PageSetupUnixDialog = "PageSetupUnixDialog";
3746
+ export const GtkPageSetupUnixDialog = "GtkPageSetupUnixDialog";
3826
3747
  /**
3827
3748
  * Arranges its children in two panes, horizontally or vertically.
3828
3749
  *
@@ -3903,11 +3824,7 @@ export const PageSetupUnixDialog = "PageSetupUnixDialog";
3903
3824
  * gtk_widget_set_size_request (frame2, 50, -1);
3904
3825
  * ```
3905
3826
  */
3906
- export const Paned = {
3907
- Root: "Paned.Root",
3908
- EndChild: "Paned.EndChild",
3909
- StartChild: "Paned.StartChild",
3910
- };
3827
+ export const GtkPaned = "GtkPaned";
3911
3828
  /**
3912
3829
  * A single-line text entry widget for entering passwords and other secrets.
3913
3830
  *
@@ -3929,8 +3846,8 @@ export const Paned = {
3929
3846
  * ```
3930
3847
  * entry.password
3931
3848
  * ╰── text
3932
- * ├── image.caps-lock-indicator
3933
- *
3849
+ * ├── image.caps-lock-indicator
3850
+ *
3934
3851
  * ```
3935
3852
  *
3936
3853
  * `GtkPasswordEntry` has a single CSS node with name entry that carries
@@ -3942,7 +3859,7 @@ export const Paned = {
3942
3859
  *
3943
3860
  * `GtkPasswordEntry` uses the {@link AccessibleRole.text_box} role.
3944
3861
  */
3945
- export const PasswordEntry = "PasswordEntry";
3862
+ export const GtkPasswordEntry = "GtkPasswordEntry";
3946
3863
  /**
3947
3864
  * Displays a `GdkPaintable`.
3948
3865
  *
@@ -3991,7 +3908,7 @@ export const PasswordEntry = "PasswordEntry";
3991
3908
  *
3992
3909
  * `GtkPicture` uses the {@link AccessibleRole.img} role.
3993
3910
  */
3994
- export const Picture = "Picture";
3911
+ export const GtkPicture = "GtkPicture";
3995
3912
  /**
3996
3913
  * Presents a bubble-like popup.
3997
3914
  *
@@ -4025,22 +3942,22 @@ export const Picture = "Picture";
4025
3942
  *
4026
3943
  * ```xml
4027
3944
  * <section>
4028
- * <attribute name="display-hint">horizontal-buttons</attribute>
4029
- * <item>
4030
- * <attribute name="label">Cut</attribute>
4031
- * <attribute name="action">app.cut</attribute>
4032
- * <attribute name="verb-icon">edit-cut-symbolic</attribute>
4033
- * </item>
4034
- * <item>
4035
- * <attribute name="label">Copy</attribute>
4036
- * <attribute name="action">app.copy</attribute>
4037
- * <attribute name="verb-icon">edit-copy-symbolic</attribute>
4038
- * </item>
4039
- * <item>
4040
- * <attribute name="label">Paste</attribute>
4041
- * <attribute name="action">app.paste</attribute>
4042
- * <attribute name="verb-icon">edit-paste-symbolic</attribute>
4043
- * </item>
3945
+ * <attribute name="display-hint">horizontal-buttons</attribute>
3946
+ * <item>
3947
+ * <attribute name="label">Cut</attribute>
3948
+ * <attribute name="action">app.cut</attribute>
3949
+ * <attribute name="verb-icon">edit-cut-symbolic</attribute>
3950
+ * </item>
3951
+ * <item>
3952
+ * <attribute name="label">Copy</attribute>
3953
+ * <attribute name="action">app.copy</attribute>
3954
+ * <attribute name="verb-icon">edit-copy-symbolic</attribute>
3955
+ * </item>
3956
+ * <item>
3957
+ * <attribute name="label">Paste</attribute>
3958
+ * <attribute name="action">app.paste</attribute>
3959
+ * <attribute name="verb-icon">edit-paste-symbolic</attribute>
3960
+ * </item>
4044
3961
  * </section>
4045
3962
  * ```
4046
3963
  *
@@ -4061,7 +3978,7 @@ export const Picture = "Picture";
4061
3978
  * popover.background[.menu]
4062
3979
  * ├── arrow
4063
3980
  * ╰── contents
4064
- * ╰── <child>
3981
+ * ╰── <child>
4065
3982
  * ```
4066
3983
  *
4067
3984
  * `GtkPopover` has a main node with name `popover`, an arrow with name `arrow`,
@@ -4087,23 +4004,7 @@ export const Picture = "Picture";
4087
4004
  * solid, no border-radius, only one border width (border-bottom-width is
4088
4005
  * used) and no box-shadow.
4089
4006
  */
4090
- export const Popover = {
4091
- Root: "Popover.Root",
4092
- Child: "Popover.Child",
4093
- DefaultWidget: "Popover.DefaultWidget",
4094
- };
4095
- function PopoverMenuRoot(props) {
4096
- return createElement("PopoverMenu.Root", props);
4097
- }
4098
- function PopoverMenuItem(props) {
4099
- return createElement("Menu.Item", props);
4100
- }
4101
- function PopoverMenuSection(props) {
4102
- return createElement("Menu.Section", props);
4103
- }
4104
- function PopoverMenuSubmenu(props) {
4105
- return createElement("Menu.Submenu", props);
4106
- }
4007
+ export const GtkPopover = "GtkPopover";
4107
4008
  /**
4108
4009
  * A subclass of `GtkPopover` that implements menu behavior.
4109
4010
  *
@@ -4133,20 +4034,20 @@ function PopoverMenuSubmenu(props) {
4133
4034
  *
4134
4035
  * ```xml
4135
4036
  * <menu id='app-menu'>
4136
- * <section>
4137
- * <item>
4138
- * <attribute name='label' translatable='yes'>_New Window</attribute>
4139
- * <attribute name='action'>app.new</attribute>
4140
- * </item>
4141
- * <item>
4142
- * <attribute name='label' translatable='yes'>_About Sunny</attribute>
4143
- * <attribute name='action'>app.about</attribute>
4144
- * </item>
4145
- * <item>
4146
- * <attribute name='label' translatable='yes'>_Quit</attribute>
4147
- * <attribute name='action'>app.quit</attribute>
4148
- * </item>
4149
- * </section>
4037
+ * <section>
4038
+ * <item>
4039
+ * <attribute name='label' translatable='yes'>_New Window</attribute>
4040
+ * <attribute name='action'>app.new</attribute>
4041
+ * </item>
4042
+ * <item>
4043
+ * <attribute name='label' translatable='yes'>_About Sunny</attribute>
4044
+ * <attribute name='action'>app.about</attribute>
4045
+ * </item>
4046
+ * <item>
4047
+ * <attribute name='label' translatable='yes'>_Quit</attribute>
4048
+ * <attribute name='action'>app.quit</attribute>
4049
+ * </item>
4050
+ * </section>
4150
4051
  * </menu>
4151
4052
  * ```
4152
4053
  *
@@ -4222,12 +4123,7 @@ function PopoverMenuSubmenu(props) {
4222
4123
  * {@link AccessibleRole.checkbox} or {@link AccessibleRole.menu_item_radio}
4223
4124
  * roles, depending on the action they are connected to.
4224
4125
  */
4225
- export const PopoverMenu = {
4226
- Root: PopoverMenuRoot,
4227
- Item: PopoverMenuItem,
4228
- Section: PopoverMenuSection,
4229
- Submenu: PopoverMenuSubmenu,
4230
- };
4126
+ export const GtkPopoverMenu = "GtkPopoverMenu";
4231
4127
  /**
4232
4128
  * Presents a horizontal bar of items that pop up menus when clicked.
4233
4129
  *
@@ -4243,7 +4139,7 @@ export const PopoverMenu = {
4243
4139
  * ├── item[.active]
4244
4140
  * ┊ ╰── popover
4245
4141
  * ╰── item
4246
- * ╰── popover
4142
+ * ╰── popover
4247
4143
  * ```
4248
4144
  *
4249
4145
  * `GtkPopoverMenuBar` has a single CSS node with name menubar, below which
@@ -4258,7 +4154,7 @@ export const PopoverMenu = {
4258
4154
  * the menu items use the {@link AccessibleRole.menu_item} role and
4259
4155
  * the menus use the {@link AccessibleRole.menu} role.
4260
4156
  */
4261
- export const PopoverMenuBar = "PopoverMenuBar";
4157
+ export const GtkPopoverMenuBar = "GtkPopoverMenuBar";
4262
4158
  /**
4263
4159
  * A print dialog for platforms which don’t provide a native
4264
4160
  * print dialog, like Unix.
@@ -4289,26 +4185,26 @@ export const PopoverMenuBar = "PopoverMenuBar";
4289
4185
  *
4290
4186
  * ```xml
4291
4187
  * <object class="GtkPrintUnixDialog" id="dialog1">
4292
- * <child internal-child="notebook">
4293
- * <object class="GtkNotebook" id="notebook">
4294
- * <child>
4295
- * <object type="GtkNotebookPage">
4296
- * <property name="tab_expand">False</property>
4297
- * <property name="tab_fill">False</property>
4298
- * <property name="tab">
4299
- * <object class="GtkLabel" id="tablabel">
4300
- * <property name="label">Tab label</property>
4301
- * </object>
4302
- * </property>
4303
- * <property name="child">
4304
- * <object class="GtkLabel" id="tabcontent">
4305
- * <property name="label">Content on notebook tab</property>
4306
- * </object>
4307
- * </property>
4308
- * </object>
4309
- * </child>
4310
- * </object>
4311
- * </child>
4188
+ * <child internal-child="notebook">
4189
+ * <object class="GtkNotebook" id="notebook">
4190
+ * <child>
4191
+ * <object type="GtkNotebookPage">
4192
+ * <property name="tab_expand">False</property>
4193
+ * <property name="tab_fill">False</property>
4194
+ * <property name="tab">
4195
+ * <object class="GtkLabel" id="tablabel">
4196
+ * <property name="label">Tab label</property>
4197
+ * </object>
4198
+ * </property>
4199
+ * <property name="child">
4200
+ * <object class="GtkLabel" id="tabcontent">
4201
+ * <property name="label">Content on notebook tab</property>
4202
+ * </object>
4203
+ * </property>
4204
+ * </object>
4205
+ * </child>
4206
+ * </object>
4207
+ * </child>
4312
4208
  * </object>
4313
4209
  * ```
4314
4210
  *
@@ -4317,7 +4213,7 @@ export const PopoverMenuBar = "PopoverMenuBar";
4317
4213
  * `GtkPrintUnixDialog` has a single CSS node with name window. The style classes
4318
4214
  * dialog and print are added.
4319
4215
  */
4320
- export const PrintUnixDialog = "PrintUnixDialog";
4216
+ export const GtkPrintUnixDialog = "GtkPrintUnixDialog";
4321
4217
  /**
4322
4218
  * Displays the progress of a long-running operation.
4323
4219
  *
@@ -4350,7 +4246,7 @@ export const PrintUnixDialog = "PrintUnixDialog";
4350
4246
  * progressbar[.osd]
4351
4247
  * ├── [text]
4352
4248
  * ╰── trough[.empty][.full]
4353
- * ╰── progress[.pulse]
4249
+ * ╰── progress[.pulse]
4354
4250
  * ```
4355
4251
  *
4356
4252
  * `GtkProgressBar` has a main CSS node with name progressbar and subnodes with
@@ -4367,7 +4263,7 @@ export const PrintUnixDialog = "PrintUnixDialog";
4367
4263
  * and sets the {@link AccessibleProperty.value_min}, {@link AccessibleProperty.value_max} and {@link AccessibleProperty.value_now} properties to reflect
4368
4264
  * the progress.
4369
4265
  */
4370
- export const ProgressBar = "ProgressBar";
4266
+ export const GtkProgressBar = "GtkProgressBar";
4371
4267
  /**
4372
4268
  * Base class for widgets which visualize an adjustment.
4373
4269
  *
@@ -4384,7 +4280,7 @@ export const ProgressBar = "ProgressBar";
4384
4280
  * dragging, or initiating the drag with a long-press will enable the
4385
4281
  * fine-tuning mode.
4386
4282
  */
4387
- export const Range = "Range";
4283
+ export const GtkRange = "GtkRange";
4388
4284
  /**
4389
4285
  * Animates the transition of its child from invisible to visible.
4390
4286
  *
@@ -4408,7 +4304,7 @@ export const Range = "Range";
4408
4304
  * The child of `GtkRevealer`, if set, is always available in the accessibility
4409
4305
  * tree, regardless of the state of the revealer widget.
4410
4306
  */
4411
- export const Revealer = "Revealer";
4307
+ export const GtkRevealer = "GtkRevealer";
4412
4308
  /**
4413
4309
  * Allows to select a numeric value with a slider control.
4414
4310
  *
@@ -4461,9 +4357,9 @@ export const Revealer = "Revealer";
4461
4357
  * ┊ ┊
4462
4358
  * │ ╰── mark
4463
4359
  * ╰── trough
4464
- * ├── [fill]
4465
- * ├── [highlight]
4466
- * ╰── slider
4360
+ * ├── [fill]
4361
+ * ├── [highlight]
4362
+ * ╰── slider
4467
4363
  * ```
4468
4364
  *
4469
4365
  * `GtkScale` has a main CSS node with name scale and a subnode for its contents,
@@ -4500,7 +4396,7 @@ export const Revealer = "Revealer";
4500
4396
  *
4501
4397
  * `GtkScale` uses the {@link AccessibleRole.slider} role.
4502
4398
  */
4503
- export const Scale = "Scale";
4399
+ export const GtkScale = "GtkScale";
4504
4400
  /**
4505
4401
  * Provides a button which pops up a scale widget.
4506
4402
  *
@@ -4519,13 +4415,13 @@ export const Scale = "Scale";
4519
4415
  * ```
4520
4416
  * scalebutton.scale
4521
4417
  * ╰── button.toggle
4522
- * ╰── <icon>
4418
+ * ╰── <icon>
4523
4419
  * ```
4524
4420
  *
4525
4421
  * `GtkScaleButton` has a single CSS node with name scalebutton and `.scale`
4526
4422
  * style class, and contains a `button` node with a `.toggle` style class.
4527
4423
  */
4528
- export const ScaleButton = "ScaleButton";
4424
+ export const GtkScaleButton = "GtkScaleButton";
4529
4425
  /**
4530
4426
  * Shows a horizontal or vertical scrollbar.
4531
4427
  *
@@ -4550,8 +4446,8 @@ export const ScaleButton = "ScaleButton";
4550
4446
  * ```
4551
4447
  * scrollbar
4552
4448
  * ╰── range[.fine-tune]
4553
- * ╰── trough
4554
- * ╰── slider
4449
+ * ╰── trough
4450
+ * ╰── slider
4555
4451
  * ```
4556
4452
  *
4557
4453
  * `GtkScrollbar` has a main CSS node with name scrollbar and a subnode for its
@@ -4570,7 +4466,7 @@ export const ScaleButton = "ScaleButton";
4570
4466
  *
4571
4467
  * `GtkScrollbar` uses the {@link AccessibleRole.scrollbar} role.
4572
4468
  */
4573
- export const Scrollbar = "Scrollbar";
4469
+ export const GtkScrollbar = "GtkScrollbar";
4574
4470
  /**
4575
4471
  * Makes its child scrollable.
4576
4472
  *
@@ -4650,7 +4546,7 @@ export const Scrollbar = "Scrollbar";
4650
4546
  * Starting from GTK 4.12, `GtkScrolledWindow` uses the {@link AccessibleRole.generic}
4651
4547
  * role.
4652
4548
  */
4653
- export const ScrolledWindow = "ScrolledWindow";
4549
+ export const GtkScrolledWindow = "GtkScrolledWindow";
4654
4550
  /**
4655
4551
  * Reveals a search entry when search is started.
4656
4552
  *
@@ -4689,9 +4585,9 @@ export const ScrolledWindow = "ScrolledWindow";
4689
4585
  * ```
4690
4586
  * searchbar
4691
4587
  * ╰── revealer
4692
- * ╰── box
4693
- * ├── [child]
4694
- * ╰── [button.close]
4588
+ * ╰── box
4589
+ * ├── [child]
4590
+ * ╰── [button.close]
4695
4591
  * ```
4696
4592
  *
4697
4593
  * `GtkSearchBar` has a main CSS node with name searchbar. It has a child
@@ -4703,11 +4599,7 @@ export const ScrolledWindow = "ScrolledWindow";
4703
4599
  *
4704
4600
  * `GtkSearchBar` uses the {@link AccessibleRole.search} role.
4705
4601
  */
4706
- export const SearchBar = {
4707
- Root: "SearchBar.Root",
4708
- Child: "SearchBar.Child",
4709
- KeyCaptureWidget: "SearchBar.KeyCaptureWidget",
4710
- };
4602
+ export const GtkSearchBar = "GtkSearchBar";
4711
4603
  /**
4712
4604
  * A single-line text entry widget for use as a search entry.
4713
4605
  *
@@ -4762,7 +4654,7 @@ export const SearchBar = {
4762
4654
  *
4763
4655
  * `GtkSearchEntry` uses the {@link AccessibleRole.search_box} role.
4764
4656
  */
4765
- export const SearchEntry = "SearchEntry";
4657
+ export const GtkSearchEntry = "GtkSearchEntry";
4766
4658
  /**
4767
4659
  * Draws a horizontal or vertical line to separate other widgets.
4768
4660
  *
@@ -4781,13 +4673,13 @@ export const SearchEntry = "SearchEntry";
4781
4673
  *
4782
4674
  * `GtkSeparator` uses the {@link AccessibleRole.separator} role.
4783
4675
  */
4784
- export const Separator = "Separator";
4676
+ export const GtkSeparator = "GtkSeparator";
4785
4677
  /**
4786
4678
  * `GtkShortcutLabel` displays a single keyboard shortcut or gesture.
4787
4679
  *
4788
4680
  * The main use case for `GtkShortcutLabel` is inside a {@link ShortcutsWindow}.
4789
4681
  */
4790
- export const ShortcutLabel = "ShortcutLabel";
4682
+ export const GtkShortcutLabel = "GtkShortcutLabel";
4791
4683
  /**
4792
4684
  * A `GtkShortcutsGroup` represents a group of related keyboard shortcuts
4793
4685
  * or gestures.
@@ -4806,7 +4698,7 @@ export const ShortcutLabel = "ShortcutLabel";
4806
4698
  * If you need to add a shortcut programmatically, use
4807
4699
  * {@link ShortcutsGroup.add_shortcut}.
4808
4700
  */
4809
- export const ShortcutsGroup = "ShortcutsGroup";
4701
+ export const GtkShortcutsGroup = "GtkShortcutsGroup";
4810
4702
  /**
4811
4703
  * A `GtkShortcutsSection` collects all the keyboard shortcuts and gestures
4812
4704
  * for a major application mode.
@@ -4839,14 +4731,14 @@ export const ShortcutsGroup = "ShortcutsGroup";
4839
4731
  *
4840
4732
  * - {@link ShortcutsSection.:change-current-page}
4841
4733
  */
4842
- export const ShortcutsSection = "ShortcutsSection";
4734
+ export const GtkShortcutsSection = "GtkShortcutsSection";
4843
4735
  /**
4844
4736
  * A `GtkShortcutsShortcut` represents a single keyboard shortcut or gesture
4845
4737
  * with a short text.
4846
4738
  *
4847
4739
  * This widget is only meant to be used with `GtkShortcutsWindow`.
4848
4740
  */
4849
- export const ShortcutsShortcut = "ShortcutsShortcut";
4741
+ export const GtkShortcutsShortcut = "GtkShortcutsShortcut";
4850
4742
  /**
4851
4743
  * A `GtkShortcutsWindow` shows information about the keyboard shortcuts
4852
4744
  * and gestures of an application.
@@ -4907,7 +4799,7 @@ export const ShortcutsShortcut = "ShortcutsShortcut";
4907
4799
  * `GtkShortcutsWindow` has a single CSS node with the name `window` and style
4908
4800
  * class `.shortcuts`.
4909
4801
  */
4910
- export const ShortcutsWindow = "ShortcutsWindow";
4802
+ export const GtkShortcutsWindow = "GtkShortcutsWindow";
4911
4803
  /**
4912
4804
  * Allows to enter or change numeric values.
4913
4805
  *
@@ -4936,27 +4828,27 @@ export const ShortcutsWindow = "ShortcutsWindow";
4936
4828
  *
4937
4829
  * int
4938
4830
  * grab_int_value (GtkSpinButton *button,
4939
- * gpointer user_data)
4831
+ * gpointer user_data)
4940
4832
  * {
4941
- * return gtk_spin_button_get_value_as_int (button);
4833
+ * return gtk_spin_button_get_value_as_int (button);
4942
4834
  * }
4943
4835
  *
4944
4836
  * void
4945
4837
  * create_integer_spin_button (void)
4946
4838
  * {
4947
4839
  *
4948
- * GtkWidget *window, *button;
4949
- * GtkAdjustment *adjustment;
4840
+ * GtkWidget *window, *button;
4841
+ * GtkAdjustment *adjustment;
4950
4842
  *
4951
- * adjustment = gtk_adjustment_new (50.0, 0.0, 100.0, 1.0, 5.0, 0.0);
4843
+ * adjustment = gtk_adjustment_new (50.0, 0.0, 100.0, 1.0, 5.0, 0.0);
4952
4844
  *
4953
- * window = gtk_window_new ();
4845
+ * window = gtk_window_new ();
4954
4846
  *
4955
- * // creates the spinbutton, with no decimal places
4956
- * button = gtk_spin_button_new (adjustment, 1.0, 0);
4957
- * gtk_window_set_child (GTK_WINDOW (window), button);
4847
+ * // creates the spinbutton, with no decimal places
4848
+ * button = gtk_spin_button_new (adjustment, 1.0, 0);
4849
+ * gtk_window_set_child (GTK_WINDOW (window), button);
4958
4850
  *
4959
- * gtk_window_present (GTK_WINDOW (window));
4851
+ * gtk_window_present (GTK_WINDOW (window));
4960
4852
  * }
4961
4853
  * ```
4962
4854
  *
@@ -4968,26 +4860,26 @@ export const ShortcutsWindow = "ShortcutsWindow";
4968
4860
  *
4969
4861
  * float
4970
4862
  * grab_float_value (GtkSpinButton *button,
4971
- * gpointer user_data)
4863
+ * gpointer user_data)
4972
4864
  * {
4973
- * return gtk_spin_button_get_value (button);
4865
+ * return gtk_spin_button_get_value (button);
4974
4866
  * }
4975
4867
  *
4976
4868
  * void
4977
4869
  * create_floating_spin_button (void)
4978
4870
  * {
4979
- * GtkWidget *window, *button;
4980
- * GtkAdjustment *adjustment;
4871
+ * GtkWidget *window, *button;
4872
+ * GtkAdjustment *adjustment;
4981
4873
  *
4982
- * adjustment = gtk_adjustment_new (2.500, 0.0, 5.0, 0.001, 0.1, 0.0);
4874
+ * adjustment = gtk_adjustment_new (2.500, 0.0, 5.0, 0.001, 0.1, 0.0);
4983
4875
  *
4984
- * window = gtk_window_new ();
4876
+ * window = gtk_window_new ();
4985
4877
  *
4986
- * // creates the spinbutton, with three decimal places
4987
- * button = gtk_spin_button_new (adjustment, 0.001, 3);
4988
- * gtk_window_set_child (GTK_WINDOW (window), button);
4878
+ * // creates the spinbutton, with three decimal places
4879
+ * button = gtk_spin_button_new (adjustment, 0.001, 3);
4880
+ * gtk_window_set_child (GTK_WINDOW (window), button);
4989
4881
  *
4990
- * gtk_window_present (GTK_WINDOW (window));
4882
+ * gtk_window_present (GTK_WINDOW (window));
4991
4883
  * }
4992
4884
  * ```
4993
4885
  *
@@ -5027,7 +4919,7 @@ export const ShortcutsWindow = "ShortcutsWindow";
5027
4919
  *
5028
4920
  * `GtkSpinButton` uses the {@link AccessibleRole.spin_button} role.
5029
4921
  */
5030
- export const SpinButton = "SpinButton";
4922
+ export const GtkSpinButton = "GtkSpinButton";
5031
4923
  /**
5032
4924
  * Displays an icon-size spinning animation.
5033
4925
  *
@@ -5049,16 +4941,7 @@ export const SpinButton = "SpinButton";
5049
4941
  *
5050
4942
  * `GtkSpinner` uses the {@link AccessibleRole.progress_bar} role.
5051
4943
  */
5052
- export const Spinner = "Spinner";
5053
- function StackRoot(props) {
5054
- return createElement("Stack.Root", props);
5055
- }
5056
- function StackPage(props) {
5057
- return createElement("Stack.Page", props);
5058
- }
5059
- function StackVisibleChild(props) {
5060
- return createElement("Stack.VisibleChild", props);
5061
- }
4944
+ export const GtkSpinner = "GtkSpinner";
5062
4945
  /**
5063
4946
  * Shows one of its children at a time.
5064
4947
  *
@@ -5086,18 +4969,18 @@ function StackVisibleChild(props) {
5086
4969
  * objects explicitly, and set the child widget as a property on it:
5087
4970
  *
5088
4971
  * ```xml
5089
- * <object class="GtkStack" id="stack">
5090
- * <child>
5091
- * <object class="GtkStackPage">
5092
- * <property name="name">page1</property>
5093
- * <property name="title">In the beginning…</property>
5094
- * <property name="child">
5095
- * <object class="GtkLabel">
5096
- * <property name="label">It was dark</property>
5097
- * </object>
5098
- * </property>
5099
- * </object>
5100
- * </child>
4972
+ * <object class="GtkStack" id="stack">
4973
+ * <child>
4974
+ * <object class="GtkStackPage">
4975
+ * <property name="name">page1</property>
4976
+ * <property name="title">In the beginning…</property>
4977
+ * <property name="child">
4978
+ * <object class="GtkLabel">
4979
+ * <property name="label">It was dark</property>
4980
+ * </object>
4981
+ * </property>
4982
+ * </object>
4983
+ * </child>
5101
4984
  * ```
5102
4985
  *
5103
4986
  * # CSS nodes
@@ -5109,11 +4992,7 @@ function StackVisibleChild(props) {
5109
4992
  * `GtkStack` uses the {@link AccessibleRole.tab_panel} role for the stack
5110
4993
  * pages, which are the accessible parent objects of the child widgets.
5111
4994
  */
5112
- export const Stack = {
5113
- Root: StackRoot,
5114
- Page: StackPage,
5115
- VisibleChild: StackVisibleChild,
5116
- };
4995
+ export const GtkStack = "GtkStack";
5117
4996
  /**
5118
4997
  * Uses a sidebar to switch between `GtkStack` pages.
5119
4998
  *
@@ -5133,10 +5012,7 @@ export const Stack = {
5133
5012
  * .needs-attention style class to the widgets representing the stack
5134
5013
  * pages.
5135
5014
  */
5136
- export const StackSidebar = {
5137
- Root: "StackSidebar.Root",
5138
- Stack: "StackSidebar.Stack",
5139
- };
5015
+ export const GtkStackSidebar = "GtkStackSidebar";
5140
5016
  /**
5141
5017
  * Shows a row of buttons to switch between `GtkStack` pages.
5142
5018
  *
@@ -5171,10 +5047,7 @@ export const StackSidebar = {
5171
5047
  * the stack switcher to be made vertical with
5172
5048
  * `gtk_orientable_set_orientation()`.
5173
5049
  */
5174
- export const StackSwitcher = {
5175
- Root: "StackSwitcher.Root",
5176
- Stack: "StackSwitcher.Stack",
5177
- };
5050
+ export const GtkStackSwitcher = "GtkStackSwitcher";
5178
5051
  /**
5179
5052
  * A `GtkStatusbar` widget is usually placed along the bottom of an application's
5180
5053
  * main {@link Window}.
@@ -5213,7 +5086,7 @@ export const StackSwitcher = {
5213
5086
  *
5214
5087
  * `GtkStatusbar` has a single CSS node with name `statusbar`.
5215
5088
  */
5216
- export const Statusbar = "Statusbar";
5089
+ export const GtkStatusbar = "GtkStatusbar";
5217
5090
  /**
5218
5091
  * Shows a "light switch" that has two states: on or off.
5219
5092
  *
@@ -5253,7 +5126,7 @@ export const Statusbar = "Statusbar";
5253
5126
  *
5254
5127
  * `GtkSwitch` uses the {@link AccessibleRole.switch} role.
5255
5128
  */
5256
- export const Switch = "Switch";
5129
+ export const GtkSwitch = "GtkSwitch";
5257
5130
  /**
5258
5131
  * A single-line text entry.
5259
5132
  *
@@ -5366,7 +5239,7 @@ export const Switch = "Switch";
5366
5239
  * as a delegate for a `GtkEditable` implementation that will be represented
5367
5240
  * to accessibility.
5368
5241
  */
5369
- export const Text = "Text";
5242
+ export const GtkText = "GtkText";
5370
5243
  /**
5371
5244
  * Displays the contents of a {@link TextBuffer}.
5372
5245
  *
@@ -5442,7 +5315,7 @@ export const Text = "Text";
5442
5315
  *
5443
5316
  * `GtkTextView` uses the {@link AccessibleRole.text_box} role.
5444
5317
  */
5445
- export const TextView = "TextView";
5318
+ export const GtkTextView = "GtkTextView";
5446
5319
  /**
5447
5320
  * Shows a button which remains “pressed-in” when clicked.
5448
5321
  *
@@ -5481,47 +5354,44 @@ export const TextView = "TextView";
5481
5354
  * ```c
5482
5355
  * static void
5483
5356
  * output_state (GtkToggleButton *source,
5484
- * gpointer user_data)
5357
+ * gpointer user_data)
5485
5358
  * {
5486
- * g_print ("Toggle button "%s" is active: %s",
5487
- * gtk_button_get_label (GTK_BUTTON (source)),
5488
- * gtk_toggle_button_get_active (source) ? "Yes" : "No");
5359
+ * g_print ("Toggle button "%s" is active: %s",
5360
+ * gtk_button_get_label (GTK_BUTTON (source)),
5361
+ * gtk_toggle_button_get_active (source) ? "Yes" : "No");
5489
5362
  * }
5490
5363
  *
5491
5364
  * static void
5492
5365
  * make_toggles (void)
5493
5366
  * {
5494
- * GtkWidget *window, *toggle1, *toggle2;
5495
- * GtkWidget *box;
5496
- * const char *text;
5497
- *
5498
- * window = gtk_window_new ();
5499
- * box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
5500
- *
5501
- * text = "Hi, I’m toggle button one";
5502
- * toggle1 = gtk_toggle_button_new_with_label (text);
5503
- *
5504
- * g_signal_connect (toggle1, "toggled",
5505
- * G_CALLBACK (output_state),
5506
- * NULL);
5507
- * gtk_box_append (GTK_BOX (box), toggle1);
5508
- *
5509
- * text = "Hi, I’m toggle button two";
5510
- * toggle2 = gtk_toggle_button_new_with_label (text);
5511
- * g_signal_connect (toggle2, "toggled",
5512
- * G_CALLBACK (output_state),
5513
- * NULL);
5514
- * gtk_box_append (GTK_BOX (box), toggle2);
5515
- *
5516
- * gtk_window_set_child (GTK_WINDOW (window), box);
5517
- * gtk_window_present (GTK_WINDOW (window));
5367
+ * GtkWidget *window, *toggle1, *toggle2;
5368
+ * GtkWidget *box;
5369
+ * const char *text;
5370
+ *
5371
+ * window = gtk_window_new ();
5372
+ * box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
5373
+ *
5374
+ * text = "Hi, I’m toggle button one";
5375
+ * toggle1 = gtk_toggle_button_new_with_label (text);
5376
+ *
5377
+ * g_signal_connect (toggle1, "toggled",
5378
+ * G_CALLBACK (output_state),
5379
+ * NULL);
5380
+ * gtk_box_append (GTK_BOX (box), toggle1);
5381
+ *
5382
+ * text = "Hi, I’m toggle button two";
5383
+ * toggle2 = gtk_toggle_button_new_with_label (text);
5384
+ * g_signal_connect (toggle2, "toggled",
5385
+ * G_CALLBACK (output_state),
5386
+ * NULL);
5387
+ * gtk_box_append (GTK_BOX (box), toggle2);
5388
+ *
5389
+ * gtk_window_set_child (GTK_WINDOW (window), box);
5390
+ * gtk_window_present (GTK_WINDOW (window));
5518
5391
  * }
5519
5392
  * ```
5520
5393
  */
5521
- export const ToggleButton = {
5522
- Root: "ToggleButton.Root",
5523
- Group: "ToggleButton.Group",
5524
- };
5394
+ export const GtkToggleButton = "GtkToggleButton";
5525
5395
  /**
5526
5396
  * Provides an expander for a tree-like list.
5527
5397
  *
@@ -5600,7 +5470,7 @@ export const ToggleButton = {
5600
5470
  * Since GTK 4.12, `GtkTreeExpander` uses the {@link AccessibleRole.button} role.
5601
5471
  * Toggling it will change the `GTK_ACCESSIBLE_STATE_EXPANDED` state.
5602
5472
  */
5603
- export const TreeExpander = "TreeExpander";
5473
+ export const GtkTreeExpander = "GtkTreeExpander";
5604
5474
  /**
5605
5475
  * A widget for displaying both trees and lists
5606
5476
  *
@@ -5643,23 +5513,23 @@ export const TreeExpander = "TreeExpander";
5643
5513
  *
5644
5514
  * ```xml
5645
5515
  * <object class="GtkTreeView" id="treeview">
5646
- * <property name="model">liststore1</property>
5647
- * <child>
5648
- * <object class="GtkTreeViewColumn" id="test-column">
5649
- * <property name="title">Test</property>
5650
- * <child>
5651
- * <object class="GtkCellRendererText" id="test-renderer"/>
5652
- * <attributes>
5653
- * <attribute name="text">1</attribute>
5654
- * </attributes>
5655
- * </child>
5656
- * </object>
5657
- * </child>
5658
- * <child internal-child="selection">
5659
- * <object class="GtkTreeSelection" id="selection">
5660
- * <signal name="changed" handler="on_treeview_selection_changed"/>
5661
- * </object>
5662
- * </child>
5516
+ * <property name="model">liststore1</property>
5517
+ * <child>
5518
+ * <object class="GtkTreeViewColumn" id="test-column">
5519
+ * <property name="title">Test</property>
5520
+ * <child>
5521
+ * <object class="GtkCellRendererText" id="test-renderer"/>
5522
+ * <attributes>
5523
+ * <attribute name="text">1</attribute>
5524
+ * </attributes>
5525
+ * </child>
5526
+ * </object>
5527
+ * </child>
5528
+ * <child internal-child="selection">
5529
+ * <object class="GtkTreeSelection" id="selection">
5530
+ * <signal name="changed" handler="on_treeview_selection_changed"/>
5531
+ * </object>
5532
+ * </child>
5663
5533
  * </object>
5664
5534
  * ```
5665
5535
  *
@@ -5691,7 +5561,7 @@ export const TreeExpander = "TreeExpander";
5691
5561
  *
5692
5562
  * For the drop target location during DND, a subnode with name `dndtarget` is used.
5693
5563
  */
5694
- export const TreeView = "TreeView";
5564
+ export const GtkTreeView = "GtkTreeView";
5695
5565
  /**
5696
5566
  * Shows a `GtkMediaStream` with media controls.
5697
5567
  *
@@ -5708,7 +5578,7 @@ export const TreeView = "TreeView";
5708
5578
  * you may want to use the {@link GdkPaintable} API and a media framework
5709
5579
  * such as Gstreamer directly.
5710
5580
  */
5711
- export const Video = "Video";
5581
+ export const GtkVideo = "GtkVideo";
5712
5582
  /**
5713
5583
  * Implements scrollability for widgets that don't support scrolling
5714
5584
  * on their own.
@@ -5729,14 +5599,14 @@ export const Video = "Video";
5729
5599
  *
5730
5600
  * Starting from GTK 4.12, `GtkViewport` uses the {@link AccessibleRole.generic} role.
5731
5601
  */
5732
- export const Viewport = "Viewport";
5602
+ export const GtkViewport = "GtkViewport";
5733
5603
  /**
5734
5604
  * `GtkVolumeButton` is a `GtkScaleButton` subclass tailored for
5735
5605
  * volume control.
5736
5606
  *
5737
5607
  * ![An example GtkVolumeButton](https://docs.gtk.org/gtk4/volumebutton.png)
5738
5608
  */
5739
- export const VolumeButton = "VolumeButton";
5609
+ export const GtkVolumeButton = "GtkVolumeButton";
5740
5610
  /**
5741
5611
  * Shows window frame controls.
5742
5612
  *
@@ -5751,19 +5621,19 @@ export const VolumeButton = "VolumeButton";
5751
5621
  *
5752
5622
  * ```xml
5753
5623
  * <object class="GtkBox">
5754
- * <child>
5755
- * <object class="GtkWindowControls">
5756
- * <property name="side">start</property>
5757
- * </object>
5758
- * </child>
5759
- *
5760
- * ...
5761
- *
5762
- * <child>
5763
- * <object class="GtkWindowControls">
5764
- * <property name="side">end</property>
5765
- * </object>
5766
- * </child>
5624
+ * <child>
5625
+ * <object class="GtkWindowControls">
5626
+ * <property name="side">start</property>
5627
+ * </object>
5628
+ * </child>
5629
+ *
5630
+ * ...
5631
+ *
5632
+ * <child>
5633
+ * <object class="GtkWindowControls">
5634
+ * <property name="side">end</property>
5635
+ * </object>
5636
+ * </child>
5767
5637
  * </object>
5768
5638
  * ```
5769
5639
  *
@@ -5789,7 +5659,7 @@ export const VolumeButton = "VolumeButton";
5789
5659
  *
5790
5660
  * `GtkWindowControls` uses the {@link AccessibleRole.group} role.
5791
5661
  */
5792
- export const WindowControls = "WindowControls";
5662
+ export const GtkWindowControls = "GtkWindowControls";
5793
5663
  /**
5794
5664
  * Implements titlebar functionality for a window.
5795
5665
  *
@@ -5808,7 +5678,7 @@ export const WindowControls = "WindowControls";
5808
5678
  * Starting from GTK 4.12, `GtkWindowHandle` uses the {@link AccessibleRole.generic}
5809
5679
  * role.
5810
5680
  */
5811
- export const WindowHandle = "WindowHandle";
5681
+ export const GtkWindowHandle = "GtkWindowHandle";
5812
5682
  /**
5813
5683
  * A freeform window.
5814
5684
  *
@@ -5820,16 +5690,16 @@ export const WindowHandle = "WindowHandle";
5820
5690
  *
5821
5691
  * ```xml
5822
5692
  * <object class="AdwWindow">
5823
- * <property name="content">
5824
- * <object class="AdwToolbarView">
5825
- * <child type="top">
5826
- * <object class="AdwHeaderBar"/>
5827
- * </child>
5828
- * <property name="content">
5829
- * <!-- ... -->
5830
- * </property>
5831
- * </object>
5832
- * </property>
5693
+ * <property name="content">
5694
+ * <object class="AdwToolbarView">
5695
+ * <child type="top">
5696
+ * <object class="AdwHeaderBar"/>
5697
+ * </child>
5698
+ * <property name="content">
5699
+ * <!-- ... -->
5700
+ * </property>
5701
+ * </object>
5702
+ * </property>
5833
5703
  * </object>
5834
5704
  * ```
5835
5705
  *
@@ -5851,28 +5721,28 @@ export const WindowHandle = "WindowHandle";
5851
5721
  *
5852
5722
  * ```xml
5853
5723
  * <object class="AdwWindow">
5854
- * <property name="content">
5855
- * <object class="AdwToolbarView">
5856
- * <child type="top">
5857
- * <object class="AdwHeaderBar"/>
5858
- * </child>
5859
- * <property name="content">
5860
- * <!-- ... -->
5861
- * </property>
5862
- * <child type="bottom">
5863
- * <object class="GtkActionBar" id="bottom_bar">
5864
- * <property name="revealed">True</property>
5865
- * <property name="visible">False</property>
5866
- * </object>
5867
- * </child>
5868
- * </object>
5869
- * </property>
5870
- * <child>
5871
- * <object class="AdwBreakpoint">
5872
- * <condition>max-width: 500px</condition>
5873
- * <setter object="bottom_bar" property="visible">True</setter>
5874
- * </object>
5875
- * </child>
5724
+ * <property name="content">
5725
+ * <object class="AdwToolbarView">
5726
+ * <child type="top">
5727
+ * <object class="AdwHeaderBar"/>
5728
+ * </child>
5729
+ * <property name="content">
5730
+ * <!-- ... -->
5731
+ * </property>
5732
+ * <child type="bottom">
5733
+ * <object class="GtkActionBar" id="bottom_bar">
5734
+ * <property name="revealed">True</property>
5735
+ * <property name="visible">False</property>
5736
+ * </object>
5737
+ * </child>
5738
+ * </object>
5739
+ * </property>
5740
+ * <child>
5741
+ * <object class="AdwBreakpoint">
5742
+ * <condition>max-width: 500px</condition>
5743
+ * <setter object="bottom_bar" property="visible">True</setter>
5744
+ * </object>
5745
+ * </child>
5876
5746
  * </object>
5877
5747
  * ```
5878
5748
  *
@@ -5887,10 +5757,7 @@ export const WindowHandle = "WindowHandle";
5887
5757
  * GTK Inspector or by pressing `Ctrl`+`Shift`+`M`,
5888
5758
  * and controlled via the {@link AdwWindow.adaptive-preview} property.
5889
5759
  */
5890
- export const AdwWindow = {
5891
- Root: "AdwWindow.Root",
5892
- Content: "AdwWindow.Content",
5893
- };
5760
+ export const AdwWindow = "AdwWindow";
5894
5761
  /**
5895
5762
  * A dialog showing information about the application.
5896
5763
  *
@@ -6028,27 +5895,27 @@ export const AdwWindow = {
6028
5895
  * static void
6029
5896
  * show_about (GtkApplication *app)
6030
5897
  * {
6031
- * const char *developers[] = {
6032
- * "Angela Avery",
6033
- * NULL
6034
- * };
6035
- *
6036
- * const char *designers[] = {
6037
- * "GNOME Design Team",
6038
- * NULL
6039
- * };
6040
- *
6041
- * adw_show_about_dialog (GTK_WIDGET (gtk_application_get_active_window (app)),
6042
- * "application-name", _("Example"),
6043
- * "application-icon", "org.example.App",
6044
- * "version", "1.2.3",
6045
- * "copyright", "© 2022 Angela Avery",
6046
- * "issue-url", "https://gitlab.gnome.org/example/example/-/issues/",
6047
- * "license-type", GTK_LICENSE_GPL_3_0,
6048
- * "developers", developers,
6049
- * "designers", designers,
6050
- * "translator-credits", _("translator-credits"),
6051
- * NULL);
5898
+ * const char *developers[] = {
5899
+ * "Angela Avery",
5900
+ * NULL
5901
+ * };
5902
+ *
5903
+ * const char *designers[] = {
5904
+ * "GNOME Design Team",
5905
+ * NULL
5906
+ * };
5907
+ *
5908
+ * adw_show_about_dialog (GTK_WIDGET (gtk_application_get_active_window (app)),
5909
+ * "application-name", _("Example"),
5910
+ * "application-icon", "org.example.App",
5911
+ * "version", "1.2.3",
5912
+ * "copyright", "© 2022 Angela Avery",
5913
+ * "issue-url", "https://gitlab.gnome.org/example/example/-/issues/",
5914
+ * "license-type", GTK_LICENSE_GPL_3_0,
5915
+ * "developers", developers,
5916
+ * "designers", designers,
5917
+ * "translator-credits", _("translator-credits"),
5918
+ * NULL);
6052
5919
  * }
6053
5920
  * ```
6054
5921
  *
@@ -6190,27 +6057,27 @@ export const AdwAboutDialog = "AdwAboutDialog";
6190
6057
  * static void
6191
6058
  * show_about (GtkApplication *app)
6192
6059
  * {
6193
- * const char *developers[] = {
6194
- * "Angela Avery",
6195
- * NULL
6196
- * };
6197
- *
6198
- * const char *designers[] = {
6199
- * "GNOME Design Team",
6200
- * NULL
6201
- * };
6202
- *
6203
- * adw_show_about_window (gtk_application_get_active_window (app),
6204
- * "application-name", _("Example"),
6205
- * "application-icon", "org.example.App",
6206
- * "version", "1.2.3",
6207
- * "copyright", "© 2022 Angela Avery",
6208
- * "issue-url", "https://gitlab.gnome.org/example/example/-/issues/",
6209
- * "license-type", GTK_LICENSE_GPL_3_0,
6210
- * "developers", developers,
6211
- * "designers", designers,
6212
- * "translator-credits", _("translator-credits"),
6213
- * NULL);
6060
+ * const char *developers[] = {
6061
+ * "Angela Avery",
6062
+ * NULL
6063
+ * };
6064
+ *
6065
+ * const char *designers[] = {
6066
+ * "GNOME Design Team",
6067
+ * NULL
6068
+ * };
6069
+ *
6070
+ * adw_show_about_window (gtk_application_get_active_window (app),
6071
+ * "application-name", _("Example"),
6072
+ * "application-icon", "org.example.App",
6073
+ * "version", "1.2.3",
6074
+ * "copyright", "© 2022 Angela Avery",
6075
+ * "issue-url", "https://gitlab.gnome.org/example/example/-/issues/",
6076
+ * "license-type", GTK_LICENSE_GPL_3_0,
6077
+ * "developers", developers,
6078
+ * "designers", designers,
6079
+ * "translator-credits", _("translator-credits"),
6080
+ * NULL);
6214
6081
  * }
6215
6082
  * ```
6216
6083
  *
@@ -6264,10 +6131,7 @@ export const AdwAboutWindow = "AdwAboutWindow";
6264
6131
  * When used together with the `.monospace` style class, only the subtitle
6265
6132
  * becomes monospace, not the title or any extra widgets.
6266
6133
  */
6267
- export const AdwActionRow = {
6268
- Root: "AdwActionRow.Root",
6269
- ActivatableWidget: "AdwActionRow.ActivatableWidget",
6270
- };
6134
+ export const AdwActionRow = "AdwActionRow";
6271
6135
  /**
6272
6136
  * A dialog presenting a message or a question.
6273
6137
  *
@@ -6300,17 +6164,17 @@ export const AdwActionRow = {
6300
6164
  * dialog = adw_alert_dialog_new (_("Replace File?"), NULL);
6301
6165
  *
6302
6166
  * adw_alert_dialog_format_body (ADW_ALERT_DIALOG (dialog),
6303
- * _("A file named “%s” already exists. Do you want to replace it?"),
6304
- * filename);
6167
+ * _("A file named “%s” already exists. Do you want to replace it?"),
6168
+ * filename);
6305
6169
  *
6306
6170
  * adw_alert_dialog_add_responses (ADW_ALERT_DIALOG (dialog),
6307
- * "cancel", _("_Cancel"),
6308
- * "replace", _("_Replace"),
6309
- * NULL);
6171
+ * "cancel", _("_Cancel"),
6172
+ * "replace", _("_Replace"),
6173
+ * NULL);
6310
6174
  *
6311
6175
  * adw_alert_dialog_set_response_appearance (ADW_ALERT_DIALOG (dialog),
6312
- * "replace",
6313
- * ADW_RESPONSE_DESTRUCTIVE);
6176
+ * "replace",
6177
+ * ADW_RESPONSE_DESTRUCTIVE);
6314
6178
  *
6315
6179
  * adw_alert_dialog_set_default_response (ADW_ALERT_DIALOG (dialog), "cancel");
6316
6180
  * adw_alert_dialog_set_close_response (ADW_ALERT_DIALOG (dialog), "cancel");
@@ -6328,39 +6192,39 @@ export const AdwActionRow = {
6328
6192
  * ```c
6329
6193
  * static void
6330
6194
  * dialog_cb (AdwAlertDialog *dialog,
6331
- * GAsyncResult *result,
6332
- * MyWindow *self)
6195
+ * GAsyncResult *result,
6196
+ * MyWindow *self)
6333
6197
  * {
6334
- * const char *response = adw_alert_dialog_choose_finish (dialog, result);
6198
+ * const char *response = adw_alert_dialog_choose_finish (dialog, result);
6335
6199
  *
6336
- * // ...
6200
+ * // ...
6337
6201
  * }
6338
6202
  *
6339
6203
  * static void
6340
6204
  * show_dialog (MyWindow *self)
6341
6205
  * {
6342
- * AdwDialog *dialog;
6206
+ * AdwDialog *dialog;
6343
6207
  *
6344
- * dialog = adw_alert_dialog_new (_("Replace File?"), NULL);
6208
+ * dialog = adw_alert_dialog_new (_("Replace File?"), NULL);
6345
6209
  *
6346
- * adw_alert_dialog_format_body (ADW_ALERT_DIALOG (dialog),
6347
- * _("A file named “%s” already exists. Do you want to replace it?"),
6348
- * filename);
6210
+ * adw_alert_dialog_format_body (ADW_ALERT_DIALOG (dialog),
6211
+ * _("A file named “%s” already exists. Do you want to replace it?"),
6212
+ * filename);
6349
6213
  *
6350
- * adw_alert_dialog_add_responses (ADW_ALERT_DIALOG (dialog),
6351
- * "cancel", _("_Cancel"),
6352
- * "replace", _("_Replace"),
6353
- * NULL);
6214
+ * adw_alert_dialog_add_responses (ADW_ALERT_DIALOG (dialog),
6215
+ * "cancel", _("_Cancel"),
6216
+ * "replace", _("_Replace"),
6217
+ * NULL);
6354
6218
  *
6355
- * adw_alert_dialog_set_response_appearance (ADW_ALERT_DIALOG (dialog),
6356
- * "replace",
6357
- * ADW_RESPONSE_DESTRUCTIVE);
6219
+ * adw_alert_dialog_set_response_appearance (ADW_ALERT_DIALOG (dialog),
6220
+ * "replace",
6221
+ * ADW_RESPONSE_DESTRUCTIVE);
6358
6222
  *
6359
- * adw_alert_dialog_set_default_response (ADW_ALERT_DIALOG (dialog), "cancel");
6360
- * adw_alert_dialog_set_close_response (ADW_ALERT_DIALOG (dialog), "cancel");
6223
+ * adw_alert_dialog_set_default_response (ADW_ALERT_DIALOG (dialog), "cancel");
6224
+ * adw_alert_dialog_set_close_response (ADW_ALERT_DIALOG (dialog), "cancel");
6361
6225
  *
6362
- * adw_alert_dialog_choose (ADW_ALERT_DIALOG (dialog), GTK_WIDGET (self),
6363
- * NULL, (GAsyncReadyCallback) dialog_cb, self);
6226
+ * adw_alert_dialog_choose (ADW_ALERT_DIALOG (dialog), GTK_WIDGET (self),
6227
+ * NULL, (GAsyncReadyCallback) dialog_cb, self);
6364
6228
  * }
6365
6229
  * ```
6366
6230
  *
@@ -6384,23 +6248,20 @@ export const AdwActionRow = {
6384
6248
  *
6385
6249
  * ```xml
6386
6250
  * <object class="AdwAlertDialog" id="dialog">
6387
- * <property name="heading" translatable="yes">Save Changes?</property>
6388
- * <property name="body" translatable="yes">Open documents contain unsaved changes. Changes which are not saved will be permanently lost.</property>
6389
- * <property name="default-response">save</property>
6390
- * <property name="close-response">cancel</property>
6391
- * <signal name="response" handler="response_cb"/>
6392
- * <responses>
6393
- * <response id="cancel" translatable="yes">_Cancel</response>
6394
- * <response id="discard" translatable="yes" appearance="destructive">_Discard</response>
6395
- * <response id="save" translatable="yes" appearance="suggested" enabled="false">_Save</response>
6396
- * </responses>
6251
+ * <property name="heading" translatable="yes">Save Changes?</property>
6252
+ * <property name="body" translatable="yes">Open documents contain unsaved changes. Changes which are not saved will be permanently lost.</property>
6253
+ * <property name="default-response">save</property>
6254
+ * <property name="close-response">cancel</property>
6255
+ * <signal name="response" handler="response_cb"/>
6256
+ * <responses>
6257
+ * <response id="cancel" translatable="yes">_Cancel</response>
6258
+ * <response id="discard" translatable="yes" appearance="destructive">_Discard</response>
6259
+ * <response id="save" translatable="yes" appearance="suggested" enabled="false">_Save</response>
6260
+ * </responses>
6397
6261
  * </object>
6398
6262
  * ```
6399
6263
  */
6400
- export const AdwAlertDialog = {
6401
- Root: "AdwAlertDialog.Root",
6402
- ExtraChild: "AdwAlertDialog.ExtraChild",
6403
- };
6264
+ export const AdwAlertDialog = "AdwAlertDialog";
6404
6265
  /**
6405
6266
  * A freeform application window.
6406
6267
  *
@@ -6415,26 +6276,23 @@ export const AdwAlertDialog = {
6415
6276
  *
6416
6277
  * ```xml
6417
6278
  * <object class="AdwApplicationWindow">
6418
- * <property name="content">
6419
- * <object class="AdwToolbarView">
6420
- * <child type="top">
6421
- * <object class="AdwHeaderBar"/>
6422
- * </child>
6423
- * <property name="content">
6424
- * <!-- ... -->
6425
- * </property>
6426
- * </object>
6427
- * </property>
6279
+ * <property name="content">
6280
+ * <object class="AdwToolbarView">
6281
+ * <child type="top">
6282
+ * <object class="AdwHeaderBar"/>
6283
+ * </child>
6284
+ * <property name="content">
6285
+ * <!-- ... -->
6286
+ * </property>
6287
+ * </object>
6288
+ * </property>
6428
6289
  * </object>
6429
6290
  * ```
6430
6291
  *
6431
6292
  * Using {@link Application.menubar} is not supported and may result in
6432
6293
  * visual glitches.
6433
6294
  */
6434
- export const AdwApplicationWindow = {
6435
- Root: "AdwApplicationWindow.Root",
6436
- Content: "AdwApplicationWindow.Content",
6437
- };
6295
+ export const AdwApplicationWindow = "AdwApplicationWindow";
6438
6296
  /**
6439
6297
  * A widget displaying an image, with a generated fallback.
6440
6298
  *
@@ -6570,12 +6428,7 @@ export const AdwBin = "AdwBin";
6570
6428
  * “bottom-bar”. Specifying “content” or omitting the child type results in
6571
6429
  * setting the content child.
6572
6430
  */
6573
- export const AdwBottomSheet = {
6574
- Root: "AdwBottomSheet.Root",
6575
- BottomBar: "AdwBottomSheet.BottomBar",
6576
- Content: "AdwBottomSheet.Content",
6577
- Sheet: "AdwBottomSheet.Sheet",
6578
- };
6431
+ export const AdwBottomSheet = "AdwBottomSheet";
6579
6432
  /**
6580
6433
  * A widget that changes layout based on available size.
6581
6434
  *
@@ -6648,8 +6501,8 @@ export const AdwBottomSheet = {
6648
6501
  *
6649
6502
  * breakpoint = adw_breakpoint_new (adw_breakpoint_condition_parse ("max-width: 200px"));
6650
6503
  * adw_breakpoint_add_setters (breakpoint,
6651
- * G_OBJECT (child), "label", "Narrow",
6652
- * NULL);
6504
+ * G_OBJECT (child), "label", "Narrow",
6505
+ * NULL);
6653
6506
  * adw_breakpoint_bin_add_breakpoint (ADW_BREAKPOINT_BIN (bin), breakpoint);
6654
6507
  * ```
6655
6508
  *
@@ -6664,23 +6517,23 @@ export const AdwBottomSheet = {
6664
6517
  *
6665
6518
  * ```xml
6666
6519
  * <object class="AdwBreakpointBin">
6667
- * <property name="width-request">150</property>
6668
- * <property name="height-request">150</property>
6669
- * <property name="child">
6670
- * <object class="GtkLabel" id="child">
6671
- * <property name="label">Wide</property>
6672
- * <property name="ellipsize">end</property>
6673
- * <style>
6674
- * <class name="title-1"/>
6675
- * </style>
6676
- * </object>
6677
- * </property>
6678
- * <child>
6679
- * <object class="AdwBreakpoint">
6680
- * <condition>max-width: 200px</condition>
6681
- * <setter object="child" property="label">Narrow</setter>
6682
- * </object>
6683
- * </child>
6520
+ * <property name="width-request">150</property>
6521
+ * <property name="height-request">150</property>
6522
+ * <property name="child">
6523
+ * <object class="GtkLabel" id="child">
6524
+ * <property name="label">Wide</property>
6525
+ * <property name="ellipsize">end</property>
6526
+ * <style>
6527
+ * <class name="title-1"/>
6528
+ * </style>
6529
+ * </object>
6530
+ * </property>
6531
+ * <child>
6532
+ * <object class="AdwBreakpoint">
6533
+ * <condition>max-width: 200px</condition>
6534
+ * <setter object="child" property="label">Narrow</setter>
6535
+ * </object>
6536
+ * </child>
6684
6537
  * </object>
6685
6538
  * ```
6686
6539
  *
@@ -6700,13 +6553,13 @@ export const AdwBreakpointBin = "AdwBreakpointBin";
6700
6553
  *
6701
6554
  * ```xml
6702
6555
  * <object class="GtkButton">
6703
- * <property name="child">
6704
- * <object class="AdwButtonContent">
6705
- * <property name="icon-name">document-open-symbolic</property>
6706
- * <property name="label" translatable="yes">_Open</property>
6707
- * <property name="use-underline">True</property>
6708
- * </object>
6709
- * </property>
6556
+ * <property name="child">
6557
+ * <object class="AdwButtonContent">
6558
+ * <property name="icon-name">document-open-symbolic</property>
6559
+ * <property name="label" translatable="yes">_Open</property>
6560
+ * <property name="use-underline">True</property>
6561
+ * </object>
6562
+ * </property>
6710
6563
  * </object>
6711
6564
  * ```
6712
6565
  *
@@ -6718,8 +6571,8 @@ export const AdwBreakpointBin = "AdwBreakpointBin";
6718
6571
  * ```
6719
6572
  * buttoncontent
6720
6573
  * ╰── box
6721
- * ├── image
6722
- * ╰── label
6574
+ * ├── image
6575
+ * ╰── label
6723
6576
  * ```
6724
6577
  *
6725
6578
  * `AdwButtonContent`'s CSS node is called `buttoncontent`. It contains a `box`
@@ -6871,16 +6724,16 @@ export const AdwClampScrollable = "AdwClampScrollable";
6871
6724
  * Example of an `AdwComboRow` UI definition:
6872
6725
  * ```xml
6873
6726
  * <object class="AdwComboRow">
6874
- * <property name="title" translatable="yes">Combo Row</property>
6875
- * <property name="model">
6876
- * <object class="GtkStringList">
6877
- * <items>
6878
- * <item translatable="yes">Foo</item>
6879
- * <item translatable="yes">Bar</item>
6880
- * <item translatable="yes">Baz</item>
6881
- * </items>
6882
- * </object>
6883
- * </property>
6727
+ * <property name="title" translatable="yes">Combo Row</property>
6728
+ * <property name="model">
6729
+ * <object class="GtkStringList">
6730
+ * <items>
6731
+ * <item translatable="yes">Foo</item>
6732
+ * <item translatable="yes">Bar</item>
6733
+ * <item translatable="yes">Baz</item>
6734
+ * </items>
6735
+ * </object>
6736
+ * </property>
6884
6737
  * </object>
6885
6738
  * ```
6886
6739
  *
@@ -6959,12 +6812,7 @@ export const AdwComboRow = "AdwComboRow";
6959
6812
  * minimum size, and {@link Widget.width-request} and
6960
6813
  * {@link Widget.height-request} properties must be set manually.
6961
6814
  */
6962
- export const AdwDialog = {
6963
- Root: "AdwDialog.Root",
6964
- Child: "AdwDialog.Child",
6965
- DefaultWidget: "AdwDialog.DefaultWidget",
6966
- FocusWidget: "AdwDialog.FocusWidget",
6967
- };
6815
+ export const AdwDialog = "AdwDialog";
6968
6816
  /**
6969
6817
  * A {@link ListBoxRow} with an embedded text entry.
6970
6818
  *
@@ -7089,12 +6937,7 @@ export const AdwExpanderRow = "AdwExpanderRow";
7089
6937
  * `AdwFlap` has a single CSS node with name `flap`. The node will get the style
7090
6938
  * classes `.folded` when it is folded, and `.unfolded` when it's not.
7091
6939
  */
7092
- export const AdwFlap = {
7093
- Root: "AdwFlap.Root",
7094
- Content: "AdwFlap.Content",
7095
- Flap: "AdwFlap.Flap",
7096
- Separator: "AdwFlap.Separator",
7097
- };
6940
+ export const AdwFlap = "AdwFlap";
7098
6941
  /**
7099
6942
  * A title bar widget.
7100
6943
  *
@@ -7156,19 +6999,19 @@ export const AdwFlap = {
7156
6999
  * ```
7157
7000
  * headerbar
7158
7001
  * ╰── windowhandle
7159
- * ╰── box
7160
- * ├── widget
7161
- * │ ╰── box.start
7162
- * │ ├── windowcontrols.start
7163
- * │ ├── widget
7164
- * │ │ ╰── [button.back]
7165
- * │ ╰── [other children]
7166
- * ├── widget
7167
- * │ ╰── [Title Widget]
7168
- * ╰── widget
7169
- * ╰── box.end
7170
- * ├── [other children]
7171
- * ╰── windowcontrols.end
7002
+ * ╰── box
7003
+ * ├── widget
7004
+ * │ ╰── box.start
7005
+ * │ ├── windowcontrols.start
7006
+ * │ ├── widget
7007
+ * │ │ ╰── [button.back]
7008
+ * │ ╰── [other children]
7009
+ * ├── widget
7010
+ * │ ╰── [Title Widget]
7011
+ * ╰── widget
7012
+ * ╰── box.end
7013
+ * ├── [other children]
7014
+ * ╰── windowcontrols.end
7172
7015
  * ```
7173
7016
  *
7174
7017
  * `AdwHeaderBar`'s CSS node is called `headerbar`. It contains a `windowhandle`
@@ -7188,10 +7031,7 @@ export const AdwFlap = {
7188
7031
  *
7189
7032
  * `AdwHeaderBar` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
7190
7033
  */
7191
- export const AdwHeaderBar = {
7192
- Root: "AdwHeaderBar.Root",
7193
- TitleWidget: "AdwHeaderBar.TitleWidget",
7194
- };
7034
+ export const AdwHeaderBar = "AdwHeaderBar";
7195
7035
  /**
7196
7036
  * A view switcher that uses a toggle group.
7197
7037
  *
@@ -7259,10 +7099,7 @@ export const AdwLayoutSlot = "AdwLayoutSlot";
7259
7099
  * style classes `.folded` when it is folded, `.unfolded` when it's not, or none
7260
7100
  * if it hasn't computed its fold yet.
7261
7101
  */
7262
- export const AdwLeaflet = {
7263
- Root: "AdwLeaflet.Root",
7264
- VisibleChild: "AdwLeaflet.VisibleChild",
7265
- };
7102
+ export const AdwLeaflet = "AdwLeaflet";
7266
7103
  /**
7267
7104
  * A dialog presenting a message or a question.
7268
7105
  *
@@ -7295,13 +7132,13 @@ export const AdwLeaflet = {
7295
7132
  * dialog = adw_message_dialog_new (parent, _("Replace File?"), NULL);
7296
7133
  *
7297
7134
  * adw_message_dialog_format_body (ADW_MESSAGE_DIALOG (dialog),
7298
- * _("A file named “%s” already exists. Do you want to replace it?"),
7299
- * filename);
7135
+ * _("A file named “%s” already exists. Do you want to replace it?"),
7136
+ * filename);
7300
7137
  *
7301
7138
  * adw_message_dialog_add_responses (ADW_MESSAGE_DIALOG (dialog),
7302
- * "cancel", _("_Cancel"),
7303
- * "replace", _("_Replace"),
7304
- * NULL);
7139
+ * "cancel", _("_Cancel"),
7140
+ * "replace", _("_Replace"),
7141
+ * NULL);
7305
7142
  *
7306
7143
  * adw_message_dialog_set_response_appearance (ADW_MESSAGE_DIALOG (dialog), "replace", ADW_RESPONSE_DESTRUCTIVE);
7307
7144
  *
@@ -7321,36 +7158,36 @@ export const AdwLeaflet = {
7321
7158
  * ```c
7322
7159
  * static void
7323
7160
  * dialog_cb (AdwMessageDialog *dialog,
7324
- * GAsyncResult *result,
7325
- * MyWindow *self)
7161
+ * GAsyncResult *result,
7162
+ * MyWindow *self)
7326
7163
  * {
7327
- * const char *response = adw_message_dialog_choose_finish (dialog, result);
7164
+ * const char *response = adw_message_dialog_choose_finish (dialog, result);
7328
7165
  *
7329
- * // ...
7166
+ * // ...
7330
7167
  * }
7331
7168
  *
7332
7169
  * static void
7333
7170
  * show_dialog (MyWindow *self)
7334
7171
  * {
7335
- * GtkWidget *dialog;
7172
+ * GtkWidget *dialog;
7336
7173
  *
7337
- * dialog = adw_message_dialog_new (GTK_WINDOW (self), _("Replace File?"), NULL);
7174
+ * dialog = adw_message_dialog_new (GTK_WINDOW (self), _("Replace File?"), NULL);
7338
7175
  *
7339
- * adw_message_dialog_format_body (ADW_MESSAGE_DIALOG (dialog),
7340
- * _("A file named “%s” already exists. Do you want to replace it?"),
7341
- * filename);
7176
+ * adw_message_dialog_format_body (ADW_MESSAGE_DIALOG (dialog),
7177
+ * _("A file named “%s” already exists. Do you want to replace it?"),
7178
+ * filename);
7342
7179
  *
7343
- * adw_message_dialog_add_responses (ADW_MESSAGE_DIALOG (dialog),
7344
- * "cancel", _("_Cancel"),
7345
- * "replace", _("_Replace"),
7346
- * NULL);
7180
+ * adw_message_dialog_add_responses (ADW_MESSAGE_DIALOG (dialog),
7181
+ * "cancel", _("_Cancel"),
7182
+ * "replace", _("_Replace"),
7183
+ * NULL);
7347
7184
  *
7348
- * adw_message_dialog_set_response_appearance (ADW_MESSAGE_DIALOG (dialog), "replace", ADW_RESPONSE_DESTRUCTIVE);
7185
+ * adw_message_dialog_set_response_appearance (ADW_MESSAGE_DIALOG (dialog), "replace", ADW_RESPONSE_DESTRUCTIVE);
7349
7186
  *
7350
- * adw_message_dialog_set_default_response (ADW_MESSAGE_DIALOG (dialog), "cancel");
7351
- * adw_message_dialog_set_close_response (ADW_MESSAGE_DIALOG (dialog), "cancel");
7187
+ * adw_message_dialog_set_default_response (ADW_MESSAGE_DIALOG (dialog), "cancel");
7188
+ * adw_message_dialog_set_close_response (ADW_MESSAGE_DIALOG (dialog), "cancel");
7352
7189
  *
7353
- * adw_message_dialog_choose (ADW_MESSAGE_DIALOG (dialog), NULL, (GAsyncReadyCallback) dialog_cb, self);
7190
+ * adw_message_dialog_choose (ADW_MESSAGE_DIALOG (dialog), NULL, (GAsyncReadyCallback) dialog_cb, self);
7354
7191
  * }
7355
7192
  * ```
7356
7193
  *
@@ -7374,16 +7211,16 @@ export const AdwLeaflet = {
7374
7211
  *
7375
7212
  * ```xml
7376
7213
  * <object class="AdwMessageDialog" id="dialog">
7377
- * <property name="heading" translatable="yes">Save Changes?</property>
7378
- * <property name="body" translatable="yes">Open documents contain unsaved changes. Changes which are not saved will be permanently lost.</property>
7379
- * <property name="default-response">save</property>
7380
- * <property name="close-response">cancel</property>
7381
- * <signal name="response" handler="response_cb"/>
7382
- * <responses>
7383
- * <response id="cancel" translatable="yes">_Cancel</response>
7384
- * <response id="discard" translatable="yes" appearance="destructive">_Discard</response>
7385
- * <response id="save" translatable="yes" appearance="suggested" enabled="false">_Save</response>
7386
- * </responses>
7214
+ * <property name="heading" translatable="yes">Save Changes?</property>
7215
+ * <property name="body" translatable="yes">Open documents contain unsaved changes. Changes which are not saved will be permanently lost.</property>
7216
+ * <property name="default-response">save</property>
7217
+ * <property name="close-response">cancel</property>
7218
+ * <signal name="response" handler="response_cb"/>
7219
+ * <responses>
7220
+ * <response id="cancel" translatable="yes">_Cancel</response>
7221
+ * <response id="discard" translatable="yes" appearance="destructive">_Discard</response>
7222
+ * <response id="save" translatable="yes" appearance="suggested" enabled="false">_Save</response>
7223
+ * </responses>
7387
7224
  * </object>
7388
7225
  * ```
7389
7226
  *
@@ -7391,10 +7228,7 @@ export const AdwLeaflet = {
7391
7228
  *
7392
7229
  * `AdwMessageDialog` uses the `GTK_ACCESSIBLE_ROLE_DIALOG` role.
7393
7230
  */
7394
- export const AdwMessageDialog = {
7395
- Root: "AdwMessageDialog.Root",
7396
- ExtraChild: "AdwMessageDialog.ExtraChild",
7397
- };
7231
+ export const AdwMessageDialog = "AdwMessageDialog";
7398
7232
  /**
7399
7233
  * A widget for switching between different layouts.
7400
7234
  *
@@ -7425,51 +7259,51 @@ export const AdwMessageDialog = {
7425
7259
  *
7426
7260
  * ```xml
7427
7261
  * <object class="AdwMultiLayoutView">
7428
- * <child>
7429
- * <object class="AdwLayout">
7430
- * <property name="name">sidebar</property>
7431
- * <property name="content">
7432
- * <object class="AdwOverlaySplitView">
7433
- * <property name="sidebar">
7434
- * <object class="AdwLayoutSlot">
7435
- * <property name="id">secondary</property>
7436
- * </object>
7437
- * </property>
7438
- * <property name="content">
7439
- * <object class="AdwLayoutSlot">
7440
- * <property name="id">primary</property>
7441
- * </object>
7442
- * </property>
7443
- * </object>
7444
- * </property>
7445
- * </object>
7446
- * </child>
7447
- * <child>
7448
- * <object class="AdwLayout">
7449
- * <property name="name">bottom-sheet</property>
7450
- * <property name="content">
7451
- * <object class="AdwBottomSheet">
7452
- * <property name="open">True</property>
7453
- * <property name="content">
7454
- * <object class="AdwLayoutSlot">
7455
- * <property name="id">primary</property>
7456
- * </object>
7457
- * </property>
7458
- * <property name="sheet">
7459
- * <object class="AdwLayoutSlot">
7460
- * <property name="id">secondary</property>
7461
- * </object>
7462
- * </property>
7463
- * </object>
7464
- * </property>
7465
- * </object>
7466
- * </child>
7467
- * <child type="primary">
7468
- * <!-- ... -->
7469
- * </child>
7470
- * <child type="secondary">
7471
- * <!-- ... -->
7472
- * </child>
7262
+ * <child>
7263
+ * <object class="AdwLayout">
7264
+ * <property name="name">sidebar</property>
7265
+ * <property name="content">
7266
+ * <object class="AdwOverlaySplitView">
7267
+ * <property name="sidebar">
7268
+ * <object class="AdwLayoutSlot">
7269
+ * <property name="id">secondary</property>
7270
+ * </object>
7271
+ * </property>
7272
+ * <property name="content">
7273
+ * <object class="AdwLayoutSlot">
7274
+ * <property name="id">primary</property>
7275
+ * </object>
7276
+ * </property>
7277
+ * </object>
7278
+ * </property>
7279
+ * </object>
7280
+ * </child>
7281
+ * <child>
7282
+ * <object class="AdwLayout">
7283
+ * <property name="name">bottom-sheet</property>
7284
+ * <property name="content">
7285
+ * <object class="AdwBottomSheet">
7286
+ * <property name="open">True</property>
7287
+ * <property name="content">
7288
+ * <object class="AdwLayoutSlot">
7289
+ * <property name="id">primary</property>
7290
+ * </object>
7291
+ * </property>
7292
+ * <property name="sheet">
7293
+ * <object class="AdwLayoutSlot">
7294
+ * <property name="id">secondary</property>
7295
+ * </object>
7296
+ * </property>
7297
+ * </object>
7298
+ * </property>
7299
+ * </object>
7300
+ * </child>
7301
+ * <child type="primary">
7302
+ * <!-- ... -->
7303
+ * </child>
7304
+ * <child type="secondary">
7305
+ * <!-- ... -->
7306
+ * </child>
7473
7307
  * </object>
7474
7308
  * ```
7475
7309
  *
@@ -7528,36 +7362,36 @@ export const AdwNavigationPage = "AdwNavigationPage";
7528
7362
  *
7529
7363
  * ```xml
7530
7364
  * <object class="AdwWindow">
7531
- * <property name="width-request">280</property>
7532
- * <property name="height-request">200</property>
7533
- * <property name="default-width">800</property>
7534
- * <property name="default-height">800</property>
7535
- * <child>
7536
- * <object class="AdwBreakpoint">
7537
- * <condition>max-width: 400sp</condition>
7538
- * <setter object="split_view" property="collapsed">True</setter>
7539
- * </object>
7540
- * </child>
7541
- * <property name="content">
7542
- * <object class="AdwNavigationSplitView" id="split_view">
7543
- * <property name="sidebar">
7544
- * <object class="AdwNavigationPage">
7545
- * <property name="title" translatable="yes">Sidebar</property>
7546
- * <property name="child">
7547
- * <!-- ... -->
7548
- * </property>
7549
- * </object>
7550
- * </property>
7551
- * <property name="content">
7552
- * <object class="AdwNavigationPage">
7553
- * <property name="title" translatable="yes">Content</property>
7554
- * <property name="child">
7555
- * <!-- ... -->
7556
- * </property>
7557
- * </object>
7558
- * </property>
7559
- * </object>
7560
- * </property>
7365
+ * <property name="width-request">280</property>
7366
+ * <property name="height-request">200</property>
7367
+ * <property name="default-width">800</property>
7368
+ * <property name="default-height">800</property>
7369
+ * <child>
7370
+ * <object class="AdwBreakpoint">
7371
+ * <condition>max-width: 400sp</condition>
7372
+ * <setter object="split_view" property="collapsed">True</setter>
7373
+ * </object>
7374
+ * </child>
7375
+ * <property name="content">
7376
+ * <object class="AdwNavigationSplitView" id="split_view">
7377
+ * <property name="sidebar">
7378
+ * <object class="AdwNavigationPage">
7379
+ * <property name="title" translatable="yes">Sidebar</property>
7380
+ * <property name="child">
7381
+ * <!-- ... -->
7382
+ * </property>
7383
+ * </object>
7384
+ * </property>
7385
+ * <property name="content">
7386
+ * <object class="AdwNavigationPage">
7387
+ * <property name="title" translatable="yes">Content</property>
7388
+ * <property name="child">
7389
+ * <!-- ... -->
7390
+ * </property>
7391
+ * </object>
7392
+ * </property>
7393
+ * </object>
7394
+ * </property>
7561
7395
  * </object>
7562
7396
  * ```
7563
7397
  *
@@ -7617,8 +7451,8 @@ export const AdwNavigationPage = "AdwNavigationPage";
7617
7451
  * ```
7618
7452
  * navigation-split-view
7619
7453
  * ╰── navigation-view
7620
- * ├── [sidebar child]
7621
- * ╰── [content child]
7454
+ * ├── [sidebar child]
7455
+ * ╰── [content child]
7622
7456
  * ```
7623
7457
  *
7624
7458
  * When not collapsed, it contains two nodes with the name `widget`, one with
@@ -7630,7 +7464,7 @@ export const AdwNavigationPage = "AdwNavigationPage";
7630
7464
  * ├── widget.sidebar-pane
7631
7465
  * │ ╰── [sidebar child]
7632
7466
  * ╰── widget.content-pane
7633
- * ╰── [content child]
7467
+ * ╰── [content child]
7634
7468
  * ```
7635
7469
  *
7636
7470
  * ## Accessibility
@@ -7738,46 +7572,46 @@ export const AdwNavigationSplitView = "AdwNavigationSplitView";
7738
7572
  *
7739
7573
  * ```xml
7740
7574
  * <object class="AdwNavigationView">
7741
- * <child>
7742
- * <object class="AdwNavigationPage">
7743
- * <property name="title" translatable="yes">Page 1</property>
7744
- * <property name="child">
7745
- * <object class="AdwToolbarView">
7746
- * <child type="top">
7747
- * <object class="AdwHeaderBar"/>
7748
- * </child>
7749
- * <property name="content">
7750
- * <object class="GtkButton">
7751
- * <property name="label" translatable="yes">Open Page 2</property>
7752
- * <property name="halign">center</property>
7753
- * <property name="valign">center</property>
7754
- * <property name="action-name">navigation.push</property>
7755
- * <property name="action-target">'page-2'</property>
7756
- * <style>
7757
- * <class name="pill"/>
7758
- * </style>
7759
- * </object>
7760
- * </property>
7761
- * </object>
7762
- * </property>
7763
- * </object>
7764
- * </child>
7765
- * <child>
7766
- * <object class="AdwNavigationPage">
7767
- * <property name="title" translatable="yes">Page 2</property>
7768
- * <property name="tag">page-2</property>
7769
- * <property name="child">
7770
- * <object class="AdwToolbarView">
7771
- * <child type="top">
7772
- * <object class="AdwHeaderBar"/>
7773
- * </child>
7774
- * <property name="content">
7775
- * <!-- ... -->
7776
- * </property>
7777
- * </object>
7778
- * </property>
7779
- * </object>
7780
- * </child>
7575
+ * <child>
7576
+ * <object class="AdwNavigationPage">
7577
+ * <property name="title" translatable="yes">Page 1</property>
7578
+ * <property name="child">
7579
+ * <object class="AdwToolbarView">
7580
+ * <child type="top">
7581
+ * <object class="AdwHeaderBar"/>
7582
+ * </child>
7583
+ * <property name="content">
7584
+ * <object class="GtkButton">
7585
+ * <property name="label" translatable="yes">Open Page 2</property>
7586
+ * <property name="halign">center</property>
7587
+ * <property name="valign">center</property>
7588
+ * <property name="action-name">navigation.push</property>
7589
+ * <property name="action-target">'page-2'</property>
7590
+ * <style>
7591
+ * <class name="pill"/>
7592
+ * </style>
7593
+ * </object>
7594
+ * </property>
7595
+ * </object>
7596
+ * </property>
7597
+ * </object>
7598
+ * </child>
7599
+ * <child>
7600
+ * <object class="AdwNavigationPage">
7601
+ * <property name="title" translatable="yes">Page 2</property>
7602
+ * <property name="tag">page-2</property>
7603
+ * <property name="child">
7604
+ * <object class="AdwToolbarView">
7605
+ * <child type="top">
7606
+ * <object class="AdwHeaderBar"/>
7607
+ * </child>
7608
+ * <property name="content">
7609
+ * <!-- ... -->
7610
+ * </property>
7611
+ * </object>
7612
+ * </property>
7613
+ * </object>
7614
+ * </child>
7781
7615
  * </object>
7782
7616
  * ```
7783
7617
  *
@@ -7827,24 +7661,24 @@ export const AdwNavigationView = "AdwNavigationView";
7827
7661
  *
7828
7662
  * ```xml
7829
7663
  * <object class="AdwWindow">
7830
- * <property name="default-width">800</property>
7831
- * <property name="default-height">800</property>
7832
- * <child>
7833
- * <object class="AdwBreakpoint">
7834
- * <condition>max-width: 400sp</condition>
7835
- * <setter object="split_view" property="collapsed">True</setter>
7836
- * </object>
7837
- * </child>
7838
- * <property name="content">
7839
- * <object class="AdwOverlaySplitView" id="split_view">
7840
- * <property name="sidebar">
7841
- * <!-- ... -->
7842
- * </property>
7843
- * <property name="content">
7844
- * <!-- ... -->
7845
- * </property>
7846
- * </object>
7847
- * </property>
7664
+ * <property name="default-width">800</property>
7665
+ * <property name="default-height">800</property>
7666
+ * <child>
7667
+ * <object class="AdwBreakpoint">
7668
+ * <condition>max-width: 400sp</condition>
7669
+ * <setter object="split_view" property="collapsed">True</setter>
7670
+ * </object>
7671
+ * </child>
7672
+ * <property name="content">
7673
+ * <object class="AdwOverlaySplitView" id="split_view">
7674
+ * <property name="sidebar">
7675
+ * <!-- ... -->
7676
+ * </property>
7677
+ * <property name="content">
7678
+ * <!-- ... -->
7679
+ * </property>
7680
+ * </object>
7681
+ * </property>
7848
7682
  * </object>
7849
7683
  * ```
7850
7684
  *
@@ -7901,7 +7735,7 @@ export const AdwNavigationView = "AdwNavigationView";
7901
7735
  * ├── widget.sidebar-pane
7902
7736
  * │ ╰── [sidebar child]
7903
7737
  * ╰── widget.content-pane
7904
- * ╰── [content child]
7738
+ * ╰── [content child]
7905
7739
  * ```
7906
7740
  *
7907
7741
  * When collapsed, the one containing the sidebar child has the `.background`
@@ -7912,18 +7746,14 @@ export const AdwNavigationView = "AdwNavigationView";
7912
7746
  * ├── widget.background
7913
7747
  * │ ╰── [sidebar child]
7914
7748
  * ╰── widget
7915
- * ╰── [content child]
7749
+ * ╰── [content child]
7916
7750
  * ```
7917
7751
  *
7918
7752
  * ## Accessibility
7919
7753
  *
7920
7754
  * `AdwOverlaySplitView` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
7921
7755
  */
7922
- export const AdwOverlaySplitView = {
7923
- Root: "AdwOverlaySplitView.Root",
7924
- Content: "AdwOverlaySplitView.Content",
7925
- Sidebar: "AdwOverlaySplitView.Sidebar",
7926
- };
7756
+ export const AdwOverlaySplitView = "AdwOverlaySplitView";
7927
7757
  /**
7928
7758
  * A {@link AdwEntryRow} tailored for entering secrets.
7929
7759
  *
@@ -7962,10 +7792,7 @@ export const AdwPasswordEntryRow = "AdwPasswordEntryRow";
7962
7792
  * `AdwPreferencesDialog` has a main CSS node with the name `dialog` and the
7963
7793
  * style class `.preferences`.
7964
7794
  */
7965
- export const AdwPreferencesDialog = {
7966
- Root: "AdwPreferencesDialog.Root",
7967
- VisiblePage: "AdwPreferencesDialog.VisiblePage",
7968
- };
7795
+ export const AdwPreferencesDialog = "AdwPreferencesDialog";
7969
7796
  /**
7970
7797
  * A group of preference rows.
7971
7798
  *
@@ -8001,10 +7828,7 @@ export const AdwPreferencesDialog = {
8001
7828
  *
8002
7829
  * `AdwPreferencesGroup` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
8003
7830
  */
8004
- export const AdwPreferencesGroup = {
8005
- Root: "AdwPreferencesGroup.Root",
8006
- HeaderSuffix: "AdwPreferencesGroup.HeaderSuffix",
8007
- };
7831
+ export const AdwPreferencesGroup = "AdwPreferencesGroup";
8008
7832
  /**
8009
7833
  * A page from {@link AdwPreferencesDialog}.
8010
7834
  *
@@ -8047,10 +7871,7 @@ export const AdwPreferencesRow = "AdwPreferencesRow";
8047
7871
  * `AdwPreferencesWindow` has a main CSS node with the name `window` and the
8048
7872
  * style class `.preferences`.
8049
7873
  */
8050
- export const AdwPreferencesWindow = {
8051
- Root: "AdwPreferencesWindow.Root",
8052
- VisiblePage: "AdwPreferencesWindow.VisiblePage",
8053
- };
7874
+ export const AdwPreferencesWindow = "AdwPreferencesWindow";
8054
7875
  /**
8055
7876
  * A widget that displays a keyboard shortcut.
8056
7877
  *
@@ -8119,55 +7940,55 @@ export const AdwShortcutLabel = "AdwShortcutLabel";
8119
7940
  *
8120
7941
  * ```xml
8121
7942
  * <object class="AdwShortcutsDialog" id="shortcuts_dialog">
8122
- * <child>
8123
- * <object class="AdwShortcutsSection">
8124
- * <property name="title" translatable="yes">General</property>
8125
- * <child>
8126
- * <object class="AdwShortcutsItem">
8127
- * <property name="title" translatable="yes">Open Menu</property>
8128
- * <property name="accelerator">F10</property>
8129
- * </object>
8130
- * </child>
8131
- * <child>
8132
- * <object class="AdwShortcutsItem">
8133
- * <property name="title" translatable="yes">Quit</property>
8134
- * <property name="action-name">app.quit</property>
8135
- * </object>
8136
- * </child>
8137
- * </object>
8138
- * </child>
8139
- * <child>
8140
- * <object class="AdwShortcutsSection">
8141
- * <child>
8142
- * <object class="AdwShortcutsItem">
8143
- * <property name="title" translatable="yes">Move Tab Left</property>
8144
- * <property name="accelerator">&lt;Shift&gt;&lt;Ctrl&gt;Page_Up</property>
8145
- * <property name="direction">ltr</property>
8146
- * </object>
8147
- * </child>
8148
- * <child>
8149
- * <object class="AdwShortcutsItem">
8150
- * <property name="title" translatable="yes">Move Tab Right</property>
8151
- * <property name="accelerator">&lt;Shift&gt;&lt;Ctrl&gt;Page_Down</property>
8152
- * <property name="direction">ltr</property>
8153
- * </object>
8154
- * </child>
8155
- * <child>
8156
- * <object class="AdwShortcutsItem">
8157
- * <property name="title" translatable="yes">Move Tab Right</property>
8158
- * <property name="accelerator">&lt;Shift&gt;&lt;Ctrl&gt;Page_Up</property>
8159
- * <property name="direction">rtl</property>
8160
- * </object>
8161
- * </child>
8162
- * <child>
8163
- * <object class="AdwShortcutsItem">
8164
- * <property name="title" translatable="yes">Move Tab Left</property>
8165
- * <property name="accelerator">&lt;Shift&gt;&lt;Ctrl&gt;Page_Down</property>
8166
- * <property name="direction">rtl</property>
8167
- * </object>
8168
- * </child>
8169
- * </object>
8170
- * </child>
7943
+ * <child>
7944
+ * <object class="AdwShortcutsSection">
7945
+ * <property name="title" translatable="yes">General</property>
7946
+ * <child>
7947
+ * <object class="AdwShortcutsItem">
7948
+ * <property name="title" translatable="yes">Open Menu</property>
7949
+ * <property name="accelerator">F10</property>
7950
+ * </object>
7951
+ * </child>
7952
+ * <child>
7953
+ * <object class="AdwShortcutsItem">
7954
+ * <property name="title" translatable="yes">Quit</property>
7955
+ * <property name="action-name">app.quit</property>
7956
+ * </object>
7957
+ * </child>
7958
+ * </object>
7959
+ * </child>
7960
+ * <child>
7961
+ * <object class="AdwShortcutsSection">
7962
+ * <child>
7963
+ * <object class="AdwShortcutsItem">
7964
+ * <property name="title" translatable="yes">Move Tab Left</property>
7965
+ * <property name="accelerator">&lt;Shift&gt;&lt;Ctrl&gt;Page_Up</property>
7966
+ * <property name="direction">ltr</property>
7967
+ * </object>
7968
+ * </child>
7969
+ * <child>
7970
+ * <object class="AdwShortcutsItem">
7971
+ * <property name="title" translatable="yes">Move Tab Right</property>
7972
+ * <property name="accelerator">&lt;Shift&gt;&lt;Ctrl&gt;Page_Down</property>
7973
+ * <property name="direction">ltr</property>
7974
+ * </object>
7975
+ * </child>
7976
+ * <child>
7977
+ * <object class="AdwShortcutsItem">
7978
+ * <property name="title" translatable="yes">Move Tab Right</property>
7979
+ * <property name="accelerator">&lt;Shift&gt;&lt;Ctrl&gt;Page_Up</property>
7980
+ * <property name="direction">rtl</property>
7981
+ * </object>
7982
+ * </child>
7983
+ * <child>
7984
+ * <object class="AdwShortcutsItem">
7985
+ * <property name="title" translatable="yes">Move Tab Left</property>
7986
+ * <property name="accelerator">&lt;Shift&gt;&lt;Ctrl&gt;Page_Down</property>
7987
+ * <property name="direction">rtl</property>
7988
+ * </object>
7989
+ * </child>
7990
+ * </object>
7991
+ * </child>
8171
7992
  * </object>
8172
7993
  * ```
8173
7994
  *
@@ -8198,10 +8019,10 @@ export const AdwShortcutsDialog = "AdwShortcutsDialog";
8198
8019
  *
8199
8020
  * ```xml
8200
8021
  * <object class="AdwSpinner">
8201
- * <property name="halign">center</property>
8202
- * <property name="valign">center</property>
8203
- * <property name="width-request">48</property>
8204
- * <property name="height-request">48</property>
8022
+ * <property name="halign">center</property>
8023
+ * <property name="valign">center</property>
8024
+ * <property name="width-request">48</property>
8025
+ * <property name="height-request">48</property>
8205
8026
  * </object>
8206
8027
  * ```
8207
8028
  *
@@ -8227,16 +8048,16 @@ export const AdwSpinner = "AdwSpinner";
8227
8048
  *
8228
8049
  * ```xml
8229
8050
  * <object class="AdwSpinRow">
8230
- * <property name="title" translatable="yes">Spin Row</property>
8231
- * <property name="adjustment">
8232
- * <object class="GtkAdjustment">
8233
- * <property name="lower">0</property>
8234
- * <property name="upper">100</property>
8235
- * <property name="value">50</property>
8236
- * <property name="page-increment">10</property>
8237
- * <property name="step-increment">1</property>
8238
- * </object>
8239
- * </property>
8051
+ * <property name="title" translatable="yes">Spin Row</property>
8052
+ * <property name="adjustment">
8053
+ * <object class="GtkAdjustment">
8054
+ * <property name="lower">0</property>
8055
+ * <property name="upper">100</property>
8056
+ * <property name="value">50</property>
8057
+ * <property name="page-increment">10</property>
8058
+ * <property name="step-increment">1</property>
8059
+ * </object>
8060
+ * </property>
8240
8061
  * </object>
8241
8062
  * ```
8242
8063
  *
@@ -8272,8 +8093,8 @@ export const AdwSpinRow = "AdwSpinRow";
8272
8093
  * │ ╰── <content>
8273
8094
  * ├── separator
8274
8095
  * ╰── menubutton
8275
- * ╰── button.toggle
8276
- * ╰── arrow
8096
+ * ╰── button.toggle
8097
+ * ╰── arrow
8277
8098
  * ```
8278
8099
  *
8279
8100
  * `AdwSplitButton`'s CSS node is called `splitbutton`. It contains the css
@@ -8299,11 +8120,7 @@ export const AdwSpinRow = "AdwSpinRow";
8299
8120
  *
8300
8121
  * `AdwSplitButton` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
8301
8122
  */
8302
- export const AdwSplitButton = {
8303
- Root: "AdwSplitButton.Root",
8304
- Child: "AdwSplitButton.Child",
8305
- Popover: "AdwSplitButton.Popover",
8306
- };
8123
+ export const AdwSplitButton = "AdwSplitButton";
8307
8124
  /**
8308
8125
  * A best fit container.
8309
8126
  *
@@ -8366,8 +8183,8 @@ export const AdwStatusPage = "AdwStatusPage";
8366
8183
  * Example of an `AdwSwitchRow` UI definition:
8367
8184
  * ```xml
8368
8185
  * <object class="AdwSwitchRow">
8369
- * <property name="title" translatable="yes">Switch Row</property>
8370
- * <signal name="notify::active" handler="switch_row_notify_active_cb"/>
8186
+ * <property name="title" translatable="yes">Switch Row</property>
8187
+ * <signal name="notify::active" handler="switch_row_notify_active_cb"/>
8371
8188
  * </object>
8372
8189
  * ```
8373
8190
  *
@@ -8407,11 +8224,7 @@ export const AdwSwitchRow = "AdwSwitchRow";
8407
8224
  *
8408
8225
  * ![tab-bar-inline](https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1-latest/tab-bar-inline.png)
8409
8226
  */
8410
- export const AdwTabBar = {
8411
- Root: "AdwTabBar.Root",
8412
- EndActionWidget: "AdwTabBar.EndActionWidget",
8413
- StartActionWidget: "AdwTabBar.StartActionWidget",
8414
- };
8227
+ export const AdwTabBar = "AdwTabBar";
8415
8228
  /**
8416
8229
  * A button that displays the number of {@link AdwTabView} pages.
8417
8230
  *
@@ -8426,8 +8239,8 @@ export const AdwTabBar = {
8426
8239
  *
8427
8240
  * ```xml
8428
8241
  * <object class="AdwTabButton">
8429
- * <property name="view">view</property>
8430
- * <property name="action-name">overview.open</property>
8242
+ * <property name="view">view</property>
8243
+ * <property name="action-name">overview.open</property>
8431
8244
  * </object>
8432
8245
  * ```
8433
8246
  *
@@ -8527,7 +8340,7 @@ export const AdwTabOverview = "AdwTabOverview";
8527
8340
  *
8528
8341
  * ```c
8529
8342
  * adw_tab_view_remove_shortcuts (view, ADW_TAB_VIEW_SHORTCUT_CONTROL_HOME |
8530
- * ADW_TAB_VIEW_SHORTCUT_CONTROL_END);
8343
+ * ADW_TAB_VIEW_SHORTCUT_CONTROL_END);
8531
8344
  * ```
8532
8345
  *
8533
8346
  * ## CSS nodes
@@ -8562,9 +8375,9 @@ export const AdwTabView = "AdwTabView";
8562
8375
  * ├── toast
8563
8376
  * ┊ ├── widget
8564
8377
  * ┊ │ ├── [label.heading]
8565
- * │ ╰── [custom title]
8566
- * ├── [button]
8567
- * ╰── button.circular.flat
8378
+ * │ ╰── [custom title]
8379
+ * ├── [button]
8380
+ * ╰── button.circular.flat
8568
8381
  * ```
8569
8382
  *
8570
8383
  * `AdwToastOverlay`'s CSS node is called `toastoverlay`. It contains the child,
@@ -8613,23 +8426,23 @@ export const AdwToastOverlay = "AdwToastOverlay";
8613
8426
  * Example of an `AdwToggleGroup` UI definition:
8614
8427
  *
8615
8428
  * ```xml
8616
- * <object class="AdwToggleGroup">
8617
- * <property name="active-name">picture</property>
8618
- * <child>
8619
- * <object class="AdwToggle">
8620
- * <property name="icon-name">camera-photo-symbolic</property>
8621
- * <property name="tooltip" translatable="yes">Picture Mode</property>
8622
- * <property name="name">picture</property>
8623
- * </object>
8624
- * </child>
8625
- * <child>
8626
- * <object class="AdwToggle">
8627
- * <property name="icon-name">camera-video-symbolic</property>
8628
- * <property name="tooltip" translatable="yes">Recording Mode</property>
8629
- * <property name="name">recording</property>
8630
- * </object>
8631
- * </child>
8632
- * </object>
8429
+ * <object class="AdwToggleGroup">
8430
+ * <property name="active-name">picture</property>
8431
+ * <child>
8432
+ * <object class="AdwToggle">
8433
+ * <property name="icon-name">camera-photo-symbolic</property>
8434
+ * <property name="tooltip" translatable="yes">Picture Mode</property>
8435
+ * <property name="name">picture</property>
8436
+ * </object>
8437
+ * </child>
8438
+ * <child>
8439
+ * <object class="AdwToggle">
8440
+ * <property name="icon-name">camera-video-symbolic</property>
8441
+ * <property name="tooltip" translatable="yes">Recording Mode</property>
8442
+ * <property name="name">recording</property>
8443
+ * </object>
8444
+ * </child>
8445
+ * </object>
8633
8446
  * ```
8634
8447
  *
8635
8448
  * See also: {@link AdwInlineViewSwitcher}.
@@ -8680,14 +8493,14 @@ export const AdwToggleGroup = "AdwToggleGroup";
8680
8493
  * Example of an `AdwToolbarView` UI definition:
8681
8494
  * ```xml
8682
8495
  * <object class="AdwToolbarView">
8683
- * <child type="top">
8684
- * <object class="AdwHeaderBar"/>
8685
- * </child>
8686
- * <property name="content">
8687
- * <object class="AdwPreferencesPage">
8688
- * <!-- ... -->
8689
- * </object>
8690
- * </property>
8496
+ * <child type="top">
8497
+ * <object class="AdwHeaderBar"/>
8498
+ * </child>
8499
+ * <property name="content">
8500
+ * <object class="AdwPreferencesPage">
8501
+ * <!-- ... -->
8502
+ * </object>
8503
+ * </property>
8691
8504
  * </object>
8692
8505
  * ```
8693
8506
  *
@@ -8751,21 +8564,7 @@ export const AdwToggleGroup = "AdwToggleGroup";
8751
8564
  *
8752
8565
  * `AdwToolbarView` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
8753
8566
  */
8754
- export const AdwToolbarView = {
8755
- Root: "AdwToolbarView.Root",
8756
- Content: "AdwToolbarView.Content",
8757
- Top: "AdwToolbarView.Top",
8758
- Bottom: "AdwToolbarView.Bottom",
8759
- };
8760
- function AdwViewStackRoot(props) {
8761
- return createElement("AdwViewStack.Root", props);
8762
- }
8763
- function AdwViewStackPage(props) {
8764
- return createElement("AdwViewStack.Page", props);
8765
- }
8766
- function AdwViewStackVisibleChild(props) {
8767
- return createElement("AdwViewStack.VisibleChild", props);
8768
- }
8567
+ export const AdwToolbarView = "AdwToolbarView";
8769
8568
  /**
8770
8569
  * A view container for {@link AdwViewSwitcher}.
8771
8570
  *
@@ -8800,19 +8599,19 @@ function AdwViewStackVisibleChild(props) {
8800
8599
  * property on it:
8801
8600
  *
8802
8601
  * ```xml
8803
- * <object class="AdwViewStack" id="stack">
8804
- * <child>
8805
- * <object class="AdwViewStackPage">
8806
- * <property name="name">overview</property>
8807
- * <property name="title">Overview</property>
8808
- * <property name="child">
8809
- * <object class="AdwStatusPage">
8810
- * <property name="title">Welcome!</property>
8811
- * </object>
8812
- * </property>
8813
- * </object>
8814
- * </child>
8815
- * </object>
8602
+ * <object class="AdwViewStack" id="stack">
8603
+ * <child>
8604
+ * <object class="AdwViewStackPage">
8605
+ * <property name="name">overview</property>
8606
+ * <property name="title">Overview</property>
8607
+ * <property name="child">
8608
+ * <object class="AdwStatusPage">
8609
+ * <property name="title">Welcome!</property>
8610
+ * </object>
8611
+ * </property>
8612
+ * </object>
8613
+ * </child>
8614
+ * </object>
8816
8615
  * ```
8817
8616
  *
8818
8617
  * ## CSS nodes
@@ -8824,11 +8623,7 @@ function AdwViewStackVisibleChild(props) {
8824
8623
  * `AdwViewStack` uses the `GTK_ACCESSIBLE_ROLE_TAB_PANEL` for the stack pages
8825
8624
  * which are the accessible parent objects of the child widgets.
8826
8625
  */
8827
- export const AdwViewStack = {
8828
- Root: AdwViewStackRoot,
8829
- Page: AdwViewStackPage,
8830
- VisibleChild: AdwViewStackVisibleChild,
8831
- };
8626
+ export const AdwViewStack = "AdwViewStack";
8832
8627
  /**
8833
8628
  * An adaptive view switcher.
8834
8629
  *
@@ -8849,35 +8644,35 @@ export const AdwViewStack = {
8849
8644
  *
8850
8645
  * ```xml
8851
8646
  * <object class="AdwWindow">
8852
- * <child>
8853
- * <object class="AdwBreakpoint">
8854
- * <condition>max-width: 550sp</condition>
8855
- * <setter object="switcher_bar" property="reveal">True</setter>
8856
- * <setter object="header_bar" property="title-widget"/>
8857
- * </object>
8858
- * </child>
8859
- * <property name="content">
8860
- * <object class="AdwToolbarView">
8861
- * <child type="top">
8862
- * <object class="AdwHeaderBar" id="header_bar">
8863
- * <property name="title-widget">
8864
- * <object class="AdwViewSwitcher">
8865
- * <property name="stack">stack</property>
8866
- * <property name="policy">wide</property>
8867
- * </object>
8868
- * </property>
8869
- * </object>
8870
- * </child>
8871
- * <property name="content">
8872
- * <object class="AdwViewStack" id="stack"/>
8873
- * </property>
8874
- * <child type="bottom">
8875
- * <object class="AdwViewSwitcherBar" id="switcher_bar">
8876
- * <property name="stack">stack</property>
8877
- * </object>
8878
- * </child>
8879
- * </object>
8880
- * </property>
8647
+ * <child>
8648
+ * <object class="AdwBreakpoint">
8649
+ * <condition>max-width: 550sp</condition>
8650
+ * <setter object="switcher_bar" property="reveal">True</setter>
8651
+ * <setter object="header_bar" property="title-widget"/>
8652
+ * </object>
8653
+ * </child>
8654
+ * <property name="content">
8655
+ * <object class="AdwToolbarView">
8656
+ * <child type="top">
8657
+ * <object class="AdwHeaderBar" id="header_bar">
8658
+ * <property name="title-widget">
8659
+ * <object class="AdwViewSwitcher">
8660
+ * <property name="stack">stack</property>
8661
+ * <property name="policy">wide</property>
8662
+ * </object>
8663
+ * </property>
8664
+ * </object>
8665
+ * </child>
8666
+ * <property name="content">
8667
+ * <object class="AdwViewStack" id="stack"/>
8668
+ * </property>
8669
+ * <child type="bottom">
8670
+ * <object class="AdwViewSwitcherBar" id="switcher_bar">
8671
+ * <property name="stack">stack</property>
8672
+ * </object>
8673
+ * </child>
8674
+ * </object>
8675
+ * </property>
8881
8676
  * </object>
8882
8677
  * ```
8883
8678
  *
@@ -8914,35 +8709,35 @@ export const AdwViewSwitcher = "AdwViewSwitcher";
8914
8709
  *
8915
8710
  * ```xml
8916
8711
  * <object class="AdwWindow">
8917
- * <child>
8918
- * <object class="AdwBreakpoint">
8919
- * <condition>max-width: 550sp</condition>
8920
- * <setter object="switcher_bar" property="reveal">True</setter>
8921
- * <setter object="header_bar" property="title-widget"/>
8922
- * </object>
8923
- * </child>
8924
- * <property name="content">
8925
- * <object class="AdwToolbarView">
8926
- * <child type="top">
8927
- * <object class="AdwHeaderBar" id="header_bar">
8928
- * <property name="title-widget">
8929
- * <object class="AdwViewSwitcher">
8930
- * <property name="stack">stack</property>
8931
- * <property name="policy">wide</property>
8932
- * </object>
8933
- * </property>
8934
- * </object>
8935
- * </child>
8936
- * <property name="content">
8937
- * <object class="AdwViewStack" id="stack"/>
8938
- * </property>
8939
- * <child type="bottom">
8940
- * <object class="AdwViewSwitcherBar" id="switcher_bar">
8941
- * <property name="stack">stack</property>
8942
- * </object>
8943
- * </child>
8944
- * </object>
8945
- * </property>
8712
+ * <child>
8713
+ * <object class="AdwBreakpoint">
8714
+ * <condition>max-width: 550sp</condition>
8715
+ * <setter object="switcher_bar" property="reveal">True</setter>
8716
+ * <setter object="header_bar" property="title-widget"/>
8717
+ * </object>
8718
+ * </child>
8719
+ * <property name="content">
8720
+ * <object class="AdwToolbarView">
8721
+ * <child type="top">
8722
+ * <object class="AdwHeaderBar" id="header_bar">
8723
+ * <property name="title-widget">
8724
+ * <object class="AdwViewSwitcher">
8725
+ * <property name="stack">stack</property>
8726
+ * <property name="policy">wide</property>
8727
+ * </object>
8728
+ * </property>
8729
+ * </object>
8730
+ * </child>
8731
+ * <property name="content">
8732
+ * <object class="AdwViewStack" id="stack"/>
8733
+ * </property>
8734
+ * <child type="bottom">
8735
+ * <object class="AdwViewSwitcherBar" id="switcher_bar">
8736
+ * <property name="stack">stack</property>
8737
+ * </object>
8738
+ * </child>
8739
+ * </object>
8740
+ * </property>
8946
8741
  * </object>
8947
8742
  * ```
8948
8743
  *
@@ -8982,31 +8777,31 @@ export const AdwViewSwitcherBar = "AdwViewSwitcherBar";
8982
8777
  *
8983
8778
  * ```xml
8984
8779
  * <object class="AdwWindow">
8985
- * <property name="content">
8986
- * <object class="AdwToolbarView">
8987
- * <child type="top">
8988
- * <object class="AdwHeaderBar">
8989
- * <property name="centering-policy">strict</property>
8990
- * <property name="title-widget">
8991
- * <object class="AdwViewSwitcherTitle" id="title">
8992
- * <property name="stack">stack</property>
8993
- * </object>
8994
- * </property>
8995
- * </object>
8996
- * </child>
8997
- * <property name="content">
8998
- * <object class="AdwViewStack" id="stack"/>
8999
- * </property>
9000
- * <child type="bottom">
9001
- * <object class="AdwViewSwitcherBar">
9002
- * <property name="stack">stack</property>
9003
- * <binding name="reveal">
9004
- * <lookup name="title-visible">title</lookup>
9005
- * </binding>
9006
- * </object>
9007
- * </child>
9008
- * </object>
9009
- * </property>
8780
+ * <property name="content">
8781
+ * <object class="AdwToolbarView">
8782
+ * <child type="top">
8783
+ * <object class="AdwHeaderBar">
8784
+ * <property name="centering-policy">strict</property>
8785
+ * <property name="title-widget">
8786
+ * <object class="AdwViewSwitcherTitle" id="title">
8787
+ * <property name="stack">stack</property>
8788
+ * </object>
8789
+ * </property>
8790
+ * </object>
8791
+ * </child>
8792
+ * <property name="content">
8793
+ * <object class="AdwViewStack" id="stack"/>
8794
+ * </property>
8795
+ * <child type="bottom">
8796
+ * <object class="AdwViewSwitcherBar">
8797
+ * <property name="stack">stack</property>
8798
+ * <binding name="reveal">
8799
+ * <lookup name="title-visible">title</lookup>
8800
+ * </binding>
8801
+ * </object>
8802
+ * </child>
8803
+ * </object>
8804
+ * </property>
9010
8805
  * </object>
9011
8806
  * ```
9012
8807
  *
@@ -9102,10 +8897,7 @@ export const AdwWrapBox = "AdwWrapBox";
9102
8897
  * how to convert data from their {@link GtkSourceCompletionProposal} to content for
9103
8898
  * the `GtkSourceCompletionCell`.
9104
8899
  */
9105
- export const GtkSourceCompletionCell = {
9106
- Root: "GtkSourceCompletionCell.Root",
9107
- Widget: "GtkSourceCompletionCell.Widget",
9108
- };
8900
+ export const GtkSourceCompletionCell = "GtkSourceCompletionCell";
9109
8901
  /**
9110
8902
  * Gutter object for {@link GtkSourceView}.
9111
8903
  *
@@ -9273,13 +9065,13 @@ export const GtkSourceStyleSchemePreview = "GtkSourceStyleSchemePreview";
9273
9065
  * An example of a UI definition fragment with GtkSourceView:
9274
9066
  * ```xml
9275
9067
  * <object class="GtkSourceView" id="source_view">
9276
- * <property name="tab-width">4</property>
9277
- * <property name="auto-indent">True</property>
9278
- * <child internal-child="completion">
9279
- * <object class="GtkSourceCompletion">
9280
- * <property name="select-on-show">False</property>
9281
- * </object>
9282
- * </child>
9068
+ * <property name="tab-width">4</property>
9069
+ * <property name="auto-indent">True</property>
9070
+ * <child internal-child="completion">
9071
+ * <object class="GtkSourceCompletion">
9072
+ * <property name="select-on-show">False</property>
9073
+ * </object>
9074
+ * </child>
9283
9075
  * </object>
9284
9076
  * ```
9285
9077
  *
@@ -9292,10 +9084,10 @@ export const GtkSourceStyleSchemePreview = "GtkSourceStyleSchemePreview";
9292
9084
  * ```c
9293
9085
  * GtkCssProvider *provider = gtk_css_provider_new ();
9294
9086
  * gtk_css_provider_load_from_string (provider,
9295
- * "textview { font-family: Monospace; font-size: 8pt; }");
9087
+ * "textview { font-family: Monospace; font-size: 8pt; }");
9296
9088
  * gtk_style_context_add_provider (gtk_widget_get_style_context (view),
9297
- * GTK_STYLE_PROVIDER (provider),
9298
- * GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
9089
+ * GTK_STYLE_PROVIDER (provider),
9090
+ * GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
9299
9091
  * g_object_unref (provider);
9300
9092
  * ```
9301
9093
  * ```python
@@ -9311,10 +9103,7 @@ export const GtkSourceStyleSchemePreview = "GtkSourceStyleSchemePreview";
9311
9103
  * the default font set in CSS.
9312
9104
  */
9313
9105
  export const GtkSourceView = "GtkSourceView";
9314
- export const VteTerminal = {
9315
- Root: "VteTerminal.Root",
9316
- ContextMenu: "VteTerminal.ContextMenu",
9317
- };
9106
+ export const VteTerminal = "VteTerminal";
9318
9107
  /**
9319
9108
  * The central class of the WPE WebKit and WebKitGTK APIs.
9320
9109
  *
@@ -9329,27 +9118,3 @@ export const VteTerminal = {
9329
9118
  */
9330
9119
  export const WebKitWebView = "WebKitWebView";
9331
9120
  export const WebKitWebViewBase = "WebKitWebViewBase";
9332
- /**
9333
- * Sets the application-wide menu bar.
9334
- * The menu will appear in the window's title bar on supported platforms.
9335
- * Use Menu.Item, Menu.Section, and Menu.Submenu as children.
9336
- */
9337
- export const ApplicationMenu = "ApplicationMenu";
9338
- function MenuItem(props) {
9339
- return createElement("Menu.Item", props);
9340
- }
9341
- function MenuSection(props) {
9342
- return createElement("Menu.Section", props);
9343
- }
9344
- function MenuSubmenu(props) {
9345
- return createElement("Menu.Submenu", props);
9346
- }
9347
- /**
9348
- * Declarative menu builder for use with PopoverMenu and ApplicationMenu.
9349
- * Use Menu.Item for action items, Menu.Section for groups, Menu.Submenu for nested menus.
9350
- */
9351
- export const Menu = {
9352
- Item: MenuItem,
9353
- Section: MenuSection,
9354
- Submenu: MenuSubmenu,
9355
- };