add Dialogs to constructor arg

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4521 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2002-07-03 11:01:29 +00:00
parent a78c4b15ff
commit 1bb756581b
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-07-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
* Tooltips.C (Tooltips): add Dialogs to constructor arg.
2002-07-01 Angus Leeming <leeming@lyx.org>
* forma/Makefile.am: keep "make clean" consistent with Kayvan's fix.

View File

@ -115,13 +115,13 @@ static void C_TooltipTimerCB(FL_OBJECT * ob, long data)
}
Tooltips::Tooltips()
Tooltips::Tooltips(Dialogs & d)
: tooltip_timer_(0)
{
static bool first = true;
if (first) {
first = false;
Dialogs::toggleTooltips.connect(boost::bind(&Tooltips::toggleEnabled));
d.toggleTooltips.connect(boost::bind(&Tooltips::toggleEnabled));
}
toggled.connect(boost::bind(&Tooltips::set, this));
}