diff options
| author | fffw | 2015-02-08 11:48:07 +0800 |
|---|---|---|
| committer | fffw | 2015-02-08 13:28:11 +0800 |
| commit | 68f200abb8f65e19eaaa4349a53f8dca52b083c2 (patch) | |
| tree | 05cc9f0198fa3e0ad1a8aca83fd70e91b7f89717 /example/main.go | |
| parent | 2da4df5042578c152dd9645fa43fab3ec4ebc720 (diff) | |
| download | systray-68f200abb8f65e19eaaa4349a53f8dca52b083c2.tar.bz2 | |
move icon to seperate folder in example
Diffstat (limited to 'example/main.go')
| -rw-r--r-- | example/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/example/main.go b/example/main.go index 0bbcabc..bd59e70 100644 --- a/example/main.go +++ b/example/main.go @@ -3,6 +3,7 @@ package main import ( "fmt" "github.com/getlantern/systray" + "github.com/getlantern/systray/example/icon" "github.com/skratchdot/open-golang/open" ) @@ -12,7 +13,7 @@ func main() { } func onReady() { - systray.SetIcon(iconData) + systray.SetIcon(icon.Data) systray.SetTitle("Awesome App") systray.SetTooltip("Pretty awesome超级棒") mQuit := systray.AddMenuItem("quit", "Quit", "Quit the whole app") @@ -24,7 +25,7 @@ func onReady() { // We can manipulate the systray in other goroutines go func() { - systray.SetIcon(iconData) + systray.SetIcon(icon.Data) systray.SetTitle("Awesome App") systray.SetTooltip("Pretty awesome棒棒嗒") mChange := systray.AddMenuItem("change", "Change Me", "Change Me") |
