diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-25 20:48:42 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-28 08:05:02 +0100 |
commit | dfbea5b5f3d66b0ec0df3e19262f8a0b2ec295af (patch) | |
tree | 532a7d0b184af7393b1fd5c99425219e4c376eee /ui | |
parent | Makefile: initial series of horrendous makefile hacks (diff) | |
download | wireguard-windows-dfbea5b5f3d66b0ec0df3e19262f8a0b2ec295af.tar.xz wireguard-windows-dfbea5b5f3d66b0ec0df3e19262f8a0b2ec295af.zip |
ui: move syntaxedit to sub-package
This speeds up compilation time considerably by not needing to invoke
cgo for changes in the main UI.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/syntax/highlighter.c (renamed from ui/highlighter.c) | 0 | ||||
-rw-r--r-- | ui/syntax/highlighter.h (renamed from ui/highlighter.h) | 0 | ||||
-rw-r--r-- | ui/syntax/syntaxedit.c (renamed from ui/syntaxedit.c) | 0 | ||||
-rw-r--r-- | ui/syntax/syntaxedit.go (renamed from ui/syntaxedit.go) | 2 | ||||
-rw-r--r-- | ui/syntax/syntaxedit.h (renamed from ui/syntaxedit.h) | 0 | ||||
-rw-r--r-- | ui/ui.go | 3 |
6 files changed, 3 insertions, 2 deletions
diff --git a/ui/highlighter.c b/ui/syntax/highlighter.c index 1913e359..1913e359 100644 --- a/ui/highlighter.c +++ b/ui/syntax/highlighter.c diff --git a/ui/highlighter.h b/ui/syntax/highlighter.h index c004e127..c004e127 100644 --- a/ui/highlighter.h +++ b/ui/syntax/highlighter.h diff --git a/ui/syntaxedit.c b/ui/syntax/syntaxedit.c index 5586e9d1..5586e9d1 100644 --- a/ui/syntaxedit.c +++ b/ui/syntax/syntaxedit.c diff --git a/ui/syntaxedit.go b/ui/syntax/syntaxedit.go index 34d36305..547c65ca 100644 --- a/ui/syntaxedit.go +++ b/ui/syntax/syntaxedit.go @@ -3,7 +3,7 @@ * Copyright (C) 2019 WireGuard LLC. All Rights Reserved. */ -package ui +package syntax import ( "errors" diff --git a/ui/syntaxedit.h b/ui/syntax/syntaxedit.h index 12815278..12815278 100644 --- a/ui/syntaxedit.h +++ b/ui/syntax/syntaxedit.h @@ -12,6 +12,7 @@ import ( "golang.zx2c4.com/wireguard/windows/conf" "golang.zx2c4.com/wireguard/windows/service" "golang.zx2c4.com/wireguard/windows/ui/internal/walk" + "golang.zx2c4.com/wireguard/windows/ui/syntax" "os" ) @@ -47,7 +48,7 @@ func RunUI() { tl, _ := walk.NewTextLabel(mw) tl.SetText("Public key: (unknown)") - se, _ := NewSyntaxEdit(mw) + se, _ := syntax.NewSyntaxEdit(mw) lastPrivate := "" se.PrivateKeyChanged().Attach(func(privateKey string) { if privateKey == lastPrivate { |