v0.2.1 c0399be

gtkfontdialogbutton.go RawHistoryFolder

1// Package gtk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gtk
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/glib"
12	"github.com/bnema/puregotk/v4/gobject"
13	"github.com/bnema/puregotk/v4/gobject/types"
14	"github.com/bnema/puregotk/v4/pango"
15)
16
17type FontDialogButtonClass struct {
18	_ structs.HostLayout
19
20	ParentClass WidgetClass
21}
22
23func (x *FontDialogButtonClass) GoPointer() uintptr {
24	return uintptr(unsafe.Pointer(x))
25}
26
27// The level of granularity for the font selection.
28//
29// Depending on this value, the `PangoFontDescription` that
30// is returned by [method@Gtk.FontDialogButton.get_font_desc]
31// will have more or less fields set.
32type FontLevel int
33
34var xFontLevelGLibType func() types.GType
35
36func FontLevelGLibType() types.GType {
37	return xFontLevelGLibType()
38}
39
40const (
41
42	// Select a font family
43	FontLevelFamilyValue FontLevel = 0
44	// Select a font face (i.e. a family and a style)
45	FontLevelFaceValue FontLevel = 1
46	// Select a font (i.e. a face with a size, and possibly font variations)
47	FontLevelFontValue FontLevel = 2
48	// Select a font and font features
49	FontLevelFeaturesValue FontLevel = 3
50)
51
52// Opens a font chooser dialog to select a font.
53//
54// <picture>
55//
56//	<source srcset="font-button-dark.png" media="(prefers-color-scheme: dark)">
57//	<img alt="An example GtkFontDialogButton" src="font-button.png">
58//
59// </picture>
60//
61// It is suitable widget for selecting a font in a preference dialog.
62//
63// # CSS nodes
64//
65// ```
66// fontbutton
67// ╰── button.font
68//
69//	╰── [content]
70//
71// ```
72//
73// `GtkFontDialogButton` has a single CSS node with name fontbutton which
74// contains a button node with the .font style class.
75type FontDialogButton struct {
76	Widget
77}
78
79var xFontDialogButtonGLibType func() types.GType
80
81func FontDialogButtonGLibType() types.GType {
82	return xFontDialogButtonGLibType()
83}
84
85func FontDialogButtonNewFromInternalPtr(ptr uintptr) *FontDialogButton {
86	cls := &FontDialogButton{}
87	cls.Ptr = ptr
88	return cls
89}
90
91var xNewFontDialogButton func(uintptr) uintptr
92
93// Creates a new `GtkFontDialogButton` with the
94// given `GtkFontDialog`.
95//
96// You can pass `NULL` to this function and set a `GtkFontDialog`
97// later. The button will be insensitive until that happens.
98func NewFontDialogButton(DialogVar *FontDialog) *FontDialogButton {
99	var cls *FontDialogButton
100
101	cret := xNewFontDialogButton(DialogVar.GoPointer())
102
103	if cret == 0 {
104		return nil
105	}
106	gobject.IncreaseRef(cret)
107	cls = &FontDialogButton{}
108	cls.Ptr = cret
109	return cls
110}
111
112var xFontDialogButtonGetDialog func(uintptr) uintptr
113
114// Returns the `GtkFontDialog` of @self.
115func (x *FontDialogButton) GetDialog() *FontDialog {
116	var cls *FontDialog
117
118	cret := xFontDialogButtonGetDialog(x.GoPointer())
119
120	if cret == 0 {
121		return nil
122	}
123	gobject.IncreaseRef(cret)
124	cls = &FontDialog{}
125	cls.Ptr = cret
126	return cls
127}
128
129var xFontDialogButtonGetFontDesc func(uintptr) *pango.FontDescription
130
131// Returns the font of the button.
132//
133// This function is what should be used to obtain
134// the font that was chosen by the user. To get
135// informed about changes, listen to "notify::font-desc".
136func (x *FontDialogButton) GetFontDesc() *pango.FontDescription {
137
138	cret := xFontDialogButtonGetFontDesc(x.GoPointer())
139	return cret
140}
141
142var xFontDialogButtonGetFontFeatures func(uintptr) string
143
144// Returns the font features of the button.
145//
146// This function is what should be used to obtain the font features
147// that were chosen by the user. To get informed about changes, listen
148// to "notify::font-features".
149//
150// Note that the button will only let users choose font features
151// if [property@Gtk.FontDialogButton:level] is set to
152// `GTK_FONT_LEVEL_FEATURES`.
153func (x *FontDialogButton) GetFontFeatures() string {
154
155	cret := xFontDialogButtonGetFontFeatures(x.GoPointer())
156	return cret
157}
158
159var xFontDialogButtonGetLanguage func(uintptr) *pango.Language
160
161// Returns the language that is used for font features.
162func (x *FontDialogButton) GetLanguage() *pango.Language {
163
164	cret := xFontDialogButtonGetLanguage(x.GoPointer())
165	return cret
166}
167
168var xFontDialogButtonGetLevel func(uintptr) FontLevel
169
170// Returns the level of detail at which this dialog
171// lets the user select fonts.
172func (x *FontDialogButton) GetLevel() FontLevel {
173
174	cret := xFontDialogButtonGetLevel(x.GoPointer())
175	return cret
176}
177
178var xFontDialogButtonGetUseFont func(uintptr) bool
179
180// Returns whether the selected font is used in the label.
181func (x *FontDialogButton) GetUseFont() bool {
182
183	cret := xFontDialogButtonGetUseFont(x.GoPointer())
184	return cret
185}
186
187var xFontDialogButtonGetUseSize func(uintptr) bool
188
189// Returns whether the selected font size is used in the label.
190func (x *FontDialogButton) GetUseSize() bool {
191
192	cret := xFontDialogButtonGetUseSize(x.GoPointer())
193	return cret
194}
195
196var xFontDialogButtonSetDialog func(uintptr, uintptr)
197
198// Sets a `GtkFontDialog` object to use for
199// creating the font chooser dialog that is
200// presented when the user clicks the button.
201func (x *FontDialogButton) SetDialog(DialogVar *FontDialog) {
202
203	xFontDialogButtonSetDialog(x.GoPointer(), DialogVar.GoPointer())
204
205}
206
207var xFontDialogButtonSetFontDesc func(uintptr, *pango.FontDescription)
208
209// Sets the font of the button.
210func (x *FontDialogButton) SetFontDesc(FontDescVar *pango.FontDescription) {
211
212	xFontDialogButtonSetFontDesc(x.GoPointer(), FontDescVar)
213
214}
215
216var xFontDialogButtonSetFontFeatures func(uintptr, uintptr)
217
218// Sets the font features of the button.
219func (x *FontDialogButton) SetFontFeatures(FontFeaturesVar *string) {
220
221	FontFeaturesVarPtr := core.GStrdupNullable(FontFeaturesVar)
222	defer core.GFreeNullable(FontFeaturesVarPtr)
223
224	xFontDialogButtonSetFontFeatures(x.GoPointer(), FontFeaturesVarPtr)
225
226}
227
228var xFontDialogButtonSetLanguage func(uintptr, *pango.Language)
229
230// Sets the language to use for font features.
231func (x *FontDialogButton) SetLanguage(LanguageVar *pango.Language) {
232
233	xFontDialogButtonSetLanguage(x.GoPointer(), LanguageVar)
234
235}
236
237var xFontDialogButtonSetLevel func(uintptr, FontLevel)
238
239// Sets the level of detail at which this dialog
240// lets the user select fonts.
241func (x *FontDialogButton) SetLevel(LevelVar FontLevel) {
242
243	xFontDialogButtonSetLevel(x.GoPointer(), LevelVar)
244
245}
246
247var xFontDialogButtonSetUseFont func(uintptr, bool)
248
249// If @use_font is `TRUE`, the font name will be written
250// using the selected font.
251func (x *FontDialogButton) SetUseFont(UseFontVar bool) {
252
253	xFontDialogButtonSetUseFont(x.GoPointer(), UseFontVar)
254
255}
256
257var xFontDialogButtonSetUseSize func(uintptr, bool)
258
259// If @use_size is `TRUE`, the font name will be written
260// using the selected font size.
261func (x *FontDialogButton) SetUseSize(UseSizeVar bool) {
262
263	xFontDialogButtonSetUseSize(x.GoPointer(), UseSizeVar)
264
265}
266
267func (c *FontDialogButton) GoPointer() uintptr {
268	if c == nil {
269		return 0
270	}
271	return c.Ptr
272}
273
274func (c *FontDialogButton) SetGoPointer(ptr uintptr) {
275	c.Ptr = ptr
276}
277
278// SetPropertyFontDesc sets the "font-desc" property.
279// The selected font.
280//
281// This property can be set to give the button its initial
282// font, and it will be updated to reflect the users choice
283// in the font chooser dialog.
284//
285// Listen to `notify::font-desc` to get informed about changes
286// to the buttons font.
287func (x *FontDialogButton) SetPropertyFontDesc(value uintptr) {
288	var v gobject.Value
289	v.Init(gobject.TypePointerVal)
290	v.SetPointer(value)
291	x.SetProperty("font-desc", &v)
292}
293
294// GetPropertyFontDesc gets the "font-desc" property.
295// The selected font.
296//
297// This property can be set to give the button its initial
298// font, and it will be updated to reflect the users choice
299// in the font chooser dialog.
300//
301// Listen to `notify::font-desc` to get informed about changes
302// to the buttons font.
303func (x *FontDialogButton) GetPropertyFontDesc() uintptr {
304	var v gobject.Value
305	x.GetProperty("font-desc", &v)
306	return v.GetPointer()
307}
308
309// SetPropertyFontFeatures sets the "font-features" property.
310// The selected font features.
311//
312// This property will be updated to reflect the users choice
313// in the font chooser dialog.
314//
315// Listen to `notify::font-features` to get informed about changes
316// to the buttons font features.
317func (x *FontDialogButton) SetPropertyFontFeatures(value string) {
318	var v gobject.Value
319	v.Init(gobject.TypeStringVal)
320	v.SetString(&value)
321	x.SetProperty("font-features", &v)
322}
323
324// GetPropertyFontFeatures gets the "font-features" property.
325// The selected font features.
326//
327// This property will be updated to reflect the users choice
328// in the font chooser dialog.
329//
330// Listen to `notify::font-features` to get informed about changes
331// to the buttons font features.
332func (x *FontDialogButton) GetPropertyFontFeatures() string {
333	var v gobject.Value
334	x.GetProperty("font-features", &v)
335	return v.GetString()
336}
337
338// SetPropertyLanguage sets the "language" property.
339// The selected language for font features.
340//
341// This property will be updated to reflect the users choice
342// in the font chooser dialog.
343//
344// Listen to `notify::language` to get informed about changes
345// to the buttons language.
346func (x *FontDialogButton) SetPropertyLanguage(value uintptr) {
347	var v gobject.Value
348	v.Init(gobject.TypePointerVal)
349	v.SetPointer(value)
350	x.SetProperty("language", &v)
351}
352
353// GetPropertyLanguage gets the "language" property.
354// The selected language for font features.
355//
356// This property will be updated to reflect the users choice
357// in the font chooser dialog.
358//
359// Listen to `notify::language` to get informed about changes
360// to the buttons language.
361func (x *FontDialogButton) GetPropertyLanguage() uintptr {
362	var v gobject.Value
363	x.GetProperty("language", &v)
364	return v.GetPointer()
365}
366
367// SetPropertyUseFont sets the "use-font" property.
368// Whether the buttons label will be drawn in the selected font.
369func (x *FontDialogButton) SetPropertyUseFont(value bool) {
370	var v gobject.Value
371	v.Init(gobject.TypeBooleanVal)
372	v.SetBoolean(value)
373	x.SetProperty("use-font", &v)
374}
375
376// GetPropertyUseFont gets the "use-font" property.
377// Whether the buttons label will be drawn in the selected font.
378func (x *FontDialogButton) GetPropertyUseFont() bool {
379	var v gobject.Value
380	x.GetProperty("use-font", &v)
381	return v.GetBoolean()
382}
383
384// SetPropertyUseSize sets the "use-size" property.
385// Whether the buttons label will use the selected font size.
386func (x *FontDialogButton) SetPropertyUseSize(value bool) {
387	var v gobject.Value
388	v.Init(gobject.TypeBooleanVal)
389	v.SetBoolean(value)
390	x.SetProperty("use-size", &v)
391}
392
393// GetPropertyUseSize gets the "use-size" property.
394// Whether the buttons label will use the selected font size.
395func (x *FontDialogButton) GetPropertyUseSize() bool {
396	var v gobject.Value
397	x.GetProperty("use-size", &v)
398	return v.GetBoolean()
399}
400
401// Emitted when the font dialog button is activated.
402//
403// The `::activate` signal on `GtkFontDialogButton` is an action signal
404// and emitting it causes the button to pop up its dialog.
405func (x *FontDialogButton) ConnectActivate(cb *func(FontDialogButton)) uint {
406	cbPtr := uintptr(unsafe.Pointer(cb))
407	if cbRefPtr, ok := glib.GetCallback(cbPtr); ok {
408		handlerID := gobject.SignalConnect(x.GoPointer(), "activate", cbRefPtr)
409		glib.SaveHandlerMapping(handlerID, cbPtr)
410		return handlerID
411	}
412
413	fcb := func(clsPtr uintptr) {
414		fa := FontDialogButton{}
415		fa.Ptr = clsPtr
416		cbFn := *cb
417
418		cbFn(fa)
419
420	}
421	cbRefPtr := purego.NewCallback(fcb)
422	glib.SaveCallbackWithClosure(cbPtr, cbRefPtr, cb)
423	handlerID := gobject.SignalConnect(x.GoPointer(), "activate", cbRefPtr)
424	glib.SaveHandlerMapping(handlerID, cbPtr)
425	return handlerID
426}
427
428// Requests the user's screen reader to announce the given message.
429//
430// This kind of notification is useful for messages that
431// either have only a visual representation or that are not
432// exposed visually at all, e.g. a notification about a
433// successful operation.
434//
435// Also, by using this API, you can ensure that the message
436// does not interrupts the user's current screen reader output.
437func (x *FontDialogButton) Announce(MessageVar string, PriorityVar AccessibleAnnouncementPriority) {
438
439	XGtkAccessibleAnnounce(x.GoPointer(), MessageVar, PriorityVar)
440
441}
442
443// Retrieves the accessible parent for an accessible object.
444//
445// This function returns `NULL` for top level widgets.
446func (x *FontDialogButton) GetAccessibleParent() *AccessibleBase {
447	var cls *AccessibleBase
448
449	cret := XGtkAccessibleGetAccessibleParent(x.GoPointer())
450
451	if cret == 0 {
452		return nil
453	}
454	cls = &AccessibleBase{}
455	cls.Ptr = cret
456	return cls
457}
458
459// Retrieves the accessible role of an accessible object.
460func (x *FontDialogButton) GetAccessibleRole() AccessibleRole {
461
462	cret := XGtkAccessibleGetAccessibleRole(x.GoPointer())
463	return cret
464}
465
466// Retrieves the implementation for the given accessible object.
467func (x *FontDialogButton) GetAtContext() *ATContext {
468	var cls *ATContext
469
470	cret := XGtkAccessibleGetAtContext(x.GoPointer())
471
472	if cret == 0 {
473		return nil
474	}
475	cls = &ATContext{}
476	cls.Ptr = cret
477	return cls
478}
479
480// Queries the coordinates and dimensions of this accessible
481//
482// This functionality can be overridden by `GtkAccessible`
483// implementations, e.g. to get the bounds from an ignored
484// child widget.
485func (x *FontDialogButton) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool {
486
487	cret := XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar)
488	return cret
489}
490
491// Retrieves the first accessible child of an accessible object.
492func (x *FontDialogButton) GetFirstAccessibleChild() *AccessibleBase {
493	var cls *AccessibleBase
494
495	cret := XGtkAccessibleGetFirstAccessibleChild(x.GoPointer())
496
497	if cret == 0 {
498		return nil
499	}
500	cls = &AccessibleBase{}
501	cls.Ptr = cret
502	return cls
503}
504
505// Retrieves the next accessible sibling of an accessible object
506func (x *FontDialogButton) GetNextAccessibleSibling() *AccessibleBase {
507	var cls *AccessibleBase
508
509	cret := XGtkAccessibleGetNextAccessibleSibling(x.GoPointer())
510
511	if cret == 0 {
512		return nil
513	}
514	cls = &AccessibleBase{}
515	cls.Ptr = cret
516	return cls
517}
518
519// Queries a platform state, such as focus.
520//
521// This functionality can be overridden by `GtkAccessible`
522// implementations, e.g. to get platform state from an ignored
523// child widget, as is the case for `GtkText` wrappers.
524func (x *FontDialogButton) GetPlatformState(StateVar AccessiblePlatformState) bool {
525
526	cret := XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar)
527	return cret
528}
529
530// Resets the accessible property to its default value.
531func (x *FontDialogButton) ResetProperty(PropertyVar AccessibleProperty) {
532
533	XGtkAccessibleResetProperty(x.GoPointer(), PropertyVar)
534
535}
536
537// Resets the accessible relation to its default value.
538func (x *FontDialogButton) ResetRelation(RelationVar AccessibleRelation) {
539
540	XGtkAccessibleResetRelation(x.GoPointer(), RelationVar)
541
542}
543
544// Resets the accessible state to its default value.
545func (x *FontDialogButton) ResetState(StateVar AccessibleState) {
546
547	XGtkAccessibleResetState(x.GoPointer(), StateVar)
548
549}
550
551// Sets the parent and sibling of an accessible object.
552//
553// This function is meant to be used by accessible implementations that are
554// not part of the widget hierarchy, and but act as a logical bridge between
555// widgets. For instance, if a widget creates an object that holds metadata
556// for each child, and you want that object to implement the `GtkAccessible`
557// interface, you will use this function to ensure that the parent of each
558// child widget is the metadata object, and the parent of each metadata
559// object is the container widget.
560func (x *FontDialogButton) SetAccessibleParent(ParentVar Accessible, NextSiblingVar Accessible) {
561
562	XGtkAccessibleSetAccessibleParent(x.GoPointer(), ParentVar.GoPointer(), NextSiblingVar.GoPointer())
563
564}
565
566// Updates the next accessible sibling.
567//
568// That might be useful when a new child of a custom accessible
569// is created, and it needs to be linked to a previous child.
570func (x *FontDialogButton) UpdateNextAccessibleSibling(NewSiblingVar Accessible) {
571
572	XGtkAccessibleUpdateNextAccessibleSibling(x.GoPointer(), NewSiblingVar.GoPointer())
573
574}
575
576// Informs ATs that the platform state has changed.
577//
578// This function should be used by `GtkAccessible` implementations that
579// have a platform state but are not widgets. Widgets handle platform
580// states automatically.
581func (x *FontDialogButton) UpdatePlatformState(StateVar AccessiblePlatformState) {
582
583	XGtkAccessibleUpdatePlatformState(x.GoPointer(), StateVar)
584
585}
586
587// Updates a list of accessible properties.
588//
589// See the [enum@Gtk.AccessibleProperty] documentation for the
590// value types of accessible properties.
591//
592// This function should be called by `GtkWidget` types whenever
593// an accessible property change must be communicated to assistive
594// technologies.
595//
596// Example:
597// ```c
598// value = gtk_adjustment_get_value (adjustment);
599// gtk_accessible_update_property (GTK_ACCESSIBLE (spin_button),
600//
601//	GTK_ACCESSIBLE_PROPERTY_VALUE_NOW, value,
602//	-1);
603//
604// ```
605func (x *FontDialogButton) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...interface{}) {
606
607	XGtkAccessibleUpdateProperty(x.GoPointer(), FirstPropertyVar, varArgs...)
608
609}
610
611// Updates an array of accessible properties.
612//
613// This function should be called by `GtkWidget` types whenever an accessible
614// property change must be communicated to assistive technologies.
615//
616// This function is meant to be used by language bindings.
617func (x *FontDialogButton) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) {
618
619	XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar)
620
621}
622
623// Updates a list of accessible relations.
624//
625// This function should be called by `GtkWidget` types whenever an accessible
626// relation change must be communicated to assistive technologies.
627//
628// If the [enum@Gtk.AccessibleRelation] requires a list of references,
629// you should pass each reference individually, followed by `NULL`, e.g.
630//
631// ```c
632// gtk_accessible_update_relation (accessible,
633//
634//	GTK_ACCESSIBLE_RELATION_CONTROLS,
635//	  ref1, NULL,
636//	GTK_ACCESSIBLE_RELATION_LABELLED_BY,
637//	  ref1, ref2, ref3, NULL,
638//	-1);
639//
640// ```
641func (x *FontDialogButton) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...interface{}) {
642
643	XGtkAccessibleUpdateRelation(x.GoPointer(), FirstRelationVar, varArgs...)
644
645}
646
647// Updates an array of accessible relations.
648//
649// This function should be called by `GtkWidget` types whenever an accessible
650// relation change must be communicated to assistive technologies.
651//
652// This function is meant to be used by language bindings.
653func (x *FontDialogButton) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) {
654
655	XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar)
656
657}
658
659// Updates a list of accessible states.
660//
661// See the [enum@Gtk.AccessibleState] documentation for the
662// value types of accessible states.
663//
664// This function should be called by `GtkWidget` types whenever
665// an accessible state change must be communicated to assistive
666// technologies.
667//
668// Example:
669//
670// ```c
671// value = GTK_ACCESSIBLE_TRISTATE_MIXED;
672// gtk_accessible_update_state (GTK_ACCESSIBLE (check_button),
673//
674//	GTK_ACCESSIBLE_STATE_CHECKED, value,
675//	-1);
676//
677// ```
678func (x *FontDialogButton) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{}) {
679
680	XGtkAccessibleUpdateState(x.GoPointer(), FirstStateVar, varArgs...)
681
682}
683
684// Updates an array of accessible states.
685//
686// This function should be called by `GtkWidget` types whenever an accessible
687// state change must be communicated to assistive technologies.
688//
689// This function is meant to be used by language bindings.
690func (x *FontDialogButton) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) {
691
692	XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar)
693
694}
695
696// Gets the ID of the @buildable object.
697//
698// `GtkBuilder` sets the name based on the ID attribute
699// of the `<object>` tag used to construct the @buildable.
700func (x *FontDialogButton) GetBuildableId() string {
701
702	cret := XGtkBuildableGetBuildableId(x.GoPointer())
703	return cret
704}
705
706func init() {
707	core.SetPackageName("GTK", "gtk4")
708	core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1"})
709	var libs []uintptr
710	for _, libPath := range core.GetPaths("GTK") {
711		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
712		if err != nil {
713			panic(err)
714		}
715		libs = append(libs, lib)
716	}
717
718	core.PuregoSafeRegister(&xFontLevelGLibType, libs, "gtk_font_level_get_type")
719
720	core.PuregoSafeRegister(&xFontDialogButtonGLibType, libs, "gtk_font_dialog_button_get_type")
721
722	core.PuregoSafeRegister(&xNewFontDialogButton, libs, "gtk_font_dialog_button_new")
723
724	core.PuregoSafeRegister(&xFontDialogButtonGetDialog, libs, "gtk_font_dialog_button_get_dialog")
725	core.PuregoSafeRegister(&xFontDialogButtonGetFontDesc, libs, "gtk_font_dialog_button_get_font_desc")
726	core.PuregoSafeRegister(&xFontDialogButtonGetFontFeatures, libs, "gtk_font_dialog_button_get_font_features")
727	core.PuregoSafeRegister(&xFontDialogButtonGetLanguage, libs, "gtk_font_dialog_button_get_language")
728	core.PuregoSafeRegister(&xFontDialogButtonGetLevel, libs, "gtk_font_dialog_button_get_level")
729	core.PuregoSafeRegister(&xFontDialogButtonGetUseFont, libs, "gtk_font_dialog_button_get_use_font")
730	core.PuregoSafeRegister(&xFontDialogButtonGetUseSize, libs, "gtk_font_dialog_button_get_use_size")
731	core.PuregoSafeRegister(&xFontDialogButtonSetDialog, libs, "gtk_font_dialog_button_set_dialog")
732	core.PuregoSafeRegister(&xFontDialogButtonSetFontDesc, libs, "gtk_font_dialog_button_set_font_desc")
733	core.PuregoSafeRegister(&xFontDialogButtonSetFontFeatures, libs, "gtk_font_dialog_button_set_font_features")
734	core.PuregoSafeRegister(&xFontDialogButtonSetLanguage, libs, "gtk_font_dialog_button_set_language")
735	core.PuregoSafeRegister(&xFontDialogButtonSetLevel, libs, "gtk_font_dialog_button_set_level")
736	core.PuregoSafeRegister(&xFontDialogButtonSetUseFont, libs, "gtk_font_dialog_button_set_use_font")
737	core.PuregoSafeRegister(&xFontDialogButtonSetUseSize, libs, "gtk_font_dialog_button_set_use_size")
738
739}

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