]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/LyXView.C
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / LyXView.C
index a7eb12bbb13f40712b5044bcbf1785c26349f14f..0eeaacee0381cc4d5f2de6a1ea446a8c58aae38b 100644 (file)
@@ -71,7 +71,12 @@ LyXView::LyXView()
          dialogs_(new Dialogs(*this)),
          controlcommand_(new ControlCommandBuffer(*this))
 {
-       lyxerr[Debug::INIT] << "Initializing LyXFunc" << endl;
+       // Start autosave timer
+       if (lyxrc.autosave) {
+               autosave_timeout_->timeout.connect(boost::bind(&LyXView::autoSave, this));
+               autosave_timeout_->setTimeout(lyxrc.autosave * 1000);
+               autosave_timeout_->start();
+       }
 }
 
 
@@ -99,20 +104,6 @@ WorkArea * LyXView::workArea()
 }
 
 
-void LyXView::init()
-{
-       updateLayoutChoice();
-       updateMenubar();
-
-       // Start autosave timer
-       if (lyxrc.autosave) {
-               autosave_timeout_->timeout.connect(boost::bind(&LyXView::autoSave, this));
-               autosave_timeout_->setTimeout(lyxrc.autosave * 1000);
-               autosave_timeout_->start();
-       }
-}
-
-
 Buffer * LyXView::buffer() const
 {
        return work_area_->bufferView().buffer();
@@ -261,7 +252,7 @@ void LyXView::showDialogWithData(string const & name,
 void LyXView::showInsetDialog(string const & name, string const & data,
                                                          InsetBase * inset)
 {
-       getDialogs().show(name, data, 0);
+       getDialogs().show(name, data, inset);
 }