Update glib version check in GetStandardCmdLineOptions()

This code still works fine with glib 2.50.
This commit is contained in:
Vadim Zeitlin
2017-11-14 00:31:47 +01:00
parent d3b033f432
commit 99367a1530

View File

@@ -472,11 +472,11 @@ wxGUIAppTraits::GetStandardCmdLineOptions(wxArrayString& names,
{
wxString usage;
// check whether GLib version is lower than 2.39
// because, as we use the undocumented _GOptionGroup struct, we don't want
// to run this code with future versions which might change it (2.38 is the
// latest one at the time of this writing)
if (glib_check_version(2,39,0))
// Check whether GLib version is lower than the last tested version for
// which the code below works because, as we use the undocumented
// _GOptionGroup struct, we don't want to run this code with future
// versions which might change it and result in run-time crashes.
if (glib_check_version(2,50,0))
{
usage << _("The following standard GTK+ options are also supported:\n");