AboutDialog: Fix accepting GTK_LICENSE_AGPL_3_0

Add the new GTK_LICENSE_AGPL_3_0 to the allowed enum range checked in
gtk_about_dialog_set_license_type(), so this value is not rejected.

https://bugzilla.gnome.org/show_bug.cgi?id=789678
This commit is contained in:
Julian Sparber 2017-10-31 02:29:59 +01:00 committed by Daniel Boles
parent a0327e521e
commit f3408d89d5

View File

@ -2459,7 +2459,7 @@ gtk_about_dialog_set_license_type (GtkAboutDialog *about,
g_return_if_fail (GTK_IS_ABOUT_DIALOG (about)); g_return_if_fail (GTK_IS_ABOUT_DIALOG (about));
g_return_if_fail (license_type >= GTK_LICENSE_UNKNOWN && 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; priv = about->priv;