[nautilus/wip/cdavis/about-window] window: Port about to AdwAboutWindow
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/cdavis/about-window] window: Port about to AdwAboutWindow
- Date: Fri, 8 Jul 2022 17:29:35 +0000 (UTC)
commit a5d087b747be28cf12b1a43957fc6db67dd837b9
Author: Christopher Davis <christopherdavis gnome org>
Date: Thu Jul 7 19:13:58 2022 -0400
window: Port about to AdwAboutWindow
meson.build | 2 +-
src/nautilus-window.c | 24 +++++++++---------------
2 files changed, 10 insertions(+), 16 deletions(-)
---
diff --git a/meson.build b/meson.build
index 7af5a3ef0..ce034a2a1 100644
--- a/meson.build
+++ b/meson.build
@@ -108,7 +108,7 @@ gmodule = dependency('gmodule-no-export-2.0', version: glib_ver)
gnome_autoar = dependency('gnome-autoar-0', version: '>= 0.4.0')
gnome_desktop = dependency('gnome-desktop-4', version: '>= 43')
gtk = dependency('gtk4', version: '>= 4.6')
-libadwaita = dependency('libadwaita-1', version: '>= 1.0')
+libadwaita = dependency('libadwaita-1', version: '>= 1.2.alpha')
libportal = dependency('libportal', version: '>= 0.5')
libportal_gtk4 = dependency('libportal-gtk4', version: '>= 0.5')
selinux = []
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 80f580fc7..67d6b7edf 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -2317,12 +2317,12 @@ nautilus_window_new (void)
void
nautilus_window_show_about_dialog (NautilusWindow *window)
{
- const gchar *artists[] =
+ const gchar *designers[] =
{
"The GNOME Project",
NULL
};
- const gchar *authors[] =
+ const gchar *developers[] =
{
"The contributors to the Nautilus project",
NULL
@@ -2333,30 +2333,24 @@ nautilus_window_show_about_dialog (NautilusWindow *window)
"Sun Microsystems",
NULL
};
- g_autofree gchar *program_name = NULL;
- /* “Files” is the generic application name and the suffix is
- * an arbitrary and deliberately unlocalized string only shown
- * in development builds.
- */
- program_name = g_strconcat (_("Files"), NAME_SUFFIX, NULL);
-
- gtk_show_about_dialog (window ? GTK_WINDOW (window) : NULL,
- "program-name", program_name,
+ adw_show_about_window (window ? GTK_WINDOW (window) : NULL,
+ "application-name", _("Files"),
+ "application-icon", APPLICATION_ID,
+ "developer-name", _("The GNOME Project"),
"version", VERSION,
- "comments", _("Access and organize your files"),
"website", "https://wiki.gnome.org/action/show/Apps/Files",
+ "issue-url", "https://gitlab.gnome.org/GNOME/nautilus/-/issues/new",
"copyright", "© 1999 The Files Authors",
"license-type", GTK_LICENSE_GPL_3_0,
- "artists", artists,
- "authors", authors,
+ "designers", designers,
+ "developers", developers,
"documenters", documenters,
/* Translators should localize the following string
* which will be displayed at the bottom of the about
* box to give credit to the translator(s).
*/
"translator-credits", _("translator-credits"),
- "logo-icon-name", APPLICATION_ID,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]