Update glib version check in GetStandardCmdLineOptions()
This code still works fine with glib 2.50.
This commit is contained in:
@@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user