GNOME Bugzilla – Bug 789678
[GtkAboutDialog] GTK_LICENSE_AGPL_3_0 does not work
Last modified: 2017-10-31 18:58:15 UTC
When setting the license to GTK_LICENSE_AGPL_3_0 for a GtkAboutDialog we get an error. Gtk-CRITICAL gtk_about_dialog_set_license_type: assertion 'license_type >= GTK_LICENSE_UNKNOWN && license_type <= GTK_LICENSE_LGPL_3_0_ONLY' failed The problem is that in gtk_about_dialog_set_license_type we check if the set value is between GTK_LICENSE_UNKNOWN and GTK_LICENSE_LGPL_3_0_ONLY but since (https://bugzilla.gnome.org/show_bug.cgi?id=763850) GTK_LICENSE_LGPL_3_0_ONLY isn't anymore the last one in enum. I added a patch which replaces GTK_LICENSE_LGPL_3_0_ONLY with GTK_LICENSE_AGPL_3_0 Maybe we should check if the value is between 0 and N_GTK_LICENSE or something like that?
Created attachment 362593 [details] [review] Add GTK_LICENSE_AGPL_3_0 to enum range in gtk_about_dialog_set_license_type
Review of attachment 362593 [details] [review]: sure