]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInfo.cpp
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetInfo.cpp
index d14a6889d04d199176da4ed69b450376b38abc74..2218ef660d50bd5435d59f41adbe33ad4f0c5f9d 100644 (file)
@@ -17,9 +17,7 @@
 #include "Buffer.h"
 #include "BufferParams.h"
 #include "BufferView.h"
-#include "support/debug.h"
 #include "FuncRequest.h"
-#include "support/gettext.h"
 #include "InsetSpecialChar.h"
 #include "KeyMap.h"
 #include "LaTeXFeatures.h"
 #include "ParagraphParameters.h"
 #include "TextClassList.h"
 
+#include "frontends/Application.h"
+
+#include "support/debug.h"
 #include "support/docstream.h"
 #include "support/FileName.h"
+#include "support/gettext.h"
 #include "support/lstrings.h"
 #include "support/ExceptionMessage.h"
 
@@ -214,7 +216,7 @@ void InsetInfo::updateInfo(Buffer const & buf)
                        break;
                }
                // iterate through the menubackend to find it
-               Menu menu = menubackend.getMenubar();
+               Menu menu = theApp()->menuBackend().getMenubar();
                if (!menu.searchFunc(func, names)) {
                        setText(_("No menu entry for "), bp.getFont(), false);
                        break;