diff options
author | Christopher Davis <christopherdavis@gnome.org> | 2022-07-07 19:13:58 -0400 |
---|---|---|
committer | Christopher Davis <brainblasted@disroot.org> | 2022-07-09 17:57:05 +0000 |
commit | f35496b07df7882218066303b7a3dcf6a9519938 (patch) | |
tree | 30e894af432109cbbeb00fd65d65aca53e613d89 | |
parent | 1b628f334ae9606994185b4150690a5bf3009cf9 (diff) | |
download | nautilus-f35496b07df7882218066303b7a3dcf6a9519938.tar.gz |
window: Port about to AdwAboutWindow
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | 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); } |