John's small fixes to qt2 and xforms + his elegant replacement to FL_TRANSIENT

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1612 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2001-02-23 16:19:54 +00:00
parent 02f23c0f37
commit 2e279fe9c7
5 changed files with 27 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2001-02-16 John Levon <moz@compsoc.man.ac.uk>
* FormParagraph.C: fix bview->update()
2001-01-24 Edwin Leuven <leuven@fee.uva.nl>
*FormParagraph.C:

View File

@ -171,7 +171,11 @@ void FormParagraph::apply()
dialog_->getHfillBetween(),
dialog_->getStartNewMinipage());
lv_->view()->update(BufferView::SELECT | BufferView::FITCUR | BufferView::CHANGE);
lv_->view()->update(lv_->view()->text,
BufferView::SELECT |
BufferView::FITCUR |
BufferView::CHANGE);
lv_->buffer()->markDirty();
setMinibuffer(lv_, _("Paragraph layout set"));
}

View File

@ -1,3 +1,10 @@
2001-02-23 John Levon <moz@compsoc.man.ac.uk>
* FormBase.C: no longer transient dialogs, XMapWindow()
in attempt to de-iconify
* FormDocument.C: remove DO_USE_DEFAULT_LANGUAGE
2001-02-21 Dekel Tsur <dekelts@tau.ac.il>
* FormDocument.C (checkMarginValues): Activate "use geometry" button

View File

@ -99,13 +99,21 @@ void FormBase::show()
if (form()->visible) {
fl_raise_form(form());
/* This XMapWindow() will hopefully ensure that
* iconified dialogs are de-iconified. Mad props
* out to those crazy Xlib guys for forgetting a
* XDeiconifyWindow(). At least WindowMaker, when
* being notified of the redirected MapRequest will
* specifically de-iconify. From source, fvwm2 seems
* to do the same.
*/
XMapWindow(fl_get_display(), form()->window);
} else {
// calls to fl_set_form_minsize/maxsize apply only to the next
// fl_show_form(), so connect() comes first.
connect();
fl_show_form(form(),
FL_PLACE_MOUSE | FL_FREE_SIZE,
FL_TRANSIENT,
FL_PLACE_MOUSE | FL_FREE_SIZE, 0,
title.c_str());
}
}

View File

@ -223,10 +223,7 @@ void FormDocument::build()
combo_language->shortcut("#L",1);
combo_language->setcallback(ComboInputCB, this);
fl_end_form();
// "default" is not part of the languages array any more.
#ifdef DO_USE_DEFAULT_LANGUAGE
combo_language->addto("default");
#endif
for (Languages::const_iterator cit = languages.begin();
cit != languages.end(); ++cit) {
combo_language->addto((*cit).second.lang());