mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
GTK compile fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8524 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
af6712f963
commit
aa3ddafe96
@ -1,3 +1,13 @@
|
||||
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.
|
||||
|
@ -140,7 +140,7 @@ bool GMenubar::submenuDisabled(MenuItem const * item)
|
||||
{
|
||||
FuncStatus const flag =
|
||||
view_->getLyXFunc().getStatus(i->func());
|
||||
if (!flag.disabled())
|
||||
if (flag.enabled())
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
@ -206,7 +206,7 @@ void GMenubar::onSubMenuActivate(MenuItem const * item,
|
||||
item.signal_activate().connect(
|
||||
SigC::bind(SigC::slot(*this, &GMenubar::onCommandActivate),
|
||||
&(*i), &item));
|
||||
if (flag.disabled())
|
||||
if (!flag.enabled())
|
||||
item.set_sensitive(false);
|
||||
break;
|
||||
}
|
||||
|
@ -211,13 +211,13 @@ void GToolbar::update()
|
||||
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;
|
||||
|
@ -325,8 +325,6 @@ void lyx_gui::start(string const & batch, std::vector<string> const & files)
|
||||
view.show();
|
||||
view.init();
|
||||
|
||||
Buffer * last = 0;
|
||||
|
||||
// FIXME: some code below needs moving
|
||||
|
||||
lyxserver = new LyXServer(&view.getLyXFunc(), lyxrc.lyxpipes);
|
||||
@ -335,16 +333,8 @@ void lyx_gui::start(string const & batch, std::vector<string> const & files)
|
||||
|
||||
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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user