From 994644ffe73655433ca77ce425e1ad1196999c32 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Mon, 4 Dec 2023 04:47:11 +0000 Subject: [PATCH] Add Zero-Clause BSD license --- gtk/gtkaboutdialog.c | 5 +++-- gtk/gtkaboutdialog.h | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index 67162b766b..2c0c13c90e 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -133,11 +133,12 @@ static const LicenseInfo gtk_license_info [] = { { N_("GNU Affero General Public License, version 3 only"), "https://www.gnu.org/licenses/agpl-3.0.html" }, { N_("BSD 3-Clause License"), "https://opensource.org/licenses/BSD-3-Clause" }, { N_("Apache License, Version 2.0"), "https://opensource.org/licenses/Apache-2.0" }, - { N_("Mozilla Public License 2.0"), "https://opensource.org/licenses/MPL-2.0" } + { N_("Mozilla Public License 2.0"), "https://opensource.org/licenses/MPL-2.0" }, + { N_("BSD Zero-Clause License"), "https://opensource.org/license/0bsd" } }; /* Keep this static assertion updated with the last element of the * enumeration, and make sure it matches the last element of the array */ -G_STATIC_ASSERT (G_N_ELEMENTS (gtk_license_info) - 1 == GTK_LICENSE_MPL_2_0); +G_STATIC_ASSERT (G_N_ELEMENTS (gtk_license_info) - 1 == GTK_LICENSE_0BSD); typedef struct { diff --git a/gtk/gtkaboutdialog.h b/gtk/gtkaboutdialog.h index 676bdc2786..47fad5df81 100644 --- a/gtk/gtkaboutdialog.h +++ b/gtk/gtkaboutdialog.h @@ -57,6 +57,7 @@ typedef struct _GtkAboutDialog GtkAboutDialog; * @GTK_LICENSE_BSD_3: The 3-clause BSD licence * @GTK_LICENSE_APACHE_2_0: The Apache License, version 2.0 * @GTK_LICENSE_MPL_2_0: The Mozilla Public License, version 2.0 + * @GTK_LICENSE_0BSD: Zero-Clause BSD license * * The type of license for an application. * @@ -87,7 +88,8 @@ typedef enum { GTK_LICENSE_BSD_3, GTK_LICENSE_APACHE_2_0, - GTK_LICENSE_MPL_2_0 + GTK_LICENSE_MPL_2_0, + GTK_LICENSE_0BSD } GtkLicense;