From 44239f128ade14ea6eb2398ea1d623f6c2c2fc2e Mon Sep 17 00:00:00 2001 From: Nico Alt <nicoalt@posteo.org> Date: Sun, 22 Dec 2019 15:31:30 +0100 Subject: [PATCH] Add UI file for about dialog --- briar-gtk/data/meson.build | 6 ++++++ briar-gtk/meson.build | 1 + data/ui/about_dialog.ui.in | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 data/ui/about_dialog.ui.in diff --git a/briar-gtk/data/meson.build b/briar-gtk/data/meson.build index 00ec5c1..17edeec 100644 --- a/briar-gtk/data/meson.build +++ b/briar-gtk/data/meson.build @@ -52,6 +52,12 @@ gnome.compile_resources('briar-gtk', gresource_bundle: true, install: true, install_dir: pkgdatadir, + dependencies: configure_file( + input: 'about_dialog.ui.in', + output: 'about_dialog.ui', + configuration: conf + ) + ) subdir('icons') diff --git a/briar-gtk/meson.build b/briar-gtk/meson.build index 6702618..1852f25 100644 --- a/briar-gtk/meson.build +++ b/briar-gtk/meson.build @@ -10,6 +10,7 @@ subdir('po') python3 = import('python3') conf = configuration_data() +conf.set('PACKAGE_URL', 'https://code.briarproject.org/briar/briar-gtk/blob/master/README.md') conf.set('PYTHON', python3.find_python().path()) conf.set('VERSION', meson.project_version()) conf.set('LOCALE_DIR', join_paths(get_option('prefix'), get_option('localedir'))) diff --git a/data/ui/about_dialog.ui.in b/data/ui/about_dialog.ui.in new file mode 100644 index 0000000..35823ee --- /dev/null +++ b/data/ui/about_dialog.ui.in @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (c) 2019 Nico Alt + SPDX-License-Identifier: AGPL-3.0-only + License-Filename: LICENSE.md + + Based on parts of GNOME Lollypop + https://gitlab.gnome.org/World/lollypop/raw/1.2.16/data/AboutDialog.ui.in +--> +<interface> + <requires lib="gtk+" version="3.12"/> + <object class="GtkAboutDialog" id="about_dialog"> + <property name="can_focus">False</property> + <property name="modal">True</property> + <property name="destroy_with_parent">True</property> + <property name="type_hint">normal</property> + <property name="program_name">Briar GTK</property> + <property name="version">@VERSION@</property> + <property name="copyright">Copyright © 2019 "Nico Alt https://nico.dorfbrunnen.eu", et al.</property> + <property name="comments" translatable="yes">A Briar client for GTK desktop and mobile devices</property> + <property name="website">@PACKAGE_URL@</property> + <property name="website_label" translatable="yes">Visit Briar GTK's website</property> + <property name="authors">Nico Alt + +Briar GTK uses the "Briar REST API https://code.briarproject.org/briar/briar/blob/master/briar-headless/README.md" + +Briar GTK received a lot of inspiration and uses parts of the following projects: + GNOME Fractal + GNOME Lollypop +</property> + <property name="translator_credits" translatable="yes" context="Translation credits here, put your name here!" comments="Replace me with your names">Nico Alt</property> + <property name="logo_icon_name">app.briar.gtk</property> + <property name="license_type">agpl-3-0-only</property> + </object> +</interface> -- GitLab