feat: adw aboutwindow

This commit is contained in:
Evangelos Paterakis 2022-11-13 23:03:12 +02:00
parent 5ffed3ec5f
commit 8aa4544f3a
No known key found for this signature in database
GPG Key ID: FE5185F095BFC8C9
3 changed files with 10 additions and 10 deletions

View File

@ -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')

View File

@ -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;

View File

@ -18,7 +18,8 @@ public class Build {
public static string[] get_authors () {
return new string[] {
"bleak_grey"
"bleak_grey",
"Evangelos \"GeopJr\" Paterakis"
};
}