]> git.lyx.org Git - lyx.git/blobdiff - src/XFormsView.C
Fix deleting of paragraphs after undo (fix #236).
[lyx.git] / src / XFormsView.C
index f22445be0f7933c9e0e9633c3ddc33d42a06dc16..ce655b409019082e1b22768ddbe0449f615f2d3a 100644 (file)
@@ -26,6 +26,7 @@
 #include "support/filetools.h"        // OnlyFilename()
 #include "frontends/Toolbar.h"
 #include "frontends/Menubar.h"
+#include "frontends/Timeout.h"
 #include "MenuBackend.h"
 #include "ToolbarDefaults.h"
 #include "lyxfunc.h"
@@ -58,7 +59,7 @@ XFormsView::XFormsView(int width, int height)
 
        // Connect the minibuffer signals
        minibuffer->stringReady.connect(SigC::slot(getLyXFunc(),
-                                                  &LyXFunc::miniDispatch));
+                                               &LyXFunc::miniDispatch));
        minibuffer->timeout.connect(SigC::slot(getLyXFunc(),
                                               &LyXFunc::initMiniBuffer));
        
@@ -164,7 +165,7 @@ void XFormsView::create_form_form_main(int width, int height)
        // TIMERS
        //
 
-       autosave_timeout.timeout.connect(SigC::slot(this, &XFormsView::AutoSave));
+       autosave_timeout->timeout.connect(SigC::slot(this, &XFormsView::AutoSave));
        
        //
        // Misc
@@ -190,6 +191,8 @@ void XFormsView::create_form_form_main(int width, int height)
        fl_set_form_minsize(form_, 50, 50);
        
        fl_end_form();
+
+       minibuffer->dd_init(); 
 }
 
 
@@ -202,17 +205,18 @@ void XFormsView::init()
        
        // Start autosave timer
        if (lyxrc.autosave) {
-               autosave_timeout.setTimeout(lyxrc.autosave * 1000);
-               autosave_timeout.start();
+               autosave_timeout->setTimeout(lyxrc.autosave * 1000);
+               autosave_timeout->start();
        }
 
        intl->InitKeyMapper(lyxrc.use_kbmap);
 }
 
 
-void XFormsView::setWindowTitle(string const & title)
+void XFormsView::setWindowTitle(string const & title, string const & icon_title)
 {
        fl_set_form_title(form_, title.c_str());
+       fl_winicontitle(form_->window, icon_title.c_str());
 }
 
 
@@ -230,7 +234,7 @@ void XFormsView::prohibitInput() const
        static Cursor cursor;
        static bool cursor_undefined = true;
    
-       if (cursor_undefined){
+       if (cursor_undefined) {
                cursor = XCreateFontCursor(fl_get_display(), XC_watch);
                XFlush(fl_get_display());
                cursor_undefined = false;