MCPcopy Create free account
hub / github.com/efogdev/mpris-timer / Init

Function Init

internal/ui/ui.go:47–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45)
46
47func Init() {
48 core.App.ConnectActivate(func() {
49 prov := gtk.NewCSSProvider()
50 prov.ConnectParsingError(func(sec *gtk.CSSSection, err error) {
51 log.Printf("CSS error: %v", err)
52 })
53
54 allCss := cssString
55 if core.BreezeTheme {
56 allCss += breezeCssString
57 }
58
59 prov.LoadFromString(allCss)
60 gtk.StyleContextAddProviderForDisplay(gdk.DisplayGetDefault(), prov, gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
61 NewTimePicker(core.App)
62 })
63
64 if code := core.App.Run(nil); code > 0 {
65 os.Exit(code)
66 }
67}
68
69func NewTimePicker(app *adw.Application) {
70 core.Overrides.Duration = 0

Callers 1

mainFunction · 0.92

Calls 1

NewTimePickerFunction · 0.85

Tested by

no test coverage detected