v0.2.1 c0399be

gioscheduler.go RawHistoryFolder

1// Package gio was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gio
3
4import (
5	"unsafe"
6
7	"github.com/ebitengine/purego"
8
9	"github.com/bnema/puregotk/pkg/core"
10	"github.com/bnema/puregotk/v4/glib"
11)
12
13var xIoSchedulerCancelAllJobs func()
14
15// Cancels all cancellable I/O jobs.
16//
17// A job is cancellable if a #GCancellable was passed into
18// g_io_scheduler_push_job().
19func IoSchedulerCancelAllJobs() {
20
21	xIoSchedulerCancelAllJobs()
22
23}
24
25var xIoSchedulerPushJob func(uintptr, uintptr, uintptr, int, uintptr)
26
27// Schedules the I/O job to run in another thread.
28//
29// @notify will be called on @user_data after @job_func has returned,
30// regardless whether the job was cancelled or has run to completion.
31//
32// If @cancellable is not %NULL, it can be used to cancel the I/O job
33// by calling g_cancellable_cancel() or by calling
34// g_io_scheduler_cancel_all_jobs().
35func IoSchedulerPushJob(JobFuncVar *IOSchedulerJobFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify, IoPriorityVar int, CancellableVar *Cancellable) {
36
37	var JobFuncVarRef uintptr
38	if JobFuncVar != nil {
39		JobFuncVarPtr := uintptr(unsafe.Pointer(JobFuncVar))
40		if cbRefPtr, ok := glib.GetCallback(JobFuncVarPtr); ok {
41			JobFuncVarRef = cbRefPtr
42		} else {
43			fcb := func(arg0 *IOSchedulerJob, arg1 uintptr, arg2 uintptr) bool {
44				cbFn := *JobFuncVar
45				return cbFn(arg0, arg1, arg2)
46			}
47			JobFuncVarRef = purego.NewCallback(fcb)
48			glib.SaveCallbackWithClosure(JobFuncVarPtr, JobFuncVarRef, JobFuncVar)
49		}
50	}
51
52	var NotifyVarRef uintptr
53	if NotifyVar != nil {
54		NotifyVarPtr := uintptr(unsafe.Pointer(NotifyVar))
55		if cbRefPtr, ok := glib.GetCallback(NotifyVarPtr); ok {
56			NotifyVarRef = cbRefPtr
57		} else {
58			fcb := func(arg0 uintptr) {
59				cbFn := *NotifyVar
60				cbFn(arg0)
61			}
62			NotifyVarRef = purego.NewCallback(fcb)
63			glib.SaveCallbackWithClosure(NotifyVarPtr, NotifyVarRef, NotifyVar)
64		}
65	}
66
67	xIoSchedulerPushJob(JobFuncVarRef, UserDataVar, NotifyVarRef, IoPriorityVar, CancellableVar.GoPointer())
68
69}
70
71func init() {
72	core.SetPackageName("GIO", "gio-2.0")
73	core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0"})
74	var libs []uintptr
75	for _, libPath := range core.GetPaths("GIO") {
76		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
77		if err != nil {
78			panic(err)
79		}
80		libs = append(libs, lib)
81	}
82
83	core.PuregoSafeRegister(&xIoSchedulerCancelAllJobs, libs, "g_io_scheduler_cancel_all_jobs")
84	core.PuregoSafeRegister(&xIoSchedulerPushJob, libs, "g_io_scheduler_push_job")
85
86}

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