mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-09-20 18:09:08 +00:00
feat: adw aboutwindow
This commit is contained in:
parent
5ffed3ec5f
commit
8aa4544f3a
|
@ -1,4 +1,4 @@
|
|||
project('dev.geopjr.tooth', 'vala', 'c', version: '2.0-alpha2')
|
||||
project('dev.geopjr.tooth', 'vala', 'c', version: '2.1.0')
|
||||
|
||||
add_global_arguments([
|
||||
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
|
||||
|
@ -15,7 +15,7 @@ config.set('PREFIX', get_option('prefix'))
|
|||
config.set('NAME', 'Tooth')
|
||||
config.set('WEBSITE', 'https://github.com/GeopJr/tooth')
|
||||
config.set('SUPPORT_WEBSITE', 'https://github.com/GeopJr/tooth/issues')
|
||||
config.set('COPYRIGHT', '© 2018-2021 bleak_grey\n© 2022 Evangelos "GeopJr" Paterakis')
|
||||
config.set('COPYRIGHT', '© 2018-2021 bleak_grey\n© 2022 Evangelos \"GeopJr\" Paterakis')
|
||||
|
||||
gnome = import('gnome')
|
||||
i18n = import('i18n')
|
||||
|
|
|
@ -168,23 +168,22 @@ namespace Tooth {
|
|||
}
|
||||
|
||||
void about_activated () {
|
||||
var dialog = new AboutDialog () {
|
||||
var dialog = new Adw.AboutWindow () {
|
||||
transient_for = main_window,
|
||||
modal = true,
|
||||
|
||||
logo_icon_name = Build.DOMAIN,
|
||||
program_name = Build.NAME,
|
||||
application_icon = Build.DOMAIN,
|
||||
application_name = Build.NAME,
|
||||
version = Build.VERSION,
|
||||
website = Build.SUPPORT_WEBSITE,
|
||||
website_label = _("Report an issue"),
|
||||
support_url = Build.SUPPORT_WEBSITE,
|
||||
license_type = License.GPL_3_0_ONLY,
|
||||
copyright = Build.COPYRIGHT,
|
||||
system_information = Build.SYSTEM_INFO
|
||||
debug_info = Build.SYSTEM_INFO
|
||||
};
|
||||
|
||||
// For some obscure reason, const arrays produce duplicates in the credits.
|
||||
// Static functions seem to avoid this peculiar behavior.
|
||||
dialog.authors = Build.get_authors ();
|
||||
dialog.developers = Build.get_authors ();
|
||||
dialog.artists = Build.get_artists ();
|
||||
dialog.translator_credits = Build.TRANSLATOR != " " ? Build.TRANSLATOR : null;
|
||||
|
||||
|
|
|
@ -18,7 +18,8 @@ public class Build {
|
|||
|
||||
public static string[] get_authors () {
|
||||
return new string[] {
|
||||
"bleak_grey"
|
||||
"bleak_grey",
|
||||
"Evangelos \"GeopJr\" Paterakis"
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue