From b0405d045011b68c32dc018f34391cee87a9c0a1 Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Sat, 16 May 2015 17:21:14 -0500 Subject: [PATCH] More wx3 workarounds --- src/FreqWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FreqWindow.cpp b/src/FreqWindow.cpp index dd7d4024d..6b5a54a6e 100644 --- a/src/FreqWindow.cpp +++ b/src/FreqWindow.cpp @@ -86,7 +86,7 @@ and in the spectrogram spectral selection. #if defined(__WXGTK__) #define GSocket GSocketHack -#include +#include #endif DEFINE_EVENT_TYPE(EVT_FREQWINDOW_RECALC); @@ -516,7 +516,7 @@ FreqWindow::FreqWindow(wxWindow * parent, wxWindowID id, // // I guess the only way round it would be to handle key actions // ourselves, but we'll leave that for a future date. - GTK_WIDGET_SET_FLAGS(mPanScroller->m_widget, GTK_CAN_FOCUS); + gtk_widget_set_can_focus(mPanScroller->m_widget, true); #endif }