@gtkx/react 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/jsx.d.ts +1411 -1411
- package/dist/generated/jsx.js +1216 -1216
- package/package.json +4 -4
package/dist/generated/jsx.d.ts
CHANGED
|
@@ -99,37 +99,37 @@ export { ColumnViewColumnProps, ColumnViewRootProps, GridChildProps, ListItemPro
|
|
|
99
99
|
* ```c
|
|
100
100
|
* static void
|
|
101
101
|
* foo_widget_measure (GtkWidget *widget,
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
102
|
+
* GtkOrientation orientation,
|
|
103
|
+
* int for_size,
|
|
104
|
+
* int *minimum_size,
|
|
105
|
+
* int *natural_size,
|
|
106
|
+
* int *minimum_baseline,
|
|
107
|
+
* int *natural_baseline)
|
|
108
108
|
* {
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
109
|
+
* if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
|
110
|
+
* {
|
|
111
|
+
* // Calculate minimum and natural width
|
|
112
|
+
* }
|
|
113
|
+
* else // VERTICAL
|
|
114
|
+
* {
|
|
115
|
+
* if (i_am_in_height_for_width_mode)
|
|
116
|
+
* {
|
|
117
|
+
* int min_width, dummy;
|
|
118
|
+
*
|
|
119
|
+
* // First, get the minimum width of our widget
|
|
120
|
+
* GTK_WIDGET_GET_CLASS (widget)->measure (widget, GTK_ORIENTATION_HORIZONTAL, -1,
|
|
121
|
+
* &min_width, &dummy, &dummy, &dummy);
|
|
122
|
+
*
|
|
123
|
+
* // Now use the minimum width to retrieve the minimum and natural height to display
|
|
124
|
+
* // that width.
|
|
125
|
+
* GTK_WIDGET_GET_CLASS (widget)->measure (widget, GTK_ORIENTATION_VERTICAL, min_width,
|
|
126
|
+
* minimum_size, natural_size, &dummy, &dummy);
|
|
127
|
+
* }
|
|
128
|
+
* else
|
|
129
|
+
* {
|
|
130
|
+
* // ... some widgets do both.
|
|
131
|
+
* }
|
|
132
|
+
* }
|
|
133
133
|
* }
|
|
134
134
|
* ```
|
|
135
135
|
*
|
|
@@ -183,27 +183,27 @@ export { ColumnViewColumnProps, ColumnViewRootProps, GridChildProps, ListItemPro
|
|
|
183
183
|
*
|
|
184
184
|
* ```xml
|
|
185
185
|
* <object class="GtkGrid" id="my_grid">
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
186
|
+
* <child>
|
|
187
|
+
* <object class="GtkLabel" id="label1">
|
|
188
|
+
* <property name="label">Description</property>
|
|
189
|
+
* <layout>
|
|
190
|
+
* <property name="column">0</property>
|
|
191
|
+
* <property name="row">0</property>
|
|
192
|
+
* <property name="row-span">1</property>
|
|
193
|
+
* <property name="column-span">1</property>
|
|
194
|
+
* </layout>
|
|
195
|
+
* </object>
|
|
196
|
+
* </child>
|
|
197
|
+
* <child>
|
|
198
|
+
* <object class="GtkEntry" id="description_entry">
|
|
199
|
+
* <layout>
|
|
200
|
+
* <property name="column">1</property>
|
|
201
|
+
* <property name="row">0</property>
|
|
202
|
+
* <property name="row-span">1</property>
|
|
203
|
+
* <property name="column-span">1</property>
|
|
204
|
+
* </layout>
|
|
205
|
+
* </object>
|
|
206
|
+
* </child>
|
|
207
207
|
* </object>
|
|
208
208
|
* ```
|
|
209
209
|
*
|
|
@@ -212,10 +212,10 @@ export { ColumnViewColumnProps, ColumnViewRootProps, GridChildProps, ListItemPro
|
|
|
212
212
|
*
|
|
213
213
|
* ```xml
|
|
214
214
|
* <object class="GtkButton" id="button1">
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
215
|
+
* <style>
|
|
216
|
+
* <class name="my-special-button-class"/>
|
|
217
|
+
* <class name="dark-button"/>
|
|
218
|
+
* </style>
|
|
219
219
|
* </object>
|
|
220
220
|
* ```
|
|
221
221
|
*
|
|
@@ -224,10 +224,10 @@ export { ColumnViewColumnProps, ColumnViewRootProps, GridChildProps, ListItemPro
|
|
|
224
224
|
*
|
|
225
225
|
* ```xml
|
|
226
226
|
* <object class="GtkButton" id="button1">
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
227
|
+
* <accessibility>
|
|
228
|
+
* <property name="label">Download</property>
|
|
229
|
+
* <relation name="labelled-by">label1</relation>
|
|
230
|
+
* </accessibility>
|
|
231
231
|
* </object>
|
|
232
232
|
* ```
|
|
233
233
|
*
|
|
@@ -273,21 +273,21 @@ export { ColumnViewColumnProps, ColumnViewRootProps, GridChildProps, ListItemPro
|
|
|
273
273
|
*
|
|
274
274
|
* ```xml
|
|
275
275
|
* <interface>
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
279
|
-
*
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
276
|
+
* <template class="FooWidget" parent="GtkBox">
|
|
277
|
+
* <property name="orientation">horizontal</property>
|
|
278
|
+
* <property name="spacing">4</property>
|
|
279
|
+
* <child>
|
|
280
|
+
* <object class="GtkButton" id="hello_button">
|
|
281
|
+
* <property name="label">Hello World</property>
|
|
282
|
+
* <signal name="clicked" handler="hello_button_clicked" object="FooWidget" swapped="yes"/>
|
|
283
|
+
* </object>
|
|
284
|
+
* </child>
|
|
285
|
+
* <child>
|
|
286
|
+
* <object class="GtkButton" id="goodbye_button">
|
|
287
|
+
* <property name="label">Goodbye World</property>
|
|
288
|
+
* </object>
|
|
289
|
+
* </child>
|
|
290
|
+
* </template>
|
|
291
291
|
* </interface>
|
|
292
292
|
* ```
|
|
293
293
|
*
|
|
@@ -300,10 +300,10 @@ export { ColumnViewColumnProps, ColumnViewRootProps, GridChildProps, ListItemPro
|
|
|
300
300
|
* static void
|
|
301
301
|
* foo_widget_class_init (FooWidgetClass *klass)
|
|
302
302
|
* {
|
|
303
|
-
*
|
|
303
|
+
* // ...
|
|
304
304
|
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
305
|
+
* gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
|
|
306
|
+
* "/com/example/ui/foowidget.ui");
|
|
307
307
|
* }
|
|
308
308
|
* ```
|
|
309
309
|
*
|
|
@@ -314,9 +314,9 @@ export { ColumnViewColumnProps, ColumnViewRootProps, GridChildProps, ListItemPro
|
|
|
314
314
|
* static void
|
|
315
315
|
* foo_widget_init (FooWidget *self)
|
|
316
316
|
* {
|
|
317
|
-
*
|
|
317
|
+
* gtk_widget_init_template (GTK_WIDGET (self));
|
|
318
318
|
*
|
|
319
|
-
*
|
|
319
|
+
* // Initialize the rest of the widget...
|
|
320
320
|
* }
|
|
321
321
|
* ```
|
|
322
322
|
*
|
|
@@ -327,14 +327,14 @@ export { ColumnViewColumnProps, ColumnViewRootProps, GridChildProps, ListItemPro
|
|
|
327
327
|
* static void
|
|
328
328
|
* foo_widget_dispose (GObject *gobject)
|
|
329
329
|
* {
|
|
330
|
-
*
|
|
330
|
+
* FooWidget *self = FOO_WIDGET (gobject);
|
|
331
331
|
*
|
|
332
|
-
*
|
|
332
|
+
* // Dispose objects for which you have a reference...
|
|
333
333
|
*
|
|
334
|
-
*
|
|
335
|
-
*
|
|
334
|
+
* // Clear the template children for this widget type
|
|
335
|
+
* gtk_widget_dispose_template (GTK_WIDGET (self), FOO_TYPE_WIDGET);
|
|
336
336
|
*
|
|
337
|
-
*
|
|
337
|
+
* G_OBJECT_CLASS (foo_widget_parent_class)->dispose (gobject);
|
|
338
338
|
* }
|
|
339
339
|
* ```
|
|
340
340
|
*
|
|
@@ -348,8 +348,8 @@ export { ColumnViewColumnProps, ColumnViewRootProps, GridChildProps, ListItemPro
|
|
|
348
348
|
*
|
|
349
349
|
* ```c
|
|
350
350
|
* typedef struct {
|
|
351
|
-
*
|
|
352
|
-
*
|
|
351
|
+
* GtkWidget *hello_button;
|
|
352
|
+
* GtkWidget *goodbye_button;
|
|
353
353
|
* } FooWidgetPrivate;
|
|
354
354
|
*
|
|
355
355
|
* G_DEFINE_TYPE_WITH_PRIVATE (FooWidget, foo_widget, GTK_TYPE_BOX)
|
|
@@ -357,29 +357,29 @@ export { ColumnViewColumnProps, ColumnViewRootProps, GridChildProps, ListItemPro
|
|
|
357
357
|
* static void
|
|
358
358
|
* foo_widget_dispose (GObject *gobject)
|
|
359
359
|
* {
|
|
360
|
-
*
|
|
360
|
+
* gtk_widget_dispose_template (GTK_WIDGET (gobject), FOO_TYPE_WIDGET);
|
|
361
361
|
*
|
|
362
|
-
*
|
|
362
|
+
* G_OBJECT_CLASS (foo_widget_parent_class)->dispose (gobject);
|
|
363
363
|
* }
|
|
364
364
|
*
|
|
365
365
|
* static void
|
|
366
366
|
* foo_widget_class_init (FooWidgetClass *klass)
|
|
367
367
|
* {
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
*
|
|
368
|
+
* // ...
|
|
369
|
+
* G_OBJECT_CLASS (klass)->dispose = foo_widget_dispose;
|
|
370
|
+
*
|
|
371
|
+
* gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
|
|
372
|
+
* "/com/example/ui/foowidget.ui");
|
|
373
|
+
* gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass),
|
|
374
|
+
* FooWidget, hello_button);
|
|
375
|
+
* gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass),
|
|
376
|
+
* FooWidget, goodbye_button);
|
|
377
377
|
* }
|
|
378
378
|
*
|
|
379
379
|
* static void
|
|
380
380
|
* foo_widget_init (FooWidget *widget)
|
|
381
381
|
* {
|
|
382
|
-
*
|
|
382
|
+
* gtk_widget_init_template (GTK_WIDGET (widget));
|
|
383
383
|
* }
|
|
384
384
|
* ```
|
|
385
385
|
*
|
|
@@ -393,18 +393,18 @@ export { ColumnViewColumnProps, ColumnViewRootProps, GridChildProps, ListItemPro
|
|
|
393
393
|
* // because of the swapped="yes" attribute in the template XML
|
|
394
394
|
* static void
|
|
395
395
|
* hello_button_clicked (FooWidget *self,
|
|
396
|
-
*
|
|
396
|
+
* GtkButton *button)
|
|
397
397
|
* {
|
|
398
|
-
*
|
|
398
|
+
* g_print ("Hello, world!\n");
|
|
399
399
|
* }
|
|
400
400
|
*
|
|
401
401
|
* static void
|
|
402
402
|
* foo_widget_class_init (FooWidgetClass *klass)
|
|
403
403
|
* {
|
|
404
|
-
*
|
|
405
|
-
*
|
|
406
|
-
*
|
|
407
|
-
*
|
|
404
|
+
* // ...
|
|
405
|
+
* gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
|
|
406
|
+
* "/com/example/ui/foowidget.ui");
|
|
407
|
+
* gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (klass), hello_button_clicked);
|
|
408
408
|
* }
|
|
409
409
|
* ```
|
|
410
410
|
*/
|
|
@@ -1689,21 +1689,21 @@ export interface ComboBoxProps extends WidgetProps {
|
|
|
1689
1689
|
* ```c
|
|
1690
1690
|
* static char *
|
|
1691
1691
|
* format_entry_text_callback (GtkComboBox *combo,
|
|
1692
|
-
*
|
|
1693
|
-
*
|
|
1692
|
+
* const char *path,
|
|
1693
|
+
* gpointer user_data)
|
|
1694
1694
|
* {
|
|
1695
|
-
*
|
|
1696
|
-
*
|
|
1697
|
-
*
|
|
1695
|
+
* GtkTreeIter iter;
|
|
1696
|
+
* GtkTreeModel model;
|
|
1697
|
+
* double value;
|
|
1698
1698
|
*
|
|
1699
|
-
*
|
|
1699
|
+
* model = gtk_combo_box_get_model (combo);
|
|
1700
1700
|
*
|
|
1701
|
-
*
|
|
1702
|
-
*
|
|
1703
|
-
*
|
|
1704
|
-
*
|
|
1701
|
+
* gtk_tree_model_get_iter_from_string (model, &iter, path);
|
|
1702
|
+
* gtk_tree_model_get (model, &iter,
|
|
1703
|
+
* THE_DOUBLE_VALUE_COLUMN, &value,
|
|
1704
|
+
* -1);
|
|
1705
1705
|
*
|
|
1706
|
-
*
|
|
1706
|
+
* return g_strdup_printf ("%g", value);
|
|
1707
1707
|
* }
|
|
1708
1708
|
* ```
|
|
1709
1709
|
*/
|
|
@@ -5016,17 +5016,17 @@ export interface SpinButtonProps extends WidgetProps {
|
|
|
5016
5016
|
* // show leading zeros
|
|
5017
5017
|
* static gboolean
|
|
5018
5018
|
* on_output (GtkSpinButton *spin,
|
|
5019
|
-
*
|
|
5019
|
+
* gpointer data)
|
|
5020
5020
|
* {
|
|
5021
|
-
*
|
|
5022
|
-
*
|
|
5021
|
+
* char *text;
|
|
5022
|
+
* int value;
|
|
5023
5023
|
*
|
|
5024
|
-
*
|
|
5025
|
-
*
|
|
5026
|
-
*
|
|
5027
|
-
*
|
|
5024
|
+
* value = gtk_spin_button_get_value_as_int (spin);
|
|
5025
|
+
* text = g_strdup_printf ("%02d", value);
|
|
5026
|
+
* gtk_editable_set_text (GTK_EDITABLE (spin), text):
|
|
5027
|
+
* g_free (text);
|
|
5028
5028
|
*
|
|
5029
|
-
*
|
|
5029
|
+
* return TRUE;
|
|
5030
5030
|
* }
|
|
5031
5031
|
* ```
|
|
5032
5032
|
*/
|
|
@@ -9068,12 +9068,12 @@ export interface AdwTabViewProps extends WidgetProps {
|
|
|
9068
9068
|
* ```c
|
|
9069
9069
|
* static gboolean
|
|
9070
9070
|
* close_page_cb (AdwTabView *view,
|
|
9071
|
-
*
|
|
9072
|
-
*
|
|
9071
|
+
* AdwTabPage *page,
|
|
9072
|
+
* gpointer user_data)
|
|
9073
9073
|
* {
|
|
9074
|
-
*
|
|
9074
|
+
* adw_tab_view_close_page_finish (view, page, !adw_tab_page_get_pinned (page));
|
|
9075
9075
|
*
|
|
9076
|
-
*
|
|
9076
|
+
* return GDK_EVENT_STOP;
|
|
9077
9077
|
* }
|
|
9078
9078
|
* ```
|
|
9079
9079
|
*
|
|
@@ -10539,29 +10539,29 @@ export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
|
|
|
10539
10539
|
* ```c
|
|
10540
10540
|
* static gboolean
|
|
10541
10541
|
* decide_policy_cb (WebKitWebView *web_view,
|
|
10542
|
-
*
|
|
10543
|
-
*
|
|
10542
|
+
* WebKitPolicyDecision *decision,
|
|
10543
|
+
* WebKitPolicyDecisionType type)
|
|
10544
10544
|
* {
|
|
10545
|
-
*
|
|
10546
|
-
*
|
|
10547
|
-
*
|
|
10548
|
-
*
|
|
10549
|
-
*
|
|
10550
|
-
*
|
|
10551
|
-
*
|
|
10552
|
-
*
|
|
10553
|
-
*
|
|
10554
|
-
*
|
|
10555
|
-
*
|
|
10556
|
-
*
|
|
10557
|
-
*
|
|
10558
|
-
*
|
|
10559
|
-
*
|
|
10560
|
-
*
|
|
10561
|
-
*
|
|
10562
|
-
*
|
|
10563
|
-
*
|
|
10564
|
-
*
|
|
10545
|
+
* switch (type) {
|
|
10546
|
+
* case WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION: {
|
|
10547
|
+
* WebKitNavigationPolicyDecision *navigation_decision = WEBKIT_NAVIGATION_POLICY_DECISION (decision);
|
|
10548
|
+
* // Make a policy decision here
|
|
10549
|
+
* break;
|
|
10550
|
+
* }
|
|
10551
|
+
* case WEBKIT_POLICY_DECISION_TYPE_NEW_WINDOW_ACTION: {
|
|
10552
|
+
* WebKitNavigationPolicyDecision *navigation_decision = WEBKIT_NAVIGATION_POLICY_DECISION (decision);
|
|
10553
|
+
* // Make a policy decision here
|
|
10554
|
+
* break;
|
|
10555
|
+
* }
|
|
10556
|
+
* case WEBKIT_POLICY_DECISION_TYPE_RESPONSE:
|
|
10557
|
+
* WebKitResponsePolicyDecision *response = WEBKIT_RESPONSE_POLICY_DECISION (decision);
|
|
10558
|
+
* // Make a policy decision here
|
|
10559
|
+
* break;
|
|
10560
|
+
* default:
|
|
10561
|
+
* // Making no decision results in webkit_policy_decision_use()
|
|
10562
|
+
* return FALSE;
|
|
10563
|
+
* }
|
|
10564
|
+
* return TRUE;
|
|
10565
10565
|
* }
|
|
10566
10566
|
* ```
|
|
10567
10567
|
*
|
|
@@ -10616,30 +10616,30 @@ export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
|
|
|
10616
10616
|
*
|
|
10617
10617
|
* ```c
|
|
10618
10618
|
* static void web_view_load_changed (WebKitWebView *web_view,
|
|
10619
|
-
*
|
|
10620
|
-
*
|
|
10619
|
+
* WebKitLoadEvent load_event,
|
|
10620
|
+
* gpointer user_data)
|
|
10621
10621
|
* {
|
|
10622
|
-
*
|
|
10623
|
-
*
|
|
10624
|
-
*
|
|
10625
|
-
*
|
|
10626
|
-
*
|
|
10627
|
-
*
|
|
10628
|
-
*
|
|
10629
|
-
*
|
|
10630
|
-
*
|
|
10631
|
-
*
|
|
10632
|
-
*
|
|
10633
|
-
*
|
|
10634
|
-
*
|
|
10635
|
-
*
|
|
10636
|
-
*
|
|
10637
|
-
*
|
|
10638
|
-
*
|
|
10639
|
-
*
|
|
10640
|
-
*
|
|
10641
|
-
*
|
|
10642
|
-
*
|
|
10622
|
+
* switch (load_event) {
|
|
10623
|
+
* case WEBKIT_LOAD_STARTED:
|
|
10624
|
+
* // New load, we have now a provisional URI
|
|
10625
|
+
* provisional_uri = webkit_web_view_get_uri (web_view);
|
|
10626
|
+
* // Here we could start a spinner or update the
|
|
10627
|
+
* // location bar with the provisional URI
|
|
10628
|
+
* break;
|
|
10629
|
+
* case WEBKIT_LOAD_REDIRECTED:
|
|
10630
|
+
* redirected_uri = webkit_web_view_get_uri (web_view);
|
|
10631
|
+
* break;
|
|
10632
|
+
* case WEBKIT_LOAD_COMMITTED:
|
|
10633
|
+
* // The load is being performed. Current URI is
|
|
10634
|
+
* // the final one and it won't change unless a new
|
|
10635
|
+
* // load is requested or a navigation within the
|
|
10636
|
+
* // same page is performed
|
|
10637
|
+
* uri = webkit_web_view_get_uri (web_view);
|
|
10638
|
+
* break;
|
|
10639
|
+
* case WEBKIT_LOAD_FINISHED:
|
|
10640
|
+
* // Load finished, we can now stop the spinner
|
|
10641
|
+
* break;
|
|
10642
|
+
* }
|
|
10643
10643
|
* }
|
|
10644
10644
|
* ```
|
|
10645
10645
|
*/
|
|
@@ -10691,28 +10691,28 @@ export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
|
|
|
10691
10691
|
*
|
|
10692
10692
|
* ```c
|
|
10693
10693
|
* static gboolean permission_request_cb (WebKitWebView *web_view,
|
|
10694
|
-
*
|
|
10695
|
-
*
|
|
10694
|
+
* WebKitPermissionRequest *request,
|
|
10695
|
+
* GtkWindow *parent_window)
|
|
10696
10696
|
* {
|
|
10697
|
-
*
|
|
10698
|
-
*
|
|
10699
|
-
*
|
|
10700
|
-
*
|
|
10701
|
-
*
|
|
10702
|
-
*
|
|
10703
|
-
*
|
|
10704
|
-
*
|
|
10705
|
-
*
|
|
10706
|
-
*
|
|
10707
|
-
*
|
|
10708
|
-
*
|
|
10709
|
-
*
|
|
10710
|
-
*
|
|
10711
|
-
*
|
|
10712
|
-
*
|
|
10713
|
-
*
|
|
10714
|
-
*
|
|
10715
|
-
*
|
|
10697
|
+
* GtkWidget *dialog = gtk_message_dialog_new (parent_window,
|
|
10698
|
+
* GTK_DIALOG_MODAL,
|
|
10699
|
+
* GTK_MESSAGE_QUESTION,
|
|
10700
|
+
* GTK_BUTTONS_YES_NO,
|
|
10701
|
+
* "Allow Permission Request?");
|
|
10702
|
+
* gtk_widget_show (dialog);
|
|
10703
|
+
* gint result = gtk_dialog_run (GTK_DIALOG (dialog));
|
|
10704
|
+
*
|
|
10705
|
+
* switch (result) {
|
|
10706
|
+
* case GTK_RESPONSE_YES:
|
|
10707
|
+
* webkit_permission_request_allow (request);
|
|
10708
|
+
* break;
|
|
10709
|
+
* default:
|
|
10710
|
+
* webkit_permission_request_deny (request);
|
|
10711
|
+
* break;
|
|
10712
|
+
* }
|
|
10713
|
+
* gtk_widget_destroy (dialog);
|
|
10714
|
+
*
|
|
10715
|
+
* return TRUE;
|
|
10716
10716
|
* }
|
|
10717
10717
|
* ```
|
|
10718
10718
|
*
|
|
@@ -10984,37 +10984,37 @@ export interface WebKitWebViewBaseProps extends WidgetProps {
|
|
|
10984
10984
|
* ```c
|
|
10985
10985
|
* static void
|
|
10986
10986
|
* foo_widget_measure (GtkWidget *widget,
|
|
10987
|
-
*
|
|
10988
|
-
*
|
|
10989
|
-
*
|
|
10990
|
-
*
|
|
10991
|
-
*
|
|
10992
|
-
*
|
|
10987
|
+
* GtkOrientation orientation,
|
|
10988
|
+
* int for_size,
|
|
10989
|
+
* int *minimum_size,
|
|
10990
|
+
* int *natural_size,
|
|
10991
|
+
* int *minimum_baseline,
|
|
10992
|
+
* int *natural_baseline)
|
|
10993
10993
|
* {
|
|
10994
|
-
*
|
|
10995
|
-
*
|
|
10996
|
-
*
|
|
10997
|
-
*
|
|
10998
|
-
*
|
|
10999
|
-
*
|
|
11000
|
-
*
|
|
11001
|
-
*
|
|
11002
|
-
*
|
|
11003
|
-
*
|
|
11004
|
-
*
|
|
11005
|
-
*
|
|
11006
|
-
*
|
|
11007
|
-
*
|
|
11008
|
-
*
|
|
11009
|
-
*
|
|
11010
|
-
*
|
|
11011
|
-
*
|
|
11012
|
-
*
|
|
11013
|
-
*
|
|
11014
|
-
*
|
|
11015
|
-
*
|
|
11016
|
-
*
|
|
11017
|
-
*
|
|
10994
|
+
* if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
|
10995
|
+
* {
|
|
10996
|
+
* // Calculate minimum and natural width
|
|
10997
|
+
* }
|
|
10998
|
+
* else // VERTICAL
|
|
10999
|
+
* {
|
|
11000
|
+
* if (i_am_in_height_for_width_mode)
|
|
11001
|
+
* {
|
|
11002
|
+
* int min_width, dummy;
|
|
11003
|
+
*
|
|
11004
|
+
* // First, get the minimum width of our widget
|
|
11005
|
+
* GTK_WIDGET_GET_CLASS (widget)->measure (widget, GTK_ORIENTATION_HORIZONTAL, -1,
|
|
11006
|
+
* &min_width, &dummy, &dummy, &dummy);
|
|
11007
|
+
*
|
|
11008
|
+
* // Now use the minimum width to retrieve the minimum and natural height to display
|
|
11009
|
+
* // that width.
|
|
11010
|
+
* GTK_WIDGET_GET_CLASS (widget)->measure (widget, GTK_ORIENTATION_VERTICAL, min_width,
|
|
11011
|
+
* minimum_size, natural_size, &dummy, &dummy);
|
|
11012
|
+
* }
|
|
11013
|
+
* else
|
|
11014
|
+
* {
|
|
11015
|
+
* // ... some widgets do both.
|
|
11016
|
+
* }
|
|
11017
|
+
* }
|
|
11018
11018
|
* }
|
|
11019
11019
|
* ```
|
|
11020
11020
|
*
|
|
@@ -11068,27 +11068,27 @@ export interface WebKitWebViewBaseProps extends WidgetProps {
|
|
|
11068
11068
|
*
|
|
11069
11069
|
* ```xml
|
|
11070
11070
|
* <object class="GtkGrid" id="my_grid">
|
|
11071
|
-
*
|
|
11072
|
-
*
|
|
11073
|
-
*
|
|
11074
|
-
*
|
|
11075
|
-
*
|
|
11076
|
-
*
|
|
11077
|
-
*
|
|
11078
|
-
*
|
|
11079
|
-
*
|
|
11080
|
-
*
|
|
11081
|
-
*
|
|
11082
|
-
*
|
|
11083
|
-
*
|
|
11084
|
-
*
|
|
11085
|
-
*
|
|
11086
|
-
*
|
|
11087
|
-
*
|
|
11088
|
-
*
|
|
11089
|
-
*
|
|
11090
|
-
*
|
|
11091
|
-
*
|
|
11071
|
+
* <child>
|
|
11072
|
+
* <object class="GtkLabel" id="label1">
|
|
11073
|
+
* <property name="label">Description</property>
|
|
11074
|
+
* <layout>
|
|
11075
|
+
* <property name="column">0</property>
|
|
11076
|
+
* <property name="row">0</property>
|
|
11077
|
+
* <property name="row-span">1</property>
|
|
11078
|
+
* <property name="column-span">1</property>
|
|
11079
|
+
* </layout>
|
|
11080
|
+
* </object>
|
|
11081
|
+
* </child>
|
|
11082
|
+
* <child>
|
|
11083
|
+
* <object class="GtkEntry" id="description_entry">
|
|
11084
|
+
* <layout>
|
|
11085
|
+
* <property name="column">1</property>
|
|
11086
|
+
* <property name="row">0</property>
|
|
11087
|
+
* <property name="row-span">1</property>
|
|
11088
|
+
* <property name="column-span">1</property>
|
|
11089
|
+
* </layout>
|
|
11090
|
+
* </object>
|
|
11091
|
+
* </child>
|
|
11092
11092
|
* </object>
|
|
11093
11093
|
* ```
|
|
11094
11094
|
*
|
|
@@ -11097,10 +11097,10 @@ export interface WebKitWebViewBaseProps extends WidgetProps {
|
|
|
11097
11097
|
*
|
|
11098
11098
|
* ```xml
|
|
11099
11099
|
* <object class="GtkButton" id="button1">
|
|
11100
|
-
*
|
|
11101
|
-
*
|
|
11102
|
-
*
|
|
11103
|
-
*
|
|
11100
|
+
* <style>
|
|
11101
|
+
* <class name="my-special-button-class"/>
|
|
11102
|
+
* <class name="dark-button"/>
|
|
11103
|
+
* </style>
|
|
11104
11104
|
* </object>
|
|
11105
11105
|
* ```
|
|
11106
11106
|
*
|
|
@@ -11109,10 +11109,10 @@ export interface WebKitWebViewBaseProps extends WidgetProps {
|
|
|
11109
11109
|
*
|
|
11110
11110
|
* ```xml
|
|
11111
11111
|
* <object class="GtkButton" id="button1">
|
|
11112
|
-
*
|
|
11113
|
-
*
|
|
11114
|
-
*
|
|
11115
|
-
*
|
|
11112
|
+
* <accessibility>
|
|
11113
|
+
* <property name="label">Download</property>
|
|
11114
|
+
* <relation name="labelled-by">label1</relation>
|
|
11115
|
+
* </accessibility>
|
|
11116
11116
|
* </object>
|
|
11117
11117
|
* ```
|
|
11118
11118
|
*
|
|
@@ -11158,21 +11158,21 @@ export interface WebKitWebViewBaseProps extends WidgetProps {
|
|
|
11158
11158
|
*
|
|
11159
11159
|
* ```xml
|
|
11160
11160
|
* <interface>
|
|
11161
|
-
*
|
|
11162
|
-
*
|
|
11163
|
-
*
|
|
11164
|
-
*
|
|
11165
|
-
*
|
|
11166
|
-
*
|
|
11167
|
-
*
|
|
11168
|
-
*
|
|
11169
|
-
*
|
|
11170
|
-
*
|
|
11171
|
-
*
|
|
11172
|
-
*
|
|
11173
|
-
*
|
|
11174
|
-
*
|
|
11175
|
-
*
|
|
11161
|
+
* <template class="FooWidget" parent="GtkBox">
|
|
11162
|
+
* <property name="orientation">horizontal</property>
|
|
11163
|
+
* <property name="spacing">4</property>
|
|
11164
|
+
* <child>
|
|
11165
|
+
* <object class="GtkButton" id="hello_button">
|
|
11166
|
+
* <property name="label">Hello World</property>
|
|
11167
|
+
* <signal name="clicked" handler="hello_button_clicked" object="FooWidget" swapped="yes"/>
|
|
11168
|
+
* </object>
|
|
11169
|
+
* </child>
|
|
11170
|
+
* <child>
|
|
11171
|
+
* <object class="GtkButton" id="goodbye_button">
|
|
11172
|
+
* <property name="label">Goodbye World</property>
|
|
11173
|
+
* </object>
|
|
11174
|
+
* </child>
|
|
11175
|
+
* </template>
|
|
11176
11176
|
* </interface>
|
|
11177
11177
|
* ```
|
|
11178
11178
|
*
|
|
@@ -11185,10 +11185,10 @@ export interface WebKitWebViewBaseProps extends WidgetProps {
|
|
|
11185
11185
|
* static void
|
|
11186
11186
|
* foo_widget_class_init (FooWidgetClass *klass)
|
|
11187
11187
|
* {
|
|
11188
|
-
*
|
|
11188
|
+
* // ...
|
|
11189
11189
|
*
|
|
11190
|
-
*
|
|
11191
|
-
*
|
|
11190
|
+
* gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
|
|
11191
|
+
* "/com/example/ui/foowidget.ui");
|
|
11192
11192
|
* }
|
|
11193
11193
|
* ```
|
|
11194
11194
|
*
|
|
@@ -11199,9 +11199,9 @@ export interface WebKitWebViewBaseProps extends WidgetProps {
|
|
|
11199
11199
|
* static void
|
|
11200
11200
|
* foo_widget_init (FooWidget *self)
|
|
11201
11201
|
* {
|
|
11202
|
-
*
|
|
11202
|
+
* gtk_widget_init_template (GTK_WIDGET (self));
|
|
11203
11203
|
*
|
|
11204
|
-
*
|
|
11204
|
+
* // Initialize the rest of the widget...
|
|
11205
11205
|
* }
|
|
11206
11206
|
* ```
|
|
11207
11207
|
*
|
|
@@ -11212,14 +11212,14 @@ export interface WebKitWebViewBaseProps extends WidgetProps {
|
|
|
11212
11212
|
* static void
|
|
11213
11213
|
* foo_widget_dispose (GObject *gobject)
|
|
11214
11214
|
* {
|
|
11215
|
-
*
|
|
11215
|
+
* FooWidget *self = FOO_WIDGET (gobject);
|
|
11216
11216
|
*
|
|
11217
|
-
*
|
|
11217
|
+
* // Dispose objects for which you have a reference...
|
|
11218
11218
|
*
|
|
11219
|
-
*
|
|
11220
|
-
*
|
|
11219
|
+
* // Clear the template children for this widget type
|
|
11220
|
+
* gtk_widget_dispose_template (GTK_WIDGET (self), FOO_TYPE_WIDGET);
|
|
11221
11221
|
*
|
|
11222
|
-
*
|
|
11222
|
+
* G_OBJECT_CLASS (foo_widget_parent_class)->dispose (gobject);
|
|
11223
11223
|
* }
|
|
11224
11224
|
* ```
|
|
11225
11225
|
*
|
|
@@ -11233,8 +11233,8 @@ export interface WebKitWebViewBaseProps extends WidgetProps {
|
|
|
11233
11233
|
*
|
|
11234
11234
|
* ```c
|
|
11235
11235
|
* typedef struct {
|
|
11236
|
-
*
|
|
11237
|
-
*
|
|
11236
|
+
* GtkWidget *hello_button;
|
|
11237
|
+
* GtkWidget *goodbye_button;
|
|
11238
11238
|
* } FooWidgetPrivate;
|
|
11239
11239
|
*
|
|
11240
11240
|
* G_DEFINE_TYPE_WITH_PRIVATE (FooWidget, foo_widget, GTK_TYPE_BOX)
|
|
@@ -11242,29 +11242,29 @@ export interface WebKitWebViewBaseProps extends WidgetProps {
|
|
|
11242
11242
|
* static void
|
|
11243
11243
|
* foo_widget_dispose (GObject *gobject)
|
|
11244
11244
|
* {
|
|
11245
|
-
*
|
|
11245
|
+
* gtk_widget_dispose_template (GTK_WIDGET (gobject), FOO_TYPE_WIDGET);
|
|
11246
11246
|
*
|
|
11247
|
-
*
|
|
11247
|
+
* G_OBJECT_CLASS (foo_widget_parent_class)->dispose (gobject);
|
|
11248
11248
|
* }
|
|
11249
11249
|
*
|
|
11250
11250
|
* static void
|
|
11251
11251
|
* foo_widget_class_init (FooWidgetClass *klass)
|
|
11252
11252
|
* {
|
|
11253
|
-
*
|
|
11254
|
-
*
|
|
11255
|
-
*
|
|
11256
|
-
*
|
|
11257
|
-
*
|
|
11258
|
-
*
|
|
11259
|
-
*
|
|
11260
|
-
*
|
|
11261
|
-
*
|
|
11253
|
+
* // ...
|
|
11254
|
+
* G_OBJECT_CLASS (klass)->dispose = foo_widget_dispose;
|
|
11255
|
+
*
|
|
11256
|
+
* gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
|
|
11257
|
+
* "/com/example/ui/foowidget.ui");
|
|
11258
|
+
* gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass),
|
|
11259
|
+
* FooWidget, hello_button);
|
|
11260
|
+
* gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass),
|
|
11261
|
+
* FooWidget, goodbye_button);
|
|
11262
11262
|
* }
|
|
11263
11263
|
*
|
|
11264
11264
|
* static void
|
|
11265
11265
|
* foo_widget_init (FooWidget *widget)
|
|
11266
11266
|
* {
|
|
11267
|
-
*
|
|
11267
|
+
* gtk_widget_init_template (GTK_WIDGET (widget));
|
|
11268
11268
|
* }
|
|
11269
11269
|
* ```
|
|
11270
11270
|
*
|
|
@@ -11278,18 +11278,18 @@ export interface WebKitWebViewBaseProps extends WidgetProps {
|
|
|
11278
11278
|
* // because of the swapped="yes" attribute in the template XML
|
|
11279
11279
|
* static void
|
|
11280
11280
|
* hello_button_clicked (FooWidget *self,
|
|
11281
|
-
*
|
|
11281
|
+
* GtkButton *button)
|
|
11282
11282
|
* {
|
|
11283
|
-
*
|
|
11283
|
+
* g_print ("Hello, world!\n");
|
|
11284
11284
|
* }
|
|
11285
11285
|
*
|
|
11286
11286
|
* static void
|
|
11287
11287
|
* foo_widget_class_init (FooWidgetClass *klass)
|
|
11288
11288
|
* {
|
|
11289
|
-
*
|
|
11290
|
-
*
|
|
11291
|
-
*
|
|
11292
|
-
*
|
|
11289
|
+
* // ...
|
|
11290
|
+
* gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
|
|
11291
|
+
* "/com/example/ui/foowidget.ui");
|
|
11292
|
+
* gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (klass), hello_button_clicked);
|
|
11293
11293
|
* }
|
|
11294
11294
|
* ```
|
|
11295
11295
|
*/
|
|
@@ -11412,10 +11412,10 @@ export declare const Window: {
|
|
|
11412
11412
|
* g_object_unref (logo_file);
|
|
11413
11413
|
*
|
|
11414
11414
|
* gtk_show_about_dialog (NULL,
|
|
11415
|
-
*
|
|
11416
|
-
*
|
|
11417
|
-
*
|
|
11418
|
-
*
|
|
11415
|
+
* "program-name", "ExampleCode",
|
|
11416
|
+
* "logo", example_logo,
|
|
11417
|
+
* "title", _("About ExampleCode"),
|
|
11418
|
+
* NULL);
|
|
11419
11419
|
* ```
|
|
11420
11420
|
*
|
|
11421
11421
|
* ## Shortcuts and Gestures
|
|
@@ -11455,12 +11455,12 @@ export declare const AboutDialog: "AboutDialog";
|
|
|
11455
11455
|
* ```
|
|
11456
11456
|
* actionbar
|
|
11457
11457
|
* ╰── revealer
|
|
11458
|
-
*
|
|
11459
|
-
*
|
|
11460
|
-
*
|
|
11461
|
-
*
|
|
11462
|
-
*
|
|
11463
|
-
*
|
|
11458
|
+
* ╰── box
|
|
11459
|
+
* ├── box.start
|
|
11460
|
+
* │ ╰── [start children]
|
|
11461
|
+
* ├── [center widget]
|
|
11462
|
+
* ╰── box.end
|
|
11463
|
+
* ╰── [end children]
|
|
11464
11464
|
* ```
|
|
11465
11465
|
*
|
|
11466
11466
|
* A `GtkActionBar`'s CSS node is called `actionbar`. It contains a `revealer`
|
|
@@ -11592,22 +11592,22 @@ export declare const AppChooserWidget: "AppChooserWidget";
|
|
|
11592
11592
|
* GtkApplication *app = gtk_application_new ("org.gtk.test", 0);
|
|
11593
11593
|
*
|
|
11594
11594
|
* GtkBuilder *builder = gtk_builder_new_from_string (
|
|
11595
|
-
*
|
|
11596
|
-
*
|
|
11597
|
-
*
|
|
11598
|
-
*
|
|
11599
|
-
*
|
|
11600
|
-
*
|
|
11601
|
-
*
|
|
11602
|
-
*
|
|
11603
|
-
*
|
|
11604
|
-
*
|
|
11605
|
-
*
|
|
11606
|
-
*
|
|
11607
|
-
*
|
|
11608
|
-
*
|
|
11609
|
-
*
|
|
11610
|
-
*
|
|
11595
|
+
* "<interface>"
|
|
11596
|
+
* " <menu id='menubar'>"
|
|
11597
|
+
* " <submenu>"
|
|
11598
|
+
* " <attribute name='label' translatable='yes'>_Edit</attribute>"
|
|
11599
|
+
* " <item>"
|
|
11600
|
+
* " <attribute name='label' translatable='yes'>_Copy</attribute>"
|
|
11601
|
+
* " <attribute name='action'>win.copy</attribute>"
|
|
11602
|
+
* " </item>"
|
|
11603
|
+
* " <item>"
|
|
11604
|
+
* " <attribute name='label' translatable='yes'>_Paste</attribute>"
|
|
11605
|
+
* " <attribute name='action'>win.paste</attribute>"
|
|
11606
|
+
* " </item>"
|
|
11607
|
+
* " </submenu>"
|
|
11608
|
+
* " </menu>"
|
|
11609
|
+
* "</interface>",
|
|
11610
|
+
* -1);
|
|
11611
11611
|
*
|
|
11612
11612
|
* GMenuModel *menubar = G_MENU_MODEL (gtk_builder_get_object (builder, "menubar"));
|
|
11613
11613
|
* gtk_application_set_menubar (GTK_APPLICATION (app), menubar);
|
|
@@ -11790,7 +11790,7 @@ export declare const Button: "Button";
|
|
|
11790
11790
|
* │ ├── label.year
|
|
11791
11791
|
* │ ╰── button
|
|
11792
11792
|
* ╰── grid
|
|
11793
|
-
*
|
|
11793
|
+
* ╰── label[.day-name][.week-number][.day-number][.other-month][.today]
|
|
11794
11794
|
* ```
|
|
11795
11795
|
*
|
|
11796
11796
|
* `GtkCalendar` has a main node with name calendar. It contains a subnode
|
|
@@ -11954,7 +11954,7 @@ export declare const CheckButton: {
|
|
|
11954
11954
|
* ```
|
|
11955
11955
|
* colorbutton
|
|
11956
11956
|
* ╰── button.color
|
|
11957
|
-
*
|
|
11957
|
+
* ╰── [content]
|
|
11958
11958
|
* ```
|
|
11959
11959
|
*
|
|
11960
11960
|
* `GtkColorButton` has a single CSS node with name colorbutton which
|
|
@@ -12031,7 +12031,7 @@ export declare const ColorChooserWidget: "ColorChooserWidget";
|
|
|
12031
12031
|
* ```
|
|
12032
12032
|
* colorbutton
|
|
12033
12033
|
* ╰── button.color
|
|
12034
|
-
*
|
|
12034
|
+
* ╰── [content]
|
|
12035
12035
|
* ```
|
|
12036
12036
|
*
|
|
12037
12037
|
* `GtkColorDialogButton` has a single CSS node with name colorbutton which
|
|
@@ -12225,11 +12225,11 @@ export declare const ComboBox: "ComboBox";
|
|
|
12225
12225
|
* Here is a UI definition fragment specifying `GtkComboBoxText` items:
|
|
12226
12226
|
* ```xml
|
|
12227
12227
|
* <object class="GtkComboBoxText">
|
|
12228
|
-
*
|
|
12229
|
-
*
|
|
12230
|
-
*
|
|
12231
|
-
*
|
|
12232
|
-
*
|
|
12228
|
+
* <items>
|
|
12229
|
+
* <item translatable="yes" id="factory">Factory</item>
|
|
12230
|
+
* <item translatable="yes" id="home">Home</item>
|
|
12231
|
+
* <item translatable="yes" id="subway">Subway</item>
|
|
12232
|
+
* </items>
|
|
12233
12233
|
* </object>
|
|
12234
12234
|
* ```
|
|
12235
12235
|
*
|
|
@@ -12238,9 +12238,9 @@ export declare const ComboBox: "ComboBox";
|
|
|
12238
12238
|
* ```
|
|
12239
12239
|
* combobox
|
|
12240
12240
|
* ╰── box.linked
|
|
12241
|
-
*
|
|
12242
|
-
*
|
|
12243
|
-
*
|
|
12241
|
+
* ├── entry.combo
|
|
12242
|
+
* ├── button.combo
|
|
12243
|
+
* ╰── window.popup
|
|
12244
12244
|
* ```
|
|
12245
12245
|
*
|
|
12246
12246
|
* `GtkComboBoxText` has a single CSS node with name combobox. It adds
|
|
@@ -12303,31 +12303,31 @@ export declare const ComboBoxText: "ComboBoxText";
|
|
|
12303
12303
|
* void
|
|
12304
12304
|
* quick_message (GtkWindow *parent, char *message)
|
|
12305
12305
|
* {
|
|
12306
|
-
*
|
|
12307
|
-
*
|
|
12308
|
-
*
|
|
12309
|
-
*
|
|
12310
|
-
*
|
|
12311
|
-
*
|
|
12312
|
-
*
|
|
12313
|
-
*
|
|
12314
|
-
*
|
|
12315
|
-
*
|
|
12316
|
-
*
|
|
12317
|
-
*
|
|
12318
|
-
*
|
|
12319
|
-
*
|
|
12320
|
-
*
|
|
12321
|
-
*
|
|
12322
|
-
*
|
|
12323
|
-
*
|
|
12324
|
-
*
|
|
12325
|
-
*
|
|
12326
|
-
*
|
|
12327
|
-
*
|
|
12328
|
-
*
|
|
12329
|
-
*
|
|
12330
|
-
*
|
|
12306
|
+
* GtkWidget *dialog, *label, *content_area;
|
|
12307
|
+
* GtkDialogFlags flags;
|
|
12308
|
+
*
|
|
12309
|
+
* // Create the widgets
|
|
12310
|
+
* flags = GTK_DIALOG_DESTROY_WITH_PARENT;
|
|
12311
|
+
* dialog = gtk_dialog_new_with_buttons ("Message",
|
|
12312
|
+
* parent,
|
|
12313
|
+
* flags,
|
|
12314
|
+
* _("_OK"),
|
|
12315
|
+
* GTK_RESPONSE_NONE,
|
|
12316
|
+
* NULL);
|
|
12317
|
+
* content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
|
|
12318
|
+
* label = gtk_label_new (message);
|
|
12319
|
+
*
|
|
12320
|
+
* // Ensure that the dialog box is destroyed when the user responds
|
|
12321
|
+
*
|
|
12322
|
+
* g_signal_connect_swapped (dialog,
|
|
12323
|
+
* "response",
|
|
12324
|
+
* G_CALLBACK (gtk_window_destroy),
|
|
12325
|
+
* dialog);
|
|
12326
|
+
*
|
|
12327
|
+
* // Add the label, and show everything we’ve added
|
|
12328
|
+
*
|
|
12329
|
+
* gtk_box_append (GTK_BOX (content_area), label);
|
|
12330
|
+
* gtk_widget_show (dialog);
|
|
12331
12331
|
* }
|
|
12332
12332
|
* ```
|
|
12333
12333
|
*
|
|
@@ -12353,17 +12353,17 @@ export declare const ComboBoxText: "ComboBoxText";
|
|
|
12353
12353
|
*
|
|
12354
12354
|
* ```xml
|
|
12355
12355
|
* <object class="GtkDialog" id="dialog1">
|
|
12356
|
-
*
|
|
12357
|
-
*
|
|
12358
|
-
*
|
|
12359
|
-
*
|
|
12360
|
-
*
|
|
12361
|
-
*
|
|
12362
|
-
*
|
|
12363
|
-
*
|
|
12364
|
-
*
|
|
12365
|
-
*
|
|
12366
|
-
*
|
|
12356
|
+
* <child type="action">
|
|
12357
|
+
* <object class="GtkButton" id="button_cancel"/>
|
|
12358
|
+
* </child>
|
|
12359
|
+
* <child type="action">
|
|
12360
|
+
* <object class="GtkButton" id="button_ok">
|
|
12361
|
+
* </object>
|
|
12362
|
+
* </child>
|
|
12363
|
+
* <action-widgets>
|
|
12364
|
+
* <action-widget response="cancel">button_cancel</action-widget>
|
|
12365
|
+
* <action-widget response="ok" default="true">button_ok</action-widget>
|
|
12366
|
+
* </action-widgets>
|
|
12367
12367
|
* </object>
|
|
12368
12368
|
* ```
|
|
12369
12369
|
*
|
|
@@ -12413,37 +12413,37 @@ export declare const DragIcon: "DragIcon";
|
|
|
12413
12413
|
* ```c
|
|
12414
12414
|
* static void
|
|
12415
12415
|
* draw_function (GtkDrawingArea *area,
|
|
12416
|
-
*
|
|
12417
|
-
*
|
|
12418
|
-
*
|
|
12419
|
-
*
|
|
12416
|
+
* cairo_t *cr,
|
|
12417
|
+
* int width,
|
|
12418
|
+
* int height,
|
|
12419
|
+
* gpointer data)
|
|
12420
12420
|
* {
|
|
12421
|
-
*
|
|
12421
|
+
* GdkRGBA color;
|
|
12422
12422
|
*
|
|
12423
|
-
*
|
|
12424
|
-
*
|
|
12425
|
-
*
|
|
12426
|
-
*
|
|
12423
|
+
* cairo_arc (cr,
|
|
12424
|
+
* width / 2.0, height / 2.0,
|
|
12425
|
+
* MIN (width, height) / 2.0,
|
|
12426
|
+
* 0, 2 * G_PI);
|
|
12427
12427
|
*
|
|
12428
|
-
*
|
|
12429
|
-
*
|
|
12430
|
-
*
|
|
12428
|
+
* gtk_widget_get_color (GTK_WIDGET (area),
|
|
12429
|
+
* &color);
|
|
12430
|
+
* gdk_cairo_set_source_rgba (cr, &color);
|
|
12431
12431
|
*
|
|
12432
|
-
*
|
|
12432
|
+
* cairo_fill (cr);
|
|
12433
12433
|
* }
|
|
12434
12434
|
*
|
|
12435
12435
|
* int
|
|
12436
12436
|
* main (int argc, char **argv)
|
|
12437
12437
|
* {
|
|
12438
|
-
*
|
|
12439
|
-
*
|
|
12440
|
-
*
|
|
12441
|
-
*
|
|
12442
|
-
*
|
|
12443
|
-
*
|
|
12444
|
-
*
|
|
12445
|
-
*
|
|
12446
|
-
*
|
|
12438
|
+
* gtk_init ();
|
|
12439
|
+
*
|
|
12440
|
+
* GtkWidget *area = gtk_drawing_area_new ();
|
|
12441
|
+
* gtk_drawing_area_set_content_width (GTK_DRAWING_AREA (area), 100);
|
|
12442
|
+
* gtk_drawing_area_set_content_height (GTK_DRAWING_AREA (area), 100);
|
|
12443
|
+
* gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (area),
|
|
12444
|
+
* draw_function,
|
|
12445
|
+
* NULL, NULL);
|
|
12446
|
+
* return 0;
|
|
12447
12447
|
* }
|
|
12448
12448
|
* ```
|
|
12449
12449
|
*
|
|
@@ -12498,15 +12498,15 @@ declare function DropDownItem(props: StringListItemProps): import("react").React
|
|
|
12498
12498
|
*
|
|
12499
12499
|
* ```xml
|
|
12500
12500
|
* <object class="GtkDropDown">
|
|
12501
|
-
*
|
|
12502
|
-
*
|
|
12503
|
-
*
|
|
12504
|
-
*
|
|
12505
|
-
*
|
|
12506
|
-
*
|
|
12507
|
-
*
|
|
12508
|
-
*
|
|
12509
|
-
*
|
|
12501
|
+
* <property name="model">
|
|
12502
|
+
* <object class="GtkStringList">
|
|
12503
|
+
* <items>
|
|
12504
|
+
* <item translatable="yes">Factory</item>
|
|
12505
|
+
* <item translatable="yes">Home</item>
|
|
12506
|
+
* <item translatable="yes">Subway</item>
|
|
12507
|
+
* </items>
|
|
12508
|
+
* </object>
|
|
12509
|
+
* </property>
|
|
12510
12510
|
* </object>
|
|
12511
12511
|
* ```
|
|
12512
12512
|
*
|
|
@@ -12562,8 +12562,8 @@ export declare const DropDown: {
|
|
|
12562
12562
|
* ```
|
|
12563
12563
|
* editablelabel[.editing]
|
|
12564
12564
|
* ╰── stack
|
|
12565
|
-
*
|
|
12566
|
-
*
|
|
12565
|
+
* ├── label
|
|
12566
|
+
* ╰── text
|
|
12567
12567
|
* ```
|
|
12568
12568
|
*
|
|
12569
12569
|
* `GtkEditableLabel` has a main node with the name editablelabel.
|
|
@@ -12602,9 +12602,9 @@ export declare const EditableLabel: "EditableLabel";
|
|
|
12602
12602
|
* ├── box.emoji-searchbar
|
|
12603
12603
|
* │ ╰── entry.search
|
|
12604
12604
|
* ╰── box.emoji-toolbar
|
|
12605
|
-
*
|
|
12606
|
-
*
|
|
12607
|
-
*
|
|
12605
|
+
* ├── button.image-button.emoji-section
|
|
12606
|
+
* ├── ...
|
|
12607
|
+
* ╰── button.image-button.emoji-section
|
|
12608
12608
|
* ```
|
|
12609
12609
|
*
|
|
12610
12610
|
* Every `GtkEmojiChooser` consists of a main node called popover.
|
|
@@ -12689,10 +12689,10 @@ export declare const EmojiChooser: "EmojiChooser";
|
|
|
12689
12689
|
* An example of a UI definition fragment specifying Pango attributes:
|
|
12690
12690
|
* ```xml
|
|
12691
12691
|
* <object class="GtkEntry">
|
|
12692
|
-
*
|
|
12693
|
-
*
|
|
12694
|
-
*
|
|
12695
|
-
*
|
|
12692
|
+
* <attributes>
|
|
12693
|
+
* <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
|
|
12694
|
+
* <attribute name="background" value="red" start="5" end="10"/>
|
|
12695
|
+
* </attributes>
|
|
12696
12696
|
* </object>
|
|
12697
12697
|
* ```
|
|
12698
12698
|
*
|
|
@@ -12732,31 +12732,31 @@ export declare const Entry: "Entry";
|
|
|
12732
12732
|
* ```c
|
|
12733
12733
|
* static void
|
|
12734
12734
|
* expander_callback (GObject *object,
|
|
12735
|
-
*
|
|
12736
|
-
*
|
|
12735
|
+
* GParamSpec *param_spec,
|
|
12736
|
+
* gpointer user_data)
|
|
12737
12737
|
* {
|
|
12738
|
-
*
|
|
12739
|
-
*
|
|
12740
|
-
*
|
|
12741
|
-
*
|
|
12742
|
-
*
|
|
12743
|
-
*
|
|
12744
|
-
*
|
|
12745
|
-
*
|
|
12746
|
-
*
|
|
12747
|
-
*
|
|
12748
|
-
*
|
|
12749
|
-
*
|
|
12738
|
+
* GtkExpander *expander;
|
|
12739
|
+
*
|
|
12740
|
+
* expander = GTK_EXPANDER (object);
|
|
12741
|
+
*
|
|
12742
|
+
* if (gtk_expander_get_expanded (expander))
|
|
12743
|
+
* {
|
|
12744
|
+
* // Show or create widgets
|
|
12745
|
+
* }
|
|
12746
|
+
* else
|
|
12747
|
+
* {
|
|
12748
|
+
* // Hide or destroy widgets
|
|
12749
|
+
* }
|
|
12750
12750
|
* }
|
|
12751
12751
|
*
|
|
12752
12752
|
* static void
|
|
12753
12753
|
* create_expander (void)
|
|
12754
12754
|
* {
|
|
12755
|
-
*
|
|
12756
|
-
*
|
|
12757
|
-
*
|
|
12755
|
+
* GtkWidget *expander = gtk_expander_new_with_mnemonic ("_More Options");
|
|
12756
|
+
* g_signal_connect (expander, "notify::expanded",
|
|
12757
|
+
* G_CALLBACK (expander_callback), NULL);
|
|
12758
12758
|
*
|
|
12759
|
-
*
|
|
12759
|
+
* // ...
|
|
12760
12760
|
* }
|
|
12761
12761
|
* ```
|
|
12762
12762
|
*
|
|
@@ -12766,12 +12766,12 @@ export declare const Entry: "Entry";
|
|
|
12766
12766
|
*
|
|
12767
12767
|
* ```xml
|
|
12768
12768
|
* <object class="GtkExpander">
|
|
12769
|
-
*
|
|
12770
|
-
*
|
|
12771
|
-
*
|
|
12772
|
-
*
|
|
12773
|
-
*
|
|
12774
|
-
*
|
|
12769
|
+
* <property name="label-widget">
|
|
12770
|
+
* <object class="GtkLabel" id="expander-label"/>
|
|
12771
|
+
* </property>
|
|
12772
|
+
* <property name="child">
|
|
12773
|
+
* <object class="GtkEntry" id="expander-content"/>
|
|
12774
|
+
* </property>
|
|
12775
12775
|
* </object>
|
|
12776
12776
|
* ```
|
|
12777
12777
|
*
|
|
@@ -12780,10 +12780,10 @@ export declare const Entry: "Entry";
|
|
|
12780
12780
|
* ```
|
|
12781
12781
|
* expander-widget
|
|
12782
12782
|
* ╰── box
|
|
12783
|
-
*
|
|
12784
|
-
*
|
|
12785
|
-
*
|
|
12786
|
-
*
|
|
12783
|
+
* ├── title
|
|
12784
|
+
* │ ├── expander
|
|
12785
|
+
* │ ╰── <label widget>
|
|
12786
|
+
* ╰── <child>
|
|
12787
12787
|
* ```
|
|
12788
12788
|
*
|
|
12789
12789
|
* `GtkExpander` has a main node `expander-widget`, and subnode `box` containing
|
|
@@ -12828,38 +12828,38 @@ export declare const Expander: {
|
|
|
12828
12828
|
* ```c
|
|
12829
12829
|
* static void
|
|
12830
12830
|
* on_open_response (GtkDialog *dialog,
|
|
12831
|
-
*
|
|
12831
|
+
* int response)
|
|
12832
12832
|
* {
|
|
12833
|
-
*
|
|
12834
|
-
*
|
|
12835
|
-
*
|
|
12833
|
+
* if (response == GTK_RESPONSE_ACCEPT)
|
|
12834
|
+
* {
|
|
12835
|
+
* GtkFileChooser *chooser = GTK_FILE_CHOOSER (dialog);
|
|
12836
12836
|
*
|
|
12837
|
-
*
|
|
12837
|
+
* g_autoptr(GFile) file = gtk_file_chooser_get_file (chooser);
|
|
12838
12838
|
*
|
|
12839
|
-
*
|
|
12840
|
-
*
|
|
12839
|
+
* open_file (file);
|
|
12840
|
+
* }
|
|
12841
12841
|
*
|
|
12842
|
-
*
|
|
12842
|
+
* gtk_window_destroy (GTK_WINDOW (dialog));
|
|
12843
12843
|
* }
|
|
12844
12844
|
*
|
|
12845
|
-
*
|
|
12846
|
-
*
|
|
12847
|
-
*
|
|
12845
|
+
* // ...
|
|
12846
|
+
* GtkWidget *dialog;
|
|
12847
|
+
* GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN;
|
|
12848
12848
|
*
|
|
12849
|
-
*
|
|
12850
|
-
*
|
|
12851
|
-
*
|
|
12852
|
-
*
|
|
12853
|
-
*
|
|
12854
|
-
*
|
|
12855
|
-
*
|
|
12856
|
-
*
|
|
12849
|
+
* dialog = gtk_file_chooser_dialog_new ("Open File",
|
|
12850
|
+
* parent_window,
|
|
12851
|
+
* action,
|
|
12852
|
+
* _("_Cancel"),
|
|
12853
|
+
* GTK_RESPONSE_CANCEL,
|
|
12854
|
+
* _("_Open"),
|
|
12855
|
+
* GTK_RESPONSE_ACCEPT,
|
|
12856
|
+
* NULL);
|
|
12857
12857
|
*
|
|
12858
|
-
*
|
|
12858
|
+
* gtk_window_present (GTK_WINDOW (dialog));
|
|
12859
12859
|
*
|
|
12860
|
-
*
|
|
12861
|
-
*
|
|
12862
|
-
*
|
|
12860
|
+
* g_signal_connect (dialog, "response",
|
|
12861
|
+
* G_CALLBACK (on_open_response),
|
|
12862
|
+
* NULL);
|
|
12863
12863
|
* ```
|
|
12864
12864
|
*
|
|
12865
12865
|
* To use a dialog for saving, you can use this:
|
|
@@ -12867,45 +12867,45 @@ export declare const Expander: {
|
|
|
12867
12867
|
* ```c
|
|
12868
12868
|
* static void
|
|
12869
12869
|
* on_save_response (GtkDialog *dialog,
|
|
12870
|
-
*
|
|
12870
|
+
* int response)
|
|
12871
12871
|
* {
|
|
12872
|
-
*
|
|
12873
|
-
*
|
|
12874
|
-
*
|
|
12872
|
+
* if (response == GTK_RESPONSE_ACCEPT)
|
|
12873
|
+
* {
|
|
12874
|
+
* GtkFileChooser *chooser = GTK_FILE_CHOOSER (dialog);
|
|
12875
12875
|
*
|
|
12876
|
-
*
|
|
12876
|
+
* g_autoptr(GFile) file = gtk_file_chooser_get_file (chooser);
|
|
12877
12877
|
*
|
|
12878
|
-
*
|
|
12879
|
-
*
|
|
12878
|
+
* save_to_file (file);
|
|
12879
|
+
* }
|
|
12880
12880
|
*
|
|
12881
|
-
*
|
|
12881
|
+
* gtk_window_destroy (GTK_WINDOW (dialog));
|
|
12882
12882
|
* }
|
|
12883
12883
|
*
|
|
12884
|
-
*
|
|
12885
|
-
*
|
|
12886
|
-
*
|
|
12887
|
-
*
|
|
12888
|
-
*
|
|
12889
|
-
*
|
|
12890
|
-
*
|
|
12891
|
-
*
|
|
12892
|
-
*
|
|
12893
|
-
*
|
|
12894
|
-
*
|
|
12895
|
-
*
|
|
12896
|
-
*
|
|
12897
|
-
*
|
|
12898
|
-
*
|
|
12899
|
-
*
|
|
12900
|
-
*
|
|
12901
|
-
*
|
|
12902
|
-
*
|
|
12903
|
-
*
|
|
12904
|
-
*
|
|
12905
|
-
*
|
|
12906
|
-
*
|
|
12907
|
-
*
|
|
12908
|
-
*
|
|
12884
|
+
* // ...
|
|
12885
|
+
* GtkWidget *dialog;
|
|
12886
|
+
* GtkFileChooser *chooser;
|
|
12887
|
+
* GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_SAVE;
|
|
12888
|
+
*
|
|
12889
|
+
* dialog = gtk_file_chooser_dialog_new ("Save File",
|
|
12890
|
+
* parent_window,
|
|
12891
|
+
* action,
|
|
12892
|
+
* _("_Cancel"),
|
|
12893
|
+
* GTK_RESPONSE_CANCEL,
|
|
12894
|
+
* _("_Save"),
|
|
12895
|
+
* GTK_RESPONSE_ACCEPT,
|
|
12896
|
+
* NULL);
|
|
12897
|
+
* chooser = GTK_FILE_CHOOSER (dialog);
|
|
12898
|
+
*
|
|
12899
|
+
* if (user_edited_a_new_document)
|
|
12900
|
+
* gtk_file_chooser_set_current_name (chooser, _("Untitled document"));
|
|
12901
|
+
* else
|
|
12902
|
+
* gtk_file_chooser_set_file (chooser, existing_filename);
|
|
12903
|
+
*
|
|
12904
|
+
* gtk_window_present (GTK_WINDOW (dialog));
|
|
12905
|
+
*
|
|
12906
|
+
* g_signal_connect (dialog, "response",
|
|
12907
|
+
* G_CALLBACK (on_save_response),
|
|
12908
|
+
* NULL);
|
|
12909
12909
|
* ```
|
|
12910
12910
|
*
|
|
12911
12911
|
* ## Setting up a file chooser dialog
|
|
@@ -12940,13 +12940,13 @@ export declare const Expander: {
|
|
|
12940
12940
|
* GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN;
|
|
12941
12941
|
*
|
|
12942
12942
|
* dialog = gtk_file_chooser_dialog_new ("Open File",
|
|
12943
|
-
*
|
|
12944
|
-
*
|
|
12945
|
-
*
|
|
12946
|
-
*
|
|
12947
|
-
*
|
|
12948
|
-
*
|
|
12949
|
-
*
|
|
12943
|
+
* parent_window,
|
|
12944
|
+
* action,
|
|
12945
|
+
* _("_Cancel"),
|
|
12946
|
+
* GTK_RESPONSE_CANCEL,
|
|
12947
|
+
* _("_Open"),
|
|
12948
|
+
* GTK_RESPONSE_ACCEPT,
|
|
12949
|
+
* NULL);
|
|
12950
12950
|
* ```
|
|
12951
12951
|
*
|
|
12952
12952
|
* This will create buttons for “Cancel” and “Open” that use predefined
|
|
@@ -13128,7 +13128,7 @@ export declare const FlowBoxChild: "FlowBoxChild";
|
|
|
13128
13128
|
* ```
|
|
13129
13129
|
* fontbutton
|
|
13130
13130
|
* ╰── button.font
|
|
13131
|
-
*
|
|
13131
|
+
* ╰── [content]
|
|
13132
13132
|
* ```
|
|
13133
13133
|
*
|
|
13134
13134
|
* `GtkFontButton` has a single CSS node with name fontbutton which
|
|
@@ -13189,7 +13189,7 @@ export declare const FontChooserWidget: "FontChooserWidget";
|
|
|
13189
13189
|
* ```
|
|
13190
13190
|
* fontbutton
|
|
13191
13191
|
* ╰── button.font
|
|
13192
|
-
*
|
|
13192
|
+
* ╰── [content]
|
|
13193
13193
|
* ```
|
|
13194
13194
|
*
|
|
13195
13195
|
* `GtkFontDialogButton` has a single CSS node with name fontbutton which
|
|
@@ -13214,12 +13214,12 @@ export declare const FontDialogButton: "FontDialogButton";
|
|
|
13214
13214
|
*
|
|
13215
13215
|
* ```xml
|
|
13216
13216
|
* <object class="GtkFrame">
|
|
13217
|
-
*
|
|
13218
|
-
*
|
|
13219
|
-
*
|
|
13220
|
-
*
|
|
13221
|
-
*
|
|
13222
|
-
*
|
|
13217
|
+
* <property name="label-widget">
|
|
13218
|
+
* <object class="GtkLabel" id="frame_label"/>
|
|
13219
|
+
* </property>
|
|
13220
|
+
* <property name="child">
|
|
13221
|
+
* <object class="GtkEntry" id="frame_content"/>
|
|
13222
|
+
* </property>
|
|
13223
13223
|
* </object>
|
|
13224
13224
|
* ```
|
|
13225
13225
|
*
|
|
@@ -13277,38 +13277,38 @@ export declare const Frame: {
|
|
|
13277
13277
|
* static gboolean
|
|
13278
13278
|
* render (GtkGLArea *area, GdkGLContext *context)
|
|
13279
13279
|
* {
|
|
13280
|
-
*
|
|
13281
|
-
*
|
|
13282
|
-
*
|
|
13283
|
-
*
|
|
13284
|
-
*
|
|
13285
|
-
*
|
|
13286
|
-
*
|
|
13287
|
-
*
|
|
13288
|
-
*
|
|
13289
|
-
*
|
|
13290
|
-
*
|
|
13291
|
-
*
|
|
13292
|
-
*
|
|
13293
|
-
*
|
|
13294
|
-
*
|
|
13295
|
-
*
|
|
13296
|
-
*
|
|
13297
|
-
*
|
|
13298
|
-
*
|
|
13299
|
-
*
|
|
13300
|
-
*
|
|
13301
|
-
*
|
|
13302
|
-
*
|
|
13280
|
+
* // inside this function it's safe to use GL; the given
|
|
13281
|
+
* // GdkGLContext has been made current to the drawable
|
|
13282
|
+
* // surface used by the `GtkGLArea` and the viewport has
|
|
13283
|
+
* // already been set to be the size of the allocation
|
|
13284
|
+
*
|
|
13285
|
+
* // we can start by clearing the buffer
|
|
13286
|
+
* glClearColor (0, 0, 0, 0);
|
|
13287
|
+
* glClear (GL_COLOR_BUFFER_BIT);
|
|
13288
|
+
*
|
|
13289
|
+
* // record the active framebuffer ID, so we can return to it
|
|
13290
|
+
* // with `glBindFramebuffer (GL_FRAMEBUFFER, screen_fb)` should
|
|
13291
|
+
* // we, for instance, intend on utilizing the results of an
|
|
13292
|
+
* // intermediate render texture pass
|
|
13293
|
+
* GLuint screen_fb = 0;
|
|
13294
|
+
* glGetIntegerv (GL_FRAMEBUFFER_BINDING, &screen_fb);
|
|
13295
|
+
*
|
|
13296
|
+
* // draw your object
|
|
13297
|
+
* // draw_an_object ();
|
|
13298
|
+
*
|
|
13299
|
+
* // we completed our drawing; the draw commands will be
|
|
13300
|
+
* // flushed at the end of the signal emission chain, and
|
|
13301
|
+
* // the buffers will be drawn on the window
|
|
13302
|
+
* return TRUE;
|
|
13303
13303
|
* }
|
|
13304
13304
|
*
|
|
13305
13305
|
* void setup_glarea (void)
|
|
13306
13306
|
* {
|
|
13307
|
-
*
|
|
13308
|
-
*
|
|
13307
|
+
* // create a GtkGLArea instance
|
|
13308
|
+
* GtkWidget *gl_area = gtk_gl_area_new ();
|
|
13309
13309
|
*
|
|
13310
|
-
*
|
|
13311
|
-
*
|
|
13310
|
+
* // connect to the "render" signal
|
|
13311
|
+
* g_signal_connect (gl_area, "render", G_CALLBACK (render), NULL);
|
|
13312
13312
|
* }
|
|
13313
13313
|
* ```
|
|
13314
13314
|
*
|
|
@@ -13324,35 +13324,35 @@ export declare const Frame: {
|
|
|
13324
13324
|
* static void
|
|
13325
13325
|
* on_realize (GtkGLArea *area)
|
|
13326
13326
|
* {
|
|
13327
|
-
*
|
|
13328
|
-
*
|
|
13329
|
-
*
|
|
13330
|
-
*
|
|
13331
|
-
*
|
|
13332
|
-
*
|
|
13333
|
-
*
|
|
13334
|
-
*
|
|
13335
|
-
*
|
|
13336
|
-
*
|
|
13337
|
-
*
|
|
13338
|
-
*
|
|
13339
|
-
*
|
|
13340
|
-
*
|
|
13341
|
-
*
|
|
13342
|
-
*
|
|
13343
|
-
*
|
|
13344
|
-
*
|
|
13345
|
-
*
|
|
13346
|
-
*
|
|
13347
|
-
*
|
|
13348
|
-
*
|
|
13349
|
-
*
|
|
13350
|
-
*
|
|
13351
|
-
*
|
|
13352
|
-
*
|
|
13353
|
-
*
|
|
13354
|
-
*
|
|
13355
|
-
*
|
|
13327
|
+
* // We need to make the context current if we want to
|
|
13328
|
+
* // call GL API
|
|
13329
|
+
* gtk_gl_area_make_current (area);
|
|
13330
|
+
*
|
|
13331
|
+
* // If there were errors during the initialization or
|
|
13332
|
+
* // when trying to make the context current, this
|
|
13333
|
+
* // function will return a GError for you to catch
|
|
13334
|
+
* if (gtk_gl_area_get_error (area) != NULL)
|
|
13335
|
+
* return;
|
|
13336
|
+
*
|
|
13337
|
+
* // You can also use gtk_gl_area_set_error() in order
|
|
13338
|
+
* // to show eventual initialization errors on the
|
|
13339
|
+
* // GtkGLArea widget itself
|
|
13340
|
+
* GError *internal_error = NULL;
|
|
13341
|
+
* init_buffer_objects (&error);
|
|
13342
|
+
* if (error != NULL)
|
|
13343
|
+
* {
|
|
13344
|
+
* gtk_gl_area_set_error (area, error);
|
|
13345
|
+
* g_error_free (error);
|
|
13346
|
+
* return;
|
|
13347
|
+
* }
|
|
13348
|
+
*
|
|
13349
|
+
* init_shaders (&error);
|
|
13350
|
+
* if (error != NULL)
|
|
13351
|
+
* {
|
|
13352
|
+
* gtk_gl_area_set_error (area, error);
|
|
13353
|
+
* g_error_free (error);
|
|
13354
|
+
* return;
|
|
13355
|
+
* }
|
|
13356
13356
|
* }
|
|
13357
13357
|
* ```
|
|
13358
13358
|
*
|
|
@@ -13426,44 +13426,44 @@ export declare const GraphicsOffload: "GraphicsOffload";
|
|
|
13426
13426
|
*
|
|
13427
13427
|
* ```xml
|
|
13428
13428
|
* <object class="GtkGrid" id="my_grid">
|
|
13429
|
-
*
|
|
13430
|
-
*
|
|
13431
|
-
*
|
|
13432
|
-
*
|
|
13433
|
-
*
|
|
13434
|
-
*
|
|
13435
|
-
*
|
|
13436
|
-
*
|
|
13437
|
-
*
|
|
13438
|
-
*
|
|
13439
|
-
*
|
|
13440
|
-
*
|
|
13441
|
-
*
|
|
13442
|
-
*
|
|
13443
|
-
*
|
|
13444
|
-
*
|
|
13445
|
-
*
|
|
13446
|
-
*
|
|
13447
|
-
*
|
|
13448
|
-
*
|
|
13449
|
-
*
|
|
13450
|
-
*
|
|
13451
|
-
*
|
|
13452
|
-
*
|
|
13453
|
-
*
|
|
13454
|
-
*
|
|
13455
|
-
*
|
|
13456
|
-
*
|
|
13457
|
-
*
|
|
13458
|
-
*
|
|
13459
|
-
*
|
|
13460
|
-
*
|
|
13461
|
-
*
|
|
13462
|
-
*
|
|
13463
|
-
*
|
|
13464
|
-
*
|
|
13465
|
-
*
|
|
13466
|
-
*
|
|
13429
|
+
* <child>
|
|
13430
|
+
* <object class="GtkButton" id="button1">
|
|
13431
|
+
* <property name="label">Button 1</property>
|
|
13432
|
+
* <layout>
|
|
13433
|
+
* <property name="column">0</property>
|
|
13434
|
+
* <property name="row">0</property>
|
|
13435
|
+
* </layout>
|
|
13436
|
+
* </object>
|
|
13437
|
+
* </child>
|
|
13438
|
+
* <child>
|
|
13439
|
+
* <object class="GtkButton" id="button2">
|
|
13440
|
+
* <property name="label">Button 2</property>
|
|
13441
|
+
* <layout>
|
|
13442
|
+
* <property name="column">1</property>
|
|
13443
|
+
* <property name="row">0</property>
|
|
13444
|
+
* </layout>
|
|
13445
|
+
* </object>
|
|
13446
|
+
* </child>
|
|
13447
|
+
* <child>
|
|
13448
|
+
* <object class="GtkButton" id="button3">
|
|
13449
|
+
* <property name="label">Button 3</property>
|
|
13450
|
+
* <layout>
|
|
13451
|
+
* <property name="column">2</property>
|
|
13452
|
+
* <property name="row">0</property>
|
|
13453
|
+
* <property name="row-span">2</property>
|
|
13454
|
+
* </layout>
|
|
13455
|
+
* </object>
|
|
13456
|
+
* </child>
|
|
13457
|
+
* <child>
|
|
13458
|
+
* <object class="GtkButton" id="button4">
|
|
13459
|
+
* <property name="label">Button 4</property>
|
|
13460
|
+
* <layout>
|
|
13461
|
+
* <property name="column">0</property>
|
|
13462
|
+
* <property name="row">1</property>
|
|
13463
|
+
* <property name="column-span">2</property>
|
|
13464
|
+
* </layout>
|
|
13465
|
+
* </object>
|
|
13466
|
+
* </child>
|
|
13467
13467
|
* </object>
|
|
13468
13468
|
* ```
|
|
13469
13469
|
*
|
|
@@ -13577,17 +13577,17 @@ export declare const GridView: {
|
|
|
13577
13577
|
*
|
|
13578
13578
|
* ```xml
|
|
13579
13579
|
* <object class="GtkHeaderBar">
|
|
13580
|
-
*
|
|
13581
|
-
*
|
|
13582
|
-
*
|
|
13583
|
-
*
|
|
13584
|
-
*
|
|
13585
|
-
*
|
|
13586
|
-
*
|
|
13587
|
-
*
|
|
13588
|
-
*
|
|
13589
|
-
*
|
|
13590
|
-
*
|
|
13580
|
+
* <property name="title-widget">
|
|
13581
|
+
* <object class="GtkLabel">
|
|
13582
|
+
* <property name="label" translatable="yes">Label</property>
|
|
13583
|
+
* <property name="single-line-mode">True</property>
|
|
13584
|
+
* <property name="ellipsize">end</property>
|
|
13585
|
+
* <property name="width-chars">5</property>
|
|
13586
|
+
* <style>
|
|
13587
|
+
* <class name="title"/>
|
|
13588
|
+
* </style>
|
|
13589
|
+
* </object>
|
|
13590
|
+
* </property>
|
|
13591
13591
|
* </object>
|
|
13592
13592
|
* ```
|
|
13593
13593
|
*
|
|
@@ -13596,14 +13596,14 @@ export declare const GridView: {
|
|
|
13596
13596
|
* ```
|
|
13597
13597
|
* headerbar
|
|
13598
13598
|
* ╰── windowhandle
|
|
13599
|
-
*
|
|
13600
|
-
*
|
|
13601
|
-
*
|
|
13602
|
-
*
|
|
13603
|
-
*
|
|
13604
|
-
*
|
|
13605
|
-
*
|
|
13606
|
-
*
|
|
13599
|
+
* ╰── box
|
|
13600
|
+
* ├── box.start
|
|
13601
|
+
* │ ├── windowcontrols.start
|
|
13602
|
+
* │ ╰── [other children]
|
|
13603
|
+
* ├── [Title Widget]
|
|
13604
|
+
* ╰── box.end
|
|
13605
|
+
* ├── [other children]
|
|
13606
|
+
* ╰── windowcontrols.end
|
|
13607
13607
|
* ```
|
|
13608
13608
|
*
|
|
13609
13609
|
* A `GtkHeaderBar`'s CSS node is called `headerbar`. It contains a `windowhandle`
|
|
@@ -13729,15 +13729,15 @@ export declare const Image: "Image";
|
|
|
13729
13729
|
* message_label = gtk_label_new ("");
|
|
13730
13730
|
* gtk_info_bar_add_child (bar, message_label);
|
|
13731
13731
|
* gtk_info_bar_add_button (bar,
|
|
13732
|
-
*
|
|
13733
|
-
*
|
|
13732
|
+
* _("_OK"),
|
|
13733
|
+
* GTK_RESPONSE_OK);
|
|
13734
13734
|
* g_signal_connect (bar,
|
|
13735
|
-
*
|
|
13736
|
-
*
|
|
13737
|
-
*
|
|
13735
|
+
* "response",
|
|
13736
|
+
* G_CALLBACK (gtk_widget_hide),
|
|
13737
|
+
* NULL);
|
|
13738
13738
|
* gtk_grid_attach (GTK_GRID (grid),
|
|
13739
|
-
*
|
|
13740
|
-
*
|
|
13739
|
+
* widget,
|
|
13740
|
+
* 0, 2, 1, 1);
|
|
13741
13741
|
*
|
|
13742
13742
|
* // ...
|
|
13743
13743
|
*
|
|
@@ -13861,10 +13861,10 @@ export declare const Inscription: "Inscription";
|
|
|
13861
13861
|
*
|
|
13862
13862
|
* ```xml
|
|
13863
13863
|
* <object class="GtkLabel">
|
|
13864
|
-
*
|
|
13865
|
-
*
|
|
13866
|
-
*
|
|
13867
|
-
*
|
|
13864
|
+
* <attributes>
|
|
13865
|
+
* <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
|
|
13866
|
+
* <attribute name="background" value="red" start="5" end="10"/>
|
|
13867
|
+
* </attributes>
|
|
13868
13868
|
* </object>
|
|
13869
13869
|
* ```
|
|
13870
13870
|
*
|
|
@@ -14028,31 +14028,31 @@ export declare const Label: "Label";
|
|
|
14028
14028
|
* static GtkWidget *
|
|
14029
14029
|
* create_level_bar (void)
|
|
14030
14030
|
* {
|
|
14031
|
-
*
|
|
14032
|
-
*
|
|
14031
|
+
* GtkWidget *widget;
|
|
14032
|
+
* GtkLevelBar *bar;
|
|
14033
14033
|
*
|
|
14034
|
-
*
|
|
14035
|
-
*
|
|
14034
|
+
* widget = gtk_level_bar_new ();
|
|
14035
|
+
* bar = GTK_LEVEL_BAR (widget);
|
|
14036
14036
|
*
|
|
14037
|
-
*
|
|
14037
|
+
* // This changes the value of the default low offset
|
|
14038
14038
|
*
|
|
14039
|
-
*
|
|
14040
|
-
*
|
|
14041
|
-
*
|
|
14039
|
+
* gtk_level_bar_add_offset_value (bar,
|
|
14040
|
+
* GTK_LEVEL_BAR_OFFSET_LOW,
|
|
14041
|
+
* 0.10);
|
|
14042
14042
|
*
|
|
14043
|
-
*
|
|
14044
|
-
*
|
|
14045
|
-
*
|
|
14046
|
-
*
|
|
14047
|
-
*
|
|
14048
|
-
*
|
|
14049
|
-
*
|
|
14050
|
-
*
|
|
14051
|
-
*
|
|
14043
|
+
* // This adds a new offset to the bar; the application will
|
|
14044
|
+
* // be able to change its color CSS like this:
|
|
14045
|
+
* //
|
|
14046
|
+
* // levelbar block.my-offset {
|
|
14047
|
+
* // background-color: magenta;
|
|
14048
|
+
* // border-style: solid;
|
|
14049
|
+
* // border-color: black;
|
|
14050
|
+
* // border-width: 1px;
|
|
14051
|
+
* // }
|
|
14052
14052
|
*
|
|
14053
|
-
*
|
|
14053
|
+
* gtk_level_bar_add_offset_value (bar, "my-offset", 0.60);
|
|
14054
14054
|
*
|
|
14055
|
-
*
|
|
14055
|
+
* return widget;
|
|
14056
14056
|
* }
|
|
14057
14057
|
* ```
|
|
14058
14058
|
*
|
|
@@ -14081,10 +14081,10 @@ export declare const Label: "Label";
|
|
|
14081
14081
|
* ```
|
|
14082
14082
|
* levelbar[.discrete]
|
|
14083
14083
|
* ╰── trough
|
|
14084
|
-
*
|
|
14085
|
-
*
|
|
14086
|
-
*
|
|
14087
|
-
*
|
|
14084
|
+
* ├── block.filled.level-name
|
|
14085
|
+
* ┊
|
|
14086
|
+
* ├── block.empty
|
|
14087
|
+
* ┊
|
|
14088
14088
|
* ```
|
|
14089
14089
|
*
|
|
14090
14090
|
* `GtkLevelBar` has a main CSS node with name levelbar and one of the style
|
|
@@ -14299,52 +14299,52 @@ declare function ListViewItem<T>(props: ListItemProps<T>): import("react").React
|
|
|
14299
14299
|
* ```c
|
|
14300
14300
|
* static void
|
|
14301
14301
|
* setup_listitem_cb (GtkListItemFactory *factory,
|
|
14302
|
-
*
|
|
14302
|
+
* GtkListItem *list_item)
|
|
14303
14303
|
* {
|
|
14304
|
-
*
|
|
14304
|
+
* GtkWidget *image;
|
|
14305
14305
|
*
|
|
14306
|
-
*
|
|
14307
|
-
*
|
|
14308
|
-
*
|
|
14306
|
+
* image = gtk_image_new ();
|
|
14307
|
+
* gtk_image_set_icon_size (GTK_IMAGE (image), GTK_ICON_SIZE_LARGE);
|
|
14308
|
+
* gtk_list_item_set_child (list_item, image);
|
|
14309
14309
|
* }
|
|
14310
14310
|
*
|
|
14311
14311
|
* static void
|
|
14312
14312
|
* bind_listitem_cb (GtkListItemFactory *factory,
|
|
14313
|
-
*
|
|
14313
|
+
* GtkListItem *list_item)
|
|
14314
14314
|
* {
|
|
14315
|
-
*
|
|
14316
|
-
*
|
|
14315
|
+
* GtkWidget *image;
|
|
14316
|
+
* GAppInfo *app_info;
|
|
14317
14317
|
*
|
|
14318
|
-
*
|
|
14319
|
-
*
|
|
14320
|
-
*
|
|
14318
|
+
* image = gtk_list_item_get_child (list_item);
|
|
14319
|
+
* app_info = gtk_list_item_get_item (list_item);
|
|
14320
|
+
* gtk_image_set_from_gicon (GTK_IMAGE (image), g_app_info_get_icon (app_info));
|
|
14321
14321
|
* }
|
|
14322
14322
|
*
|
|
14323
14323
|
* static void
|
|
14324
14324
|
* activate_cb (GtkListView *list,
|
|
14325
|
-
*
|
|
14326
|
-
*
|
|
14325
|
+
* guint position,
|
|
14326
|
+
* gpointer unused)
|
|
14327
14327
|
* {
|
|
14328
|
-
*
|
|
14328
|
+
* GAppInfo *app_info;
|
|
14329
14329
|
*
|
|
14330
|
-
*
|
|
14331
|
-
*
|
|
14332
|
-
*
|
|
14330
|
+
* app_info = g_list_model_get_item (G_LIST_MODEL (gtk_list_view_get_model (list)), position);
|
|
14331
|
+
* g_app_info_launch (app_info, NULL, NULL, NULL);
|
|
14332
|
+
* g_object_unref (app_info);
|
|
14333
14333
|
* }
|
|
14334
14334
|
*
|
|
14335
14335
|
* ...
|
|
14336
14336
|
*
|
|
14337
|
-
*
|
|
14337
|
+
* model = create_application_list ();
|
|
14338
14338
|
*
|
|
14339
|
-
*
|
|
14340
|
-
*
|
|
14341
|
-
*
|
|
14339
|
+
* factory = gtk_signal_list_item_factory_new ();
|
|
14340
|
+
* g_signal_connect (factory, "setup", G_CALLBACK (setup_listitem_cb), NULL);
|
|
14341
|
+
* g_signal_connect (factory, "bind", G_CALLBACK (bind_listitem_cb), NULL);
|
|
14342
14342
|
*
|
|
14343
|
-
*
|
|
14343
|
+
* list = gtk_list_view_new (GTK_SELECTION_MODEL (gtk_single_selection_new (model)), factory);
|
|
14344
14344
|
*
|
|
14345
|
-
*
|
|
14345
|
+
* g_signal_connect (list, "activate", G_CALLBACK (activate_cb), NULL);
|
|
14346
14346
|
*
|
|
14347
|
-
*
|
|
14347
|
+
* gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), list);
|
|
14348
14348
|
* ```
|
|
14349
14349
|
*
|
|
14350
14350
|
* # Actions
|
|
@@ -14473,8 +14473,8 @@ export declare const MediaControls: "MediaControls";
|
|
|
14473
14473
|
* ```
|
|
14474
14474
|
* menubutton
|
|
14475
14475
|
* ╰── button.toggle
|
|
14476
|
-
*
|
|
14477
|
-
*
|
|
14476
|
+
* ╰── <content>
|
|
14477
|
+
* ╰── [arrow]
|
|
14478
14478
|
* ```
|
|
14479
14479
|
*
|
|
14480
14480
|
* `GtkMenuButton` has a single CSS node with name `menubutton`
|
|
@@ -14522,18 +14522,18 @@ export declare const MenuButton: {
|
|
|
14522
14522
|
* ```c
|
|
14523
14523
|
* GtkDialogFlags flags = GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL;
|
|
14524
14524
|
* dialog = gtk_message_dialog_new (parent_window,
|
|
14525
|
-
*
|
|
14526
|
-
*
|
|
14527
|
-
*
|
|
14528
|
-
*
|
|
14529
|
-
*
|
|
14530
|
-
*
|
|
14525
|
+
* flags,
|
|
14526
|
+
* GTK_MESSAGE_ERROR,
|
|
14527
|
+
* GTK_BUTTONS_CLOSE,
|
|
14528
|
+
* "Error reading “%s”: %s",
|
|
14529
|
+
* filename,
|
|
14530
|
+
* g_strerror (errno));
|
|
14531
14531
|
* // Destroy the dialog when the user responds to it
|
|
14532
14532
|
* // (e.g. clicks a button)
|
|
14533
14533
|
*
|
|
14534
14534
|
* g_signal_connect (dialog, "response",
|
|
14535
|
-
*
|
|
14536
|
-
*
|
|
14535
|
+
* G_CALLBACK (gtk_window_destroy),
|
|
14536
|
+
* NULL);
|
|
14537
14537
|
* ```
|
|
14538
14538
|
*
|
|
14539
14539
|
* You might do a non-modal `GtkMessageDialog` simply by omitting the
|
|
@@ -14542,18 +14542,18 @@ export declare const MenuButton: {
|
|
|
14542
14542
|
* ```c
|
|
14543
14543
|
* GtkDialogFlags flags = GTK_DIALOG_DESTROY_WITH_PARENT;
|
|
14544
14544
|
* dialog = gtk_message_dialog_new (parent_window,
|
|
14545
|
-
*
|
|
14546
|
-
*
|
|
14547
|
-
*
|
|
14548
|
-
*
|
|
14549
|
-
*
|
|
14550
|
-
*
|
|
14545
|
+
* flags,
|
|
14546
|
+
* GTK_MESSAGE_ERROR,
|
|
14547
|
+
* GTK_BUTTONS_CLOSE,
|
|
14548
|
+
* "Error reading “%s”: %s",
|
|
14549
|
+
* filename,
|
|
14550
|
+
* g_strerror (errno));
|
|
14551
14551
|
*
|
|
14552
14552
|
* // Destroy the dialog when the user responds to it
|
|
14553
14553
|
* // (e.g. clicks a button)
|
|
14554
14554
|
* g_signal_connect (dialog, "response",
|
|
14555
|
-
*
|
|
14556
|
-
*
|
|
14555
|
+
* G_CALLBACK (gtk_window_destroy),
|
|
14556
|
+
* NULL);
|
|
14557
14557
|
* ```
|
|
14558
14558
|
*
|
|
14559
14559
|
* # GtkMessageDialog as GtkBuildable
|
|
@@ -14592,16 +14592,16 @@ export declare const MessageDialog: "MessageDialog";
|
|
|
14592
14592
|
*
|
|
14593
14593
|
* ```xml
|
|
14594
14594
|
* <object class="GtkNotebook">
|
|
14595
|
-
*
|
|
14596
|
-
*
|
|
14597
|
-
*
|
|
14598
|
-
*
|
|
14599
|
-
*
|
|
14600
|
-
*
|
|
14601
|
-
*
|
|
14602
|
-
*
|
|
14603
|
-
*
|
|
14604
|
-
*
|
|
14595
|
+
* <child>
|
|
14596
|
+
* <object class="GtkLabel" id="notebook-content">
|
|
14597
|
+
* <property name="label">Content</property>
|
|
14598
|
+
* </object>
|
|
14599
|
+
* </child>
|
|
14600
|
+
* <child type="tab">
|
|
14601
|
+
* <object class="GtkLabel" id="notebook-tab">
|
|
14602
|
+
* <property name="label">Tab</property>
|
|
14603
|
+
* </object>
|
|
14604
|
+
* </child>
|
|
14605
14605
|
* </object>
|
|
14606
14606
|
* ```
|
|
14607
14607
|
*
|
|
@@ -14647,9 +14647,9 @@ export declare const MessageDialog: "MessageDialog";
|
|
|
14647
14647
|
* │ ╰── [<action widget>]
|
|
14648
14648
|
* │
|
|
14649
14649
|
* ╰── stack
|
|
14650
|
-
*
|
|
14651
|
-
*
|
|
14652
|
-
*
|
|
14650
|
+
* ├── <child>
|
|
14651
|
+
* ┊
|
|
14652
|
+
* ╰── <child>
|
|
14653
14653
|
* ```
|
|
14654
14654
|
*
|
|
14655
14655
|
* `GtkNotebook` has a main CSS node with name `notebook`, a subnode
|
|
@@ -14840,8 +14840,8 @@ export declare const Paned: {
|
|
|
14840
14840
|
* ```
|
|
14841
14841
|
* entry.password
|
|
14842
14842
|
* ╰── text
|
|
14843
|
-
*
|
|
14844
|
-
*
|
|
14843
|
+
* ├── image.caps-lock-indicator
|
|
14844
|
+
* ┊
|
|
14845
14845
|
* ```
|
|
14846
14846
|
*
|
|
14847
14847
|
* `GtkPasswordEntry` has a single CSS node with name entry that carries
|
|
@@ -14936,22 +14936,22 @@ export declare const Picture: "Picture";
|
|
|
14936
14936
|
*
|
|
14937
14937
|
* ```xml
|
|
14938
14938
|
* <section>
|
|
14939
|
-
*
|
|
14940
|
-
*
|
|
14941
|
-
*
|
|
14942
|
-
*
|
|
14943
|
-
*
|
|
14944
|
-
*
|
|
14945
|
-
*
|
|
14946
|
-
*
|
|
14947
|
-
*
|
|
14948
|
-
*
|
|
14949
|
-
*
|
|
14950
|
-
*
|
|
14951
|
-
*
|
|
14952
|
-
*
|
|
14953
|
-
*
|
|
14954
|
-
*
|
|
14939
|
+
* <attribute name="display-hint">horizontal-buttons</attribute>
|
|
14940
|
+
* <item>
|
|
14941
|
+
* <attribute name="label">Cut</attribute>
|
|
14942
|
+
* <attribute name="action">app.cut</attribute>
|
|
14943
|
+
* <attribute name="verb-icon">edit-cut-symbolic</attribute>
|
|
14944
|
+
* </item>
|
|
14945
|
+
* <item>
|
|
14946
|
+
* <attribute name="label">Copy</attribute>
|
|
14947
|
+
* <attribute name="action">app.copy</attribute>
|
|
14948
|
+
* <attribute name="verb-icon">edit-copy-symbolic</attribute>
|
|
14949
|
+
* </item>
|
|
14950
|
+
* <item>
|
|
14951
|
+
* <attribute name="label">Paste</attribute>
|
|
14952
|
+
* <attribute name="action">app.paste</attribute>
|
|
14953
|
+
* <attribute name="verb-icon">edit-paste-symbolic</attribute>
|
|
14954
|
+
* </item>
|
|
14955
14955
|
* </section>
|
|
14956
14956
|
* ```
|
|
14957
14957
|
*
|
|
@@ -14972,7 +14972,7 @@ export declare const Picture: "Picture";
|
|
|
14972
14972
|
* popover.background[.menu]
|
|
14973
14973
|
* ├── arrow
|
|
14974
14974
|
* ╰── contents
|
|
14975
|
-
*
|
|
14975
|
+
* ╰── <child>
|
|
14976
14976
|
* ```
|
|
14977
14977
|
*
|
|
14978
14978
|
* `GtkPopover` has a main node with name `popover`, an arrow with name `arrow`,
|
|
@@ -15036,20 +15036,20 @@ declare function PopoverMenuSubmenu(props: MenuSubmenuProps): import("react").Re
|
|
|
15036
15036
|
*
|
|
15037
15037
|
* ```xml
|
|
15038
15038
|
* <menu id='app-menu'>
|
|
15039
|
-
*
|
|
15040
|
-
*
|
|
15041
|
-
*
|
|
15042
|
-
*
|
|
15043
|
-
*
|
|
15044
|
-
*
|
|
15045
|
-
*
|
|
15046
|
-
*
|
|
15047
|
-
*
|
|
15048
|
-
*
|
|
15049
|
-
*
|
|
15050
|
-
*
|
|
15051
|
-
*
|
|
15052
|
-
*
|
|
15039
|
+
* <section>
|
|
15040
|
+
* <item>
|
|
15041
|
+
* <attribute name='label' translatable='yes'>_New Window</attribute>
|
|
15042
|
+
* <attribute name='action'>app.new</attribute>
|
|
15043
|
+
* </item>
|
|
15044
|
+
* <item>
|
|
15045
|
+
* <attribute name='label' translatable='yes'>_About Sunny</attribute>
|
|
15046
|
+
* <attribute name='action'>app.about</attribute>
|
|
15047
|
+
* </item>
|
|
15048
|
+
* <item>
|
|
15049
|
+
* <attribute name='label' translatable='yes'>_Quit</attribute>
|
|
15050
|
+
* <attribute name='action'>app.quit</attribute>
|
|
15051
|
+
* </item>
|
|
15052
|
+
* </section>
|
|
15053
15053
|
* </menu>
|
|
15054
15054
|
* ```
|
|
15055
15055
|
*
|
|
@@ -15146,7 +15146,7 @@ export declare const PopoverMenu: {
|
|
|
15146
15146
|
* ├── item[.active]
|
|
15147
15147
|
* ┊ ╰── popover
|
|
15148
15148
|
* ╰── item
|
|
15149
|
-
*
|
|
15149
|
+
* ╰── popover
|
|
15150
15150
|
* ```
|
|
15151
15151
|
*
|
|
15152
15152
|
* `GtkPopoverMenuBar` has a single CSS node with name menubar, below which
|
|
@@ -15192,26 +15192,26 @@ export declare const PopoverMenuBar: "PopoverMenuBar";
|
|
|
15192
15192
|
*
|
|
15193
15193
|
* ```xml
|
|
15194
15194
|
* <object class="GtkPrintUnixDialog" id="dialog1">
|
|
15195
|
-
*
|
|
15196
|
-
*
|
|
15197
|
-
*
|
|
15198
|
-
*
|
|
15199
|
-
*
|
|
15200
|
-
*
|
|
15201
|
-
*
|
|
15202
|
-
*
|
|
15203
|
-
*
|
|
15204
|
-
*
|
|
15205
|
-
*
|
|
15206
|
-
*
|
|
15207
|
-
*
|
|
15208
|
-
*
|
|
15209
|
-
*
|
|
15210
|
-
*
|
|
15211
|
-
*
|
|
15212
|
-
*
|
|
15213
|
-
*
|
|
15214
|
-
*
|
|
15195
|
+
* <child internal-child="notebook">
|
|
15196
|
+
* <object class="GtkNotebook" id="notebook">
|
|
15197
|
+
* <child>
|
|
15198
|
+
* <object type="GtkNotebookPage">
|
|
15199
|
+
* <property name="tab_expand">False</property>
|
|
15200
|
+
* <property name="tab_fill">False</property>
|
|
15201
|
+
* <property name="tab">
|
|
15202
|
+
* <object class="GtkLabel" id="tablabel">
|
|
15203
|
+
* <property name="label">Tab label</property>
|
|
15204
|
+
* </object>
|
|
15205
|
+
* </property>
|
|
15206
|
+
* <property name="child">
|
|
15207
|
+
* <object class="GtkLabel" id="tabcontent">
|
|
15208
|
+
* <property name="label">Content on notebook tab</property>
|
|
15209
|
+
* </object>
|
|
15210
|
+
* </property>
|
|
15211
|
+
* </object>
|
|
15212
|
+
* </child>
|
|
15213
|
+
* </object>
|
|
15214
|
+
* </child>
|
|
15215
15215
|
* </object>
|
|
15216
15216
|
* ```
|
|
15217
15217
|
*
|
|
@@ -15253,7 +15253,7 @@ export declare const PrintUnixDialog: "PrintUnixDialog";
|
|
|
15253
15253
|
* progressbar[.osd]
|
|
15254
15254
|
* ├── [text]
|
|
15255
15255
|
* ╰── trough[.empty][.full]
|
|
15256
|
-
*
|
|
15256
|
+
* ╰── progress[.pulse]
|
|
15257
15257
|
* ```
|
|
15258
15258
|
*
|
|
15259
15259
|
* `GtkProgressBar` has a main CSS node with name progressbar and subnodes with
|
|
@@ -15364,9 +15364,9 @@ export declare const Revealer: "Revealer";
|
|
|
15364
15364
|
* ┊ ┊
|
|
15365
15365
|
* │ ╰── mark
|
|
15366
15366
|
* ╰── trough
|
|
15367
|
-
*
|
|
15368
|
-
*
|
|
15369
|
-
*
|
|
15367
|
+
* ├── [fill]
|
|
15368
|
+
* ├── [highlight]
|
|
15369
|
+
* ╰── slider
|
|
15370
15370
|
* ```
|
|
15371
15371
|
*
|
|
15372
15372
|
* `GtkScale` has a main CSS node with name scale and a subnode for its contents,
|
|
@@ -15422,7 +15422,7 @@ export declare const Scale: "Scale";
|
|
|
15422
15422
|
* ```
|
|
15423
15423
|
* scalebutton.scale
|
|
15424
15424
|
* ╰── button.toggle
|
|
15425
|
-
*
|
|
15425
|
+
* ╰── <icon>
|
|
15426
15426
|
* ```
|
|
15427
15427
|
*
|
|
15428
15428
|
* `GtkScaleButton` has a single CSS node with name scalebutton and `.scale`
|
|
@@ -15453,8 +15453,8 @@ export declare const ScaleButton: "ScaleButton";
|
|
|
15453
15453
|
* ```
|
|
15454
15454
|
* scrollbar
|
|
15455
15455
|
* ╰── range[.fine-tune]
|
|
15456
|
-
*
|
|
15457
|
-
*
|
|
15456
|
+
* ╰── trough
|
|
15457
|
+
* ╰── slider
|
|
15458
15458
|
* ```
|
|
15459
15459
|
*
|
|
15460
15460
|
* `GtkScrollbar` has a main CSS node with name scrollbar and a subnode for its
|
|
@@ -15592,9 +15592,9 @@ export declare const ScrolledWindow: "ScrolledWindow";
|
|
|
15592
15592
|
* ```
|
|
15593
15593
|
* searchbar
|
|
15594
15594
|
* ╰── revealer
|
|
15595
|
-
*
|
|
15596
|
-
*
|
|
15597
|
-
*
|
|
15595
|
+
* ╰── box
|
|
15596
|
+
* ├── [child]
|
|
15597
|
+
* ╰── [button.close]
|
|
15598
15598
|
* ```
|
|
15599
15599
|
*
|
|
15600
15600
|
* `GtkSearchBar` has a main CSS node with name searchbar. It has a child
|
|
@@ -15839,27 +15839,27 @@ export declare const ShortcutsWindow: "ShortcutsWindow";
|
|
|
15839
15839
|
*
|
|
15840
15840
|
* int
|
|
15841
15841
|
* grab_int_value (GtkSpinButton *button,
|
|
15842
|
-
*
|
|
15842
|
+
* gpointer user_data)
|
|
15843
15843
|
* {
|
|
15844
|
-
*
|
|
15844
|
+
* return gtk_spin_button_get_value_as_int (button);
|
|
15845
15845
|
* }
|
|
15846
15846
|
*
|
|
15847
15847
|
* void
|
|
15848
15848
|
* create_integer_spin_button (void)
|
|
15849
15849
|
* {
|
|
15850
15850
|
*
|
|
15851
|
-
*
|
|
15852
|
-
*
|
|
15851
|
+
* GtkWidget *window, *button;
|
|
15852
|
+
* GtkAdjustment *adjustment;
|
|
15853
15853
|
*
|
|
15854
|
-
*
|
|
15854
|
+
* adjustment = gtk_adjustment_new (50.0, 0.0, 100.0, 1.0, 5.0, 0.0);
|
|
15855
15855
|
*
|
|
15856
|
-
*
|
|
15856
|
+
* window = gtk_window_new ();
|
|
15857
15857
|
*
|
|
15858
|
-
*
|
|
15859
|
-
*
|
|
15860
|
-
*
|
|
15858
|
+
* // creates the spinbutton, with no decimal places
|
|
15859
|
+
* button = gtk_spin_button_new (adjustment, 1.0, 0);
|
|
15860
|
+
* gtk_window_set_child (GTK_WINDOW (window), button);
|
|
15861
15861
|
*
|
|
15862
|
-
*
|
|
15862
|
+
* gtk_window_present (GTK_WINDOW (window));
|
|
15863
15863
|
* }
|
|
15864
15864
|
* ```
|
|
15865
15865
|
*
|
|
@@ -15871,26 +15871,26 @@ export declare const ShortcutsWindow: "ShortcutsWindow";
|
|
|
15871
15871
|
*
|
|
15872
15872
|
* float
|
|
15873
15873
|
* grab_float_value (GtkSpinButton *button,
|
|
15874
|
-
*
|
|
15874
|
+
* gpointer user_data)
|
|
15875
15875
|
* {
|
|
15876
|
-
*
|
|
15876
|
+
* return gtk_spin_button_get_value (button);
|
|
15877
15877
|
* }
|
|
15878
15878
|
*
|
|
15879
15879
|
* void
|
|
15880
15880
|
* create_floating_spin_button (void)
|
|
15881
15881
|
* {
|
|
15882
|
-
*
|
|
15883
|
-
*
|
|
15882
|
+
* GtkWidget *window, *button;
|
|
15883
|
+
* GtkAdjustment *adjustment;
|
|
15884
15884
|
*
|
|
15885
|
-
*
|
|
15885
|
+
* adjustment = gtk_adjustment_new (2.500, 0.0, 5.0, 0.001, 0.1, 0.0);
|
|
15886
15886
|
*
|
|
15887
|
-
*
|
|
15887
|
+
* window = gtk_window_new ();
|
|
15888
15888
|
*
|
|
15889
|
-
*
|
|
15890
|
-
*
|
|
15891
|
-
*
|
|
15889
|
+
* // creates the spinbutton, with three decimal places
|
|
15890
|
+
* button = gtk_spin_button_new (adjustment, 0.001, 3);
|
|
15891
|
+
* gtk_window_set_child (GTK_WINDOW (window), button);
|
|
15892
15892
|
*
|
|
15893
|
-
*
|
|
15893
|
+
* gtk_window_present (GTK_WINDOW (window));
|
|
15894
15894
|
* }
|
|
15895
15895
|
* ```
|
|
15896
15896
|
*
|
|
@@ -15983,18 +15983,18 @@ declare function StackVisibleChild(props: SlotProps): import("react").ReactEleme
|
|
|
15983
15983
|
* objects explicitly, and set the child widget as a property on it:
|
|
15984
15984
|
*
|
|
15985
15985
|
* ```xml
|
|
15986
|
-
*
|
|
15987
|
-
*
|
|
15988
|
-
*
|
|
15989
|
-
*
|
|
15990
|
-
*
|
|
15991
|
-
*
|
|
15992
|
-
*
|
|
15993
|
-
*
|
|
15994
|
-
*
|
|
15995
|
-
*
|
|
15996
|
-
*
|
|
15997
|
-
*
|
|
15986
|
+
* <object class="GtkStack" id="stack">
|
|
15987
|
+
* <child>
|
|
15988
|
+
* <object class="GtkStackPage">
|
|
15989
|
+
* <property name="name">page1</property>
|
|
15990
|
+
* <property name="title">In the beginning…</property>
|
|
15991
|
+
* <property name="child">
|
|
15992
|
+
* <object class="GtkLabel">
|
|
15993
|
+
* <property name="label">It was dark</property>
|
|
15994
|
+
* </object>
|
|
15995
|
+
* </property>
|
|
15996
|
+
* </object>
|
|
15997
|
+
* </child>
|
|
15998
15998
|
* ```
|
|
15999
15999
|
*
|
|
16000
16000
|
* # CSS nodes
|
|
@@ -16378,40 +16378,40 @@ export declare const TextView: "TextView";
|
|
|
16378
16378
|
* ```c
|
|
16379
16379
|
* static void
|
|
16380
16380
|
* output_state (GtkToggleButton *source,
|
|
16381
|
-
*
|
|
16381
|
+
* gpointer user_data)
|
|
16382
16382
|
* {
|
|
16383
|
-
*
|
|
16384
|
-
*
|
|
16385
|
-
*
|
|
16383
|
+
* g_print ("Toggle button "%s" is active: %s",
|
|
16384
|
+
* gtk_button_get_label (GTK_BUTTON (source)),
|
|
16385
|
+
* gtk_toggle_button_get_active (source) ? "Yes" : "No");
|
|
16386
16386
|
* }
|
|
16387
16387
|
*
|
|
16388
16388
|
* static void
|
|
16389
16389
|
* make_toggles (void)
|
|
16390
16390
|
* {
|
|
16391
|
-
*
|
|
16392
|
-
*
|
|
16393
|
-
*
|
|
16394
|
-
*
|
|
16395
|
-
*
|
|
16396
|
-
*
|
|
16397
|
-
*
|
|
16398
|
-
*
|
|
16399
|
-
*
|
|
16400
|
-
*
|
|
16401
|
-
*
|
|
16402
|
-
*
|
|
16403
|
-
*
|
|
16404
|
-
*
|
|
16405
|
-
*
|
|
16406
|
-
*
|
|
16407
|
-
*
|
|
16408
|
-
*
|
|
16409
|
-
*
|
|
16410
|
-
*
|
|
16411
|
-
*
|
|
16412
|
-
*
|
|
16413
|
-
*
|
|
16414
|
-
*
|
|
16391
|
+
* GtkWidget *window, *toggle1, *toggle2;
|
|
16392
|
+
* GtkWidget *box;
|
|
16393
|
+
* const char *text;
|
|
16394
|
+
*
|
|
16395
|
+
* window = gtk_window_new ();
|
|
16396
|
+
* box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
|
|
16397
|
+
*
|
|
16398
|
+
* text = "Hi, I’m toggle button one";
|
|
16399
|
+
* toggle1 = gtk_toggle_button_new_with_label (text);
|
|
16400
|
+
*
|
|
16401
|
+
* g_signal_connect (toggle1, "toggled",
|
|
16402
|
+
* G_CALLBACK (output_state),
|
|
16403
|
+
* NULL);
|
|
16404
|
+
* gtk_box_append (GTK_BOX (box), toggle1);
|
|
16405
|
+
*
|
|
16406
|
+
* text = "Hi, I’m toggle button two";
|
|
16407
|
+
* toggle2 = gtk_toggle_button_new_with_label (text);
|
|
16408
|
+
* g_signal_connect (toggle2, "toggled",
|
|
16409
|
+
* G_CALLBACK (output_state),
|
|
16410
|
+
* NULL);
|
|
16411
|
+
* gtk_box_append (GTK_BOX (box), toggle2);
|
|
16412
|
+
*
|
|
16413
|
+
* gtk_window_set_child (GTK_WINDOW (window), box);
|
|
16414
|
+
* gtk_window_present (GTK_WINDOW (window));
|
|
16415
16415
|
* }
|
|
16416
16416
|
* ```
|
|
16417
16417
|
*/
|
|
@@ -16540,23 +16540,23 @@ export declare const TreeExpander: "TreeExpander";
|
|
|
16540
16540
|
*
|
|
16541
16541
|
* ```xml
|
|
16542
16542
|
* <object class="GtkTreeView" id="treeview">
|
|
16543
|
-
*
|
|
16544
|
-
*
|
|
16545
|
-
*
|
|
16546
|
-
*
|
|
16547
|
-
*
|
|
16548
|
-
*
|
|
16549
|
-
*
|
|
16550
|
-
*
|
|
16551
|
-
*
|
|
16552
|
-
*
|
|
16553
|
-
*
|
|
16554
|
-
*
|
|
16555
|
-
*
|
|
16556
|
-
*
|
|
16557
|
-
*
|
|
16558
|
-
*
|
|
16559
|
-
*
|
|
16543
|
+
* <property name="model">liststore1</property>
|
|
16544
|
+
* <child>
|
|
16545
|
+
* <object class="GtkTreeViewColumn" id="test-column">
|
|
16546
|
+
* <property name="title">Test</property>
|
|
16547
|
+
* <child>
|
|
16548
|
+
* <object class="GtkCellRendererText" id="test-renderer"/>
|
|
16549
|
+
* <attributes>
|
|
16550
|
+
* <attribute name="text">1</attribute>
|
|
16551
|
+
* </attributes>
|
|
16552
|
+
* </child>
|
|
16553
|
+
* </object>
|
|
16554
|
+
* </child>
|
|
16555
|
+
* <child internal-child="selection">
|
|
16556
|
+
* <object class="GtkTreeSelection" id="selection">
|
|
16557
|
+
* <signal name="changed" handler="on_treeview_selection_changed"/>
|
|
16558
|
+
* </object>
|
|
16559
|
+
* </child>
|
|
16560
16560
|
* </object>
|
|
16561
16561
|
* ```
|
|
16562
16562
|
*
|
|
@@ -16648,19 +16648,19 @@ export declare const VolumeButton: "VolumeButton";
|
|
|
16648
16648
|
*
|
|
16649
16649
|
* ```xml
|
|
16650
16650
|
* <object class="GtkBox">
|
|
16651
|
-
*
|
|
16652
|
-
*
|
|
16653
|
-
*
|
|
16654
|
-
*
|
|
16655
|
-
*
|
|
16656
|
-
*
|
|
16657
|
-
*
|
|
16658
|
-
*
|
|
16659
|
-
*
|
|
16660
|
-
*
|
|
16661
|
-
*
|
|
16662
|
-
*
|
|
16663
|
-
*
|
|
16651
|
+
* <child>
|
|
16652
|
+
* <object class="GtkWindowControls">
|
|
16653
|
+
* <property name="side">start</property>
|
|
16654
|
+
* </object>
|
|
16655
|
+
* </child>
|
|
16656
|
+
*
|
|
16657
|
+
* ...
|
|
16658
|
+
*
|
|
16659
|
+
* <child>
|
|
16660
|
+
* <object class="GtkWindowControls">
|
|
16661
|
+
* <property name="side">end</property>
|
|
16662
|
+
* </object>
|
|
16663
|
+
* </child>
|
|
16664
16664
|
* </object>
|
|
16665
16665
|
* ```
|
|
16666
16666
|
*
|
|
@@ -16717,16 +16717,16 @@ export declare const WindowHandle: "WindowHandle";
|
|
|
16717
16717
|
*
|
|
16718
16718
|
* ```xml
|
|
16719
16719
|
* <object class="AdwWindow">
|
|
16720
|
-
*
|
|
16721
|
-
*
|
|
16722
|
-
*
|
|
16723
|
-
*
|
|
16724
|
-
*
|
|
16725
|
-
*
|
|
16726
|
-
*
|
|
16727
|
-
*
|
|
16728
|
-
*
|
|
16729
|
-
*
|
|
16720
|
+
* <property name="content">
|
|
16721
|
+
* <object class="AdwToolbarView">
|
|
16722
|
+
* <child type="top">
|
|
16723
|
+
* <object class="AdwHeaderBar"/>
|
|
16724
|
+
* </child>
|
|
16725
|
+
* <property name="content">
|
|
16726
|
+
* <!-- ... -->
|
|
16727
|
+
* </property>
|
|
16728
|
+
* </object>
|
|
16729
|
+
* </property>
|
|
16730
16730
|
* </object>
|
|
16731
16731
|
* ```
|
|
16732
16732
|
*
|
|
@@ -16748,28 +16748,28 @@ export declare const WindowHandle: "WindowHandle";
|
|
|
16748
16748
|
*
|
|
16749
16749
|
* ```xml
|
|
16750
16750
|
* <object class="AdwWindow">
|
|
16751
|
-
*
|
|
16752
|
-
*
|
|
16753
|
-
*
|
|
16754
|
-
*
|
|
16755
|
-
*
|
|
16756
|
-
*
|
|
16757
|
-
*
|
|
16758
|
-
*
|
|
16759
|
-
*
|
|
16760
|
-
*
|
|
16761
|
-
*
|
|
16762
|
-
*
|
|
16763
|
-
*
|
|
16764
|
-
*
|
|
16765
|
-
*
|
|
16766
|
-
*
|
|
16767
|
-
*
|
|
16768
|
-
*
|
|
16769
|
-
*
|
|
16770
|
-
*
|
|
16771
|
-
*
|
|
16772
|
-
*
|
|
16751
|
+
* <property name="content">
|
|
16752
|
+
* <object class="AdwToolbarView">
|
|
16753
|
+
* <child type="top">
|
|
16754
|
+
* <object class="AdwHeaderBar"/>
|
|
16755
|
+
* </child>
|
|
16756
|
+
* <property name="content">
|
|
16757
|
+
* <!-- ... -->
|
|
16758
|
+
* </property>
|
|
16759
|
+
* <child type="bottom">
|
|
16760
|
+
* <object class="GtkActionBar" id="bottom_bar">
|
|
16761
|
+
* <property name="revealed">True</property>
|
|
16762
|
+
* <property name="visible">False</property>
|
|
16763
|
+
* </object>
|
|
16764
|
+
* </child>
|
|
16765
|
+
* </object>
|
|
16766
|
+
* </property>
|
|
16767
|
+
* <child>
|
|
16768
|
+
* <object class="AdwBreakpoint">
|
|
16769
|
+
* <condition>max-width: 500px</condition>
|
|
16770
|
+
* <setter object="bottom_bar" property="visible">True</setter>
|
|
16771
|
+
* </object>
|
|
16772
|
+
* </child>
|
|
16773
16773
|
* </object>
|
|
16774
16774
|
* ```
|
|
16775
16775
|
*
|
|
@@ -16925,27 +16925,27 @@ export declare const AdwWindow: {
|
|
|
16925
16925
|
* static void
|
|
16926
16926
|
* show_about (GtkApplication *app)
|
|
16927
16927
|
* {
|
|
16928
|
-
*
|
|
16929
|
-
*
|
|
16930
|
-
*
|
|
16931
|
-
*
|
|
16932
|
-
*
|
|
16933
|
-
*
|
|
16934
|
-
*
|
|
16935
|
-
*
|
|
16936
|
-
*
|
|
16937
|
-
*
|
|
16938
|
-
*
|
|
16939
|
-
*
|
|
16940
|
-
*
|
|
16941
|
-
*
|
|
16942
|
-
*
|
|
16943
|
-
*
|
|
16944
|
-
*
|
|
16945
|
-
*
|
|
16946
|
-
*
|
|
16947
|
-
*
|
|
16948
|
-
*
|
|
16928
|
+
* const char *developers[] = {
|
|
16929
|
+
* "Angela Avery",
|
|
16930
|
+
* NULL
|
|
16931
|
+
* };
|
|
16932
|
+
*
|
|
16933
|
+
* const char *designers[] = {
|
|
16934
|
+
* "GNOME Design Team",
|
|
16935
|
+
* NULL
|
|
16936
|
+
* };
|
|
16937
|
+
*
|
|
16938
|
+
* adw_show_about_dialog (GTK_WIDGET (gtk_application_get_active_window (app)),
|
|
16939
|
+
* "application-name", _("Example"),
|
|
16940
|
+
* "application-icon", "org.example.App",
|
|
16941
|
+
* "version", "1.2.3",
|
|
16942
|
+
* "copyright", "© 2022 Angela Avery",
|
|
16943
|
+
* "issue-url", "https://gitlab.gnome.org/example/example/-/issues/",
|
|
16944
|
+
* "license-type", GTK_LICENSE_GPL_3_0,
|
|
16945
|
+
* "developers", developers,
|
|
16946
|
+
* "designers", designers,
|
|
16947
|
+
* "translator-credits", _("translator-credits"),
|
|
16948
|
+
* NULL);
|
|
16949
16949
|
* }
|
|
16950
16950
|
* ```
|
|
16951
16951
|
*
|
|
@@ -17087,27 +17087,27 @@ export declare const AdwAboutDialog: "AdwAboutDialog";
|
|
|
17087
17087
|
* static void
|
|
17088
17088
|
* show_about (GtkApplication *app)
|
|
17089
17089
|
* {
|
|
17090
|
-
*
|
|
17091
|
-
*
|
|
17092
|
-
*
|
|
17093
|
-
*
|
|
17094
|
-
*
|
|
17095
|
-
*
|
|
17096
|
-
*
|
|
17097
|
-
*
|
|
17098
|
-
*
|
|
17099
|
-
*
|
|
17100
|
-
*
|
|
17101
|
-
*
|
|
17102
|
-
*
|
|
17103
|
-
*
|
|
17104
|
-
*
|
|
17105
|
-
*
|
|
17106
|
-
*
|
|
17107
|
-
*
|
|
17108
|
-
*
|
|
17109
|
-
*
|
|
17110
|
-
*
|
|
17090
|
+
* const char *developers[] = {
|
|
17091
|
+
* "Angela Avery",
|
|
17092
|
+
* NULL
|
|
17093
|
+
* };
|
|
17094
|
+
*
|
|
17095
|
+
* const char *designers[] = {
|
|
17096
|
+
* "GNOME Design Team",
|
|
17097
|
+
* NULL
|
|
17098
|
+
* };
|
|
17099
|
+
*
|
|
17100
|
+
* adw_show_about_window (gtk_application_get_active_window (app),
|
|
17101
|
+
* "application-name", _("Example"),
|
|
17102
|
+
* "application-icon", "org.example.App",
|
|
17103
|
+
* "version", "1.2.3",
|
|
17104
|
+
* "copyright", "© 2022 Angela Avery",
|
|
17105
|
+
* "issue-url", "https://gitlab.gnome.org/example/example/-/issues/",
|
|
17106
|
+
* "license-type", GTK_LICENSE_GPL_3_0,
|
|
17107
|
+
* "developers", developers,
|
|
17108
|
+
* "designers", designers,
|
|
17109
|
+
* "translator-credits", _("translator-credits"),
|
|
17110
|
+
* NULL);
|
|
17111
17111
|
* }
|
|
17112
17112
|
* ```
|
|
17113
17113
|
*
|
|
@@ -17197,17 +17197,17 @@ export declare const AdwActionRow: {
|
|
|
17197
17197
|
* dialog = adw_alert_dialog_new (_("Replace File?"), NULL);
|
|
17198
17198
|
*
|
|
17199
17199
|
* adw_alert_dialog_format_body (ADW_ALERT_DIALOG (dialog),
|
|
17200
|
-
*
|
|
17201
|
-
*
|
|
17200
|
+
* _("A file named “%s” already exists. Do you want to replace it?"),
|
|
17201
|
+
* filename);
|
|
17202
17202
|
*
|
|
17203
17203
|
* adw_alert_dialog_add_responses (ADW_ALERT_DIALOG (dialog),
|
|
17204
|
-
*
|
|
17205
|
-
*
|
|
17206
|
-
*
|
|
17204
|
+
* "cancel", _("_Cancel"),
|
|
17205
|
+
* "replace", _("_Replace"),
|
|
17206
|
+
* NULL);
|
|
17207
17207
|
*
|
|
17208
17208
|
* adw_alert_dialog_set_response_appearance (ADW_ALERT_DIALOG (dialog),
|
|
17209
|
-
*
|
|
17210
|
-
*
|
|
17209
|
+
* "replace",
|
|
17210
|
+
* ADW_RESPONSE_DESTRUCTIVE);
|
|
17211
17211
|
*
|
|
17212
17212
|
* adw_alert_dialog_set_default_response (ADW_ALERT_DIALOG (dialog), "cancel");
|
|
17213
17213
|
* adw_alert_dialog_set_close_response (ADW_ALERT_DIALOG (dialog), "cancel");
|
|
@@ -17225,39 +17225,39 @@ export declare const AdwActionRow: {
|
|
|
17225
17225
|
* ```c
|
|
17226
17226
|
* static void
|
|
17227
17227
|
* dialog_cb (AdwAlertDialog *dialog,
|
|
17228
|
-
*
|
|
17229
|
-
*
|
|
17228
|
+
* GAsyncResult *result,
|
|
17229
|
+
* MyWindow *self)
|
|
17230
17230
|
* {
|
|
17231
|
-
*
|
|
17231
|
+
* const char *response = adw_alert_dialog_choose_finish (dialog, result);
|
|
17232
17232
|
*
|
|
17233
|
-
*
|
|
17233
|
+
* // ...
|
|
17234
17234
|
* }
|
|
17235
17235
|
*
|
|
17236
17236
|
* static void
|
|
17237
17237
|
* show_dialog (MyWindow *self)
|
|
17238
17238
|
* {
|
|
17239
|
-
*
|
|
17239
|
+
* AdwDialog *dialog;
|
|
17240
17240
|
*
|
|
17241
|
-
*
|
|
17241
|
+
* dialog = adw_alert_dialog_new (_("Replace File?"), NULL);
|
|
17242
17242
|
*
|
|
17243
|
-
*
|
|
17244
|
-
*
|
|
17245
|
-
*
|
|
17243
|
+
* adw_alert_dialog_format_body (ADW_ALERT_DIALOG (dialog),
|
|
17244
|
+
* _("A file named “%s” already exists. Do you want to replace it?"),
|
|
17245
|
+
* filename);
|
|
17246
17246
|
*
|
|
17247
|
-
*
|
|
17248
|
-
*
|
|
17249
|
-
*
|
|
17250
|
-
*
|
|
17247
|
+
* adw_alert_dialog_add_responses (ADW_ALERT_DIALOG (dialog),
|
|
17248
|
+
* "cancel", _("_Cancel"),
|
|
17249
|
+
* "replace", _("_Replace"),
|
|
17250
|
+
* NULL);
|
|
17251
17251
|
*
|
|
17252
|
-
*
|
|
17253
|
-
*
|
|
17254
|
-
*
|
|
17252
|
+
* adw_alert_dialog_set_response_appearance (ADW_ALERT_DIALOG (dialog),
|
|
17253
|
+
* "replace",
|
|
17254
|
+
* ADW_RESPONSE_DESTRUCTIVE);
|
|
17255
17255
|
*
|
|
17256
|
-
*
|
|
17257
|
-
*
|
|
17256
|
+
* adw_alert_dialog_set_default_response (ADW_ALERT_DIALOG (dialog), "cancel");
|
|
17257
|
+
* adw_alert_dialog_set_close_response (ADW_ALERT_DIALOG (dialog), "cancel");
|
|
17258
17258
|
*
|
|
17259
|
-
*
|
|
17260
|
-
*
|
|
17259
|
+
* adw_alert_dialog_choose (ADW_ALERT_DIALOG (dialog), GTK_WIDGET (self),
|
|
17260
|
+
* NULL, (GAsyncReadyCallback) dialog_cb, self);
|
|
17261
17261
|
* }
|
|
17262
17262
|
* ```
|
|
17263
17263
|
*
|
|
@@ -17281,16 +17281,16 @@ export declare const AdwActionRow: {
|
|
|
17281
17281
|
*
|
|
17282
17282
|
* ```xml
|
|
17283
17283
|
* <object class="AdwAlertDialog" id="dialog">
|
|
17284
|
-
*
|
|
17285
|
-
*
|
|
17286
|
-
*
|
|
17287
|
-
*
|
|
17288
|
-
*
|
|
17289
|
-
*
|
|
17290
|
-
*
|
|
17291
|
-
*
|
|
17292
|
-
*
|
|
17293
|
-
*
|
|
17284
|
+
* <property name="heading" translatable="yes">Save Changes?</property>
|
|
17285
|
+
* <property name="body" translatable="yes">Open documents contain unsaved changes. Changes which are not saved will be permanently lost.</property>
|
|
17286
|
+
* <property name="default-response">save</property>
|
|
17287
|
+
* <property name="close-response">cancel</property>
|
|
17288
|
+
* <signal name="response" handler="response_cb"/>
|
|
17289
|
+
* <responses>
|
|
17290
|
+
* <response id="cancel" translatable="yes">_Cancel</response>
|
|
17291
|
+
* <response id="discard" translatable="yes" appearance="destructive">_Discard</response>
|
|
17292
|
+
* <response id="save" translatable="yes" appearance="suggested" enabled="false">_Save</response>
|
|
17293
|
+
* </responses>
|
|
17294
17294
|
* </object>
|
|
17295
17295
|
* ```
|
|
17296
17296
|
*/
|
|
@@ -17312,16 +17312,16 @@ export declare const AdwAlertDialog: {
|
|
|
17312
17312
|
*
|
|
17313
17313
|
* ```xml
|
|
17314
17314
|
* <object class="AdwApplicationWindow">
|
|
17315
|
-
*
|
|
17316
|
-
*
|
|
17317
|
-
*
|
|
17318
|
-
*
|
|
17319
|
-
*
|
|
17320
|
-
*
|
|
17321
|
-
*
|
|
17322
|
-
*
|
|
17323
|
-
*
|
|
17324
|
-
*
|
|
17315
|
+
* <property name="content">
|
|
17316
|
+
* <object class="AdwToolbarView">
|
|
17317
|
+
* <child type="top">
|
|
17318
|
+
* <object class="AdwHeaderBar"/>
|
|
17319
|
+
* </child>
|
|
17320
|
+
* <property name="content">
|
|
17321
|
+
* <!-- ... -->
|
|
17322
|
+
* </property>
|
|
17323
|
+
* </object>
|
|
17324
|
+
* </property>
|
|
17325
17325
|
* </object>
|
|
17326
17326
|
* ```
|
|
17327
17327
|
*
|
|
@@ -17545,8 +17545,8 @@ export declare const AdwBottomSheet: {
|
|
|
17545
17545
|
*
|
|
17546
17546
|
* breakpoint = adw_breakpoint_new (adw_breakpoint_condition_parse ("max-width: 200px"));
|
|
17547
17547
|
* adw_breakpoint_add_setters (breakpoint,
|
|
17548
|
-
*
|
|
17549
|
-
*
|
|
17548
|
+
* G_OBJECT (child), "label", "Narrow",
|
|
17549
|
+
* NULL);
|
|
17550
17550
|
* adw_breakpoint_bin_add_breakpoint (ADW_BREAKPOINT_BIN (bin), breakpoint);
|
|
17551
17551
|
* ```
|
|
17552
17552
|
*
|
|
@@ -17561,23 +17561,23 @@ export declare const AdwBottomSheet: {
|
|
|
17561
17561
|
*
|
|
17562
17562
|
* ```xml
|
|
17563
17563
|
* <object class="AdwBreakpointBin">
|
|
17564
|
-
*
|
|
17565
|
-
*
|
|
17566
|
-
*
|
|
17567
|
-
*
|
|
17568
|
-
*
|
|
17569
|
-
*
|
|
17570
|
-
*
|
|
17571
|
-
*
|
|
17572
|
-
*
|
|
17573
|
-
*
|
|
17574
|
-
*
|
|
17575
|
-
*
|
|
17576
|
-
*
|
|
17577
|
-
*
|
|
17578
|
-
*
|
|
17579
|
-
*
|
|
17580
|
-
*
|
|
17564
|
+
* <property name="width-request">150</property>
|
|
17565
|
+
* <property name="height-request">150</property>
|
|
17566
|
+
* <property name="child">
|
|
17567
|
+
* <object class="GtkLabel" id="child">
|
|
17568
|
+
* <property name="label">Wide</property>
|
|
17569
|
+
* <property name="ellipsize">end</property>
|
|
17570
|
+
* <style>
|
|
17571
|
+
* <class name="title-1"/>
|
|
17572
|
+
* </style>
|
|
17573
|
+
* </object>
|
|
17574
|
+
* </property>
|
|
17575
|
+
* <child>
|
|
17576
|
+
* <object class="AdwBreakpoint">
|
|
17577
|
+
* <condition>max-width: 200px</condition>
|
|
17578
|
+
* <setter object="child" property="label">Narrow</setter>
|
|
17579
|
+
* </object>
|
|
17580
|
+
* </child>
|
|
17581
17581
|
* </object>
|
|
17582
17582
|
* ```
|
|
17583
17583
|
*
|
|
@@ -17597,13 +17597,13 @@ export declare const AdwBreakpointBin: "AdwBreakpointBin";
|
|
|
17597
17597
|
*
|
|
17598
17598
|
* ```xml
|
|
17599
17599
|
* <object class="GtkButton">
|
|
17600
|
-
*
|
|
17601
|
-
*
|
|
17602
|
-
*
|
|
17603
|
-
*
|
|
17604
|
-
*
|
|
17605
|
-
*
|
|
17606
|
-
*
|
|
17600
|
+
* <property name="child">
|
|
17601
|
+
* <object class="AdwButtonContent">
|
|
17602
|
+
* <property name="icon-name">document-open-symbolic</property>
|
|
17603
|
+
* <property name="label" translatable="yes">_Open</property>
|
|
17604
|
+
* <property name="use-underline">True</property>
|
|
17605
|
+
* </object>
|
|
17606
|
+
* </property>
|
|
17607
17607
|
* </object>
|
|
17608
17608
|
* ```
|
|
17609
17609
|
*
|
|
@@ -17615,8 +17615,8 @@ export declare const AdwBreakpointBin: "AdwBreakpointBin";
|
|
|
17615
17615
|
* ```
|
|
17616
17616
|
* buttoncontent
|
|
17617
17617
|
* ╰── box
|
|
17618
|
-
*
|
|
17619
|
-
*
|
|
17618
|
+
* ├── image
|
|
17619
|
+
* ╰── label
|
|
17620
17620
|
* ```
|
|
17621
17621
|
*
|
|
17622
17622
|
* `AdwButtonContent`'s CSS node is called `buttoncontent`. It contains a `box`
|
|
@@ -17768,16 +17768,16 @@ export declare const AdwClampScrollable: "AdwClampScrollable";
|
|
|
17768
17768
|
* Example of an `AdwComboRow` UI definition:
|
|
17769
17769
|
* ```xml
|
|
17770
17770
|
* <object class="AdwComboRow">
|
|
17771
|
-
*
|
|
17772
|
-
*
|
|
17773
|
-
*
|
|
17774
|
-
*
|
|
17775
|
-
*
|
|
17776
|
-
*
|
|
17777
|
-
*
|
|
17778
|
-
*
|
|
17779
|
-
*
|
|
17780
|
-
*
|
|
17771
|
+
* <property name="title" translatable="yes">Combo Row</property>
|
|
17772
|
+
* <property name="model">
|
|
17773
|
+
* <object class="GtkStringList">
|
|
17774
|
+
* <items>
|
|
17775
|
+
* <item translatable="yes">Foo</item>
|
|
17776
|
+
* <item translatable="yes">Bar</item>
|
|
17777
|
+
* <item translatable="yes">Baz</item>
|
|
17778
|
+
* </items>
|
|
17779
|
+
* </object>
|
|
17780
|
+
* </property>
|
|
17781
17781
|
* </object>
|
|
17782
17782
|
* ```
|
|
17783
17783
|
*
|
|
@@ -18053,19 +18053,19 @@ export declare const AdwFlap: {
|
|
|
18053
18053
|
* ```
|
|
18054
18054
|
* headerbar
|
|
18055
18055
|
* ╰── windowhandle
|
|
18056
|
-
*
|
|
18057
|
-
*
|
|
18058
|
-
*
|
|
18059
|
-
*
|
|
18060
|
-
*
|
|
18061
|
-
*
|
|
18062
|
-
*
|
|
18063
|
-
*
|
|
18064
|
-
*
|
|
18065
|
-
*
|
|
18066
|
-
*
|
|
18067
|
-
*
|
|
18068
|
-
*
|
|
18056
|
+
* ╰── box
|
|
18057
|
+
* ├── widget
|
|
18058
|
+
* │ ╰── box.start
|
|
18059
|
+
* │ ├── windowcontrols.start
|
|
18060
|
+
* │ ├── widget
|
|
18061
|
+
* │ │ ╰── [button.back]
|
|
18062
|
+
* │ ╰── [other children]
|
|
18063
|
+
* ├── widget
|
|
18064
|
+
* │ ╰── [Title Widget]
|
|
18065
|
+
* ╰── widget
|
|
18066
|
+
* ╰── box.end
|
|
18067
|
+
* ├── [other children]
|
|
18068
|
+
* ╰── windowcontrols.end
|
|
18069
18069
|
* ```
|
|
18070
18070
|
*
|
|
18071
18071
|
* `AdwHeaderBar`'s CSS node is called `headerbar`. It contains a `windowhandle`
|
|
@@ -18192,13 +18192,13 @@ export declare const AdwLeaflet: {
|
|
|
18192
18192
|
* dialog = adw_message_dialog_new (parent, _("Replace File?"), NULL);
|
|
18193
18193
|
*
|
|
18194
18194
|
* adw_message_dialog_format_body (ADW_MESSAGE_DIALOG (dialog),
|
|
18195
|
-
*
|
|
18196
|
-
*
|
|
18195
|
+
* _("A file named “%s” already exists. Do you want to replace it?"),
|
|
18196
|
+
* filename);
|
|
18197
18197
|
*
|
|
18198
18198
|
* adw_message_dialog_add_responses (ADW_MESSAGE_DIALOG (dialog),
|
|
18199
|
-
*
|
|
18200
|
-
*
|
|
18201
|
-
*
|
|
18199
|
+
* "cancel", _("_Cancel"),
|
|
18200
|
+
* "replace", _("_Replace"),
|
|
18201
|
+
* NULL);
|
|
18202
18202
|
*
|
|
18203
18203
|
* adw_message_dialog_set_response_appearance (ADW_MESSAGE_DIALOG (dialog), "replace", ADW_RESPONSE_DESTRUCTIVE);
|
|
18204
18204
|
*
|
|
@@ -18218,36 +18218,36 @@ export declare const AdwLeaflet: {
|
|
|
18218
18218
|
* ```c
|
|
18219
18219
|
* static void
|
|
18220
18220
|
* dialog_cb (AdwMessageDialog *dialog,
|
|
18221
|
-
*
|
|
18222
|
-
*
|
|
18221
|
+
* GAsyncResult *result,
|
|
18222
|
+
* MyWindow *self)
|
|
18223
18223
|
* {
|
|
18224
|
-
*
|
|
18224
|
+
* const char *response = adw_message_dialog_choose_finish (dialog, result);
|
|
18225
18225
|
*
|
|
18226
|
-
*
|
|
18226
|
+
* // ...
|
|
18227
18227
|
* }
|
|
18228
18228
|
*
|
|
18229
18229
|
* static void
|
|
18230
18230
|
* show_dialog (MyWindow *self)
|
|
18231
18231
|
* {
|
|
18232
|
-
*
|
|
18232
|
+
* GtkWidget *dialog;
|
|
18233
18233
|
*
|
|
18234
|
-
*
|
|
18234
|
+
* dialog = adw_message_dialog_new (GTK_WINDOW (self), _("Replace File?"), NULL);
|
|
18235
18235
|
*
|
|
18236
|
-
*
|
|
18237
|
-
*
|
|
18238
|
-
*
|
|
18236
|
+
* adw_message_dialog_format_body (ADW_MESSAGE_DIALOG (dialog),
|
|
18237
|
+
* _("A file named “%s” already exists. Do you want to replace it?"),
|
|
18238
|
+
* filename);
|
|
18239
18239
|
*
|
|
18240
|
-
*
|
|
18241
|
-
*
|
|
18242
|
-
*
|
|
18243
|
-
*
|
|
18240
|
+
* adw_message_dialog_add_responses (ADW_MESSAGE_DIALOG (dialog),
|
|
18241
|
+
* "cancel", _("_Cancel"),
|
|
18242
|
+
* "replace", _("_Replace"),
|
|
18243
|
+
* NULL);
|
|
18244
18244
|
*
|
|
18245
|
-
*
|
|
18245
|
+
* adw_message_dialog_set_response_appearance (ADW_MESSAGE_DIALOG (dialog), "replace", ADW_RESPONSE_DESTRUCTIVE);
|
|
18246
18246
|
*
|
|
18247
|
-
*
|
|
18248
|
-
*
|
|
18247
|
+
* adw_message_dialog_set_default_response (ADW_MESSAGE_DIALOG (dialog), "cancel");
|
|
18248
|
+
* adw_message_dialog_set_close_response (ADW_MESSAGE_DIALOG (dialog), "cancel");
|
|
18249
18249
|
*
|
|
18250
|
-
*
|
|
18250
|
+
* adw_message_dialog_choose (ADW_MESSAGE_DIALOG (dialog), NULL, (GAsyncReadyCallback) dialog_cb, self);
|
|
18251
18251
|
* }
|
|
18252
18252
|
* ```
|
|
18253
18253
|
*
|
|
@@ -18271,16 +18271,16 @@ export declare const AdwLeaflet: {
|
|
|
18271
18271
|
*
|
|
18272
18272
|
* ```xml
|
|
18273
18273
|
* <object class="AdwMessageDialog" id="dialog">
|
|
18274
|
-
*
|
|
18275
|
-
*
|
|
18276
|
-
*
|
|
18277
|
-
*
|
|
18278
|
-
*
|
|
18279
|
-
*
|
|
18280
|
-
*
|
|
18281
|
-
*
|
|
18282
|
-
*
|
|
18283
|
-
*
|
|
18274
|
+
* <property name="heading" translatable="yes">Save Changes?</property>
|
|
18275
|
+
* <property name="body" translatable="yes">Open documents contain unsaved changes. Changes which are not saved will be permanently lost.</property>
|
|
18276
|
+
* <property name="default-response">save</property>
|
|
18277
|
+
* <property name="close-response">cancel</property>
|
|
18278
|
+
* <signal name="response" handler="response_cb"/>
|
|
18279
|
+
* <responses>
|
|
18280
|
+
* <response id="cancel" translatable="yes">_Cancel</response>
|
|
18281
|
+
* <response id="discard" translatable="yes" appearance="destructive">_Discard</response>
|
|
18282
|
+
* <response id="save" translatable="yes" appearance="suggested" enabled="false">_Save</response>
|
|
18283
|
+
* </responses>
|
|
18284
18284
|
* </object>
|
|
18285
18285
|
* ```
|
|
18286
18286
|
*
|
|
@@ -18322,51 +18322,51 @@ export declare const AdwMessageDialog: {
|
|
|
18322
18322
|
*
|
|
18323
18323
|
* ```xml
|
|
18324
18324
|
* <object class="AdwMultiLayoutView">
|
|
18325
|
-
*
|
|
18326
|
-
*
|
|
18327
|
-
*
|
|
18328
|
-
*
|
|
18329
|
-
*
|
|
18330
|
-
*
|
|
18331
|
-
*
|
|
18332
|
-
*
|
|
18333
|
-
*
|
|
18334
|
-
*
|
|
18335
|
-
*
|
|
18336
|
-
*
|
|
18337
|
-
*
|
|
18338
|
-
*
|
|
18339
|
-
*
|
|
18340
|
-
*
|
|
18341
|
-
*
|
|
18342
|
-
*
|
|
18343
|
-
*
|
|
18344
|
-
*
|
|
18345
|
-
*
|
|
18346
|
-
*
|
|
18347
|
-
*
|
|
18348
|
-
*
|
|
18349
|
-
*
|
|
18350
|
-
*
|
|
18351
|
-
*
|
|
18352
|
-
*
|
|
18353
|
-
*
|
|
18354
|
-
*
|
|
18355
|
-
*
|
|
18356
|
-
*
|
|
18357
|
-
*
|
|
18358
|
-
*
|
|
18359
|
-
*
|
|
18360
|
-
*
|
|
18361
|
-
*
|
|
18362
|
-
*
|
|
18363
|
-
*
|
|
18364
|
-
*
|
|
18365
|
-
*
|
|
18366
|
-
*
|
|
18367
|
-
*
|
|
18368
|
-
*
|
|
18369
|
-
*
|
|
18325
|
+
* <child>
|
|
18326
|
+
* <object class="AdwLayout">
|
|
18327
|
+
* <property name="name">sidebar</property>
|
|
18328
|
+
* <property name="content">
|
|
18329
|
+
* <object class="AdwOverlaySplitView">
|
|
18330
|
+
* <property name="sidebar">
|
|
18331
|
+
* <object class="AdwLayoutSlot">
|
|
18332
|
+
* <property name="id">secondary</property>
|
|
18333
|
+
* </object>
|
|
18334
|
+
* </property>
|
|
18335
|
+
* <property name="content">
|
|
18336
|
+
* <object class="AdwLayoutSlot">
|
|
18337
|
+
* <property name="id">primary</property>
|
|
18338
|
+
* </object>
|
|
18339
|
+
* </property>
|
|
18340
|
+
* </object>
|
|
18341
|
+
* </property>
|
|
18342
|
+
* </object>
|
|
18343
|
+
* </child>
|
|
18344
|
+
* <child>
|
|
18345
|
+
* <object class="AdwLayout">
|
|
18346
|
+
* <property name="name">bottom-sheet</property>
|
|
18347
|
+
* <property name="content">
|
|
18348
|
+
* <object class="AdwBottomSheet">
|
|
18349
|
+
* <property name="open">True</property>
|
|
18350
|
+
* <property name="content">
|
|
18351
|
+
* <object class="AdwLayoutSlot">
|
|
18352
|
+
* <property name="id">primary</property>
|
|
18353
|
+
* </object>
|
|
18354
|
+
* </property>
|
|
18355
|
+
* <property name="sheet">
|
|
18356
|
+
* <object class="AdwLayoutSlot">
|
|
18357
|
+
* <property name="id">secondary</property>
|
|
18358
|
+
* </object>
|
|
18359
|
+
* </property>
|
|
18360
|
+
* </object>
|
|
18361
|
+
* </property>
|
|
18362
|
+
* </object>
|
|
18363
|
+
* </child>
|
|
18364
|
+
* <child type="primary">
|
|
18365
|
+
* <!-- ... -->
|
|
18366
|
+
* </child>
|
|
18367
|
+
* <child type="secondary">
|
|
18368
|
+
* <!-- ... -->
|
|
18369
|
+
* </child>
|
|
18370
18370
|
* </object>
|
|
18371
18371
|
* ```
|
|
18372
18372
|
*
|
|
@@ -18425,36 +18425,36 @@ export declare const AdwNavigationPage: "AdwNavigationPage";
|
|
|
18425
18425
|
*
|
|
18426
18426
|
* ```xml
|
|
18427
18427
|
* <object class="AdwWindow">
|
|
18428
|
-
*
|
|
18429
|
-
*
|
|
18430
|
-
*
|
|
18431
|
-
*
|
|
18432
|
-
*
|
|
18433
|
-
*
|
|
18434
|
-
*
|
|
18435
|
-
*
|
|
18436
|
-
*
|
|
18437
|
-
*
|
|
18438
|
-
*
|
|
18439
|
-
*
|
|
18440
|
-
*
|
|
18441
|
-
*
|
|
18442
|
-
*
|
|
18443
|
-
*
|
|
18444
|
-
*
|
|
18445
|
-
*
|
|
18446
|
-
*
|
|
18447
|
-
*
|
|
18448
|
-
*
|
|
18449
|
-
*
|
|
18450
|
-
*
|
|
18451
|
-
*
|
|
18452
|
-
*
|
|
18453
|
-
*
|
|
18454
|
-
*
|
|
18455
|
-
*
|
|
18456
|
-
*
|
|
18457
|
-
*
|
|
18428
|
+
* <property name="width-request">280</property>
|
|
18429
|
+
* <property name="height-request">200</property>
|
|
18430
|
+
* <property name="default-width">800</property>
|
|
18431
|
+
* <property name="default-height">800</property>
|
|
18432
|
+
* <child>
|
|
18433
|
+
* <object class="AdwBreakpoint">
|
|
18434
|
+
* <condition>max-width: 400sp</condition>
|
|
18435
|
+
* <setter object="split_view" property="collapsed">True</setter>
|
|
18436
|
+
* </object>
|
|
18437
|
+
* </child>
|
|
18438
|
+
* <property name="content">
|
|
18439
|
+
* <object class="AdwNavigationSplitView" id="split_view">
|
|
18440
|
+
* <property name="sidebar">
|
|
18441
|
+
* <object class="AdwNavigationPage">
|
|
18442
|
+
* <property name="title" translatable="yes">Sidebar</property>
|
|
18443
|
+
* <property name="child">
|
|
18444
|
+
* <!-- ... -->
|
|
18445
|
+
* </property>
|
|
18446
|
+
* </object>
|
|
18447
|
+
* </property>
|
|
18448
|
+
* <property name="content">
|
|
18449
|
+
* <object class="AdwNavigationPage">
|
|
18450
|
+
* <property name="title" translatable="yes">Content</property>
|
|
18451
|
+
* <property name="child">
|
|
18452
|
+
* <!-- ... -->
|
|
18453
|
+
* </property>
|
|
18454
|
+
* </object>
|
|
18455
|
+
* </property>
|
|
18456
|
+
* </object>
|
|
18457
|
+
* </property>
|
|
18458
18458
|
* </object>
|
|
18459
18459
|
* ```
|
|
18460
18460
|
*
|
|
@@ -18514,8 +18514,8 @@ export declare const AdwNavigationPage: "AdwNavigationPage";
|
|
|
18514
18514
|
* ```
|
|
18515
18515
|
* navigation-split-view
|
|
18516
18516
|
* ╰── navigation-view
|
|
18517
|
-
*
|
|
18518
|
-
*
|
|
18517
|
+
* ├── [sidebar child]
|
|
18518
|
+
* ╰── [content child]
|
|
18519
18519
|
* ```
|
|
18520
18520
|
*
|
|
18521
18521
|
* When not collapsed, it contains two nodes with the name `widget`, one with
|
|
@@ -18527,7 +18527,7 @@ export declare const AdwNavigationPage: "AdwNavigationPage";
|
|
|
18527
18527
|
* ├── widget.sidebar-pane
|
|
18528
18528
|
* │ ╰── [sidebar child]
|
|
18529
18529
|
* ╰── widget.content-pane
|
|
18530
|
-
*
|
|
18530
|
+
* ╰── [content child]
|
|
18531
18531
|
* ```
|
|
18532
18532
|
*
|
|
18533
18533
|
* ## Accessibility
|
|
@@ -18635,46 +18635,46 @@ export declare const AdwNavigationSplitView: "AdwNavigationSplitView";
|
|
|
18635
18635
|
*
|
|
18636
18636
|
* ```xml
|
|
18637
18637
|
* <object class="AdwNavigationView">
|
|
18638
|
-
*
|
|
18639
|
-
*
|
|
18640
|
-
*
|
|
18641
|
-
*
|
|
18642
|
-
*
|
|
18643
|
-
*
|
|
18644
|
-
*
|
|
18645
|
-
*
|
|
18646
|
-
*
|
|
18647
|
-
*
|
|
18648
|
-
*
|
|
18649
|
-
*
|
|
18650
|
-
*
|
|
18651
|
-
*
|
|
18652
|
-
*
|
|
18653
|
-
*
|
|
18654
|
-
*
|
|
18655
|
-
*
|
|
18656
|
-
*
|
|
18657
|
-
*
|
|
18658
|
-
*
|
|
18659
|
-
*
|
|
18660
|
-
*
|
|
18661
|
-
*
|
|
18662
|
-
*
|
|
18663
|
-
*
|
|
18664
|
-
*
|
|
18665
|
-
*
|
|
18666
|
-
*
|
|
18667
|
-
*
|
|
18668
|
-
*
|
|
18669
|
-
*
|
|
18670
|
-
*
|
|
18671
|
-
*
|
|
18672
|
-
*
|
|
18673
|
-
*
|
|
18674
|
-
*
|
|
18675
|
-
*
|
|
18676
|
-
*
|
|
18677
|
-
*
|
|
18638
|
+
* <child>
|
|
18639
|
+
* <object class="AdwNavigationPage">
|
|
18640
|
+
* <property name="title" translatable="yes">Page 1</property>
|
|
18641
|
+
* <property name="child">
|
|
18642
|
+
* <object class="AdwToolbarView">
|
|
18643
|
+
* <child type="top">
|
|
18644
|
+
* <object class="AdwHeaderBar"/>
|
|
18645
|
+
* </child>
|
|
18646
|
+
* <property name="content">
|
|
18647
|
+
* <object class="GtkButton">
|
|
18648
|
+
* <property name="label" translatable="yes">Open Page 2</property>
|
|
18649
|
+
* <property name="halign">center</property>
|
|
18650
|
+
* <property name="valign">center</property>
|
|
18651
|
+
* <property name="action-name">navigation.push</property>
|
|
18652
|
+
* <property name="action-target">'page-2'</property>
|
|
18653
|
+
* <style>
|
|
18654
|
+
* <class name="pill"/>
|
|
18655
|
+
* </style>
|
|
18656
|
+
* </object>
|
|
18657
|
+
* </property>
|
|
18658
|
+
* </object>
|
|
18659
|
+
* </property>
|
|
18660
|
+
* </object>
|
|
18661
|
+
* </child>
|
|
18662
|
+
* <child>
|
|
18663
|
+
* <object class="AdwNavigationPage">
|
|
18664
|
+
* <property name="title" translatable="yes">Page 2</property>
|
|
18665
|
+
* <property name="tag">page-2</property>
|
|
18666
|
+
* <property name="child">
|
|
18667
|
+
* <object class="AdwToolbarView">
|
|
18668
|
+
* <child type="top">
|
|
18669
|
+
* <object class="AdwHeaderBar"/>
|
|
18670
|
+
* </child>
|
|
18671
|
+
* <property name="content">
|
|
18672
|
+
* <!-- ... -->
|
|
18673
|
+
* </property>
|
|
18674
|
+
* </object>
|
|
18675
|
+
* </property>
|
|
18676
|
+
* </object>
|
|
18677
|
+
* </child>
|
|
18678
18678
|
* </object>
|
|
18679
18679
|
* ```
|
|
18680
18680
|
*
|
|
@@ -18724,24 +18724,24 @@ export declare const AdwNavigationView: "AdwNavigationView";
|
|
|
18724
18724
|
*
|
|
18725
18725
|
* ```xml
|
|
18726
18726
|
* <object class="AdwWindow">
|
|
18727
|
-
*
|
|
18728
|
-
*
|
|
18729
|
-
*
|
|
18730
|
-
*
|
|
18731
|
-
*
|
|
18732
|
-
*
|
|
18733
|
-
*
|
|
18734
|
-
*
|
|
18735
|
-
*
|
|
18736
|
-
*
|
|
18737
|
-
*
|
|
18738
|
-
*
|
|
18739
|
-
*
|
|
18740
|
-
*
|
|
18741
|
-
*
|
|
18742
|
-
*
|
|
18743
|
-
*
|
|
18744
|
-
*
|
|
18727
|
+
* <property name="default-width">800</property>
|
|
18728
|
+
* <property name="default-height">800</property>
|
|
18729
|
+
* <child>
|
|
18730
|
+
* <object class="AdwBreakpoint">
|
|
18731
|
+
* <condition>max-width: 400sp</condition>
|
|
18732
|
+
* <setter object="split_view" property="collapsed">True</setter>
|
|
18733
|
+
* </object>
|
|
18734
|
+
* </child>
|
|
18735
|
+
* <property name="content">
|
|
18736
|
+
* <object class="AdwOverlaySplitView" id="split_view">
|
|
18737
|
+
* <property name="sidebar">
|
|
18738
|
+
* <!-- ... -->
|
|
18739
|
+
* </property>
|
|
18740
|
+
* <property name="content">
|
|
18741
|
+
* <!-- ... -->
|
|
18742
|
+
* </property>
|
|
18743
|
+
* </object>
|
|
18744
|
+
* </property>
|
|
18745
18745
|
* </object>
|
|
18746
18746
|
* ```
|
|
18747
18747
|
*
|
|
@@ -18798,7 +18798,7 @@ export declare const AdwNavigationView: "AdwNavigationView";
|
|
|
18798
18798
|
* ├── widget.sidebar-pane
|
|
18799
18799
|
* │ ╰── [sidebar child]
|
|
18800
18800
|
* ╰── widget.content-pane
|
|
18801
|
-
*
|
|
18801
|
+
* ╰── [content child]
|
|
18802
18802
|
* ```
|
|
18803
18803
|
*
|
|
18804
18804
|
* When collapsed, the one containing the sidebar child has the `.background`
|
|
@@ -18809,7 +18809,7 @@ export declare const AdwNavigationView: "AdwNavigationView";
|
|
|
18809
18809
|
* ├── widget.background
|
|
18810
18810
|
* │ ╰── [sidebar child]
|
|
18811
18811
|
* ╰── widget
|
|
18812
|
-
*
|
|
18812
|
+
* ╰── [content child]
|
|
18813
18813
|
* ```
|
|
18814
18814
|
*
|
|
18815
18815
|
* ## Accessibility
|
|
@@ -19016,55 +19016,55 @@ export declare const AdwShortcutLabel: "AdwShortcutLabel";
|
|
|
19016
19016
|
*
|
|
19017
19017
|
* ```xml
|
|
19018
19018
|
* <object class="AdwShortcutsDialog" id="shortcuts_dialog">
|
|
19019
|
-
*
|
|
19020
|
-
*
|
|
19021
|
-
*
|
|
19022
|
-
*
|
|
19023
|
-
*
|
|
19024
|
-
*
|
|
19025
|
-
*
|
|
19026
|
-
*
|
|
19027
|
-
*
|
|
19028
|
-
*
|
|
19029
|
-
*
|
|
19030
|
-
*
|
|
19031
|
-
*
|
|
19032
|
-
*
|
|
19033
|
-
*
|
|
19034
|
-
*
|
|
19035
|
-
*
|
|
19036
|
-
*
|
|
19037
|
-
*
|
|
19038
|
-
*
|
|
19039
|
-
*
|
|
19040
|
-
*
|
|
19041
|
-
*
|
|
19042
|
-
*
|
|
19043
|
-
*
|
|
19044
|
-
*
|
|
19045
|
-
*
|
|
19046
|
-
*
|
|
19047
|
-
*
|
|
19048
|
-
*
|
|
19049
|
-
*
|
|
19050
|
-
*
|
|
19051
|
-
*
|
|
19052
|
-
*
|
|
19053
|
-
*
|
|
19054
|
-
*
|
|
19055
|
-
*
|
|
19056
|
-
*
|
|
19057
|
-
*
|
|
19058
|
-
*
|
|
19059
|
-
*
|
|
19060
|
-
*
|
|
19061
|
-
*
|
|
19062
|
-
*
|
|
19063
|
-
*
|
|
19064
|
-
*
|
|
19065
|
-
*
|
|
19066
|
-
*
|
|
19067
|
-
*
|
|
19019
|
+
* <child>
|
|
19020
|
+
* <object class="AdwShortcutsSection">
|
|
19021
|
+
* <property name="title" translatable="yes">General</property>
|
|
19022
|
+
* <child>
|
|
19023
|
+
* <object class="AdwShortcutsItem">
|
|
19024
|
+
* <property name="title" translatable="yes">Open Menu</property>
|
|
19025
|
+
* <property name="accelerator">F10</property>
|
|
19026
|
+
* </object>
|
|
19027
|
+
* </child>
|
|
19028
|
+
* <child>
|
|
19029
|
+
* <object class="AdwShortcutsItem">
|
|
19030
|
+
* <property name="title" translatable="yes">Quit</property>
|
|
19031
|
+
* <property name="action-name">app.quit</property>
|
|
19032
|
+
* </object>
|
|
19033
|
+
* </child>
|
|
19034
|
+
* </object>
|
|
19035
|
+
* </child>
|
|
19036
|
+
* <child>
|
|
19037
|
+
* <object class="AdwShortcutsSection">
|
|
19038
|
+
* <child>
|
|
19039
|
+
* <object class="AdwShortcutsItem">
|
|
19040
|
+
* <property name="title" translatable="yes">Move Tab Left</property>
|
|
19041
|
+
* <property name="accelerator"><Shift><Ctrl>Page_Up</property>
|
|
19042
|
+
* <property name="direction">ltr</property>
|
|
19043
|
+
* </object>
|
|
19044
|
+
* </child>
|
|
19045
|
+
* <child>
|
|
19046
|
+
* <object class="AdwShortcutsItem">
|
|
19047
|
+
* <property name="title" translatable="yes">Move Tab Right</property>
|
|
19048
|
+
* <property name="accelerator"><Shift><Ctrl>Page_Down</property>
|
|
19049
|
+
* <property name="direction">ltr</property>
|
|
19050
|
+
* </object>
|
|
19051
|
+
* </child>
|
|
19052
|
+
* <child>
|
|
19053
|
+
* <object class="AdwShortcutsItem">
|
|
19054
|
+
* <property name="title" translatable="yes">Move Tab Right</property>
|
|
19055
|
+
* <property name="accelerator"><Shift><Ctrl>Page_Up</property>
|
|
19056
|
+
* <property name="direction">rtl</property>
|
|
19057
|
+
* </object>
|
|
19058
|
+
* </child>
|
|
19059
|
+
* <child>
|
|
19060
|
+
* <object class="AdwShortcutsItem">
|
|
19061
|
+
* <property name="title" translatable="yes">Move Tab Left</property>
|
|
19062
|
+
* <property name="accelerator"><Shift><Ctrl>Page_Down</property>
|
|
19063
|
+
* <property name="direction">rtl</property>
|
|
19064
|
+
* </object>
|
|
19065
|
+
* </child>
|
|
19066
|
+
* </object>
|
|
19067
|
+
* </child>
|
|
19068
19068
|
* </object>
|
|
19069
19069
|
* ```
|
|
19070
19070
|
*
|
|
@@ -19095,10 +19095,10 @@ export declare const AdwShortcutsDialog: "AdwShortcutsDialog";
|
|
|
19095
19095
|
*
|
|
19096
19096
|
* ```xml
|
|
19097
19097
|
* <object class="AdwSpinner">
|
|
19098
|
-
*
|
|
19099
|
-
*
|
|
19100
|
-
*
|
|
19101
|
-
*
|
|
19098
|
+
* <property name="halign">center</property>
|
|
19099
|
+
* <property name="valign">center</property>
|
|
19100
|
+
* <property name="width-request">48</property>
|
|
19101
|
+
* <property name="height-request">48</property>
|
|
19102
19102
|
* </object>
|
|
19103
19103
|
* ```
|
|
19104
19104
|
*
|
|
@@ -19124,16 +19124,16 @@ export declare const AdwSpinner: "AdwSpinner";
|
|
|
19124
19124
|
*
|
|
19125
19125
|
* ```xml
|
|
19126
19126
|
* <object class="AdwSpinRow">
|
|
19127
|
-
*
|
|
19128
|
-
*
|
|
19129
|
-
*
|
|
19130
|
-
*
|
|
19131
|
-
*
|
|
19132
|
-
*
|
|
19133
|
-
*
|
|
19134
|
-
*
|
|
19135
|
-
*
|
|
19136
|
-
*
|
|
19127
|
+
* <property name="title" translatable="yes">Spin Row</property>
|
|
19128
|
+
* <property name="adjustment">
|
|
19129
|
+
* <object class="GtkAdjustment">
|
|
19130
|
+
* <property name="lower">0</property>
|
|
19131
|
+
* <property name="upper">100</property>
|
|
19132
|
+
* <property name="value">50</property>
|
|
19133
|
+
* <property name="page-increment">10</property>
|
|
19134
|
+
* <property name="step-increment">1</property>
|
|
19135
|
+
* </object>
|
|
19136
|
+
* </property>
|
|
19137
19137
|
* </object>
|
|
19138
19138
|
* ```
|
|
19139
19139
|
*
|
|
@@ -19169,8 +19169,8 @@ export declare const AdwSpinRow: "AdwSpinRow";
|
|
|
19169
19169
|
* │ ╰── <content>
|
|
19170
19170
|
* ├── separator
|
|
19171
19171
|
* ╰── menubutton
|
|
19172
|
-
*
|
|
19173
|
-
*
|
|
19172
|
+
* ╰── button.toggle
|
|
19173
|
+
* ╰── arrow
|
|
19174
19174
|
* ```
|
|
19175
19175
|
*
|
|
19176
19176
|
* `AdwSplitButton`'s CSS node is called `splitbutton`. It contains the css
|
|
@@ -19263,8 +19263,8 @@ export declare const AdwStatusPage: "AdwStatusPage";
|
|
|
19263
19263
|
* Example of an `AdwSwitchRow` UI definition:
|
|
19264
19264
|
* ```xml
|
|
19265
19265
|
* <object class="AdwSwitchRow">
|
|
19266
|
-
*
|
|
19267
|
-
*
|
|
19266
|
+
* <property name="title" translatable="yes">Switch Row</property>
|
|
19267
|
+
* <signal name="notify::active" handler="switch_row_notify_active_cb"/>
|
|
19268
19268
|
* </object>
|
|
19269
19269
|
* ```
|
|
19270
19270
|
*
|
|
@@ -19323,8 +19323,8 @@ export declare const AdwTabBar: {
|
|
|
19323
19323
|
*
|
|
19324
19324
|
* ```xml
|
|
19325
19325
|
* <object class="AdwTabButton">
|
|
19326
|
-
*
|
|
19327
|
-
*
|
|
19326
|
+
* <property name="view">view</property>
|
|
19327
|
+
* <property name="action-name">overview.open</property>
|
|
19328
19328
|
* </object>
|
|
19329
19329
|
* ```
|
|
19330
19330
|
*
|
|
@@ -19424,7 +19424,7 @@ export declare const AdwTabOverview: "AdwTabOverview";
|
|
|
19424
19424
|
*
|
|
19425
19425
|
* ```c
|
|
19426
19426
|
* adw_tab_view_remove_shortcuts (view, ADW_TAB_VIEW_SHORTCUT_CONTROL_HOME |
|
|
19427
|
-
*
|
|
19427
|
+
* ADW_TAB_VIEW_SHORTCUT_CONTROL_END);
|
|
19428
19428
|
* ```
|
|
19429
19429
|
*
|
|
19430
19430
|
* ## CSS nodes
|
|
@@ -19459,9 +19459,9 @@ export declare const AdwTabView: "AdwTabView";
|
|
|
19459
19459
|
* ├── toast
|
|
19460
19460
|
* ┊ ├── widget
|
|
19461
19461
|
* ┊ │ ├── [label.heading]
|
|
19462
|
-
*
|
|
19463
|
-
*
|
|
19464
|
-
*
|
|
19462
|
+
* │ ╰── [custom title]
|
|
19463
|
+
* ├── [button]
|
|
19464
|
+
* ╰── button.circular.flat
|
|
19465
19465
|
* ```
|
|
19466
19466
|
*
|
|
19467
19467
|
* `AdwToastOverlay`'s CSS node is called `toastoverlay`. It contains the child,
|
|
@@ -19510,23 +19510,23 @@ export declare const AdwToastOverlay: "AdwToastOverlay";
|
|
|
19510
19510
|
* Example of an `AdwToggleGroup` UI definition:
|
|
19511
19511
|
*
|
|
19512
19512
|
* ```xml
|
|
19513
|
-
*
|
|
19514
|
-
*
|
|
19515
|
-
*
|
|
19516
|
-
*
|
|
19517
|
-
*
|
|
19518
|
-
*
|
|
19519
|
-
*
|
|
19520
|
-
*
|
|
19521
|
-
*
|
|
19522
|
-
*
|
|
19523
|
-
*
|
|
19524
|
-
*
|
|
19525
|
-
*
|
|
19526
|
-
*
|
|
19527
|
-
*
|
|
19528
|
-
*
|
|
19529
|
-
*
|
|
19513
|
+
* <object class="AdwToggleGroup">
|
|
19514
|
+
* <property name="active-name">picture</property>
|
|
19515
|
+
* <child>
|
|
19516
|
+
* <object class="AdwToggle">
|
|
19517
|
+
* <property name="icon-name">camera-photo-symbolic</property>
|
|
19518
|
+
* <property name="tooltip" translatable="yes">Picture Mode</property>
|
|
19519
|
+
* <property name="name">picture</property>
|
|
19520
|
+
* </object>
|
|
19521
|
+
* </child>
|
|
19522
|
+
* <child>
|
|
19523
|
+
* <object class="AdwToggle">
|
|
19524
|
+
* <property name="icon-name">camera-video-symbolic</property>
|
|
19525
|
+
* <property name="tooltip" translatable="yes">Recording Mode</property>
|
|
19526
|
+
* <property name="name">recording</property>
|
|
19527
|
+
* </object>
|
|
19528
|
+
* </child>
|
|
19529
|
+
* </object>
|
|
19530
19530
|
* ```
|
|
19531
19531
|
*
|
|
19532
19532
|
* See also: {@link AdwInlineViewSwitcher}.
|
|
@@ -19577,14 +19577,14 @@ export declare const AdwToggleGroup: "AdwToggleGroup";
|
|
|
19577
19577
|
* Example of an `AdwToolbarView` UI definition:
|
|
19578
19578
|
* ```xml
|
|
19579
19579
|
* <object class="AdwToolbarView">
|
|
19580
|
-
*
|
|
19581
|
-
*
|
|
19582
|
-
*
|
|
19583
|
-
*
|
|
19584
|
-
*
|
|
19585
|
-
*
|
|
19586
|
-
*
|
|
19587
|
-
*
|
|
19580
|
+
* <child type="top">
|
|
19581
|
+
* <object class="AdwHeaderBar"/>
|
|
19582
|
+
* </child>
|
|
19583
|
+
* <property name="content">
|
|
19584
|
+
* <object class="AdwPreferencesPage">
|
|
19585
|
+
* <!-- ... -->
|
|
19586
|
+
* </object>
|
|
19587
|
+
* </property>
|
|
19588
19588
|
* </object>
|
|
19589
19589
|
* ```
|
|
19590
19590
|
*
|
|
@@ -19691,19 +19691,19 @@ declare function AdwViewStackVisibleChild(props: SlotProps): import("react").Rea
|
|
|
19691
19691
|
* property on it:
|
|
19692
19692
|
*
|
|
19693
19693
|
* ```xml
|
|
19694
|
-
*
|
|
19695
|
-
*
|
|
19696
|
-
*
|
|
19697
|
-
*
|
|
19698
|
-
*
|
|
19699
|
-
*
|
|
19700
|
-
*
|
|
19701
|
-
*
|
|
19702
|
-
*
|
|
19703
|
-
*
|
|
19704
|
-
*
|
|
19705
|
-
*
|
|
19706
|
-
*
|
|
19694
|
+
* <object class="AdwViewStack" id="stack">
|
|
19695
|
+
* <child>
|
|
19696
|
+
* <object class="AdwViewStackPage">
|
|
19697
|
+
* <property name="name">overview</property>
|
|
19698
|
+
* <property name="title">Overview</property>
|
|
19699
|
+
* <property name="child">
|
|
19700
|
+
* <object class="AdwStatusPage">
|
|
19701
|
+
* <property name="title">Welcome!</property>
|
|
19702
|
+
* </object>
|
|
19703
|
+
* </property>
|
|
19704
|
+
* </object>
|
|
19705
|
+
* </child>
|
|
19706
|
+
* </object>
|
|
19707
19707
|
* ```
|
|
19708
19708
|
*
|
|
19709
19709
|
* ## CSS nodes
|
|
@@ -19740,35 +19740,35 @@ export declare const AdwViewStack: {
|
|
|
19740
19740
|
*
|
|
19741
19741
|
* ```xml
|
|
19742
19742
|
* <object class="AdwWindow">
|
|
19743
|
-
*
|
|
19744
|
-
*
|
|
19745
|
-
*
|
|
19746
|
-
*
|
|
19747
|
-
*
|
|
19748
|
-
*
|
|
19749
|
-
*
|
|
19750
|
-
*
|
|
19751
|
-
*
|
|
19752
|
-
*
|
|
19753
|
-
*
|
|
19754
|
-
*
|
|
19755
|
-
*
|
|
19756
|
-
*
|
|
19757
|
-
*
|
|
19758
|
-
*
|
|
19759
|
-
*
|
|
19760
|
-
*
|
|
19761
|
-
*
|
|
19762
|
-
*
|
|
19763
|
-
*
|
|
19764
|
-
*
|
|
19765
|
-
*
|
|
19766
|
-
*
|
|
19767
|
-
*
|
|
19768
|
-
*
|
|
19769
|
-
*
|
|
19770
|
-
*
|
|
19771
|
-
*
|
|
19743
|
+
* <child>
|
|
19744
|
+
* <object class="AdwBreakpoint">
|
|
19745
|
+
* <condition>max-width: 550sp</condition>
|
|
19746
|
+
* <setter object="switcher_bar" property="reveal">True</setter>
|
|
19747
|
+
* <setter object="header_bar" property="title-widget"/>
|
|
19748
|
+
* </object>
|
|
19749
|
+
* </child>
|
|
19750
|
+
* <property name="content">
|
|
19751
|
+
* <object class="AdwToolbarView">
|
|
19752
|
+
* <child type="top">
|
|
19753
|
+
* <object class="AdwHeaderBar" id="header_bar">
|
|
19754
|
+
* <property name="title-widget">
|
|
19755
|
+
* <object class="AdwViewSwitcher">
|
|
19756
|
+
* <property name="stack">stack</property>
|
|
19757
|
+
* <property name="policy">wide</property>
|
|
19758
|
+
* </object>
|
|
19759
|
+
* </property>
|
|
19760
|
+
* </object>
|
|
19761
|
+
* </child>
|
|
19762
|
+
* <property name="content">
|
|
19763
|
+
* <object class="AdwViewStack" id="stack"/>
|
|
19764
|
+
* </property>
|
|
19765
|
+
* <child type="bottom">
|
|
19766
|
+
* <object class="AdwViewSwitcherBar" id="switcher_bar">
|
|
19767
|
+
* <property name="stack">stack</property>
|
|
19768
|
+
* </object>
|
|
19769
|
+
* </child>
|
|
19770
|
+
* </object>
|
|
19771
|
+
* </property>
|
|
19772
19772
|
* </object>
|
|
19773
19773
|
* ```
|
|
19774
19774
|
*
|
|
@@ -19805,35 +19805,35 @@ export declare const AdwViewSwitcher: "AdwViewSwitcher";
|
|
|
19805
19805
|
*
|
|
19806
19806
|
* ```xml
|
|
19807
19807
|
* <object class="AdwWindow">
|
|
19808
|
-
*
|
|
19809
|
-
*
|
|
19810
|
-
*
|
|
19811
|
-
*
|
|
19812
|
-
*
|
|
19813
|
-
*
|
|
19814
|
-
*
|
|
19815
|
-
*
|
|
19816
|
-
*
|
|
19817
|
-
*
|
|
19818
|
-
*
|
|
19819
|
-
*
|
|
19820
|
-
*
|
|
19821
|
-
*
|
|
19822
|
-
*
|
|
19823
|
-
*
|
|
19824
|
-
*
|
|
19825
|
-
*
|
|
19826
|
-
*
|
|
19827
|
-
*
|
|
19828
|
-
*
|
|
19829
|
-
*
|
|
19830
|
-
*
|
|
19831
|
-
*
|
|
19832
|
-
*
|
|
19833
|
-
*
|
|
19834
|
-
*
|
|
19835
|
-
*
|
|
19836
|
-
*
|
|
19808
|
+
* <child>
|
|
19809
|
+
* <object class="AdwBreakpoint">
|
|
19810
|
+
* <condition>max-width: 550sp</condition>
|
|
19811
|
+
* <setter object="switcher_bar" property="reveal">True</setter>
|
|
19812
|
+
* <setter object="header_bar" property="title-widget"/>
|
|
19813
|
+
* </object>
|
|
19814
|
+
* </child>
|
|
19815
|
+
* <property name="content">
|
|
19816
|
+
* <object class="AdwToolbarView">
|
|
19817
|
+
* <child type="top">
|
|
19818
|
+
* <object class="AdwHeaderBar" id="header_bar">
|
|
19819
|
+
* <property name="title-widget">
|
|
19820
|
+
* <object class="AdwViewSwitcher">
|
|
19821
|
+
* <property name="stack">stack</property>
|
|
19822
|
+
* <property name="policy">wide</property>
|
|
19823
|
+
* </object>
|
|
19824
|
+
* </property>
|
|
19825
|
+
* </object>
|
|
19826
|
+
* </child>
|
|
19827
|
+
* <property name="content">
|
|
19828
|
+
* <object class="AdwViewStack" id="stack"/>
|
|
19829
|
+
* </property>
|
|
19830
|
+
* <child type="bottom">
|
|
19831
|
+
* <object class="AdwViewSwitcherBar" id="switcher_bar">
|
|
19832
|
+
* <property name="stack">stack</property>
|
|
19833
|
+
* </object>
|
|
19834
|
+
* </child>
|
|
19835
|
+
* </object>
|
|
19836
|
+
* </property>
|
|
19837
19837
|
* </object>
|
|
19838
19838
|
* ```
|
|
19839
19839
|
*
|
|
@@ -19873,31 +19873,31 @@ export declare const AdwViewSwitcherBar: "AdwViewSwitcherBar";
|
|
|
19873
19873
|
*
|
|
19874
19874
|
* ```xml
|
|
19875
19875
|
* <object class="AdwWindow">
|
|
19876
|
-
*
|
|
19877
|
-
*
|
|
19878
|
-
*
|
|
19879
|
-
*
|
|
19880
|
-
*
|
|
19881
|
-
*
|
|
19882
|
-
*
|
|
19883
|
-
*
|
|
19884
|
-
*
|
|
19885
|
-
*
|
|
19886
|
-
*
|
|
19887
|
-
*
|
|
19888
|
-
*
|
|
19889
|
-
*
|
|
19890
|
-
*
|
|
19891
|
-
*
|
|
19892
|
-
*
|
|
19893
|
-
*
|
|
19894
|
-
*
|
|
19895
|
-
*
|
|
19896
|
-
*
|
|
19897
|
-
*
|
|
19898
|
-
*
|
|
19899
|
-
*
|
|
19900
|
-
*
|
|
19876
|
+
* <property name="content">
|
|
19877
|
+
* <object class="AdwToolbarView">
|
|
19878
|
+
* <child type="top">
|
|
19879
|
+
* <object class="AdwHeaderBar">
|
|
19880
|
+
* <property name="centering-policy">strict</property>
|
|
19881
|
+
* <property name="title-widget">
|
|
19882
|
+
* <object class="AdwViewSwitcherTitle" id="title">
|
|
19883
|
+
* <property name="stack">stack</property>
|
|
19884
|
+
* </object>
|
|
19885
|
+
* </property>
|
|
19886
|
+
* </object>
|
|
19887
|
+
* </child>
|
|
19888
|
+
* <property name="content">
|
|
19889
|
+
* <object class="AdwViewStack" id="stack"/>
|
|
19890
|
+
* </property>
|
|
19891
|
+
* <child type="bottom">
|
|
19892
|
+
* <object class="AdwViewSwitcherBar">
|
|
19893
|
+
* <property name="stack">stack</property>
|
|
19894
|
+
* <binding name="reveal">
|
|
19895
|
+
* <lookup name="title-visible">title</lookup>
|
|
19896
|
+
* </binding>
|
|
19897
|
+
* </object>
|
|
19898
|
+
* </child>
|
|
19899
|
+
* </object>
|
|
19900
|
+
* </property>
|
|
19901
19901
|
* </object>
|
|
19902
19902
|
* ```
|
|
19903
19903
|
*
|
|
@@ -20164,13 +20164,13 @@ export declare const GtkSourceStyleSchemePreview: "GtkSourceStyleSchemePreview";
|
|
|
20164
20164
|
* An example of a UI definition fragment with GtkSourceView:
|
|
20165
20165
|
* ```xml
|
|
20166
20166
|
* <object class="GtkSourceView" id="source_view">
|
|
20167
|
-
*
|
|
20168
|
-
*
|
|
20169
|
-
*
|
|
20170
|
-
*
|
|
20171
|
-
*
|
|
20172
|
-
*
|
|
20173
|
-
*
|
|
20167
|
+
* <property name="tab-width">4</property>
|
|
20168
|
+
* <property name="auto-indent">True</property>
|
|
20169
|
+
* <child internal-child="completion">
|
|
20170
|
+
* <object class="GtkSourceCompletion">
|
|
20171
|
+
* <property name="select-on-show">False</property>
|
|
20172
|
+
* </object>
|
|
20173
|
+
* </child>
|
|
20174
20174
|
* </object>
|
|
20175
20175
|
* ```
|
|
20176
20176
|
*
|
|
@@ -20183,10 +20183,10 @@ export declare const GtkSourceStyleSchemePreview: "GtkSourceStyleSchemePreview";
|
|
|
20183
20183
|
* ```c
|
|
20184
20184
|
* GtkCssProvider *provider = gtk_css_provider_new ();
|
|
20185
20185
|
* gtk_css_provider_load_from_string (provider,
|
|
20186
|
-
*
|
|
20186
|
+
* "textview { font-family: Monospace; font-size: 8pt; }");
|
|
20187
20187
|
* gtk_style_context_add_provider (gtk_widget_get_style_context (view),
|
|
20188
|
-
*
|
|
20189
|
-
*
|
|
20188
|
+
* GTK_STYLE_PROVIDER (provider),
|
|
20189
|
+
* GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
|
|
20190
20190
|
* g_object_unref (provider);
|
|
20191
20191
|
* ```
|
|
20192
20192
|
* ```python
|