]> git.lyx.org Git - features.git/blobdiff - src/LyXView.C
More cleanups of the toolbar. The buttons are now toggled/disabled when needed
[features.git] / src / LyXView.C
index 4a1c93f5519408c0175eab6c731da62ab0835f5d..d9cdc70bbf09ec2e91b00b036975d0325628b2b9 100644 (file)
@@ -36,6 +36,7 @@
 #include "menus.h"
 #include "frontends/Dialogs.h"
 #include "lyx_gui_misc.h"      // [update,Close]AllBufferRelatedDialogs
+#include "bufferview_funcs.h" // CurrentState()
 
 using std::endl;
 
@@ -63,6 +64,9 @@ LyXView::LyXView(int width, int height)
        lyxfunc = new LyXFunc(this);
        intl = new Intl;
 
+       // Make sure the buttons are disabled if needed.
+       toolbar->update();
+
        dialogs_ = new Dialogs(this);
        // temporary until all dialogs moved into Dialogs.
        dialogs_->updateBufferDependent
@@ -440,3 +444,10 @@ void LyXView::updateWindowTitle()
                last_title = title;
        }
 }
+
+
+void LyXView::showState()
+{
+       getMiniBuffer()->Set(CurrentState(view()));
+       getToolbar()->update();
+}