v0.2.1 c0399be

gioerror.go RawHistoryFolder

1// Package gio was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gio
3
4import (
5	"github.com/ebitengine/purego"
6
7	"github.com/bnema/puregotk/pkg/core"
8	"github.com/bnema/puregotk/v4/glib"
9)
10
11var xIoErrorFromErrno func(int) IOErrorEnum
12
13// Converts `errno.h` error codes into GIO error codes.
14//
15// The fallback value %G_IO_ERROR_FAILED is returned for error codes not
16// currently handled (but note that future GLib releases may return a more
17// specific value instead).
18//
19// As `errno` is global and may be modified by intermediate function
20// calls, you should save its value immediately after the call returns,
21// and use the saved value instead of `errno`:
22//
23// |[<!-- language="C" -->
24//
25//	int saved_errno;
26//
27//	ret = read (blah);
28//	saved_errno = errno;
29//
30//	g_io_error_from_errno (saved_errno);
31//
32// ]|
33func IoErrorFromErrno(ErrNoVar int) IOErrorEnum {
34
35	cret := xIoErrorFromErrno(ErrNoVar)
36	return cret
37}
38
39var xIoErrorFromFileError func(glib.FileError) IOErrorEnum
40
41// Converts #GFileError error codes into GIO error codes.
42func IoErrorFromFileError(FileErrorVar glib.FileError) IOErrorEnum {
43
44	cret := xIoErrorFromFileError(FileErrorVar)
45	return cret
46}
47
48var xIoErrorQuark func() glib.Quark
49
50// Gets the GIO Error Quark.
51func IoErrorQuark() glib.Quark {
52
53	cret := xIoErrorQuark()
54	return cret
55}
56
57func init() {
58	core.SetPackageName("GIO", "gio-2.0")
59	core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0"})
60	var libs []uintptr
61	for _, libPath := range core.GetPaths("GIO") {
62		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
63		if err != nil {
64			panic(err)
65		}
66		libs = append(libs, lib)
67	}
68
69	core.PuregoSafeRegister(&xIoErrorFromErrno, libs, "g_io_error_from_errno")
70	core.PuregoSafeRegister(&xIoErrorFromFileError, libs, "g_io_error_from_file_error")
71	core.PuregoSafeRegister(&xIoErrorQuark, libs, "g_io_error_quark")
72
73}

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