aboutsummaryrefslogtreecommitdiff
path: root/gui/internal/ui/idle.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-09-16 09:17:08 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-09-16 09:17:08 +0200
commitbcfeb773afcc28641ef2fb47749c91fd0767054a (patch)
treef8593c29bad0b204f1ecc9cae650b55f3cc755d6 /gui/internal/ui/idle.go
parent4f98392c9a062e9d4dd8363a2ede9a919ad14006 (diff)
downloadkrino-bcfeb773afcc28641ef2fb47749c91fd0767054a.tar.gz
krino-bcfeb773afcc28641ef2fb47749c91fd0767054a.zip
gui: the Plan tab - scan, review, apply, with the directory locked
Diffstat (limited to 'gui/internal/ui/idle.go')
-rw-r--r--gui/internal/ui/idle.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/internal/ui/idle.go b/gui/internal/ui/idle.go
new file mode 100644
index 0000000..cc2a61b
--- /dev/null
+++ b/gui/internal/ui/idle.go
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package ui
+
+import "github.com/diamondburned/gotk4/pkg/glib/v2"
+
+// idleAdd runs f on the GTK main loop. Every widget touch from a goroutine
+// goes through it.
+func idleAdd(f func()) {
+ glib.IdleAdd(f)
+}