v0.2.1 c0399be

gtkappchooserwidget.go RawHistoryFolder

1// Package gtk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gtk
3
4import (
5	"unsafe"
6
7	"github.com/ebitengine/purego"
8
9	"github.com/bnema/puregotk/pkg/core"
10	"github.com/bnema/puregotk/v4/gio"
11	"github.com/bnema/puregotk/v4/glib"
12	"github.com/bnema/puregotk/v4/gobject"
13	"github.com/bnema/puregotk/v4/gobject/types"
14)
15
16// `GtkAppChooserWidget` is a widget for selecting applications.
17//
18// It is the main building block for [class@Gtk.AppChooserDialog].
19// Most applications only need to use the latter; but you can use
20// this widget as part of a larger widget if you have special needs.
21//
22// `GtkAppChooserWidget` offers detailed control over what applications
23// are shown, using the
24// [property@Gtk.AppChooserWidget:show-default],
25// [property@Gtk.AppChooserWidget:show-recommended],
26// [property@Gtk.AppChooserWidget:show-fallback],
27// [property@Gtk.AppChooserWidget:show-other] and
28// [property@Gtk.AppChooserWidget:show-all] properties. See the
29// [iface@Gtk.AppChooser] documentation for more information about these
30// groups of applications.
31//
32// To keep track of the selected application, use the
33// [signal@Gtk.AppChooserWidget::application-selected] and
34// [signal@Gtk.AppChooserWidget::application-activated] signals.
35//
36// ## CSS nodes
37//
38// `GtkAppChooserWidget` has a single CSS node with name appchooser.
39type AppChooserWidget struct {
40	Widget
41}
42
43var xAppChooserWidgetGLibType func() types.GType
44
45func AppChooserWidgetGLibType() types.GType {
46	return xAppChooserWidgetGLibType()
47}
48
49func AppChooserWidgetNewFromInternalPtr(ptr uintptr) *AppChooserWidget {
50	cls := &AppChooserWidget{}
51	cls.Ptr = ptr
52	return cls
53}
54
55var xNewAppChooserWidget func(string) uintptr
56
57// Creates a new `GtkAppChooserWidget` for applications
58// that can handle content of the given type.
59func NewAppChooserWidget(ContentTypeVar string) *AppChooserWidget {
60	var cls *AppChooserWidget
61
62	cret := xNewAppChooserWidget(ContentTypeVar)
63
64	if cret == 0 {
65		return nil
66	}
67	gobject.IncreaseRef(cret)
68	cls = &AppChooserWidget{}
69	cls.Ptr = cret
70	return cls
71}
72
73var xAppChooserWidgetGetDefaultText func(uintptr) string
74
75// Returns the text that is shown if there are not applications
76// that can handle the content type.
77func (x *AppChooserWidget) GetDefaultText() string {
78
79	cret := xAppChooserWidgetGetDefaultText(x.GoPointer())
80	return cret
81}
82
83var xAppChooserWidgetGetShowAll func(uintptr) bool
84
85// Gets whether the app chooser should show all applications
86// in a flat list.
87func (x *AppChooserWidget) GetShowAll() bool {
88
89	cret := xAppChooserWidgetGetShowAll(x.GoPointer())
90	return cret
91}
92
93var xAppChooserWidgetGetShowDefault func(uintptr) bool
94
95// Gets whether the app chooser should show the default handler
96// for the content type in a separate section.
97func (x *AppChooserWidget) GetShowDefault() bool {
98
99	cret := xAppChooserWidgetGetShowDefault(x.GoPointer())
100	return cret
101}
102
103var xAppChooserWidgetGetShowFallback func(uintptr) bool
104
105// Gets whether the app chooser should show related applications
106// for the content type in a separate section.
107func (x *AppChooserWidget) GetShowFallback() bool {
108
109	cret := xAppChooserWidgetGetShowFallback(x.GoPointer())
110	return cret
111}
112
113var xAppChooserWidgetGetShowOther func(uintptr) bool
114
115// Gets whether the app chooser should show applications
116// which are unrelated to the content type.
117func (x *AppChooserWidget) GetShowOther() bool {
118
119	cret := xAppChooserWidgetGetShowOther(x.GoPointer())
120	return cret
121}
122
123var xAppChooserWidgetGetShowRecommended func(uintptr) bool
124
125// Gets whether the app chooser should show recommended applications
126// for the content type in a separate section.
127func (x *AppChooserWidget) GetShowRecommended() bool {
128
129	cret := xAppChooserWidgetGetShowRecommended(x.GoPointer())
130	return cret
131}
132
133var xAppChooserWidgetSetDefaultText func(uintptr, string)
134
135// Sets the text that is shown if there are not applications
136// that can handle the content type.
137func (x *AppChooserWidget) SetDefaultText(TextVar string) {
138
139	xAppChooserWidgetSetDefaultText(x.GoPointer(), TextVar)
140
141}
142
143var xAppChooserWidgetSetShowAll func(uintptr, bool)
144
145// Sets whether the app chooser should show all applications
146// in a flat list.
147func (x *AppChooserWidget) SetShowAll(SettingVar bool) {
148
149	xAppChooserWidgetSetShowAll(x.GoPointer(), SettingVar)
150
151}
152
153var xAppChooserWidgetSetShowDefault func(uintptr, bool)
154
155// Sets whether the app chooser should show the default handler
156// for the content type in a separate section.
157func (x *AppChooserWidget) SetShowDefault(SettingVar bool) {
158
159	xAppChooserWidgetSetShowDefault(x.GoPointer(), SettingVar)
160
161}
162
163var xAppChooserWidgetSetShowFallback func(uintptr, bool)
164
165// Sets whether the app chooser should show related applications
166// for the content type in a separate section.
167func (x *AppChooserWidget) SetShowFallback(SettingVar bool) {
168
169	xAppChooserWidgetSetShowFallback(x.GoPointer(), SettingVar)
170
171}
172
173var xAppChooserWidgetSetShowOther func(uintptr, bool)
174
175// Sets whether the app chooser should show applications
176// which are unrelated to the content type.
177func (x *AppChooserWidget) SetShowOther(SettingVar bool) {
178
179	xAppChooserWidgetSetShowOther(x.GoPointer(), SettingVar)
180
181}
182
183var xAppChooserWidgetSetShowRecommended func(uintptr, bool)
184
185// Sets whether the app chooser should show recommended applications
186// for the content type in a separate section.
187func (x *AppChooserWidget) SetShowRecommended(SettingVar bool) {
188
189	xAppChooserWidgetSetShowRecommended(x.GoPointer(), SettingVar)
190
191}
192
193func (c *AppChooserWidget) GoPointer() uintptr {
194	if c == nil {
195		return 0
196	}
197	return c.Ptr
198}
199
200func (c *AppChooserWidget) SetGoPointer(ptr uintptr) {
201	c.Ptr = ptr
202}
203
204// SetPropertyDefaultText sets the "default-text" property.
205// The text that appears in the widget when there are no applications
206// for the given content type.
207func (x *AppChooserWidget) SetPropertyDefaultText(value string) {
208	var v gobject.Value
209	v.Init(gobject.TypeStringVal)
210	v.SetString(&value)
211	x.SetProperty("default-text", &v)
212}
213
214// GetPropertyDefaultText gets the "default-text" property.
215// The text that appears in the widget when there are no applications
216// for the given content type.
217func (x *AppChooserWidget) GetPropertyDefaultText() string {
218	var v gobject.Value
219	x.GetProperty("default-text", &v)
220	return v.GetString()
221}
222
223// SetPropertyShowAll sets the "show-all" property.
224// If %TRUE, the app chooser presents all applications
225// in a single list, without subsections for default,
226// recommended or related applications.
227func (x *AppChooserWidget) SetPropertyShowAll(value bool) {
228	var v gobject.Value
229	v.Init(gobject.TypeBooleanVal)
230	v.SetBoolean(value)
231	x.SetProperty("show-all", &v)
232}
233
234// GetPropertyShowAll gets the "show-all" property.
235// If %TRUE, the app chooser presents all applications
236// in a single list, without subsections for default,
237// recommended or related applications.
238func (x *AppChooserWidget) GetPropertyShowAll() bool {
239	var v gobject.Value
240	x.GetProperty("show-all", &v)
241	return v.GetBoolean()
242}
243
244// SetPropertyShowDefault sets the "show-default" property.
245// Determines whether the app chooser should show the default
246// handler for the content type in a separate section.
247//
248// If %FALSE, the default handler is listed among the recommended
249// applications.
250func (x *AppChooserWidget) SetPropertyShowDefault(value bool) {
251	var v gobject.Value
252	v.Init(gobject.TypeBooleanVal)
253	v.SetBoolean(value)
254	x.SetProperty("show-default", &v)
255}
256
257// GetPropertyShowDefault gets the "show-default" property.
258// Determines whether the app chooser should show the default
259// handler for the content type in a separate section.
260//
261// If %FALSE, the default handler is listed among the recommended
262// applications.
263func (x *AppChooserWidget) GetPropertyShowDefault() bool {
264	var v gobject.Value
265	x.GetProperty("show-default", &v)
266	return v.GetBoolean()
267}
268
269// SetPropertyShowFallback sets the "show-fallback" property.
270// Determines whether the app chooser should show a section
271// for fallback applications.
272//
273// If %FALSE, the fallback applications are listed among the
274// other applications.
275func (x *AppChooserWidget) SetPropertyShowFallback(value bool) {
276	var v gobject.Value
277	v.Init(gobject.TypeBooleanVal)
278	v.SetBoolean(value)
279	x.SetProperty("show-fallback", &v)
280}
281
282// GetPropertyShowFallback gets the "show-fallback" property.
283// Determines whether the app chooser should show a section
284// for fallback applications.
285//
286// If %FALSE, the fallback applications are listed among the
287// other applications.
288func (x *AppChooserWidget) GetPropertyShowFallback() bool {
289	var v gobject.Value
290	x.GetProperty("show-fallback", &v)
291	return v.GetBoolean()
292}
293
294// SetPropertyShowOther sets the "show-other" property.
295// Determines whether the app chooser should show a section
296// for other applications.
297func (x *AppChooserWidget) SetPropertyShowOther(value bool) {
298	var v gobject.Value
299	v.Init(gobject.TypeBooleanVal)
300	v.SetBoolean(value)
301	x.SetProperty("show-other", &v)
302}
303
304// GetPropertyShowOther gets the "show-other" property.
305// Determines whether the app chooser should show a section
306// for other applications.
307func (x *AppChooserWidget) GetPropertyShowOther() bool {
308	var v gobject.Value
309	x.GetProperty("show-other", &v)
310	return v.GetBoolean()
311}
312
313// SetPropertyShowRecommended sets the "show-recommended" property.
314// Determines whether the app chooser should show a section
315// for recommended applications.
316//
317// If %FALSE, the recommended applications are listed
318// among the other applications.
319func (x *AppChooserWidget) SetPropertyShowRecommended(value bool) {
320	var v gobject.Value
321	v.Init(gobject.TypeBooleanVal)
322	v.SetBoolean(value)
323	x.SetProperty("show-recommended", &v)
324}
325
326// GetPropertyShowRecommended gets the "show-recommended" property.
327// Determines whether the app chooser should show a section
328// for recommended applications.
329//
330// If %FALSE, the recommended applications are listed
331// among the other applications.
332func (x *AppChooserWidget) GetPropertyShowRecommended() bool {
333	var v gobject.Value
334	x.GetProperty("show-recommended", &v)
335	return v.GetBoolean()
336}
337
338// Emitted when an application item is activated from the widget's list.
339//
340// This usually happens when the user double clicks an item, or an item
341// is selected and the user presses one of the keys Space, Shift+Space,
342// Return or Enter.
343func (x *AppChooserWidget) ConnectApplicationActivated(cb *func(AppChooserWidget, uintptr)) uint {
344	cbPtr := uintptr(unsafe.Pointer(cb))
345	if cbRefPtr, ok := glib.GetCallback(cbPtr); ok {
346		handlerID := gobject.SignalConnect(x.GoPointer(), "application-activated", cbRefPtr)
347		glib.SaveHandlerMapping(handlerID, cbPtr)
348		return handlerID
349	}
350
351	fcb := func(clsPtr uintptr, ApplicationVarp uintptr) {
352		fa := AppChooserWidget{}
353		fa.Ptr = clsPtr
354		cbFn := *cb
355
356		cbFn(fa, ApplicationVarp)
357
358	}
359	cbRefPtr := purego.NewCallback(fcb)
360	glib.SaveCallbackWithClosure(cbPtr, cbRefPtr, cb)
361	handlerID := gobject.SignalConnect(x.GoPointer(), "application-activated", cbRefPtr)
362	glib.SaveHandlerMapping(handlerID, cbPtr)
363	return handlerID
364}
365
366// Emitted when an application item is selected from the widget's list.
367func (x *AppChooserWidget) ConnectApplicationSelected(cb *func(AppChooserWidget, uintptr)) uint {
368	cbPtr := uintptr(unsafe.Pointer(cb))
369	if cbRefPtr, ok := glib.GetCallback(cbPtr); ok {
370		handlerID := gobject.SignalConnect(x.GoPointer(), "application-selected", cbRefPtr)
371		glib.SaveHandlerMapping(handlerID, cbPtr)
372		return handlerID
373	}
374
375	fcb := func(clsPtr uintptr, ApplicationVarp uintptr) {
376		fa := AppChooserWidget{}
377		fa.Ptr = clsPtr
378		cbFn := *cb
379
380		cbFn(fa, ApplicationVarp)
381
382	}
383	cbRefPtr := purego.NewCallback(fcb)
384	glib.SaveCallbackWithClosure(cbPtr, cbRefPtr, cb)
385	handlerID := gobject.SignalConnect(x.GoPointer(), "application-selected", cbRefPtr)
386	glib.SaveHandlerMapping(handlerID, cbPtr)
387	return handlerID
388}
389
390// Requests the user's screen reader to announce the given message.
391//
392// This kind of notification is useful for messages that
393// either have only a visual representation or that are not
394// exposed visually at all, e.g. a notification about a
395// successful operation.
396//
397// Also, by using this API, you can ensure that the message
398// does not interrupts the user's current screen reader output.
399func (x *AppChooserWidget) Announce(MessageVar string, PriorityVar AccessibleAnnouncementPriority) {
400
401	XGtkAccessibleAnnounce(x.GoPointer(), MessageVar, PriorityVar)
402
403}
404
405// Retrieves the accessible parent for an accessible object.
406//
407// This function returns `NULL` for top level widgets.
408func (x *AppChooserWidget) GetAccessibleParent() *AccessibleBase {
409	var cls *AccessibleBase
410
411	cret := XGtkAccessibleGetAccessibleParent(x.GoPointer())
412
413	if cret == 0 {
414		return nil
415	}
416	cls = &AccessibleBase{}
417	cls.Ptr = cret
418	return cls
419}
420
421// Retrieves the accessible role of an accessible object.
422func (x *AppChooserWidget) GetAccessibleRole() AccessibleRole {
423
424	cret := XGtkAccessibleGetAccessibleRole(x.GoPointer())
425	return cret
426}
427
428// Retrieves the implementation for the given accessible object.
429func (x *AppChooserWidget) GetAtContext() *ATContext {
430	var cls *ATContext
431
432	cret := XGtkAccessibleGetAtContext(x.GoPointer())
433
434	if cret == 0 {
435		return nil
436	}
437	cls = &ATContext{}
438	cls.Ptr = cret
439	return cls
440}
441
442// Queries the coordinates and dimensions of this accessible
443//
444// This functionality can be overridden by `GtkAccessible`
445// implementations, e.g. to get the bounds from an ignored
446// child widget.
447func (x *AppChooserWidget) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool {
448
449	cret := XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar)
450	return cret
451}
452
453// Retrieves the first accessible child of an accessible object.
454func (x *AppChooserWidget) GetFirstAccessibleChild() *AccessibleBase {
455	var cls *AccessibleBase
456
457	cret := XGtkAccessibleGetFirstAccessibleChild(x.GoPointer())
458
459	if cret == 0 {
460		return nil
461	}
462	cls = &AccessibleBase{}
463	cls.Ptr = cret
464	return cls
465}
466
467// Retrieves the next accessible sibling of an accessible object
468func (x *AppChooserWidget) GetNextAccessibleSibling() *AccessibleBase {
469	var cls *AccessibleBase
470
471	cret := XGtkAccessibleGetNextAccessibleSibling(x.GoPointer())
472
473	if cret == 0 {
474		return nil
475	}
476	cls = &AccessibleBase{}
477	cls.Ptr = cret
478	return cls
479}
480
481// Queries a platform state, such as focus.
482//
483// This functionality can be overridden by `GtkAccessible`
484// implementations, e.g. to get platform state from an ignored
485// child widget, as is the case for `GtkText` wrappers.
486func (x *AppChooserWidget) GetPlatformState(StateVar AccessiblePlatformState) bool {
487
488	cret := XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar)
489	return cret
490}
491
492// Resets the accessible property to its default value.
493func (x *AppChooserWidget) ResetProperty(PropertyVar AccessibleProperty) {
494
495	XGtkAccessibleResetProperty(x.GoPointer(), PropertyVar)
496
497}
498
499// Resets the accessible relation to its default value.
500func (x *AppChooserWidget) ResetRelation(RelationVar AccessibleRelation) {
501
502	XGtkAccessibleResetRelation(x.GoPointer(), RelationVar)
503
504}
505
506// Resets the accessible state to its default value.
507func (x *AppChooserWidget) ResetState(StateVar AccessibleState) {
508
509	XGtkAccessibleResetState(x.GoPointer(), StateVar)
510
511}
512
513// Sets the parent and sibling of an accessible object.
514//
515// This function is meant to be used by accessible implementations that are
516// not part of the widget hierarchy, and but act as a logical bridge between
517// widgets. For instance, if a widget creates an object that holds metadata
518// for each child, and you want that object to implement the `GtkAccessible`
519// interface, you will use this function to ensure that the parent of each
520// child widget is the metadata object, and the parent of each metadata
521// object is the container widget.
522func (x *AppChooserWidget) SetAccessibleParent(ParentVar Accessible, NextSiblingVar Accessible) {
523
524	XGtkAccessibleSetAccessibleParent(x.GoPointer(), ParentVar.GoPointer(), NextSiblingVar.GoPointer())
525
526}
527
528// Updates the next accessible sibling.
529//
530// That might be useful when a new child of a custom accessible
531// is created, and it needs to be linked to a previous child.
532func (x *AppChooserWidget) UpdateNextAccessibleSibling(NewSiblingVar Accessible) {
533
534	XGtkAccessibleUpdateNextAccessibleSibling(x.GoPointer(), NewSiblingVar.GoPointer())
535
536}
537
538// Informs ATs that the platform state has changed.
539//
540// This function should be used by `GtkAccessible` implementations that
541// have a platform state but are not widgets. Widgets handle platform
542// states automatically.
543func (x *AppChooserWidget) UpdatePlatformState(StateVar AccessiblePlatformState) {
544
545	XGtkAccessibleUpdatePlatformState(x.GoPointer(), StateVar)
546
547}
548
549// Updates a list of accessible properties.
550//
551// See the [enum@Gtk.AccessibleProperty] documentation for the
552// value types of accessible properties.
553//
554// This function should be called by `GtkWidget` types whenever
555// an accessible property change must be communicated to assistive
556// technologies.
557//
558// Example:
559// ```c
560// value = gtk_adjustment_get_value (adjustment);
561// gtk_accessible_update_property (GTK_ACCESSIBLE (spin_button),
562//
563//	GTK_ACCESSIBLE_PROPERTY_VALUE_NOW, value,
564//	-1);
565//
566// ```
567func (x *AppChooserWidget) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...interface{}) {
568
569	XGtkAccessibleUpdateProperty(x.GoPointer(), FirstPropertyVar, varArgs...)
570
571}
572
573// Updates an array of accessible properties.
574//
575// This function should be called by `GtkWidget` types whenever an accessible
576// property change must be communicated to assistive technologies.
577//
578// This function is meant to be used by language bindings.
579func (x *AppChooserWidget) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) {
580
581	XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar)
582
583}
584
585// Updates a list of accessible relations.
586//
587// This function should be called by `GtkWidget` types whenever an accessible
588// relation change must be communicated to assistive technologies.
589//
590// If the [enum@Gtk.AccessibleRelation] requires a list of references,
591// you should pass each reference individually, followed by `NULL`, e.g.
592//
593// ```c
594// gtk_accessible_update_relation (accessible,
595//
596//	GTK_ACCESSIBLE_RELATION_CONTROLS,
597//	  ref1, NULL,
598//	GTK_ACCESSIBLE_RELATION_LABELLED_BY,
599//	  ref1, ref2, ref3, NULL,
600//	-1);
601//
602// ```
603func (x *AppChooserWidget) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...interface{}) {
604
605	XGtkAccessibleUpdateRelation(x.GoPointer(), FirstRelationVar, varArgs...)
606
607}
608
609// Updates an array of accessible relations.
610//
611// This function should be called by `GtkWidget` types whenever an accessible
612// relation change must be communicated to assistive technologies.
613//
614// This function is meant to be used by language bindings.
615func (x *AppChooserWidget) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) {
616
617	XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar)
618
619}
620
621// Updates a list of accessible states.
622//
623// See the [enum@Gtk.AccessibleState] documentation for the
624// value types of accessible states.
625//
626// This function should be called by `GtkWidget` types whenever
627// an accessible state change must be communicated to assistive
628// technologies.
629//
630// Example:
631//
632// ```c
633// value = GTK_ACCESSIBLE_TRISTATE_MIXED;
634// gtk_accessible_update_state (GTK_ACCESSIBLE (check_button),
635//
636//	GTK_ACCESSIBLE_STATE_CHECKED, value,
637//	-1);
638//
639// ```
640func (x *AppChooserWidget) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{}) {
641
642	XGtkAccessibleUpdateState(x.GoPointer(), FirstStateVar, varArgs...)
643
644}
645
646// Updates an array of accessible states.
647//
648// This function should be called by `GtkWidget` types whenever an accessible
649// state change must be communicated to assistive technologies.
650//
651// This function is meant to be used by language bindings.
652func (x *AppChooserWidget) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) {
653
654	XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar)
655
656}
657
658// Returns the currently selected application.
659func (x *AppChooserWidget) GetAppInfo() *gio.AppInfoBase {
660	var cls *gio.AppInfoBase
661
662	cret := XGtkAppChooserGetAppInfo(x.GoPointer())
663
664	if cret == 0 {
665		return nil
666	}
667	cls = &gio.AppInfoBase{}
668	cls.Ptr = cret
669	return cls
670}
671
672// Returns the content type for which the `GtkAppChooser`
673// shows applications.
674func (x *AppChooserWidget) GetContentType() string {
675
676	cret := XGtkAppChooserGetContentType(x.GoPointer())
677	return cret
678}
679
680// Reloads the list of applications.
681func (x *AppChooserWidget) Refresh() {
682
683	XGtkAppChooserRefresh(x.GoPointer())
684
685}
686
687// Gets the ID of the @buildable object.
688//
689// `GtkBuilder` sets the name based on the ID attribute
690// of the `<object>` tag used to construct the @buildable.
691func (x *AppChooserWidget) GetBuildableId() string {
692
693	cret := XGtkBuildableGetBuildableId(x.GoPointer())
694	return cret
695}
696
697func init() {
698	core.SetPackageName("GTK", "gtk4")
699	core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1"})
700	var libs []uintptr
701	for _, libPath := range core.GetPaths("GTK") {
702		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
703		if err != nil {
704			panic(err)
705		}
706		libs = append(libs, lib)
707	}
708
709	core.PuregoSafeRegister(&xAppChooserWidgetGLibType, libs, "gtk_app_chooser_widget_get_type")
710
711	core.PuregoSafeRegister(&xNewAppChooserWidget, libs, "gtk_app_chooser_widget_new")
712
713	core.PuregoSafeRegister(&xAppChooserWidgetGetDefaultText, libs, "gtk_app_chooser_widget_get_default_text")
714	core.PuregoSafeRegister(&xAppChooserWidgetGetShowAll, libs, "gtk_app_chooser_widget_get_show_all")
715	core.PuregoSafeRegister(&xAppChooserWidgetGetShowDefault, libs, "gtk_app_chooser_widget_get_show_default")
716	core.PuregoSafeRegister(&xAppChooserWidgetGetShowFallback, libs, "gtk_app_chooser_widget_get_show_fallback")
717	core.PuregoSafeRegister(&xAppChooserWidgetGetShowOther, libs, "gtk_app_chooser_widget_get_show_other")
718	core.PuregoSafeRegister(&xAppChooserWidgetGetShowRecommended, libs, "gtk_app_chooser_widget_get_show_recommended")
719	core.PuregoSafeRegister(&xAppChooserWidgetSetDefaultText, libs, "gtk_app_chooser_widget_set_default_text")
720	core.PuregoSafeRegister(&xAppChooserWidgetSetShowAll, libs, "gtk_app_chooser_widget_set_show_all")
721	core.PuregoSafeRegister(&xAppChooserWidgetSetShowDefault, libs, "gtk_app_chooser_widget_set_show_default")
722	core.PuregoSafeRegister(&xAppChooserWidgetSetShowFallback, libs, "gtk_app_chooser_widget_set_show_fallback")
723	core.PuregoSafeRegister(&xAppChooserWidgetSetShowOther, libs, "gtk_app_chooser_widget_set_show_other")
724	core.PuregoSafeRegister(&xAppChooserWidgetSetShowRecommended, libs, "gtk_app_chooser_widget_set_show_recommended")
725
726}

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