v0.2.2 9100209

adw-preferences-window.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/gdk"
12	"github.com/bnema/puregotk/v4/gobject"
13	"github.com/bnema/puregotk/v4/gobject/types"
14	"github.com/bnema/puregotk/v4/gsk"
15	"github.com/bnema/puregotk/v4/gtk"
16)
17
18type PreferencesWindowClass struct {
19	_ structs.HostLayout
20
21	ParentClass WindowClass
22
23	Padding [4]uintptr
24}
25
26func (x *PreferencesWindowClass) GoPointer() uintptr {
27	return uintptr(unsafe.Pointer(x))
28}
29
30// A window to present an application's preferences.
31//
32// <picture>
33//
34//	<source srcset="preferences-window-dark.png" media="(prefers-color-scheme: dark)">
35//	<img src="preferences-window.png" alt="preferences-window">
36//
37// </picture>
38//
39// The `AdwPreferencesWindow` widget presents an application's preferences
40// gathered into pages and groups. The preferences are searchable by the user.
41//
42// ## CSS nodes
43//
44// `AdwPreferencesWindow` has a main CSS node with the name `window` and the
45// style class `.preferences`.
46type PreferencesWindow struct {
47	Window
48}
49
50var xPreferencesWindowGLibType func() types.GType
51
52func PreferencesWindowGLibType() types.GType {
53	return xPreferencesWindowGLibType()
54}
55
56func PreferencesWindowNewFromInternalPtr(ptr uintptr) *PreferencesWindow {
57	cls := &PreferencesWindow{}
58	cls.Ptr = ptr
59	return cls
60}
61
62var xNewPreferencesWindow func() uintptr
63
64// Creates a new `AdwPreferencesWindow`.
65func NewPreferencesWindow() *PreferencesWindow {
66	var cls *PreferencesWindow
67
68	cret := xNewPreferencesWindow()
69
70	if cret == 0 {
71		return nil
72	}
73	gobject.IncreaseRef(cret)
74	cls = &PreferencesWindow{}
75	cls.Ptr = cret
76	return cls
77}
78
79var xPreferencesWindowAdd func(uintptr, uintptr)
80
81// Adds a preferences page to @self.
82func (x *PreferencesWindow) Add(PageVar *PreferencesPage) {
83
84	xPreferencesWindowAdd(x.GoPointer(), PageVar.GoPointer())
85
86}
87
88var xPreferencesWindowAddToast func(uintptr, uintptr)
89
90// Displays @toast.
91//
92// See [method@ToastOverlay.add_toast].
93func (x *PreferencesWindow) AddToast(ToastVar *Toast) {
94
95	xPreferencesWindowAddToast(x.GoPointer(), ToastVar.GoPointer())
96
97}
98
99var xPreferencesWindowCloseSubpage func(uintptr)
100
101// Closes the current subpage.
102//
103// If there is no presented subpage, this does nothing.
104func (x *PreferencesWindow) CloseSubpage() {
105
106	xPreferencesWindowCloseSubpage(x.GoPointer())
107
108}
109
110var xPreferencesWindowGetCanNavigateBack func(uintptr) bool
111
112// Gets whether gestures and shortcuts for closing subpages are enabled.
113func (x *PreferencesWindow) GetCanNavigateBack() bool {
114
115	cret := xPreferencesWindowGetCanNavigateBack(x.GoPointer())
116	return cret
117}
118
119var xPreferencesWindowGetSearchEnabled func(uintptr) bool
120
121// Gets whether search is enabled for @self.
122func (x *PreferencesWindow) GetSearchEnabled() bool {
123
124	cret := xPreferencesWindowGetSearchEnabled(x.GoPointer())
125	return cret
126}
127
128var xPreferencesWindowGetVisiblePage func(uintptr) uintptr
129
130// Gets the currently visible page of @self.
131func (x *PreferencesWindow) GetVisiblePage() *PreferencesPage {
132	var cls *PreferencesPage
133
134	cret := xPreferencesWindowGetVisiblePage(x.GoPointer())
135
136	if cret == 0 {
137		return nil
138	}
139	gobject.IncreaseRef(cret)
140	cls = &PreferencesPage{}
141	cls.Ptr = cret
142	return cls
143}
144
145var xPreferencesWindowGetVisiblePageName func(uintptr) string
146
147// Gets the name of currently visible page of @self.
148func (x *PreferencesWindow) GetVisiblePageName() string {
149
150	cret := xPreferencesWindowGetVisiblePageName(x.GoPointer())
151	return cret
152}
153
154var xPreferencesWindowPopSubpage func(uintptr) bool
155
156// Pop the visible page from the subpage stack of @self.
157func (x *PreferencesWindow) PopSubpage() bool {
158
159	cret := xPreferencesWindowPopSubpage(x.GoPointer())
160	return cret
161}
162
163var xPreferencesWindowPresentSubpage func(uintptr, uintptr)
164
165// Sets @subpage as the window's subpage and opens it.
166//
167// The transition can be cancelled by the user, in which case visible child will
168// change back to the previously visible child.
169func (x *PreferencesWindow) PresentSubpage(SubpageVar *gtk.Widget) {
170
171	xPreferencesWindowPresentSubpage(x.GoPointer(), SubpageVar.GoPointer())
172
173}
174
175var xPreferencesWindowPushSubpage func(uintptr, uintptr)
176
177// Pushes @page onto the subpage stack of @self.
178//
179// The page will be automatically removed when popped.
180func (x *PreferencesWindow) PushSubpage(PageVar *NavigationPage) {
181
182	xPreferencesWindowPushSubpage(x.GoPointer(), PageVar.GoPointer())
183
184}
185
186var xPreferencesWindowRemove func(uintptr, uintptr)
187
188// Removes a page from @self.
189func (x *PreferencesWindow) Remove(PageVar *PreferencesPage) {
190
191	xPreferencesWindowRemove(x.GoPointer(), PageVar.GoPointer())
192
193}
194
195var xPreferencesWindowSetCanNavigateBack func(uintptr, bool)
196
197// Sets whether gestures and shortcuts for closing subpages are enabled.
198//
199// The supported gestures are:
200//
201// - One-finger swipe on touchscreens
202// - Horizontal scrolling on touchpads (usually two-finger swipe)
203// - Back mouse button
204//
205// The keyboard back key is also supported, as well as the
206// <kbd>Alt</kbd>+<kbd>←</kbd> shortcut.
207//
208// For right-to-left locales, gestures and shortcuts are reversed.
209//
210// Has no effect for subpages added with [method@PreferencesWindow.push_subpage].
211func (x *PreferencesWindow) SetCanNavigateBack(CanNavigateBackVar bool) {
212
213	xPreferencesWindowSetCanNavigateBack(x.GoPointer(), CanNavigateBackVar)
214
215}
216
217var xPreferencesWindowSetSearchEnabled func(uintptr, bool)
218
219// Sets whether search is enabled for @self.
220func (x *PreferencesWindow) SetSearchEnabled(SearchEnabledVar bool) {
221
222	xPreferencesWindowSetSearchEnabled(x.GoPointer(), SearchEnabledVar)
223
224}
225
226var xPreferencesWindowSetVisiblePage func(uintptr, uintptr)
227
228// Makes @page the visible page of @self.
229func (x *PreferencesWindow) SetVisiblePage(PageVar *PreferencesPage) {
230
231	xPreferencesWindowSetVisiblePage(x.GoPointer(), PageVar.GoPointer())
232
233}
234
235var xPreferencesWindowSetVisiblePageName func(uintptr, string)
236
237// Makes the page with the given name visible.
238//
239// See [property@PreferencesWindow:visible-page].
240func (x *PreferencesWindow) SetVisiblePageName(NameVar string) {
241
242	xPreferencesWindowSetVisiblePageName(x.GoPointer(), NameVar)
243
244}
245
246func (c *PreferencesWindow) GoPointer() uintptr {
247	if c == nil {
248		return 0
249	}
250	return c.Ptr
251}
252
253func (c *PreferencesWindow) SetGoPointer(ptr uintptr) {
254	c.Ptr = ptr
255}
256
257// SetPropertyCanNavigateBack sets the "can-navigate-back" property.
258// Whether gestures and shortcuts for closing subpages are enabled.
259//
260// The supported gestures are:
261//
262// - One-finger swipe on touchscreens
263// - Horizontal scrolling on touchpads (usually two-finger swipe)
264// - Back mouse button
265//
266// The keyboard back key is also supported, as well as the
267// <kbd>Alt</kbd>+<kbd>←</kbd> shortcut.
268//
269// For right-to-left locales, gestures and shortcuts are reversed.
270//
271// Has no effect for subpages added with
272// [method@PreferencesWindow.push_subpage].
273func (x *PreferencesWindow) SetPropertyCanNavigateBack(value bool) {
274	var v gobject.Value
275	v.Init(gobject.TypeBooleanVal)
276	v.SetBoolean(value)
277	x.SetProperty("can-navigate-back", &v)
278}
279
280// GetPropertyCanNavigateBack gets the "can-navigate-back" property.
281// Whether gestures and shortcuts for closing subpages are enabled.
282//
283// The supported gestures are:
284//
285// - One-finger swipe on touchscreens
286// - Horizontal scrolling on touchpads (usually two-finger swipe)
287// - Back mouse button
288//
289// The keyboard back key is also supported, as well as the
290// <kbd>Alt</kbd>+<kbd>←</kbd> shortcut.
291//
292// For right-to-left locales, gestures and shortcuts are reversed.
293//
294// Has no effect for subpages added with
295// [method@PreferencesWindow.push_subpage].
296func (x *PreferencesWindow) GetPropertyCanNavigateBack() bool {
297	var v gobject.Value
298	x.GetProperty("can-navigate-back", &v)
299	return v.GetBoolean()
300}
301
302// SetPropertySearchEnabled sets the "search-enabled" property.
303// Whether search is enabled.
304func (x *PreferencesWindow) SetPropertySearchEnabled(value bool) {
305	var v gobject.Value
306	v.Init(gobject.TypeBooleanVal)
307	v.SetBoolean(value)
308	x.SetProperty("search-enabled", &v)
309}
310
311// GetPropertySearchEnabled gets the "search-enabled" property.
312// Whether search is enabled.
313func (x *PreferencesWindow) GetPropertySearchEnabled() bool {
314	var v gobject.Value
315	x.GetProperty("search-enabled", &v)
316	return v.GetBoolean()
317}
318
319// SetPropertyVisiblePageName sets the "visible-page-name" property.
320// The name of the currently visible page.
321//
322// See [property@PreferencesWindow:visible-page].
323func (x *PreferencesWindow) SetPropertyVisiblePageName(value string) {
324	var v gobject.Value
325	v.Init(gobject.TypeStringVal)
326	v.SetString(&value)
327	x.SetProperty("visible-page-name", &v)
328}
329
330// GetPropertyVisiblePageName gets the "visible-page-name" property.
331// The name of the currently visible page.
332//
333// See [property@PreferencesWindow:visible-page].
334func (x *PreferencesWindow) GetPropertyVisiblePageName() string {
335	var v gobject.Value
336	x.GetProperty("visible-page-name", &v)
337	return v.GetString()
338}
339
340// Requests the user's screen reader to announce the given message.
341//
342// This kind of notification is useful for messages that
343// either have only a visual representation or that are not
344// exposed visually at all, e.g. a notification about a
345// successful operation.
346//
347// Also, by using this API, you can ensure that the message
348// does not interrupts the user's current screen reader output.
349func (x *PreferencesWindow) Announce(MessageVar string, PriorityVar gtk.AccessibleAnnouncementPriority) {
350
351	gtk.XGtkAccessibleAnnounce(x.GoPointer(), MessageVar, PriorityVar)
352
353}
354
355// Retrieves the accessible parent for an accessible object.
356//
357// This function returns `NULL` for top level widgets.
358func (x *PreferencesWindow) GetAccessibleParent() *gtk.AccessibleBase {
359	var cls *gtk.AccessibleBase
360
361	cret := gtk.XGtkAccessibleGetAccessibleParent(x.GoPointer())
362
363	if cret == 0 {
364		return nil
365	}
366	cls = &gtk.AccessibleBase{}
367	cls.Ptr = cret
368	return cls
369}
370
371// Retrieves the accessible role of an accessible object.
372func (x *PreferencesWindow) GetAccessibleRole() gtk.AccessibleRole {
373
374	cret := gtk.XGtkAccessibleGetAccessibleRole(x.GoPointer())
375	return cret
376}
377
378// Retrieves the implementation for the given accessible object.
379func (x *PreferencesWindow) GetAtContext() *gtk.ATContext {
380	var cls *gtk.ATContext
381
382	cret := gtk.XGtkAccessibleGetAtContext(x.GoPointer())
383
384	if cret == 0 {
385		return nil
386	}
387	cls = &gtk.ATContext{}
388	cls.Ptr = cret
389	return cls
390}
391
392// Queries the coordinates and dimensions of this accessible
393//
394// This functionality can be overridden by `GtkAccessible`
395// implementations, e.g. to get the bounds from an ignored
396// child widget.
397func (x *PreferencesWindow) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool {
398
399	cret := gtk.XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar)
400	return cret
401}
402
403// Retrieves the first accessible child of an accessible object.
404func (x *PreferencesWindow) GetFirstAccessibleChild() *gtk.AccessibleBase {
405	var cls *gtk.AccessibleBase
406
407	cret := gtk.XGtkAccessibleGetFirstAccessibleChild(x.GoPointer())
408
409	if cret == 0 {
410		return nil
411	}
412	cls = &gtk.AccessibleBase{}
413	cls.Ptr = cret
414	return cls
415}
416
417// Retrieves the next accessible sibling of an accessible object
418func (x *PreferencesWindow) GetNextAccessibleSibling() *gtk.AccessibleBase {
419	var cls *gtk.AccessibleBase
420
421	cret := gtk.XGtkAccessibleGetNextAccessibleSibling(x.GoPointer())
422
423	if cret == 0 {
424		return nil
425	}
426	cls = &gtk.AccessibleBase{}
427	cls.Ptr = cret
428	return cls
429}
430
431// Queries a platform state, such as focus.
432//
433// This functionality can be overridden by `GtkAccessible`
434// implementations, e.g. to get platform state from an ignored
435// child widget, as is the case for `GtkText` wrappers.
436func (x *PreferencesWindow) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool {
437
438	cret := gtk.XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar)
439	return cret
440}
441
442// Resets the accessible property to its default value.
443func (x *PreferencesWindow) ResetProperty(PropertyVar gtk.AccessibleProperty) {
444
445	gtk.XGtkAccessibleResetProperty(x.GoPointer(), PropertyVar)
446
447}
448
449// Resets the accessible relation to its default value.
450func (x *PreferencesWindow) ResetRelation(RelationVar gtk.AccessibleRelation) {
451
452	gtk.XGtkAccessibleResetRelation(x.GoPointer(), RelationVar)
453
454}
455
456// Resets the accessible state to its default value.
457func (x *PreferencesWindow) ResetState(StateVar gtk.AccessibleState) {
458
459	gtk.XGtkAccessibleResetState(x.GoPointer(), StateVar)
460
461}
462
463// Sets the parent and sibling of an accessible object.
464//
465// This function is meant to be used by accessible implementations that are
466// not part of the widget hierarchy, and but act as a logical bridge between
467// widgets. For instance, if a widget creates an object that holds metadata
468// for each child, and you want that object to implement the `GtkAccessible`
469// interface, you will use this function to ensure that the parent of each
470// child widget is the metadata object, and the parent of each metadata
471// object is the container widget.
472func (x *PreferencesWindow) SetAccessibleParent(ParentVar gtk.Accessible, NextSiblingVar gtk.Accessible) {
473
474	gtk.XGtkAccessibleSetAccessibleParent(x.GoPointer(), ParentVar.GoPointer(), NextSiblingVar.GoPointer())
475
476}
477
478// Updates the next accessible sibling.
479//
480// That might be useful when a new child of a custom accessible
481// is created, and it needs to be linked to a previous child.
482func (x *PreferencesWindow) UpdateNextAccessibleSibling(NewSiblingVar gtk.Accessible) {
483
484	gtk.XGtkAccessibleUpdateNextAccessibleSibling(x.GoPointer(), NewSiblingVar.GoPointer())
485
486}
487
488// Informs ATs that the platform state has changed.
489//
490// This function should be used by `GtkAccessible` implementations that
491// have a platform state but are not widgets. Widgets handle platform
492// states automatically.
493func (x *PreferencesWindow) UpdatePlatformState(StateVar gtk.AccessiblePlatformState) {
494
495	gtk.XGtkAccessibleUpdatePlatformState(x.GoPointer(), StateVar)
496
497}
498
499// Updates a list of accessible properties.
500//
501// See the [enum@Gtk.AccessibleProperty] documentation for the
502// value types of accessible properties.
503//
504// This function should be called by `GtkWidget` types whenever
505// an accessible property change must be communicated to assistive
506// technologies.
507//
508// Example:
509// ```c
510// value = gtk_adjustment_get_value (adjustment);
511// gtk_accessible_update_property (GTK_ACCESSIBLE (spin_button),
512//
513//	GTK_ACCESSIBLE_PROPERTY_VALUE_NOW, value,
514//	-1);
515//
516// ```
517func (x *PreferencesWindow) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArgs ...interface{}) {
518
519	gtk.XGtkAccessibleUpdateProperty(x.GoPointer(), FirstPropertyVar, varArgs...)
520
521}
522
523// Updates an array of accessible properties.
524//
525// This function should be called by `GtkWidget` types whenever an accessible
526// property change must be communicated to assistive technologies.
527//
528// This function is meant to be used by language bindings.
529func (x *PreferencesWindow) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value) {
530
531	gtk.XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar)
532
533}
534
535// Updates a list of accessible relations.
536//
537// This function should be called by `GtkWidget` types whenever an accessible
538// relation change must be communicated to assistive technologies.
539//
540// If the [enum@Gtk.AccessibleRelation] requires a list of references,
541// you should pass each reference individually, followed by `NULL`, e.g.
542//
543// ```c
544// gtk_accessible_update_relation (accessible,
545//
546//	GTK_ACCESSIBLE_RELATION_CONTROLS,
547//	  ref1, NULL,
548//	GTK_ACCESSIBLE_RELATION_LABELLED_BY,
549//	  ref1, ref2, ref3, NULL,
550//	-1);
551//
552// ```
553func (x *PreferencesWindow) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArgs ...interface{}) {
554
555	gtk.XGtkAccessibleUpdateRelation(x.GoPointer(), FirstRelationVar, varArgs...)
556
557}
558
559// Updates an array of accessible relations.
560//
561// This function should be called by `GtkWidget` types whenever an accessible
562// relation change must be communicated to assistive technologies.
563//
564// This function is meant to be used by language bindings.
565func (x *PreferencesWindow) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value) {
566
567	gtk.XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar)
568
569}
570
571// Updates a list of accessible states.
572//
573// See the [enum@Gtk.AccessibleState] documentation for the
574// value types of accessible states.
575//
576// This function should be called by `GtkWidget` types whenever
577// an accessible state change must be communicated to assistive
578// technologies.
579//
580// Example:
581//
582// ```c
583// value = GTK_ACCESSIBLE_TRISTATE_MIXED;
584// gtk_accessible_update_state (GTK_ACCESSIBLE (check_button),
585//
586//	GTK_ACCESSIBLE_STATE_CHECKED, value,
587//	-1);
588//
589// ```
590func (x *PreferencesWindow) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...interface{}) {
591
592	gtk.XGtkAccessibleUpdateState(x.GoPointer(), FirstStateVar, varArgs...)
593
594}
595
596// Updates an array of accessible states.
597//
598// This function should be called by `GtkWidget` types whenever an accessible
599// state change must be communicated to assistive technologies.
600//
601// This function is meant to be used by language bindings.
602func (x *PreferencesWindow) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value) {
603
604	gtk.XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar)
605
606}
607
608// Gets the ID of the @buildable object.
609//
610// `GtkBuilder` sets the name based on the ID attribute
611// of the `<object>` tag used to construct the @buildable.
612func (x *PreferencesWindow) GetBuildableId() string {
613
614	cret := gtk.XGtkBuildableGetBuildableId(x.GoPointer())
615	return cret
616}
617
618// Returns the renderer that is used for this `GtkNative`.
619func (x *PreferencesWindow) GetRenderer() *gsk.Renderer {
620	var cls *gsk.Renderer
621
622	cret := gtk.XGtkNativeGetRenderer(x.GoPointer())
623
624	if cret == 0 {
625		return nil
626	}
627	gobject.IncreaseRef(cret)
628	cls = &gsk.Renderer{}
629	cls.Ptr = cret
630	return cls
631}
632
633// Returns the surface of this `GtkNative`.
634func (x *PreferencesWindow) GetSurface() *gdk.Surface {
635	var cls *gdk.Surface
636
637	cret := gtk.XGtkNativeGetSurface(x.GoPointer())
638
639	if cret == 0 {
640		return nil
641	}
642	gobject.IncreaseRef(cret)
643	cls = &gdk.Surface{}
644	cls.Ptr = cret
645	return cls
646}
647
648// Retrieves the surface transform of @self.
649//
650// This is the translation from @self's surface coordinates into
651// @self's widget coordinates.
652func (x *PreferencesWindow) GetSurfaceTransform(XVar *float64, YVar *float64) {
653
654	gtk.XGtkNativeGetSurfaceTransform(x.GoPointer(), XVar, YVar)
655
656}
657
658// Realizes a `GtkNative`.
659//
660// This should only be used by subclasses.
661func (x *PreferencesWindow) Realize() {
662
663	gtk.XGtkNativeRealize(x.GoPointer())
664
665}
666
667// Unrealizes a `GtkNative`.
668//
669// This should only be used by subclasses.
670func (x *PreferencesWindow) Unrealize() {
671
672	gtk.XGtkNativeUnrealize(x.GoPointer())
673
674}
675
676// Returns the display that this `GtkRoot` is on.
677func (x *PreferencesWindow) GetDisplay() *gdk.Display {
678	var cls *gdk.Display
679
680	cret := gtk.XGtkRootGetDisplay(x.GoPointer())
681
682	if cret == 0 {
683		return nil
684	}
685	gobject.IncreaseRef(cret)
686	cls = &gdk.Display{}
687	cls.Ptr = cret
688	return cls
689}
690
691// Retrieves the current focused widget within the root.
692//
693// Note that this is the widget that would have the focus
694// if the root is active; if the root is not focused then
695// `gtk_widget_has_focus (widget)` will be %FALSE for the
696// widget.
697func (x *PreferencesWindow) GetFocus() *gtk.Widget {
698	var cls *gtk.Widget
699
700	cret := gtk.XGtkRootGetFocus(x.GoPointer())
701
702	if cret == 0 {
703		return nil
704	}
705	gobject.IncreaseRef(cret)
706	cls = &gtk.Widget{}
707	cls.Ptr = cret
708	return cls
709}
710
711// If @focus is not the current focus widget, and is focusable, sets
712// it as the focus widget for the root.
713//
714// If @focus is %NULL, unsets the focus widget for the root.
715//
716// To set the focus to a particular widget in the root, it is usually
717// more convenient to use [method@Gtk.Widget.grab_focus] instead of
718// this function.
719func (x *PreferencesWindow) SetFocus(FocusVar *gtk.Widget) {
720
721	gtk.XGtkRootSetFocus(x.GoPointer(), FocusVar.GoPointer())
722
723}
724
725func init() {
726	core.SetPackageName("ADW", "libadwaita-1")
727	core.SetSharedLibraries("ADW", []string{"libadwaita-1.so.0"})
728	var libs []uintptr
729	for _, libPath := range core.GetPaths("ADW") {
730		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
731		if err != nil {
732			panic(err)
733		}
734		libs = append(libs, lib)
735	}
736
737	core.PuregoSafeRegister(&xPreferencesWindowGLibType, libs, "adw_preferences_window_get_type")
738
739	core.PuregoSafeRegister(&xNewPreferencesWindow, libs, "adw_preferences_window_new")
740
741	core.PuregoSafeRegister(&xPreferencesWindowAdd, libs, "adw_preferences_window_add")
742	core.PuregoSafeRegister(&xPreferencesWindowAddToast, libs, "adw_preferences_window_add_toast")
743	core.PuregoSafeRegister(&xPreferencesWindowCloseSubpage, libs, "adw_preferences_window_close_subpage")
744	core.PuregoSafeRegister(&xPreferencesWindowGetCanNavigateBack, libs, "adw_preferences_window_get_can_navigate_back")
745	core.PuregoSafeRegister(&xPreferencesWindowGetSearchEnabled, libs, "adw_preferences_window_get_search_enabled")
746	core.PuregoSafeRegister(&xPreferencesWindowGetVisiblePage, libs, "adw_preferences_window_get_visible_page")
747	core.PuregoSafeRegister(&xPreferencesWindowGetVisiblePageName, libs, "adw_preferences_window_get_visible_page_name")
748	core.PuregoSafeRegister(&xPreferencesWindowPopSubpage, libs, "adw_preferences_window_pop_subpage")
749	core.PuregoSafeRegister(&xPreferencesWindowPresentSubpage, libs, "adw_preferences_window_present_subpage")
750	core.PuregoSafeRegister(&xPreferencesWindowPushSubpage, libs, "adw_preferences_window_push_subpage")
751	core.PuregoSafeRegister(&xPreferencesWindowRemove, libs, "adw_preferences_window_remove")
752	core.PuregoSafeRegister(&xPreferencesWindowSetCanNavigateBack, libs, "adw_preferences_window_set_can_navigate_back")
753	core.PuregoSafeRegister(&xPreferencesWindowSetSearchEnabled, libs, "adw_preferences_window_set_search_enabled")
754	core.PuregoSafeRegister(&xPreferencesWindowSetVisiblePage, libs, "adw_preferences_window_set_visible_page")
755	core.PuregoSafeRegister(&xPreferencesWindowSetVisiblePageName, libs, "adw_preferences_window_set_visible_page_name")
756
757}

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