v0.2.1 c0399be

adw-preferences-page.go RawHistoryFolder

1// Package adw was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package adw
3
4import (
5	"structs"
6	"unsafe"
7
8	"github.com/ebitengine/purego"
9
10	"github.com/bnema/puregotk/pkg/core"
11	"github.com/bnema/puregotk/v4/gobject"
12	"github.com/bnema/puregotk/v4/gobject/types"
13	"github.com/bnema/puregotk/v4/gtk"
14)
15
16type PreferencesPageClass struct {
17	_ structs.HostLayout
18
19	ParentClass gtk.WidgetClass
20
21	Padding [4]uintptr
22}
23
24func (x *PreferencesPageClass) GoPointer() uintptr {
25	return uintptr(unsafe.Pointer(x))
26}
27
28// A page from [class@PreferencesDialog].
29//
30// <picture>
31//
32//	<source srcset="preferences-page-dark.png" media="(prefers-color-scheme: dark)">
33//	<img src="preferences-page.png" alt="preferences-page">
34//
35// </picture>
36//
37// The `AdwPreferencesPage` widget gathers preferences groups into a single page
38// of a preferences window.
39//
40// ## CSS nodes
41//
42// `AdwPreferencesPage` has a single CSS node with name `preferencespage`.
43//
44// ## Accessibility
45//
46// `AdwPreferencesPage` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
47type PreferencesPage struct {
48	gtk.Widget
49}
50
51var xPreferencesPageGLibType func() types.GType
52
53func PreferencesPageGLibType() types.GType {
54	return xPreferencesPageGLibType()
55}
56
57func PreferencesPageNewFromInternalPtr(ptr uintptr) *PreferencesPage {
58	cls := &PreferencesPage{}
59	cls.Ptr = ptr
60	return cls
61}
62
63var xNewPreferencesPage func() uintptr
64
65// Creates a new `AdwPreferencesPage`.
66func NewPreferencesPage() *PreferencesPage {
67	var cls *PreferencesPage
68
69	cret := xNewPreferencesPage()
70
71	if cret == 0 {
72		return nil
73	}
74	gobject.IncreaseRef(cret)
75	cls = &PreferencesPage{}
76	cls.Ptr = cret
77	return cls
78}
79
80var xPreferencesPageAdd func(uintptr, uintptr)
81
82// Adds a preferences group to @self.
83func (x *PreferencesPage) Add(GroupVar *PreferencesGroup) {
84
85	xPreferencesPageAdd(x.GoPointer(), GroupVar.GoPointer())
86
87}
88
89var xPreferencesPageGetBanner func(uintptr) uintptr
90
91// Gets the banner displayed at the top of the page.
92func (x *PreferencesPage) GetBanner() *Banner {
93	var cls *Banner
94
95	cret := xPreferencesPageGetBanner(x.GoPointer())
96
97	if cret == 0 {
98		return nil
99	}
100	gobject.IncreaseRef(cret)
101	cls = &Banner{}
102	cls.Ptr = cret
103	return cls
104}
105
106var xPreferencesPageGetDescription func(uintptr) string
107
108// Gets the description of @self.
109func (x *PreferencesPage) GetDescription() string {
110
111	cret := xPreferencesPageGetDescription(x.GoPointer())
112	return cret
113}
114
115var xPreferencesPageGetDescriptionCentered func(uintptr) bool
116
117// Gets whether the description is centered.
118func (x *PreferencesPage) GetDescriptionCentered() bool {
119
120	cret := xPreferencesPageGetDescriptionCentered(x.GoPointer())
121	return cret
122}
123
124var xPreferencesPageGetGroup func(uintptr, uint) uintptr
125
126// Gets the group at @index.
127//
128// Can return `NULL` if @index is larger than the number of groups in the page.
129func (x *PreferencesPage) GetGroup(IndexVar uint) *PreferencesGroup {
130	var cls *PreferencesGroup
131
132	cret := xPreferencesPageGetGroup(x.GoPointer(), IndexVar)
133
134	if cret == 0 {
135		return nil
136	}
137	gobject.IncreaseRef(cret)
138	cls = &PreferencesGroup{}
139	cls.Ptr = cret
140	return cls
141}
142
143var xPreferencesPageGetIconName func(uintptr) string
144
145// Gets the icon name for @self.
146func (x *PreferencesPage) GetIconName() string {
147
148	cret := xPreferencesPageGetIconName(x.GoPointer())
149	return cret
150}
151
152var xPreferencesPageGetName func(uintptr) string
153
154// Gets the name of @self.
155func (x *PreferencesPage) GetName() string {
156
157	cret := xPreferencesPageGetName(x.GoPointer())
158	return cret
159}
160
161var xPreferencesPageGetTitle func(uintptr) string
162
163// Gets the title of @self.
164func (x *PreferencesPage) GetTitle() string {
165
166	cret := xPreferencesPageGetTitle(x.GoPointer())
167	return cret
168}
169
170var xPreferencesPageGetUseUnderline func(uintptr) bool
171
172// Gets whether an embedded underline in the title indicates a mnemonic.
173func (x *PreferencesPage) GetUseUnderline() bool {
174
175	cret := xPreferencesPageGetUseUnderline(x.GoPointer())
176	return cret
177}
178
179var xPreferencesPageInsert func(uintptr, uintptr, int)
180
181// Inserts a preferences group to @self at @index.
182//
183// If @index is negative or larger than the number of groups, appends the group,
184// same as [method@PreferencesPage.add].
185func (x *PreferencesPage) Insert(GroupVar *PreferencesGroup, IndexVar int) {
186
187	xPreferencesPageInsert(x.GoPointer(), GroupVar.GoPointer(), IndexVar)
188
189}
190
191var xPreferencesPageRemove func(uintptr, uintptr)
192
193// Removes a group from @self.
194func (x *PreferencesPage) Remove(GroupVar *PreferencesGroup) {
195
196	xPreferencesPageRemove(x.GoPointer(), GroupVar.GoPointer())
197
198}
199
200var xPreferencesPageScrollToTop func(uintptr)
201
202// Scrolls the scrolled window of @self to the top.
203func (x *PreferencesPage) ScrollToTop() {
204
205	xPreferencesPageScrollToTop(x.GoPointer())
206
207}
208
209var xPreferencesPageSetBanner func(uintptr, uintptr)
210
211// Sets the banner displayed at the top of the page.
212func (x *PreferencesPage) SetBanner(BannerVar *Banner) {
213
214	xPreferencesPageSetBanner(x.GoPointer(), BannerVar.GoPointer())
215
216}
217
218var xPreferencesPageSetDescription func(uintptr, string)
219
220// Sets the description of @self.
221//
222// The description is displayed at the top of the page.
223func (x *PreferencesPage) SetDescription(DescriptionVar string) {
224
225	xPreferencesPageSetDescription(x.GoPointer(), DescriptionVar)
226
227}
228
229var xPreferencesPageSetDescriptionCentered func(uintptr, bool)
230
231// Sets whether the description should be centered.
232func (x *PreferencesPage) SetDescriptionCentered(CenteredVar bool) {
233
234	xPreferencesPageSetDescriptionCentered(x.GoPointer(), CenteredVar)
235
236}
237
238var xPreferencesPageSetIconName func(uintptr, uintptr)
239
240// Sets the icon name for @self.
241func (x *PreferencesPage) SetIconName(IconNameVar *string) {
242
243	IconNameVarPtr := core.GStrdupNullable(IconNameVar)
244	defer core.GFreeNullable(IconNameVarPtr)
245
246	xPreferencesPageSetIconName(x.GoPointer(), IconNameVarPtr)
247
248}
249
250var xPreferencesPageSetName func(uintptr, uintptr)
251
252// Sets the name of @self.
253func (x *PreferencesPage) SetName(NameVar *string) {
254
255	NameVarPtr := core.GStrdupNullable(NameVar)
256	defer core.GFreeNullable(NameVarPtr)
257
258	xPreferencesPageSetName(x.GoPointer(), NameVarPtr)
259
260}
261
262var xPreferencesPageSetTitle func(uintptr, string)
263
264// Sets the title of @self.
265func (x *PreferencesPage) SetTitle(TitleVar string) {
266
267	xPreferencesPageSetTitle(x.GoPointer(), TitleVar)
268
269}
270
271var xPreferencesPageSetUseUnderline func(uintptr, bool)
272
273// Sets whether an embedded underline in the title indicates a mnemonic.
274func (x *PreferencesPage) SetUseUnderline(UseUnderlineVar bool) {
275
276	xPreferencesPageSetUseUnderline(x.GoPointer(), UseUnderlineVar)
277
278}
279
280func (c *PreferencesPage) GoPointer() uintptr {
281	if c == nil {
282		return 0
283	}
284	return c.Ptr
285}
286
287func (c *PreferencesPage) SetGoPointer(ptr uintptr) {
288	c.Ptr = ptr
289}
290
291// SetPropertyDescription sets the "description" property.
292// The description to be displayed at the top of the page.
293func (x *PreferencesPage) SetPropertyDescription(value string) {
294	var v gobject.Value
295	v.Init(gobject.TypeStringVal)
296	v.SetString(&value)
297	x.SetProperty("description", &v)
298}
299
300// GetPropertyDescription gets the "description" property.
301// The description to be displayed at the top of the page.
302func (x *PreferencesPage) GetPropertyDescription() string {
303	var v gobject.Value
304	x.GetProperty("description", &v)
305	return v.GetString()
306}
307
308// SetPropertyDescriptionCentered sets the "description-centered" property.
309// Whether the description should be centered.
310func (x *PreferencesPage) SetPropertyDescriptionCentered(value bool) {
311	var v gobject.Value
312	v.Init(gobject.TypeBooleanVal)
313	v.SetBoolean(value)
314	x.SetProperty("description-centered", &v)
315}
316
317// GetPropertyDescriptionCentered gets the "description-centered" property.
318// Whether the description should be centered.
319func (x *PreferencesPage) GetPropertyDescriptionCentered() bool {
320	var v gobject.Value
321	x.GetProperty("description-centered", &v)
322	return v.GetBoolean()
323}
324
325// SetPropertyIconName sets the "icon-name" property.
326// The icon name for this page.
327func (x *PreferencesPage) SetPropertyIconName(value string) {
328	var v gobject.Value
329	v.Init(gobject.TypeStringVal)
330	v.SetString(&value)
331	x.SetProperty("icon-name", &v)
332}
333
334// GetPropertyIconName gets the "icon-name" property.
335// The icon name for this page.
336func (x *PreferencesPage) GetPropertyIconName() string {
337	var v gobject.Value
338	x.GetProperty("icon-name", &v)
339	return v.GetString()
340}
341
342// SetPropertyName sets the "name" property.
343// The name of this page.
344func (x *PreferencesPage) SetPropertyName(value string) {
345	var v gobject.Value
346	v.Init(gobject.TypeStringVal)
347	v.SetString(&value)
348	x.SetProperty("name", &v)
349}
350
351// GetPropertyName gets the "name" property.
352// The name of this page.
353func (x *PreferencesPage) GetPropertyName() string {
354	var v gobject.Value
355	x.GetProperty("name", &v)
356	return v.GetString()
357}
358
359// SetPropertyTitle sets the "title" property.
360// The title for this page.
361func (x *PreferencesPage) SetPropertyTitle(value string) {
362	var v gobject.Value
363	v.Init(gobject.TypeStringVal)
364	v.SetString(&value)
365	x.SetProperty("title", &v)
366}
367
368// GetPropertyTitle gets the "title" property.
369// The title for this page.
370func (x *PreferencesPage) GetPropertyTitle() string {
371	var v gobject.Value
372	x.GetProperty("title", &v)
373	return v.GetString()
374}
375
376// SetPropertyUseUnderline sets the "use-underline" property.
377// Whether an embedded underline in the title indicates a mnemonic.
378func (x *PreferencesPage) SetPropertyUseUnderline(value bool) {
379	var v gobject.Value
380	v.Init(gobject.TypeBooleanVal)
381	v.SetBoolean(value)
382	x.SetProperty("use-underline", &v)
383}
384
385// GetPropertyUseUnderline gets the "use-underline" property.
386// Whether an embedded underline in the title indicates a mnemonic.
387func (x *PreferencesPage) GetPropertyUseUnderline() bool {
388	var v gobject.Value
389	x.GetProperty("use-underline", &v)
390	return v.GetBoolean()
391}
392
393// Requests the user's screen reader to announce the given message.
394//
395// This kind of notification is useful for messages that
396// either have only a visual representation or that are not
397// exposed visually at all, e.g. a notification about a
398// successful operation.
399//
400// Also, by using this API, you can ensure that the message
401// does not interrupts the user's current screen reader output.
402func (x *PreferencesPage) Announce(MessageVar string, PriorityVar gtk.AccessibleAnnouncementPriority) {
403
404	gtk.XGtkAccessibleAnnounce(x.GoPointer(), MessageVar, PriorityVar)
405
406}
407
408// Retrieves the accessible parent for an accessible object.
409//
410// This function returns `NULL` for top level widgets.
411func (x *PreferencesPage) GetAccessibleParent() *gtk.AccessibleBase {
412	var cls *gtk.AccessibleBase
413
414	cret := gtk.XGtkAccessibleGetAccessibleParent(x.GoPointer())
415
416	if cret == 0 {
417		return nil
418	}
419	cls = &gtk.AccessibleBase{}
420	cls.Ptr = cret
421	return cls
422}
423
424// Retrieves the accessible role of an accessible object.
425func (x *PreferencesPage) GetAccessibleRole() gtk.AccessibleRole {
426
427	cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer())
428	return cret
429}
430
431// Retrieves the implementation for the given accessible object.
432func (x *PreferencesPage) GetAtContext() *gtk.ATContext {
433	var cls *gtk.ATContext
434
435	cret := gtk.XGtkAccessibleGetAtContext(x.GoPointer())
436
437	if cret == 0 {
438		return nil
439	}
440	cls = &gtk.ATContext{}
441	cls.Ptr = cret
442	return cls
443}
444
445// Queries the coordinates and dimensions of this accessible
446//
447// This functionality can be overridden by `GtkAccessible`
448// implementations, e.g. to get the bounds from an ignored
449// child widget.
450func (x *PreferencesPage) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool {
451
452	cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar)
453	return cret
454}
455
456// Retrieves the first accessible child of an accessible object.
457func (x *PreferencesPage) GetFirstAccessibleChild() *gtk.AccessibleBase {
458	var cls *gtk.AccessibleBase
459
460	cret := gtk.XGtkAccessibleGetFirstAccessibleChild(x.GoPointer())
461
462	if cret == 0 {
463		return nil
464	}
465	cls = &gtk.AccessibleBase{}
466	cls.Ptr = cret
467	return cls
468}
469
470// Retrieves the next accessible sibling of an accessible object
471func (x *PreferencesPage) GetNextAccessibleSibling() *gtk.AccessibleBase {
472	var cls *gtk.AccessibleBase
473
474	cret := gtk.XGtkAccessibleGetNextAccessibleSibling(x.GoPointer())
475
476	if cret == 0 {
477		return nil
478	}
479	cls = &gtk.AccessibleBase{}
480	cls.Ptr = cret
481	return cls
482}
483
484// Queries a platform state, such as focus.
485//
486// This functionality can be overridden by `GtkAccessible`
487// implementations, e.g. to get platform state from an ignored
488// child widget, as is the case for `GtkText` wrappers.
489func (x *PreferencesPage) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool {
490
491	cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar)
492	return cret
493}
494
495// Resets the accessible property to its default value.
496func (x *PreferencesPage) ResetProperty(PropertyVar gtk.AccessibleProperty) {
497
498	gtk.XGtkAccessibleResetProperty(x.GoPointer(), PropertyVar)
499
500}
501
502// Resets the accessible relation to its default value.
503func (x *PreferencesPage) ResetRelation(RelationVar gtk.AccessibleRelation) {
504
505	gtk.XGtkAccessibleResetRelation(x.GoPointer(), RelationVar)
506
507}
508
509// Resets the accessible state to its default value.
510func (x *PreferencesPage) ResetState(StateVar gtk.AccessibleState) {
511
512	gtk.XGtkAccessibleResetState(x.GoPointer(), StateVar)
513
514}
515
516// Sets the parent and sibling of an accessible object.
517//
518// This function is meant to be used by accessible implementations that are
519// not part of the widget hierarchy, and but act as a logical bridge between
520// widgets. For instance, if a widget creates an object that holds metadata
521// for each child, and you want that object to implement the `GtkAccessible`
522// interface, you will use this function to ensure that the parent of each
523// child widget is the metadata object, and the parent of each metadata
524// object is the container widget.
525func (x *PreferencesPage) SetAccessibleParent(ParentVar gtk.Accessible, NextSiblingVar gtk.Accessible) {
526
527	gtk.XGtkAccessibleSetAccessibleParent(x.GoPointer(), ParentVar.GoPointer(), NextSiblingVar.GoPointer())
528
529}
530
531// Updates the next accessible sibling.
532//
533// That might be useful when a new child of a custom accessible
534// is created, and it needs to be linked to a previous child.
535func (x *PreferencesPage) UpdateNextAccessibleSibling(NewSiblingVar gtk.Accessible) {
536
537	gtk.XGtkAccessibleUpdateNextAccessibleSibling(x.GoPointer(), NewSiblingVar.GoPointer())
538
539}
540
541// Informs ATs that the platform state has changed.
542//
543// This function should be used by `GtkAccessible` implementations that
544// have a platform state but are not widgets. Widgets handle platform
545// states automatically.
546func (x *PreferencesPage) UpdatePlatformState(StateVar gtk.AccessiblePlatformState) {
547
548	gtk.XGtkAccessibleUpdatePlatformState(x.GoPointer(), StateVar)
549
550}
551
552// Updates a list of accessible properties.
553//
554// See the [enum@Gtk.AccessibleProperty] documentation for the
555// value types of accessible properties.
556//
557// This function should be called by `GtkWidget` types whenever
558// an accessible property change must be communicated to assistive
559// technologies.
560//
561// Example:
562// ```c
563// value = gtk_adjustment_get_value (adjustment);
564// gtk_accessible_update_property (GTK_ACCESSIBLE (spin_button),
565//
566//	GTK_ACCESSIBLE_PROPERTY_VALUE_NOW, value,
567//	-1);
568//
569// ```
570func (x *PreferencesPage) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArgs ...interface{}) {
571
572	gtk.XGtkAccessibleUpdateProperty(x.GoPointer(), FirstPropertyVar, varArgs...)
573
574}
575
576// Updates an array of accessible properties.
577//
578// This function should be called by `GtkWidget` types whenever an accessible
579// property change must be communicated to assistive technologies.
580//
581// This function is meant to be used by language bindings.
582func (x *PreferencesPage) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) {
583
584	gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar)
585
586}
587
588// Updates a list of accessible relations.
589//
590// This function should be called by `GtkWidget` types whenever an accessible
591// relation change must be communicated to assistive technologies.
592//
593// If the [enum@Gtk.AccessibleRelation] requires a list of references,
594// you should pass each reference individually, followed by `NULL`, e.g.
595//
596// ```c
597// gtk_accessible_update_relation (accessible,
598//
599//	GTK_ACCESSIBLE_RELATION_CONTROLS,
600//	  ref1, NULL,
601//	GTK_ACCESSIBLE_RELATION_LABELLED_BY,
602//	  ref1, ref2, ref3, NULL,
603//	-1);
604//
605// ```
606func (x *PreferencesPage) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArgs ...interface{}) {
607
608	gtk.XGtkAccessibleUpdateRelation(x.GoPointer(), FirstRelationVar, varArgs...)
609
610}
611
612// Updates an array of accessible relations.
613//
614// This function should be called by `GtkWidget` types whenever an accessible
615// relation change must be communicated to assistive technologies.
616//
617// This function is meant to be used by language bindings.
618func (x *PreferencesPage) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) {
619
620	gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar)
621
622}
623
624// Updates a list of accessible states.
625//
626// See the [enum@Gtk.AccessibleState] documentation for the
627// value types of accessible states.
628//
629// This function should be called by `GtkWidget` types whenever
630// an accessible state change must be communicated to assistive
631// technologies.
632//
633// Example:
634//
635// ```c
636// value = GTK_ACCESSIBLE_TRISTATE_MIXED;
637// gtk_accessible_update_state (GTK_ACCESSIBLE (check_button),
638//
639//	GTK_ACCESSIBLE_STATE_CHECKED, value,
640//	-1);
641//
642// ```
643func (x *PreferencesPage) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...interface{}) {
644
645	gtk.XGtkAccessibleUpdateState(x.GoPointer(), FirstStateVar, varArgs...)
646
647}
648
649// Updates an array of accessible states.
650//
651// This function should be called by `GtkWidget` types whenever an accessible
652// state change must be communicated to assistive technologies.
653//
654// This function is meant to be used by language bindings.
655func (x *PreferencesPage) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) {
656
657	gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar)
658
659}
660
661// Gets the ID of the @buildable object.
662//
663// `GtkBuilder` sets the name based on the ID attribute
664// of the `<object>` tag used to construct the @buildable.
665func (x *PreferencesPage) GetBuildableId() string {
666
667	cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer())
668	return cret
669}
670
671func init() {
672	core.SetPackageName("ADW", "libadwaita-1")
673	core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0"})
674	var libs []uintptr
675	for _, libPath := range core.GetPaths("ADW") {
676		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
677		if err != nil {
678			panic(err)
679		}
680		libs = append(libs, lib)
681	}
682
683	core.PuregoSafeRegister(&xPreferencesPageGLibType, libs, "adw_preferences_page_get_type")
684
685	core.PuregoSafeRegister(&xNewPreferencesPage, libs, "adw_preferences_page_new")
686
687	core.PuregoSafeRegister(&xPreferencesPageAdd, libs, "adw_preferences_page_add")
688	core.PuregoSafeRegister(&xPreferencesPageGetBanner, libs, "adw_preferences_page_get_banner")
689	core.PuregoSafeRegister(&xPreferencesPageGetDescription, libs, "adw_preferences_page_get_description")
690	core.PuregoSafeRegister(&xPreferencesPageGetDescriptionCentered, libs, "adw_preferences_page_get_description_centered")
691	core.PuregoSafeRegister(&xPreferencesPageGetGroup, libs, "adw_preferences_page_get_group")
692	core.PuregoSafeRegister(&xPreferencesPageGetIconName, libs, "adw_preferences_page_get_icon_name")
693	core.PuregoSafeRegister(&xPreferencesPageGetName, libs, "adw_preferences_page_get_name")
694	core.PuregoSafeRegister(&xPreferencesPageGetTitle, libs, "adw_preferences_page_get_title")
695	core.PuregoSafeRegister(&xPreferencesPageGetUseUnderline, libs, "adw_preferences_page_get_use_underline")
696	core.PuregoSafeRegister(&xPreferencesPageInsert, libs, "adw_preferences_page_insert")
697	core.PuregoSafeRegister(&xPreferencesPageRemove, libs, "adw_preferences_page_remove")
698	core.PuregoSafeRegister(&xPreferencesPageScrollToTop, libs, "adw_preferences_page_scroll_to_top")
699	core.PuregoSafeRegister(&xPreferencesPageSetBanner, libs, "adw_preferences_page_set_banner")
700	core.PuregoSafeRegister(&xPreferencesPageSetDescription, libs, "adw_preferences_page_set_description")
701	core.PuregoSafeRegister(&xPreferencesPageSetDescriptionCentered, libs, "adw_preferences_page_set_description_centered")
702	core.PuregoSafeRegister(&xPreferencesPageSetIconName, libs, "adw_preferences_page_set_icon_name")
703	core.PuregoSafeRegister(&xPreferencesPageSetName, libs, "adw_preferences_page_set_name")
704	core.PuregoSafeRegister(&xPreferencesPageSetTitle, libs, "adw_preferences_page_set_title")
705	core.PuregoSafeRegister(&xPreferencesPageSetUseUnderline, libs, "adw_preferences_page_set_use_underline")
706
707}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 102

↑↓ moveenter openesc close