From 33f1ba925a0e0062d54dcf81d0bfa50a14eafb48 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 5 Dec 2000 17:12:47 +0000 Subject: [PATCH] Use LyXLookup when xforms version < 0.89.5 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1258 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 10 ++++++++++ config/lyxinclude.m4 | 8 ++++---- src/LyXView.C | 4 ++-- src/WorkArea.C | 6 +++--- src/lyx_gui.C | 4 ++-- 5 files changed, 21 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index c9fab9c3b8..8554b5110b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2000-12-05 Jean-Marc Lasgouttes + + * config/lyxinclude.m4 (LYX_PATH_XFORMS): display also the + fixlevel along with xforms version. + + * src/WorkArea.C (work_area_handler): use stuff in lyxlookup.h when + xforms version is strictly less than 0.89.5. + * src/lyx_gui.C (LyXGUI): ditto. + * src/LyXView.C (show): ditto. + 2000-12-02 Dekel Tsur * src/BufferView_pimpl.C (workAreaMotionNotify): Fixed mouse diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index de99f8b4ef..5b156d0111 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -609,7 +609,7 @@ if test $ac_cv_header_forms_h = yes; then #if ! defined(FL_INCLUDE_VERSION) "%%%"(unknown)"%%%" #else -"%%%"FL_VERSION.FL_REVISION"%%%" +"%%%"FL_VERSION.FL_REVISION.FL_FIXLEVEL"%%%" #endif EOF lyx_cv_xfversion=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | \ @@ -617,12 +617,12 @@ lyx_cv_xfversion=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | \ sed -e 's/^"%%%"\(.*\)"%%%"/\1/' -e 's/ //g'` rm -f conftest*]) case "$lyx_cv_xfversion" in - "(unknown)"|0.8[1-7]) + "(unknown)"|0.8[1-7]*) LYX_ERROR(dnl Version $lyx_cv_xfversion of xforms is not compatible with LyX. This version of LyX works best with versions 0.88 (recommended) and later.) ;; - 0.88) ;; - 0.89) LYX_WARNING(dnl + 0.88*) ;; + 0.89*) LYX_WARNING(dnl LyX should work ok with version $lyx_cv_xfversion of xforms[,] but it is an unproven version and might still have some bugs. If you have problems[,] please use version 0.88 instead.) ;; diff --git a/src/LyXView.C b/src/LyXView.C index b50eedee81..c4fdd8c989 100644 --- a/src/LyXView.C +++ b/src/LyXView.C @@ -19,7 +19,7 @@ #include "LyXView.h" #include "lyx_main.h" -#if FL_REVISION < 89 +#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5) #include "lyxlookup.h" #endif #include "minibuffer.h" @@ -214,7 +214,7 @@ void LyXView::show(int place, int border, string const & title) { fl_show_form(form_, place, border, title.c_str()); minibuffer->Init(); -#if FL_REVISION < 89 +#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5) InitLyXLookup(fl_get_display(), form_->window); #endif } diff --git a/src/WorkArea.C b/src/WorkArea.C index 9cd39516a6..e4eb592b01 100644 --- a/src/WorkArea.C +++ b/src/WorkArea.C @@ -22,7 +22,7 @@ #include "LyXView.h" #include "lyxfunc.h" -#if FL_REVISION < 89 +#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5) #include "lyxlookup.h" #endif @@ -336,8 +336,8 @@ int WorkArea::work_area_handler(FL_OBJECT * ob, int event, KeySym keysym = 0; char dummy[1]; XKeyEvent * xke = reinterpret_cast(ev); -#if FL_REVISION < 89 - // XForms < 0.89 does not have compose support +#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5) + // XForms < 0.89.5 does not have compose support // so we are using our own compose support LyXLookupString(ev, dummy, 1, &keysym); #else diff --git a/src/lyx_gui.C b/src/lyx_gui.C index 6171fe7e91..ddff923cc3 100644 --- a/src/lyx_gui.C +++ b/src/lyx_gui.C @@ -35,7 +35,7 @@ #include "lyxrc.h" #include "gettext.h" #include "lyx_gui_misc.h" -#if FL_REVISION < 89 +#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5) #include "lyxlookup.h" #endif #include "bufferlist.h" @@ -167,7 +167,7 @@ LyXGUI::~LyXGUI() delete lyxserver; lyxserver = 0; delete lyxViews; -#if FL_REVISION < 89 +#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5) CloseLyXLookup(); #endif }