]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/xrc/xrcdemo.cpp
fixes potential crash under gatekeeper
[wxWidgets.git] / samples / xrc / xrcdemo.cpp
index 9a770d9804a783b148437a622f147d4b92c03cca..bc3fcd17935342eb9bb0fc613bd6baea976cfe6f 100644 (file)
 
 #include "wx/xrc/xmlres.h"          // XRC XML resources
 
+#if wxUSE_RIBBON
+    #include "wx/xrc/xh_ribbon.h"
+#endif // wxUSE_RIBBON
+
 #include "wx/cshelp.h"              // wxSimpleHelpProvider for helptext
 
 #include "myframe.h"
@@ -78,6 +82,10 @@ bool MyApp::OnInit()
     // wxXRC docs for details.
     wxXmlResource::Get()->InitAllHandlers();
 
+#if wxUSE_RIBBON
+    wxXmlResource::Get()->AddHandler(new wxRibbonXmlHandler);
+#endif
+
     // Load all of the XRC files that will be used. You can put everything
     // into one giant XRC file if you wanted, but then they become more
     // diffcult to manage, and harder to reuse in later projects.