Merge branch 'gtk2-version-checks'

Simplify GTK+ 2 version checks with a helper function.

See https://github.com/wxWidgets/wxWidgets/pull/614
This commit is contained in:
Vadim Zeitlin
2017-11-25 22:18:31 +01:00
31 changed files with 101 additions and 148 deletions

View File

@@ -132,7 +132,7 @@ static GtkWidget* ToolTipWidget()
g_signal_connect_swapped(ContainerWidget(), "destroy",
G_CALLBACK(gtk_widget_destroy), s_widget);
const char* name = "gtk-tooltip";
if (gtk_check_version(2, 11, 0))
if (!wx_is_at_least_gtk2(11))
name = "gtk-tooltips";
gtk_widget_set_name(s_widget, name);
gtk_widget_ensure_style(s_widget);