Fix wxGTK compilation with MSVC after GTK+ 3 changes.

Don't use preprocessor conditions inside a macro invocation, MSVC doesn't
support this.

Closes #14448.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-07-02 22:59:14 +00:00
parent dc26e9846f
commit c38373bd54

View File

@@ -2086,12 +2086,14 @@ void wxWindowGTK::GTKHandleRealized()
{
// attaching to style changed signal after realization avoids initial
// changes we don't care about
g_signal_connect(m_wxwindow,
const gchar *detailed_signal =
#ifdef __WXGTK3__
"style_updated",
"style_updated";
#else
"style_set",
"style_set";
#endif
g_signal_connect(m_wxwindow,
detailed_signal,
G_CALLBACK(style_updated), this);
}
}