Skip to content

Commit

Permalink
using adw_show_about_dialog instead of the deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmm committed Sep 26, 2024
1 parent bc7ce07 commit fd1ec1a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,14 +477,15 @@ void application_init(Application* self) {
std::array<const char*, 3> documenters = {"Wellington Wallace <wellingtonwallace@gmail.com>",
"Giusy Digital <kurmikon@libero.it>", nullptr};

adw_show_about_window(
gtk_application_get_active_window(GTK_APPLICATION(gapp)), "application-name", APP_NAME, "version", VERSION,
"developer-name", "Wellington Wallace", "developers", developers.data(), "application-icon",
IS_DEVEL_BUILD ? std::string(tags::app::id).append(".Devel").c_str() : tags::app::id, "copyright",
"Copyright © 2017–2022 Easy Effects Contributors", "license-type", GTK_LICENSE_GPL_3_0, "website",
"https://github.com/wwmm/easyeffects", "debug-info", std::string("Commit: ").append(COMMIT_DESC).c_str(),
"translator-credits", _("Weblate https://hosted.weblate.org/projects/easyeffects/"), "documenters",
documenters.data(), "issue-url", "https://github.com/wwmm/easyeffects/issues", nullptr);
adw_show_about_dialog(GTK_WIDGET(gtk_application_get_active_window(GTK_APPLICATION(gapp))), "application-name",
APP_NAME, "version", VERSION, "developer-name", "Wellington Wallace", "developers",
developers.data(), "application-icon",
IS_DEVEL_BUILD ? std::string(tags::app::id).append(".Devel").c_str() : tags::app::id,
"copyright", "Copyright © 2017–2022 Easy Effects Contributors", "license-type",
GTK_LICENSE_GPL_3_0, "website", "https://github.com/wwmm/easyeffects", "debug-info",
std::string("Commit: ").append(COMMIT_DESC).c_str(), "translator-credits",
_("Weblate https://hosted.weblate.org/projects/easyeffects/"), "documenters",
documenters.data(), "issue-url", "https://github.com/wwmm/easyeffects/issues", nullptr);
},
nullptr, nullptr, nullptr};

Expand Down

0 comments on commit fd1ec1a

Please sign in to comment.