From 2509e7927a321a5672afd42986568176a7bdab51 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 3 Aug 2015 17:45:35 +0200 Subject: [PATCH] Handle GTK_POLICY_EXTERNAL new in GTK+ 3.16 too. Apparently this still doesn't display any scrollbars in the window itself, so from our point of view it is equivalent to GTK_POLICY_NEVER. --- src/gtk/window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 2e4e2b0dbb..8277e52536 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -3055,6 +3055,9 @@ void wxWindowGTK::DoGetClientSize( int *width, int *height ) const // nor for the ones we have but don't current show switch ( policy[i] ) { +#if GTK_CHECK_VERSION(3,16,0) + case GTK_POLICY_EXTERNAL: +#endif case GTK_POLICY_NEVER: // never shown so doesn't take any place continue;