From 6aee235af7b391a6ddf6d2520d5f60ecfab73258 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 16 Aug 2002 17:33:23 +0000 Subject: [PATCH] Compilation fix for old and crappy versions of the xforms library. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5017 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 5 +++++ src/frontends/xforms/Tooltips.C | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 657de55406..9b97b23de0 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,8 @@ +2002-08-16 Angus Leeming + + * Tooltips.C (c-tor): don't forget the "#ifdef crap xforms" code next + time, old boy. + 2002-08-16 Michael Schmitt * FormRef.C (update): Synchronise the buffer choice and the list of diff --git a/src/frontends/xforms/Tooltips.C b/src/frontends/xforms/Tooltips.C index 3627883b7a..f2f9a568d2 100644 --- a/src/frontends/xforms/Tooltips.C +++ b/src/frontends/xforms/Tooltips.C @@ -109,14 +109,9 @@ static void C_TooltipTimerCB(FL_OBJECT * ob, long data) } -Tooltips::Tooltips(Dialogs & d) +Tooltips::Tooltips() : tooltip_timer_(0) { - static bool first = true; - if (first) { - first = false; - d.toggleTooltips.connect(boost::bind(&Tooltips::toggleEnabled)); - } toggled.connect(boost::bind(&Tooltips::set, this)); }