aboutdialog: Update precondition checks for new licenses added in 3.24.20
To avoid making this mistake again, add a static assertion that the enum is in sync with gtk_license_info, and use the length of gtk_license_info for the precondition check.
Resolves: #2734 (closed)
GTK4 version of !1876 (merged).
Edited by Simon McVittie