]> git.lyx.org Git - features.git/blobdiff - src/menus.C
read ChangeLog, a lot of whitespace changes. experimental use of libtool
[features.git] / src / menus.C
index 0d1252ffa35d6c4ba4845ecbf1b6c20efcc44da6..33b6fb23cf6af8d5077d041153dab9be7b6026e6 100644 (file)
@@ -135,7 +135,7 @@ Menus::Menus(LyXView * view, int air)
 
 inline BufferView * Menus::currentView() 
 {
-       return _view->currentView(); 
+       return _view->view(); 
 }
 
 
@@ -1017,9 +1017,9 @@ void Menus::ShowEditMenu(FL_OBJECT * ob, long)
        fl_setpup_shortcut(EditMenu, 17, scex(_("EM|gG#g#G")));
       
        // disable unavailable entries.
-       if(tmpbuffer->undostack.Top() == 0)
+       if(tmpbuffer->undostack.empty())
                fl_setpup_mode(EditMenu, 1, FL_PUP_GREY);
-       if(tmpbuffer->redostack.Top() == 0)
+       if(tmpbuffer->redostack.empty())
                fl_setpup_mode(EditMenu, 2, FL_PUP_GREY);
        if(lyxrc->isp_command == "none") 
                fl_setpup_mode(EditMenu, 11, FL_PUP_GREY);