Add wxUSE_MARKUP and wrap SetLabelMarkup() in it.
Make it possible to disable all the new markup-related code by setting wxUSE_MARKUP to 0 in setup.h or using configure --disable-markup option. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -127,12 +127,15 @@ void wxControl::GTKSetLabelForLabel(GtkLabel *w, const wxString& label)
|
||||
gtk_label_set_text_with_mnemonic(w, wxGTK_CONV(labelGTK));
|
||||
}
|
||||
|
||||
#if wxUSE_MARKUP
|
||||
|
||||
void wxControl::GTKSetLabelWithMarkupForLabel(GtkLabel *w, const wxString& label)
|
||||
{
|
||||
const wxString labelGTK = GTKConvertMnemonicsWithMarkup(label);
|
||||
gtk_label_set_markup_with_mnemonic(w, wxGTK_CONV(labelGTK));
|
||||
}
|
||||
|
||||
#endif // wxUSE_MARKUP
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// GtkFrame helpers
|
||||
|
Reference in New Issue
Block a user