-
Notifications
You must be signed in to change notification settings - Fork 2
/
about.go
29 lines (27 loc) · 1017 Bytes
/
about.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package main
import (
"github.com/gotk3/gotk3/gdk"
"github.com/gotk3/gotk3/glib"
"github.com/gotk3/gotk3/gtk"
)
func About(path string) *gtk.AboutDialog {
about, _ := gtk.AboutDialogNew()
about.SetModal(true)
about.SetProgramName("annie-gtk")
about.SetVersion(VERSION)
about.SetTitle(glib.Local("About Page"))
about.SetCopyright("Copyright (c) 2021 135e2 <[email protected]>")
about.SetLicenseType(gtk.LICENSE_GPL_3_0)
about.SetComments(glib.Local("annie-gtk is an minimal GTK-3 wrapper for iawia002/lux (former 'annie'), licensed under GPLv3.\nCredits:\n\t- iawia002/lux, MIT license;\n\t- The GTK Project, LGPLv2.1+;\n\t- gotk3/gotk3, ISC license;\n\t- fanaticscripter/annie-mingui, MIT license"))
logo, err := gdk.PixbufNewFromFile(path + "logo.png")
errorCheck(err)
about.SetLogo(logo)
about.SetWebsite("https://github.com/135e2/annie-gtk")
about.SetWebsiteLabel(glib.Local("Source Code"))
about.SetAuthors([]string{
"135e2 <[email protected]>",
"iawia002",
"Zhiming Wang",
})
return about
}