From 2c42d8d6ed983463b63ed75668bac09ee2b515a9 Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Tue, 31 Oct 2017 02:29:59 +0100 Subject: [PATCH] AboutDialog: Fix accepting GTK_LICENSE_AGPL_3_0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the ‘new’ GTK_LICENSE_AGPL_3_0 to the allowed enum range checked in gtk_about_dialog_set_license_type(), so this value can actually be used. https://bugzilla.gnome.org/show_bug.cgi?id=789678 --- gtk/gtkaboutdialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index 1534c5b592..820f01c0a1 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -2568,7 +2568,7 @@ gtk_about_dialog_set_license_type (GtkAboutDialog *about, g_return_if_fail (GTK_IS_ABOUT_DIALOG (about)); g_return_if_fail (license_type >= GTK_LICENSE_UNKNOWN && - license_type <= GTK_LICENSE_LGPL_3_0_ONLY); + license_type <= GTK_LICENSE_AGPL_3_0); priv = about->priv;