]> git.saurik.com Git - wxWidgets.git/commitdiff
Add another missing #if wxUSE_MARKUP check.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 8 Mar 2011 17:22:15 +0000 (17:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 8 Mar 2011 17:22:15 +0000 (17:22 +0000)
The definition of DoSetLabelMarkup() should only be compiled when
wxUSE_MARKUP==1.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/button.cpp

index 089fcbda13dc8b3249beb87bfa1c93416b310f0d..5255a240ffd8bf033b3bf0f96c341b3bc58e7ba9 100644 (file)
@@ -262,6 +262,7 @@ void wxButton::SetLabel( const wxString &lbl )
     GTKApplyWidgetStyle( false );
 }
 
+#if wxUSE_MARKUP
 bool wxButton::DoSetLabelMarkup(const wxString& markup)
 {
     wxCHECK_MSG( m_widget != NULL, false, "invalid button" );
@@ -279,6 +280,7 @@ bool wxButton::DoSetLabelMarkup(const wxString& markup)
 
     return true;
 }
+#endif // wxUSE_MARKUP
 
 bool wxButton::Enable( bool enable )
 {