avoid unused variable warning with GTK2 after a050652c

This commit is contained in:
Paul Cornett
2016-12-14 09:36:08 -08:00
parent a050652c6a
commit 1690d8b886

View File

@@ -2134,9 +2134,8 @@ void wxWindowGTK::GTKHandleRealized()
}
#endif
const bool isTopLevel = IsTopLevel();
#if GTK_CHECK_VERSION(3,8,0)
if (isTopLevel && gtk_check_version(3,8,0) == NULL)
if (IsTopLevel() && gtk_check_version(3,8,0) == NULL)
{
GdkFrameClock* clock = gtk_widget_get_frame_clock(m_widget);
if (clock &&