X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/65e9e9c3039b6a39be772f64d58d36ed9e971d9a..ad653fa23069c5d9378247084f03c9a718c3ad62:/src/xrc/xh_ribbon.cpp diff --git a/src/xrc/xh_ribbon.cpp b/src/xrc/xh_ribbon.cpp index 09b8df21b3..0e86f2fed8 100644 --- a/src/xrc/xh_ribbon.cpp +++ b/src/xrc/xh_ribbon.cpp @@ -146,7 +146,12 @@ wxObject* wxRibbonXmlHandler::Handle_button() if (GetBool(wxT("hybrid"))) kind = wxRIBBON_BUTTON_HYBRID; -#if wxUSE_MENUS + // FIXME: The code below uses wxXmlNode directly but this can't be done + // in the ribbon library code as it would force it to always link + // with the xml library. Disable it for now but the real solution + // would be to virtualize GetChildren() and GetNext() methods via + // wxXmlResourceHandler, just as we already do for many others. +#if 0 // wxUSE_MENUS // check whether we have dropdown tag inside wxMenu *menu = NULL; // menu for drop down items wxXmlNode * const nodeDropdown = GetParamNode("dropdown");