-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathabout.go
More file actions
29 lines (27 loc) · 1017 Bytes
/
Copy pathabout.go
File metadata and controls
29 lines (27 loc) · 1017 Bytes
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 <135e2@135e2.tk>")
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 <135e2@135e2.tk>",
"iawia002",
"Zhiming Wang",
})
return about
}