+2004-03-24 Angus Leeming <leeming@lyx.org>
+
+ * GMenubar.C (submenuDisabled, onSubMenuActivate): compile fixes
+ due to the changes in FuncStatus.
+
+ * GToolbar.C (update): ditto.
+
+ * lyx_gui.C (start): remove code to order buffers as it no longer
+ compiles and none of the other frontends do this anymore.
+
2004-03-17 Angus Leeming <leeming@lyx.org>
* Makefile.am: remove mention of the forks dialog.
{
FuncStatus const flag =
view_->getLyXFunc().getStatus(i->func());
- if (!flag.disabled())
+ if (flag.enabled())
return false;
break;
}
item.signal_activate().connect(
SigC::bind(SigC::slot(*this, &GMenubar::onCommandActivate),
&(*i), &item));
- if (flag.disabled())
+ if (!flag.enabled())
item.set_sensitive(false);
break;
}
if (item->first.action == ToolbarBackend::LAYOUTS) {
LyXFunc const & lf = view_->getLyXFunc();
bool const sensitive =
- !lf.getStatus(FuncRequest(LFUN_LAYOUT)).disabled();
+ lf.getStatus(FuncRequest(LFUN_LAYOUT)).enabled();
widget->set_sensitive(sensitive);
continue;
}
FuncStatus const status = view_->
getLyXFunc().getStatus(item->first);
- bool sensitive = !status.disabled();
+ bool sensitive = status.enabled();
widget->set_sensitive(sensitive);
if (it->get_type() != Gtk::TOOLBAR_CHILD_BUTTON)
return;
view.show();
view.init();
- Buffer * last = 0;
-
// FIXME: some code below needs moving
lyxserver = new LyXServer(&view.getLyXFunc(), lyxrc.lyxpipes);
std::vector<string>::const_iterator cit = files.begin();
std::vector<string>::const_iterator end = files.end();
- for (; cit != end; ++cit) {
- Buffer * b = bufferlist.newBuffer(*cit);
- if (loadLyXFile(b, *cit))
- last = b;
- }
-
- // switch to the last buffer successfully loaded
- if (last) {
- view.view()->buffer(last);
- }
+ for (; cit != end; ++cit)
+ view.view()->loadLyXFile(*cit, true);
// handle the batch commands the user asked for
if (!batch.empty()) {