From 99367a1530de233ccfd06eca366bb995cb55f4a0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 14 Nov 2017 00:31:47 +0100 Subject: [PATCH] Update glib version check in GetStandardCmdLineOptions() This code still works fine with glib 2.50. --- src/gtk/utilsgtk.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gtk/utilsgtk.cpp b/src/gtk/utilsgtk.cpp index a4e3895ffb..76158b1ea4 100644 --- a/src/gtk/utilsgtk.cpp +++ b/src/gtk/utilsgtk.cpp @@ -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");