AboutDialog: Fix accepting GTK_LICENSE_AGPL_3_0
authorJulian Sparber <julian@sparber.net>
Tue, 31 Oct 2017 01:29:59 +0000 (02:29 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Tue, 31 Oct 2017 18:56:26 +0000 (18:56 +0000)
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

index 1534c5b592a631ab1e7a5803d0a6733254b2f9b9..820f01c0a1961a1456e4ba8f1fd520cdd79e5396 100644 (file)
@@ -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;