From ba51e75bb04dc9f287ee74210c79b0b3deeede99 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 14 Jul 2007 18:52:52 +0000 Subject: [PATCH] fix harmless unused variable warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/frame.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gtk/frame.cpp b/src/gtk/frame.cpp index 0690e2602b..7cd583b699 100644 --- a/src/gtk/frame.cpp +++ b/src/gtk/frame.cpp @@ -318,7 +318,10 @@ void wxFrame::GtkOnSize() // m_mainWidget holds the menubar, the toolbar and the client // area, which is represented by m_wxwindow. +#if wxUSE_MENUS_NATIVE int menubarHeight = 0; +#endif + #if wxUSE_MENUS_NATIVE if (HasVisibleMenubar()) { @@ -345,7 +348,11 @@ void wxFrame::GtkOnSize() (m_frameToolBar->m_widget->parent == m_mainWidget)) { int xx = m_miniEdge; - int yy = m_miniEdge + m_miniTitle + menubarHeight; + int yy = m_miniEdge + m_miniTitle +#if wxUSE_MENUS_NATIVE + + menubarHeight +#endif + ; m_frameToolBar->m_x = xx; m_frameToolBar->m_y = yy; -- 2.47.2