summaryrefslogtreecommitdiff
path: root/gui/internal/ui/idle.go
blob: cc2a61bd7281b81193e5ec893ce06383a8ef8fb0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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)
}