v0.2.1 c0399be

gtkaboutdialog.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/gdk"
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/gsk"
15)
16
17// The type of license for an application.
18//
19// This enumeration can be expanded at later date.
20type License int
21
22var xLicenseGLibType func() types.GType
23
24func LicenseGLibType() types.GType {
25	return xLicenseGLibType()
26}
27
28const (
29
30	// No license specified
31	LicenseUnknownValue License = 0
32	// A license text is going to be specified by the
33	//   developer
34	LicenseCustomValue License = 1
35	// The GNU General Public License, version 2.0 or later
36	LicenseGpl20Value License = 2
37	// The GNU General Public License, version 3.0 or later
38	LicenseGpl30Value License = 3
39	// The GNU Lesser General Public License, version 2.1 or later
40	LicenseLgpl21Value License = 4
41	// The GNU Lesser General Public License, version 3.0 or later
42	LicenseLgpl30Value License = 5
43	// The BSD standard license
44	LicenseBsdValue License = 6
45	// The MIT/X11 standard license
46	LicenseMitX11Value License = 7
47	// The Artistic License, version 2.0
48	LicenseArtisticValue License = 8
49	// The GNU General Public License, version 2.0 only
50	LicenseGpl20OnlyValue License = 9
51	// The GNU General Public License, version 3.0 only
52	LicenseGpl30OnlyValue License = 10
53	// The GNU Lesser General Public License, version 2.1 only
54	LicenseLgpl21OnlyValue License = 11
55	// The GNU Lesser General Public License, version 3.0 only
56	LicenseLgpl30OnlyValue License = 12
57	// The GNU Affero General Public License, version 3.0 or later
58	LicenseAgpl30Value License = 13
59	// The GNU Affero General Public License, version 3.0 only
60	LicenseAgpl30OnlyValue License = 14
61	// The 3-clause BSD licence
62	LicenseBsd3Value License = 15
63	// The Apache License, version 2.0
64	LicenseApache20Value License = 16
65	// The Mozilla Public License, version 2.0
66	LicenseMpl20Value License = 17
67	// Zero-Clause BSD license
68	License0bsdValue License = 18
69)
70
71var xShowAboutDialog func(uintptr, string, ...interface{})
72
73// A convenience function for showing an application’s about dialog.
74//
75// The constructed dialog is associated with the parent window and
76// reused for future invocations of this function.
77func ShowAboutDialog(ParentVar *Window, FirstPropertyNameVar string, varArgs ...interface{}) {
78
79	xShowAboutDialog(ParentVar.GoPointer(), FirstPropertyNameVar, varArgs...)
80
81}
82
83// Displays information about a program.
84//
85// The shown information includes the programs' logo, name, copyright,
86// website and license. It is also possible to give credits to the authors,
87// documenters, translators and artists who have worked on the program.
88//
89// An about dialog is typically opened when the user selects the `About`
90// option from the `Help` menu. All parts of the dialog are optional.
91//
92// <picture>
93//
94//	<source srcset="aboutdialot-dark.png" media="(prefers-color-scheme: dark)">
95//	<img alt="An example GtkAboutDialog" src="aboutdialog.png">
96//
97// </picture>
98//
99// About dialogs often contain links and email addresses. `GtkAboutDialog`
100// displays these as clickable links. By default, it calls [method@Gtk.FileLauncher.launch]
101// when a user clicks one. The behaviour can be overridden with the
102// [signal@Gtk.AboutDialog::activate-link] signal.
103//
104// To specify a person with an email address, use a string like
105// `Edgar Allan Poe <edgar@poe.com>`. To specify a website with a title,
106// use a string like `GTK team https://www.gtk.org`.
107//
108// To make constructing an about dialog as convenient as possible, you can
109// use the function [func@Gtk.show_about_dialog] which constructs and shows
110// a dialog and keeps it around so that it can be shown again.
111//
112// Note that GTK sets a default title of `_("About %s")` on the dialog
113// window (where `%s` is replaced by the name of the application, but in
114// order to ensure proper translation of the title, applications should
115// set the title property explicitly when constructing an about dialog,
116// as shown in the following example:
117//
118// ```c
119// GFile *logo_file = g_file_new_for_path ("./logo.png");
120// GdkTexture *example_logo = gdk_texture_new_from_file (logo_file, NULL);
121// g_object_unref (logo_file);
122//
123// gtk_show_about_dialog (NULL,
124//
125//	"program-name", "ExampleCode",
126//	"logo", example_logo,
127//	"title", _("About ExampleCode"),
128//	NULL);
129//
130// ```
131//
132// ## Shortcuts and Gestures
133//
134// `GtkAboutDialog` supports the following keyboard shortcuts:
135//
136// - <kbd>Escape</kbd> closes the window.
137//
138// ## CSS nodes
139//
140// `GtkAboutDialog` has a single CSS node with the name `window` and style
141// class `.aboutdialog`.
142type AboutDialog struct {
143	Window
144}
145
146var xAboutDialogGLibType func() types.GType
147
148func AboutDialogGLibType() types.GType {
149	return xAboutDialogGLibType()
150}
151
152func AboutDialogNewFromInternalPtr(ptr uintptr) *AboutDialog {
153	cls := &AboutDialog{}
154	cls.Ptr = ptr
155	return cls
156}
157
158var xNewAboutDialog func() uintptr
159
160// Creates a new `GtkAboutDialog`.
161func NewAboutDialog() *AboutDialog {
162	var cls *AboutDialog
163
164	cret := xNewAboutDialog()
165
166	if cret == 0 {
167		return nil
168	}
169	gobject.IncreaseRef(cret)
170	cls = &AboutDialog{}
171	cls.Ptr = cret
172	return cls
173}
174
175var xAboutDialogAddCreditSection func(uintptr, string, []string)
176
177// Creates a new section in the "Credits" page.
178func (x *AboutDialog) AddCreditSection(SectionNameVar string, PeopleVar []string) {
179
180	xAboutDialogAddCreditSection(x.GoPointer(), SectionNameVar, PeopleVar)
181
182}
183
184var xAboutDialogGetArtists func(uintptr) []string
185
186// Returns the names of the artists which are displayed
187// in the credits page.
188func (x *AboutDialog) GetArtists() []string {
189
190	cret := xAboutDialogGetArtists(x.GoPointer())
191	return cret
192}
193
194var xAboutDialogGetAuthors func(uintptr) []string
195
196// Returns the names of the authors which are displayed
197// in the credits page.
198func (x *AboutDialog) GetAuthors() []string {
199
200	cret := xAboutDialogGetAuthors(x.GoPointer())
201	return cret
202}
203
204var xAboutDialogGetComments func(uintptr) string
205
206// Returns the comments string.
207func (x *AboutDialog) GetComments() string {
208
209	cret := xAboutDialogGetComments(x.GoPointer())
210	return cret
211}
212
213var xAboutDialogGetCopyright func(uintptr) string
214
215// Returns the copyright string.
216func (x *AboutDialog) GetCopyright() string {
217
218	cret := xAboutDialogGetCopyright(x.GoPointer())
219	return cret
220}
221
222var xAboutDialogGetDocumenters func(uintptr) []string
223
224// Returns the name of the documenters which are displayed
225// in the credits page.
226func (x *AboutDialog) GetDocumenters() []string {
227
228	cret := xAboutDialogGetDocumenters(x.GoPointer())
229	return cret
230}
231
232var xAboutDialogGetLicense func(uintptr) string
233
234// Returns the license information.
235func (x *AboutDialog) GetLicense() string {
236
237	cret := xAboutDialogGetLicense(x.GoPointer())
238	return cret
239}
240
241var xAboutDialogGetLicenseType func(uintptr) License
242
243// Retrieves the license type.
244func (x *AboutDialog) GetLicenseType() License {
245
246	cret := xAboutDialogGetLicenseType(x.GoPointer())
247	return cret
248}
249
250var xAboutDialogGetLogo func(uintptr) uintptr
251
252// Returns the paintable displayed as logo in the about dialog.
253func (x *AboutDialog) GetLogo() *gdk.PaintableBase {
254	var cls *gdk.PaintableBase
255
256	cret := xAboutDialogGetLogo(x.GoPointer())
257
258	if cret == 0 {
259		return nil
260	}
261	gobject.IncreaseRef(cret)
262	cls = &gdk.PaintableBase{}
263	cls.Ptr = cret
264	return cls
265}
266
267var xAboutDialogGetLogoIconName func(uintptr) string
268
269// Returns the icon name displayed as logo in the about dialog.
270func (x *AboutDialog) GetLogoIconName() string {
271
272	cret := xAboutDialogGetLogoIconName(x.GoPointer())
273	return cret
274}
275
276var xAboutDialogGetProgramName func(uintptr) string
277
278// Returns the program name displayed in the about dialog.
279func (x *AboutDialog) GetProgramName() string {
280
281	cret := xAboutDialogGetProgramName(x.GoPointer())
282	return cret
283}
284
285var xAboutDialogGetSystemInformation func(uintptr) string
286
287// Returns the system information that is shown in the about dialog.
288func (x *AboutDialog) GetSystemInformation() string {
289
290	cret := xAboutDialogGetSystemInformation(x.GoPointer())
291	return cret
292}
293
294var xAboutDialogGetTranslatorCredits func(uintptr) string
295
296// Returns the translator credits string which is displayed
297// in the credits page.
298func (x *AboutDialog) GetTranslatorCredits() string {
299
300	cret := xAboutDialogGetTranslatorCredits(x.GoPointer())
301	return cret
302}
303
304var xAboutDialogGetVersion func(uintptr) string
305
306// Returns the version string.
307func (x *AboutDialog) GetVersion() string {
308
309	cret := xAboutDialogGetVersion(x.GoPointer())
310	return cret
311}
312
313var xAboutDialogGetWebsite func(uintptr) string
314
315// Returns the website URL.
316func (x *AboutDialog) GetWebsite() string {
317
318	cret := xAboutDialogGetWebsite(x.GoPointer())
319	return cret
320}
321
322var xAboutDialogGetWebsiteLabel func(uintptr) string
323
324// Returns the label used for the website link.
325func (x *AboutDialog) GetWebsiteLabel() string {
326
327	cret := xAboutDialogGetWebsiteLabel(x.GoPointer())
328	return cret
329}
330
331var xAboutDialogGetWrapLicense func(uintptr) bool
332
333// Returns whether the license text in the about dialog is
334// automatically wrapped.
335func (x *AboutDialog) GetWrapLicense() bool {
336
337	cret := xAboutDialogGetWrapLicense(x.GoPointer())
338	return cret
339}
340
341var xAboutDialogSetArtists func(uintptr, []string)
342
343// Sets the names of the artists to be displayed
344// in the "Credits" page.
345func (x *AboutDialog) SetArtists(ArtistsVar []string) {
346
347	xAboutDialogSetArtists(x.GoPointer(), ArtistsVar)
348
349}
350
351var xAboutDialogSetAuthors func(uintptr, []string)
352
353// Sets the names of the authors which are displayed
354// in the "Credits" page of the about dialog.
355func (x *AboutDialog) SetAuthors(AuthorsVar []string) {
356
357	xAboutDialogSetAuthors(x.GoPointer(), AuthorsVar)
358
359}
360
361var xAboutDialogSetComments func(uintptr, uintptr)
362
363// Sets the comments string to display in the about dialog.
364//
365// This should be a short string of one or two lines.
366func (x *AboutDialog) SetComments(CommentsVar *string) {
367
368	CommentsVarPtr := core.GStrdupNullable(CommentsVar)
369	defer core.GFreeNullable(CommentsVarPtr)
370
371	xAboutDialogSetComments(x.GoPointer(), CommentsVarPtr)
372
373}
374
375var xAboutDialogSetCopyright func(uintptr, uintptr)
376
377// Sets the copyright string to display in the about dialog.
378//
379// This should be a short string of one or two lines.
380func (x *AboutDialog) SetCopyright(CopyrightVar *string) {
381
382	CopyrightVarPtr := core.GStrdupNullable(CopyrightVar)
383	defer core.GFreeNullable(CopyrightVarPtr)
384
385	xAboutDialogSetCopyright(x.GoPointer(), CopyrightVarPtr)
386
387}
388
389var xAboutDialogSetDocumenters func(uintptr, []string)
390
391// Sets the names of the documenters which are displayed
392// in the "Credits" page.
393func (x *AboutDialog) SetDocumenters(DocumentersVar []string) {
394
395	xAboutDialogSetDocumenters(x.GoPointer(), DocumentersVar)
396
397}
398
399var xAboutDialogSetLicense func(uintptr, uintptr)
400
401// Sets the license information to be displayed in the
402// about dialog.
403//
404// If `license` is `NULL`, the license page is hidden.
405func (x *AboutDialog) SetLicense(LicenseVar *string) {
406
407	LicenseVarPtr := core.GStrdupNullable(LicenseVar)
408	defer core.GFreeNullable(LicenseVarPtr)
409
410	xAboutDialogSetLicense(x.GoPointer(), LicenseVarPtr)
411
412}
413
414var xAboutDialogSetLicenseType func(uintptr, License)
415
416// Sets the license of the application showing the about dialog
417// from a list of known licenses.
418//
419// This function overrides the license set using
420// [method@Gtk.AboutDialog.set_license].
421func (x *AboutDialog) SetLicenseType(LicenseTypeVar License) {
422
423	xAboutDialogSetLicenseType(x.GoPointer(), LicenseTypeVar)
424
425}
426
427var xAboutDialogSetLogo func(uintptr, uintptr)
428
429// Sets the logo in the about dialog.
430func (x *AboutDialog) SetLogo(LogoVar gdk.Paintable) {
431
432	xAboutDialogSetLogo(x.GoPointer(), LogoVar.GoPointer())
433
434}
435
436var xAboutDialogSetLogoIconName func(uintptr, uintptr)
437
438// Sets the icon name to be displayed as logo in the about dialog.
439func (x *AboutDialog) SetLogoIconName(IconNameVar *string) {
440
441	IconNameVarPtr := core.GStrdupNullable(IconNameVar)
442	defer core.GFreeNullable(IconNameVarPtr)
443
444	xAboutDialogSetLogoIconName(x.GoPointer(), IconNameVarPtr)
445
446}
447
448var xAboutDialogSetProgramName func(uintptr, uintptr)
449
450// Sets the name to display in the about dialog.
451//
452// If `name` is not set, the string returned
453// by `g_get_application_name()` is used.
454func (x *AboutDialog) SetProgramName(NameVar *string) {
455
456	NameVarPtr := core.GStrdupNullable(NameVar)
457	defer core.GFreeNullable(NameVarPtr)
458
459	xAboutDialogSetProgramName(x.GoPointer(), NameVarPtr)
460
461}
462
463var xAboutDialogSetSystemInformation func(uintptr, uintptr)
464
465// Sets the system information to be displayed in the about
466// dialog.
467//
468// If `system_information` is `NULL`, the system information
469// page is hidden.
470//
471// See [property@Gtk.AboutDialog:system-information].
472func (x *AboutDialog) SetSystemInformation(SystemInformationVar *string) {
473
474	SystemInformationVarPtr := core.GStrdupNullable(SystemInformationVar)
475	defer core.GFreeNullable(SystemInformationVarPtr)
476
477	xAboutDialogSetSystemInformation(x.GoPointer(), SystemInformationVarPtr)
478
479}
480
481var xAboutDialogSetTranslatorCredits func(uintptr, uintptr)
482
483// Sets the translator credits string which is displayed in
484// the credits page.
485//
486// The intended use for this string is to display the translator
487// of the language which is currently used in the user interface.
488// Using `gettext()`, a simple way to achieve that is to mark the
489// string for translation:
490//
491// ```c
492// GtkWidget *about = gtk_about_dialog_new ();
493//
494//	gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG (about),
495//	                                         _("translator-credits"));
496//
497// ```
498//
499// It is a good idea to use the customary `msgid` “translator-credits”
500// for this purpose, since translators will already know the purpose of
501// that `msgid`, and since `GtkAboutDialog` will detect if “translator-credits”
502// is untranslated and omit translator credits.
503func (x *AboutDialog) SetTranslatorCredits(TranslatorCreditsVar *string) {
504
505	TranslatorCreditsVarPtr := core.GStrdupNullable(TranslatorCreditsVar)
506	defer core.GFreeNullable(TranslatorCreditsVarPtr)
507
508	xAboutDialogSetTranslatorCredits(x.GoPointer(), TranslatorCreditsVarPtr)
509
510}
511
512var xAboutDialogSetVersion func(uintptr, uintptr)
513
514// Sets the version string to display in the about dialog.
515func (x *AboutDialog) SetVersion(VersionVar *string) {
516
517	VersionVarPtr := core.GStrdupNullable(VersionVar)
518	defer core.GFreeNullable(VersionVarPtr)
519
520	xAboutDialogSetVersion(x.GoPointer(), VersionVarPtr)
521
522}
523
524var xAboutDialogSetWebsite func(uintptr, uintptr)
525
526// Sets the URL to use for the website link.
527func (x *AboutDialog) SetWebsite(WebsiteVar *string) {
528
529	WebsiteVarPtr := core.GStrdupNullable(WebsiteVar)
530	defer core.GFreeNullable(WebsiteVarPtr)
531
532	xAboutDialogSetWebsite(x.GoPointer(), WebsiteVarPtr)
533
534}
535
536var xAboutDialogSetWebsiteLabel func(uintptr, string)
537
538// Sets the label to be used for the website link.
539func (x *AboutDialog) SetWebsiteLabel(WebsiteLabelVar string) {
540
541	xAboutDialogSetWebsiteLabel(x.GoPointer(), WebsiteLabelVar)
542
543}
544
545var xAboutDialogSetWrapLicense func(uintptr, bool)
546
547// Sets whether the license text in the about dialog should be
548// automatically wrapped.
549func (x *AboutDialog) SetWrapLicense(WrapLicenseVar bool) {
550
551	xAboutDialogSetWrapLicense(x.GoPointer(), WrapLicenseVar)
552
553}
554
555func (c *AboutDialog) GoPointer() uintptr {
556	if c == nil {
557		return 0
558	}
559	return c.Ptr
560}
561
562func (c *AboutDialog) SetGoPointer(ptr uintptr) {
563	c.Ptr = ptr
564}
565
566// SetPropertyArtists sets the "artists" property.
567// The people who contributed artwork to the program.
568//
569// Each string may contain email addresses and URLs, which will be displayed
570// as links.
571func (x *AboutDialog) SetPropertyArtists(value []string) {
572	var v gobject.Value
573	v.Init(glib.StrvGetType())
574	v.SetBoxed(uintptr(unsafe.Pointer(core.ByteSlice(value))))
575	x.SetProperty("artists", &v)
576}
577
578// GetPropertyArtists gets the "artists" property.
579// The people who contributed artwork to the program.
580//
581// Each string may contain email addresses and URLs, which will be displayed
582// as links.
583func (x *AboutDialog) GetPropertyArtists() []string {
584	var v gobject.Value
585	x.GetProperty("artists", &v)
586	return core.GoStringSlice(v.GetBoxed())
587}
588
589// SetPropertyAuthors sets the "authors" property.
590// The authors of the program.
591//
592// Each string may contain email addresses and URLs, which will be displayed
593// as links, see the introduction for more details.
594func (x *AboutDialog) SetPropertyAuthors(value []string) {
595	var v gobject.Value
596	v.Init(glib.StrvGetType())
597	v.SetBoxed(uintptr(unsafe.Pointer(core.ByteSlice(value))))
598	x.SetProperty("authors", &v)
599}
600
601// GetPropertyAuthors gets the "authors" property.
602// The authors of the program.
603//
604// Each string may contain email addresses and URLs, which will be displayed
605// as links, see the introduction for more details.
606func (x *AboutDialog) GetPropertyAuthors() []string {
607	var v gobject.Value
608	x.GetProperty("authors", &v)
609	return core.GoStringSlice(v.GetBoxed())
610}
611
612// SetPropertyComments sets the "comments" property.
613// Comments about the program.
614//
615// This string is displayed in a label in the main dialog, thus it
616// should be a short explanation of the main purpose of the program,
617// not a detailed list of features.
618func (x *AboutDialog) SetPropertyComments(value string) {
619	var v gobject.Value
620	v.Init(gobject.TypeStringVal)
621	v.SetString(&value)
622	x.SetProperty("comments", &v)
623}
624
625// GetPropertyComments gets the "comments" property.
626// Comments about the program.
627//
628// This string is displayed in a label in the main dialog, thus it
629// should be a short explanation of the main purpose of the program,
630// not a detailed list of features.
631func (x *AboutDialog) GetPropertyComments() string {
632	var v gobject.Value
633	x.GetProperty("comments", &v)
634	return v.GetString()
635}
636
637// SetPropertyCopyright sets the "copyright" property.
638// Copyright information for the program.
639func (x *AboutDialog) SetPropertyCopyright(value string) {
640	var v gobject.Value
641	v.Init(gobject.TypeStringVal)
642	v.SetString(&value)
643	x.SetProperty("copyright", &v)
644}
645
646// GetPropertyCopyright gets the "copyright" property.
647// Copyright information for the program.
648func (x *AboutDialog) GetPropertyCopyright() string {
649	var v gobject.Value
650	x.GetProperty("copyright", &v)
651	return v.GetString()
652}
653
654// SetPropertyDocumenters sets the "documenters" property.
655// The people documenting the program.
656//
657// Each string may contain email addresses and URLs, which will be displayed
658// as links, see the introduction for more details.
659func (x *AboutDialog) SetPropertyDocumenters(value []string) {
660	var v gobject.Value
661	v.Init(glib.StrvGetType())
662	v.SetBoxed(uintptr(unsafe.Pointer(core.ByteSlice(value))))
663	x.SetProperty("documenters", &v)
664}
665
666// GetPropertyDocumenters gets the "documenters" property.
667// The people documenting the program.
668//
669// Each string may contain email addresses and URLs, which will be displayed
670// as links, see the introduction for more details.
671func (x *AboutDialog) GetPropertyDocumenters() []string {
672	var v gobject.Value
673	x.GetProperty("documenters", &v)
674	return core.GoStringSlice(v.GetBoxed())
675}
676
677// SetPropertyLicense sets the "license" property.
678// The license of the program, as free-form text.
679//
680// This string is displayed in a text view in a secondary dialog, therefore
681// it is fine to use a long multi-paragraph text. Note that the text is only
682// wrapped in the text view if the "wrap-license" property is set to `TRUE`;
683// otherwise the text itself must contain the intended linebreaks.
684//
685// When setting this property to a non-`NULL` value, the
686// [property@Gtk.AboutDialog:license-type] property is set to
687// [enum@Gtk.License.custom] as a side effect.
688//
689// The text may contain links in this format `<http://www.some.place/>`
690// and email references in the form `<mail-to@some.body>`, and these will
691// be converted into clickable links.
692func (x *AboutDialog) SetPropertyLicense(value string) {
693	var v gobject.Value
694	v.Init(gobject.TypeStringVal)
695	v.SetString(&value)
696	x.SetProperty("license", &v)
697}
698
699// GetPropertyLicense gets the "license" property.
700// The license of the program, as free-form text.
701//
702// This string is displayed in a text view in a secondary dialog, therefore
703// it is fine to use a long multi-paragraph text. Note that the text is only
704// wrapped in the text view if the "wrap-license" property is set to `TRUE`;
705// otherwise the text itself must contain the intended linebreaks.
706//
707// When setting this property to a non-`NULL` value, the
708// [property@Gtk.AboutDialog:license-type] property is set to
709// [enum@Gtk.License.custom] as a side effect.
710//
711// The text may contain links in this format `<http://www.some.place/>`
712// and email references in the form `<mail-to@some.body>`, and these will
713// be converted into clickable links.
714func (x *AboutDialog) GetPropertyLicense() string {
715	var v gobject.Value
716	x.GetProperty("license", &v)
717	return v.GetString()
718}
719
720// SetPropertyLogoIconName sets the "logo-icon-name" property.
721// A named icon to use as the logo for the about box.
722//
723// This property overrides the [property@Gtk.AboutDialog:logo] property.
724func (x *AboutDialog) SetPropertyLogoIconName(value string) {
725	var v gobject.Value
726	v.Init(gobject.TypeStringVal)
727	v.SetString(&value)
728	x.SetProperty("logo-icon-name", &v)
729}
730
731// GetPropertyLogoIconName gets the "logo-icon-name" property.
732// A named icon to use as the logo for the about box.
733//
734// This property overrides the [property@Gtk.AboutDialog:logo] property.
735func (x *AboutDialog) GetPropertyLogoIconName() string {
736	var v gobject.Value
737	x.GetProperty("logo-icon-name", &v)
738	return v.GetString()
739}
740
741// SetPropertyProgramName sets the "program-name" property.
742// The name of the program.
743//
744// If this is not set, it defaults to the value returned by
745// [func@GLib.get_application_name].
746func (x *AboutDialog) SetPropertyProgramName(value string) {
747	var v gobject.Value
748	v.Init(gobject.TypeStringVal)
749	v.SetString(&value)
750	x.SetProperty("program-name", &v)
751}
752
753// GetPropertyProgramName gets the "program-name" property.
754// The name of the program.
755//
756// If this is not set, it defaults to the value returned by
757// [func@GLib.get_application_name].
758func (x *AboutDialog) GetPropertyProgramName() string {
759	var v gobject.Value
760	x.GetProperty("program-name", &v)
761	return v.GetString()
762}
763
764// SetPropertySystemInformation sets the "system-information" property.
765// Information about the system on which the program is running.
766//
767// This information is displayed in a separate page, therefore it is fine
768// to use a long multi-paragraph text. Note that the text should contain
769// the intended linebreaks.
770//
771// The text may contain links in this format `<http://www.some.place/>`
772// and email references in the form `<mail-to@some.body>`, and these will
773// be converted into clickable links.
774func (x *AboutDialog) SetPropertySystemInformation(value string) {
775	var v gobject.Value
776	v.Init(gobject.TypeStringVal)
777	v.SetString(&value)
778	x.SetProperty("system-information", &v)
779}
780
781// GetPropertySystemInformation gets the "system-information" property.
782// Information about the system on which the program is running.
783//
784// This information is displayed in a separate page, therefore it is fine
785// to use a long multi-paragraph text. Note that the text should contain
786// the intended linebreaks.
787//
788// The text may contain links in this format `<http://www.some.place/>`
789// and email references in the form `<mail-to@some.body>`, and these will
790// be converted into clickable links.
791func (x *AboutDialog) GetPropertySystemInformation() string {
792	var v gobject.Value
793	x.GetProperty("system-information", &v)
794	return v.GetString()
795}
796
797// SetPropertyTranslatorCredits sets the "translator-credits" property.
798// Credits to the translators.
799//
800// This string should be marked as translatable.
801//
802// The string may contain email addresses and URLs, which will be displayed
803// as links, see the introduction for more details.
804func (x *AboutDialog) SetPropertyTranslatorCredits(value string) {
805	var v gobject.Value
806	v.Init(gobject.TypeStringVal)
807	v.SetString(&value)
808	x.SetProperty("translator-credits", &v)
809}
810
811// GetPropertyTranslatorCredits gets the "translator-credits" property.
812// Credits to the translators.
813//
814// This string should be marked as translatable.
815//
816// The string may contain email addresses and URLs, which will be displayed
817// as links, see the introduction for more details.
818func (x *AboutDialog) GetPropertyTranslatorCredits() string {
819	var v gobject.Value
820	x.GetProperty("translator-credits", &v)
821	return v.GetString()
822}
823
824// SetPropertyVersion sets the "version" property.
825// The version of the program.
826func (x *AboutDialog) SetPropertyVersion(value string) {
827	var v gobject.Value
828	v.Init(gobject.TypeStringVal)
829	v.SetString(&value)
830	x.SetProperty("version", &v)
831}
832
833// GetPropertyVersion gets the "version" property.
834// The version of the program.
835func (x *AboutDialog) GetPropertyVersion() string {
836	var v gobject.Value
837	x.GetProperty("version", &v)
838	return v.GetString()
839}
840
841// SetPropertyWebsite sets the "website" property.
842// The URL for the link to the website of the program.
843//
844// This should be a string starting with `http://` or `https://`.
845func (x *AboutDialog) SetPropertyWebsite(value string) {
846	var v gobject.Value
847	v.Init(gobject.TypeStringVal)
848	v.SetString(&value)
849	x.SetProperty("website", &v)
850}
851
852// GetPropertyWebsite gets the "website" property.
853// The URL for the link to the website of the program.
854//
855// This should be a string starting with `http://` or `https://`.
856func (x *AboutDialog) GetPropertyWebsite() string {
857	var v gobject.Value
858	x.GetProperty("website", &v)
859	return v.GetString()
860}
861
862// SetPropertyWebsiteLabel sets the "website-label" property.
863// The label for the link to the website of the program.
864func (x *AboutDialog) SetPropertyWebsiteLabel(value string) {
865	var v gobject.Value
866	v.Init(gobject.TypeStringVal)
867	v.SetString(&value)
868	x.SetProperty("website-label", &v)
869}
870
871// GetPropertyWebsiteLabel gets the "website-label" property.
872// The label for the link to the website of the program.
873func (x *AboutDialog) GetPropertyWebsiteLabel() string {
874	var v gobject.Value
875	x.GetProperty("website-label", &v)
876	return v.GetString()
877}
878
879// SetPropertyWrapLicense sets the "wrap-license" property.
880// Whether to wrap the text in the license dialog.
881func (x *AboutDialog) SetPropertyWrapLicense(value bool) {
882	var v gobject.Value
883	v.Init(gobject.TypeBooleanVal)
884	v.SetBoolean(value)
885	x.SetProperty("wrap-license", &v)
886}
887
888// GetPropertyWrapLicense gets the "wrap-license" property.
889// Whether to wrap the text in the license dialog.
890func (x *AboutDialog) GetPropertyWrapLicense() bool {
891	var v gobject.Value
892	x.GetProperty("wrap-license", &v)
893	return v.GetBoolean()
894}
895
896// Emitted every time a URL is activated.
897//
898// Applications may connect to it to override the default behaviour,
899// which is to call [method@Gtk.FileLauncher.launch].
900func (x *AboutDialog) ConnectActivateLink(cb *func(AboutDialog, string) bool) uint {
901	cbPtr := uintptr(unsafe.Pointer(cb))
902	if cbRefPtr, ok := glib.GetCallback(cbPtr); ok {
903		handlerID := gobject.SignalConnect(x.GoPointer(), "activate-link", cbRefPtr)
904		glib.SaveHandlerMapping(handlerID, cbPtr)
905		return handlerID
906	}
907
908	fcb := func(clsPtr uintptr, UriVarp uintptr) bool {
909		fa := AboutDialog{}
910		fa.Ptr = clsPtr
911		cbFn := *cb
912
913		return cbFn(fa, core.GoString(UriVarp))
914
915	}
916	cbRefPtr := purego.NewCallback(fcb)
917	glib.SaveCallbackWithClosure(cbPtr, cbRefPtr, cb)
918	handlerID := gobject.SignalConnect(x.GoPointer(), "activate-link", cbRefPtr)
919	glib.SaveHandlerMapping(handlerID, cbPtr)
920	return handlerID
921}
922
923// Requests the user's screen reader to announce the given message.
924//
925// This kind of notification is useful for messages that
926// either have only a visual representation or that are not
927// exposed visually at all, e.g. a notification about a
928// successful operation.
929//
930// Also, by using this API, you can ensure that the message
931// does not interrupts the user's current screen reader output.
932func (x *AboutDialog) Announce(MessageVar string, PriorityVar AccessibleAnnouncementPriority) {
933
934	XGtkAccessibleAnnounce(x.GoPointer(), MessageVar, PriorityVar)
935
936}
937
938// Retrieves the accessible parent for an accessible object.
939//
940// This function returns `NULL` for top level widgets.
941func (x *AboutDialog) GetAccessibleParent() *AccessibleBase {
942	var cls *AccessibleBase
943
944	cret := XGtkAccessibleGetAccessibleParent(x.GoPointer())
945
946	if cret == 0 {
947		return nil
948	}
949	cls = &AccessibleBase{}
950	cls.Ptr = cret
951	return cls
952}
953
954// Retrieves the accessible role of an accessible object.
955func (x *AboutDialog) GetAccessibleRole() AccessibleRole {
956
957	cret := XGtkAccessibleGetAccessibleRole(x.GoPointer())
958	return cret
959}
960
961// Retrieves the implementation for the given accessible object.
962func (x *AboutDialog) GetAtContext() *ATContext {
963	var cls *ATContext
964
965	cret := XGtkAccessibleGetAtContext(x.GoPointer())
966
967	if cret == 0 {
968		return nil
969	}
970	cls = &ATContext{}
971	cls.Ptr = cret
972	return cls
973}
974
975// Queries the coordinates and dimensions of this accessible
976//
977// This functionality can be overridden by `GtkAccessible`
978// implementations, e.g. to get the bounds from an ignored
979// child widget.
980func (x *AboutDialog) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool {
981
982	cret := XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar)
983	return cret
984}
985
986// Retrieves the first accessible child of an accessible object.
987func (x *AboutDialog) GetFirstAccessibleChild() *AccessibleBase {
988	var cls *AccessibleBase
989
990	cret := XGtkAccessibleGetFirstAccessibleChild(x.GoPointer())
991
992	if cret == 0 {
993		return nil
994	}
995	cls = &AccessibleBase{}
996	cls.Ptr = cret
997	return cls
998}
999
1000// Retrieves the next accessible sibling of an accessible object
1001func (x *AboutDialog) GetNextAccessibleSibling() *AccessibleBase {
1002	var cls *AccessibleBase
1003
1004	cret := XGtkAccessibleGetNextAccessibleSibling(x.GoPointer())
1005
1006	if cret == 0 {
1007		return nil
1008	}
1009	cls = &AccessibleBase{}
1010	cls.Ptr = cret
1011	return cls
1012}
1013
1014// Queries a platform state, such as focus.
1015//
1016// This functionality can be overridden by `GtkAccessible`
1017// implementations, e.g. to get platform state from an ignored
1018// child widget, as is the case for `GtkText` wrappers.
1019func (x *AboutDialog) GetPlatformState(StateVar AccessiblePlatformState) bool {
1020
1021	cret := XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar)
1022	return cret
1023}
1024
1025// Resets the accessible property to its default value.
1026func (x *AboutDialog) ResetProperty(PropertyVar AccessibleProperty) {
1027
1028	XGtkAccessibleResetProperty(x.GoPointer(), PropertyVar)
1029
1030}
1031
1032// Resets the accessible relation to its default value.
1033func (x *AboutDialog) ResetRelation(RelationVar AccessibleRelation) {
1034
1035	XGtkAccessibleResetRelation(x.GoPointer(), RelationVar)
1036
1037}
1038
1039// Resets the accessible state to its default value.
1040func (x *AboutDialog) ResetState(StateVar AccessibleState) {
1041
1042	XGtkAccessibleResetState(x.GoPointer(), StateVar)
1043
1044}
1045
1046// Sets the parent and sibling of an accessible object.
1047//
1048// This function is meant to be used by accessible implementations that are
1049// not part of the widget hierarchy, and but act as a logical bridge between
1050// widgets. For instance, if a widget creates an object that holds metadata
1051// for each child, and you want that object to implement the `GtkAccessible`
1052// interface, you will use this function to ensure that the parent of each
1053// child widget is the metadata object, and the parent of each metadata
1054// object is the container widget.
1055func (x *AboutDialog) SetAccessibleParent(ParentVar Accessible, NextSiblingVar Accessible) {
1056
1057	XGtkAccessibleSetAccessibleParent(x.GoPointer(), ParentVar.GoPointer(), NextSiblingVar.GoPointer())
1058
1059}
1060
1061// Updates the next accessible sibling.
1062//
1063// That might be useful when a new child of a custom accessible
1064// is created, and it needs to be linked to a previous child.
1065func (x *AboutDialog) UpdateNextAccessibleSibling(NewSiblingVar Accessible) {
1066
1067	XGtkAccessibleUpdateNextAccessibleSibling(x.GoPointer(), NewSiblingVar.GoPointer())
1068
1069}
1070
1071// Informs ATs that the platform state has changed.
1072//
1073// This function should be used by `GtkAccessible` implementations that
1074// have a platform state but are not widgets. Widgets handle platform
1075// states automatically.
1076func (x *AboutDialog) UpdatePlatformState(StateVar AccessiblePlatformState) {
1077
1078	XGtkAccessibleUpdatePlatformState(x.GoPointer(), StateVar)
1079
1080}
1081
1082// Updates a list of accessible properties.
1083//
1084// See the [enum@Gtk.AccessibleProperty] documentation for the
1085// value types of accessible properties.
1086//
1087// This function should be called by `GtkWidget` types whenever
1088// an accessible property change must be communicated to assistive
1089// technologies.
1090//
1091// Example:
1092// ```c
1093// value = gtk_adjustment_get_value (adjustment);
1094// gtk_accessible_update_property (GTK_ACCESSIBLE (spin_button),
1095//
1096//	GTK_ACCESSIBLE_PROPERTY_VALUE_NOW, value,
1097//	-1);
1098//
1099// ```
1100func (x *AboutDialog) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...interface{}) {
1101
1102	XGtkAccessibleUpdateProperty(x.GoPointer(), FirstPropertyVar, varArgs...)
1103
1104}
1105
1106// Updates an array of accessible properties.
1107//
1108// This function should be called by `GtkWidget` types whenever an accessible
1109// property change must be communicated to assistive technologies.
1110//
1111// This function is meant to be used by language bindings.
1112func (x *AboutDialog) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) {
1113
1114	XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar)
1115
1116}
1117
1118// Updates a list of accessible relations.
1119//
1120// This function should be called by `GtkWidget` types whenever an accessible
1121// relation change must be communicated to assistive technologies.
1122//
1123// If the [enum@Gtk.AccessibleRelation] requires a list of references,
1124// you should pass each reference individually, followed by `NULL`, e.g.
1125//
1126// ```c
1127// gtk_accessible_update_relation (accessible,
1128//
1129//	GTK_ACCESSIBLE_RELATION_CONTROLS,
1130//	  ref1, NULL,
1131//	GTK_ACCESSIBLE_RELATION_LABELLED_BY,
1132//	  ref1, ref2, ref3, NULL,
1133//	-1);
1134//
1135// ```
1136func (x *AboutDialog) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...interface{}) {
1137
1138	XGtkAccessibleUpdateRelation(x.GoPointer(), FirstRelationVar, varArgs...)
1139
1140}
1141
1142// Updates an array of accessible relations.
1143//
1144// This function should be called by `GtkWidget` types whenever an accessible
1145// relation change must be communicated to assistive technologies.
1146//
1147// This function is meant to be used by language bindings.
1148func (x *AboutDialog) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) {
1149
1150	XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar)
1151
1152}
1153
1154// Updates a list of accessible states.
1155//
1156// See the [enum@Gtk.AccessibleState] documentation for the
1157// value types of accessible states.
1158//
1159// This function should be called by `GtkWidget` types whenever
1160// an accessible state change must be communicated to assistive
1161// technologies.
1162//
1163// Example:
1164//
1165// ```c
1166// value = GTK_ACCESSIBLE_TRISTATE_MIXED;
1167// gtk_accessible_update_state (GTK_ACCESSIBLE (check_button),
1168//
1169//	GTK_ACCESSIBLE_STATE_CHECKED, value,
1170//	-1);
1171//
1172// ```
1173func (x *AboutDialog) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{}) {
1174
1175	XGtkAccessibleUpdateState(x.GoPointer(), FirstStateVar, varArgs...)
1176
1177}
1178
1179// Updates an array of accessible states.
1180//
1181// This function should be called by `GtkWidget` types whenever an accessible
1182// state change must be communicated to assistive technologies.
1183//
1184// This function is meant to be used by language bindings.
1185func (x *AboutDialog) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) {
1186
1187	XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar)
1188
1189}
1190
1191// Gets the ID of the @buildable object.
1192//
1193// `GtkBuilder` sets the name based on the ID attribute
1194// of the `<object>` tag used to construct the @buildable.
1195func (x *AboutDialog) GetBuildableId() string {
1196
1197	cret := XGtkBuildableGetBuildableId(x.GoPointer())
1198	return cret
1199}
1200
1201// Returns the renderer that is used for this `GtkNative`.
1202func (x *AboutDialog) GetRenderer() *gsk.Renderer {
1203	var cls *gsk.Renderer
1204
1205	cret := XGtkNativeGetRenderer(x.GoPointer())
1206
1207	if cret == 0 {
1208		return nil
1209	}
1210	gobject.IncreaseRef(cret)
1211	cls = &gsk.Renderer{}
1212	cls.Ptr = cret
1213	return cls
1214}
1215
1216// Returns the surface of this `GtkNative`.
1217func (x *AboutDialog) GetSurface() *gdk.Surface {
1218	var cls *gdk.Surface
1219
1220	cret := XGtkNativeGetSurface(x.GoPointer())
1221
1222	if cret == 0 {
1223		return nil
1224	}
1225	gobject.IncreaseRef(cret)
1226	cls = &gdk.Surface{}
1227	cls.Ptr = cret
1228	return cls
1229}
1230
1231// Retrieves the surface transform of @self.
1232//
1233// This is the translation from @self's surface coordinates into
1234// @self's widget coordinates.
1235func (x *AboutDialog) GetSurfaceTransform(XVar *float64, YVar *float64) {
1236
1237	XGtkNativeGetSurfaceTransform(x.GoPointer(), XVar, YVar)
1238
1239}
1240
1241// Realizes a `GtkNative`.
1242//
1243// This should only be used by subclasses.
1244func (x *AboutDialog) Realize() {
1245
1246	XGtkNativeRealize(x.GoPointer())
1247
1248}
1249
1250// Unrealizes a `GtkNative`.
1251//
1252// This should only be used by subclasses.
1253func (x *AboutDialog) Unrealize() {
1254
1255	XGtkNativeUnrealize(x.GoPointer())
1256
1257}
1258
1259// Returns the display that this `GtkRoot` is on.
1260func (x *AboutDialog) GetDisplay() *gdk.Display {
1261	var cls *gdk.Display
1262
1263	cret := XGtkRootGetDisplay(x.GoPointer())
1264
1265	if cret == 0 {
1266		return nil
1267	}
1268	gobject.IncreaseRef(cret)
1269	cls = &gdk.Display{}
1270	cls.Ptr = cret
1271	return cls
1272}
1273
1274// Retrieves the current focused widget within the root.
1275//
1276// Note that this is the widget that would have the focus
1277// if the root is active; if the root is not focused then
1278// `gtk_widget_has_focus (widget)` will be %FALSE for the
1279// widget.
1280func (x *AboutDialog) GetFocus() *Widget {
1281	var cls *Widget
1282
1283	cret := XGtkRootGetFocus(x.GoPointer())
1284
1285	if cret == 0 {
1286		return nil
1287	}
1288	gobject.IncreaseRef(cret)
1289	cls = &Widget{}
1290	cls.Ptr = cret
1291	return cls
1292}
1293
1294// If @focus is not the current focus widget, and is focusable, sets
1295// it as the focus widget for the root.
1296//
1297// If @focus is %NULL, unsets the focus widget for the root.
1298//
1299// To set the focus to a particular widget in the root, it is usually
1300// more convenient to use [method@Gtk.Widget.grab_focus] instead of
1301// this function.
1302func (x *AboutDialog) SetFocus(FocusVar *Widget) {
1303
1304	XGtkRootSetFocus(x.GoPointer(), FocusVar.GoPointer())
1305
1306}
1307
1308func init() {
1309	core.SetPackageName("GTK", "gtk4")
1310	core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1"})
1311	var libs []uintptr
1312	for _, libPath := range core.GetPaths("GTK") {
1313		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
1314		if err != nil {
1315			panic(err)
1316		}
1317		libs = append(libs, lib)
1318	}
1319
1320	core.PuregoSafeRegister(&xLicenseGLibType, libs, "gtk_license_get_type")
1321
1322	core.PuregoSafeRegister(&xShowAboutDialog, libs, "gtk_show_about_dialog")
1323
1324	core.PuregoSafeRegister(&xAboutDialogGLibType, libs, "gtk_about_dialog_get_type")
1325
1326	core.PuregoSafeRegister(&xNewAboutDialog, libs, "gtk_about_dialog_new")
1327
1328	core.PuregoSafeRegister(&xAboutDialogAddCreditSection, libs, "gtk_about_dialog_add_credit_section")
1329	core.PuregoSafeRegister(&xAboutDialogGetArtists, libs, "gtk_about_dialog_get_artists")
1330	core.PuregoSafeRegister(&xAboutDialogGetAuthors, libs, "gtk_about_dialog_get_authors")
1331	core.PuregoSafeRegister(&xAboutDialogGetComments, libs, "gtk_about_dialog_get_comments")
1332	core.PuregoSafeRegister(&xAboutDialogGetCopyright, libs, "gtk_about_dialog_get_copyright")
1333	core.PuregoSafeRegister(&xAboutDialogGetDocumenters, libs, "gtk_about_dialog_get_documenters")
1334	core.PuregoSafeRegister(&xAboutDialogGetLicense, libs, "gtk_about_dialog_get_license")
1335	core.PuregoSafeRegister(&xAboutDialogGetLicenseType, libs, "gtk_about_dialog_get_license_type")
1336	core.PuregoSafeRegister(&xAboutDialogGetLogo, libs, "gtk_about_dialog_get_logo")
1337	core.PuregoSafeRegister(&xAboutDialogGetLogoIconName, libs, "gtk_about_dialog_get_logo_icon_name")
1338	core.PuregoSafeRegister(&xAboutDialogGetProgramName, libs, "gtk_about_dialog_get_program_name")
1339	core.PuregoSafeRegister(&xAboutDialogGetSystemInformation, libs, "gtk_about_dialog_get_system_information")
1340	core.PuregoSafeRegister(&xAboutDialogGetTranslatorCredits, libs, "gtk_about_dialog_get_translator_credits")
1341	core.PuregoSafeRegister(&xAboutDialogGetVersion, libs, "gtk_about_dialog_get_version")
1342	core.PuregoSafeRegister(&xAboutDialogGetWebsite, libs, "gtk_about_dialog_get_website")
1343	core.PuregoSafeRegister(&xAboutDialogGetWebsiteLabel, libs, "gtk_about_dialog_get_website_label")
1344	core.PuregoSafeRegister(&xAboutDialogGetWrapLicense, libs, "gtk_about_dialog_get_wrap_license")
1345	core.PuregoSafeRegister(&xAboutDialogSetArtists, libs, "gtk_about_dialog_set_artists")
1346	core.PuregoSafeRegister(&xAboutDialogSetAuthors, libs, "gtk_about_dialog_set_authors")
1347	core.PuregoSafeRegister(&xAboutDialogSetComments, libs, "gtk_about_dialog_set_comments")
1348	core.PuregoSafeRegister(&xAboutDialogSetCopyright, libs, "gtk_about_dialog_set_copyright")
1349	core.PuregoSafeRegister(&xAboutDialogSetDocumenters, libs, "gtk_about_dialog_set_documenters")
1350	core.PuregoSafeRegister(&xAboutDialogSetLicense, libs, "gtk_about_dialog_set_license")
1351	core.PuregoSafeRegister(&xAboutDialogSetLicenseType, libs, "gtk_about_dialog_set_license_type")
1352	core.PuregoSafeRegister(&xAboutDialogSetLogo, libs, "gtk_about_dialog_set_logo")
1353	core.PuregoSafeRegister(&xAboutDialogSetLogoIconName, libs, "gtk_about_dialog_set_logo_icon_name")
1354	core.PuregoSafeRegister(&xAboutDialogSetProgramName, libs, "gtk_about_dialog_set_program_name")
1355	core.PuregoSafeRegister(&xAboutDialogSetSystemInformation, libs, "gtk_about_dialog_set_system_information")
1356	core.PuregoSafeRegister(&xAboutDialogSetTranslatorCredits, libs, "gtk_about_dialog_set_translator_credits")
1357	core.PuregoSafeRegister(&xAboutDialogSetVersion, libs, "gtk_about_dialog_set_version")
1358	core.PuregoSafeRegister(&xAboutDialogSetWebsite, libs, "gtk_about_dialog_set_website")
1359	core.PuregoSafeRegister(&xAboutDialogSetWebsiteLabel, libs, "gtk_about_dialog_set_website_label")
1360	core.PuregoSafeRegister(&xAboutDialogSetWrapLicense, libs, "gtk_about_dialog_set_wrap_license")
1361
1362}

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