v0.2.1 c0399be

gtkdialogerror.go RawHistoryFolder

1// Package gtk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gtk
3
4import (
5	"github.com/ebitengine/purego"
6
7	"github.com/bnema/puregotk/pkg/core"
8	"github.com/bnema/puregotk/v4/glib"
9	"github.com/bnema/puregotk/v4/gobject/types"
10)
11
12// Error codes in the `GTK_DIALOG_ERROR` domain that can be returned
13// by async dialog functions.
14type DialogError int
15
16var xDialogErrorGLibType func() types.GType
17
18func DialogErrorGLibType() types.GType {
19	return xDialogErrorGLibType()
20}
21
22const (
23
24	// Generic error condition for when
25	//   an operation fails and no more specific code is applicable
26	DialogErrorFailedValue DialogError = 0
27	// The async function call was cancelled
28	//   via its `GCancellable`
29	DialogErrorCancelledValue DialogError = 1
30	// The operation was cancelled
31	//   by the user (via a Cancel or Close button)
32	DialogErrorDismissedValue DialogError = 2
33)
34
35var xDialogErrorQuark func() glib.Quark
36
37// Registers an error quark for an operation that requires a dialog if
38// necessary.
39func DialogErrorQuark() glib.Quark {
40
41	cret := xDialogErrorQuark()
42	return cret
43}
44
45func init() {
46	core.SetPackageName("GTK", "gtk4")
47	core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1"})
48	var libs []uintptr
49	for _, libPath := range core.GetPaths("GTK") {
50		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
51		if err != nil {
52			panic(err)
53		}
54		libs = append(libs, lib)
55	}
56
57	core.PuregoSafeRegister(&xDialogErrorGLibType, libs, "gtk_dialog_error_get_type")
58
59	core.PuregoSafeRegister(&xDialogErrorQuark, libs, "gtk_dialog_error_quark")
60
61}

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