]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix wxGTK compilation with MSVC after GTK+ 3 changes.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 2 Jul 2012 22:59:14 +0000 (22:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 2 Jul 2012 22:59:14 +0000 (22:59 +0000)
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

src/gtk/window.cpp

index ee5e1b09a49155e5baff67812ae1b5354ba98709..36344c4139d73a4c4b3fd49aaadb4e4ed9be13ab 100644 (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);
     }
 }