From 80a04f5d038e7b5f9ec83454a962f060975daa1b Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 14 Mar 2002 14:03:54 +0000 Subject: [PATCH] gnome compilation fixes from Michael git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3753 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 5 +++++ configure.in | 6 ++++-- src/frontends/gnome/ChangeLog | 7 +++++++ src/frontends/gnome/Timeout_pimpl.C | 9 ++++++++- src/frontends/gnome/Timeout_pimpl.h | 7 ++++++- 5 files changed, 30 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f0b34219f3..55508bdf7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-03-14 Michael A. Koziarski + + * configure.in: First stage of fixing the gnome compile problems. + Linking problems to be fixed next. + 2002-03-12 Jean-Marc Lasgouttes * README: add bulgarian diff --git a/configure.in b/configure.in index 12a37668a9..e71df0564c 100644 --- a/configure.in +++ b/configure.in @@ -198,6 +198,8 @@ case "$lyx_use_frontend" in ` ;; gnome) + LYX_PATH_XPM + LYX_PATH_XFORMS AM_PATH_GTKMM(1.2.1,, AC_MSG_ERROR(Cannot find GTK--: Please install Version 1.2.1+)) AM_PATH_GNOMEMM @@ -217,8 +219,8 @@ dnl Ensure gnome-config is available... FRONTEND="xforms gnome" FRONTEND_GUILIB="gnome/*.lo" FRONTEND_LDFLAGS="\$(GNOMEMM_LIBDIR)" - FRONTEND_INCLUDES="-I\${srcdir}/gnome \$(GNOMEMM_INCLUDEDIR) \$(GTKMM_CFLAGS) `gnome-config --cflags libglade gnomeui`" - FRONTEND_LIBS="\$(GNOMEMM_LIBS) \$(GTKMM_LIBS) `gnome-config --libs libglade gnomeui`";; + FRONTEND_INCLUDES="-I\${srcdir}/gnome -I\${srcdir}/xforms \$(GNOMEMM_INCLUDEDIR) \$(GTKMM_CFLAGS) `gnome-config --cflags libglade gnomeui`" + FRONTEND_LIBS="@XPM_LIB@ @XFORMS_LIB@ \$(GNOMEMM_LIBS) \$(GTKMM_LIBS) `gnome-config --libs libglade gnomeui`";; qt2) LYX_PATH_XPM LYX_PATH_XFORMS diff --git a/src/frontends/gnome/ChangeLog b/src/frontends/gnome/ChangeLog index c115f1cbba..10fd6b6d2e 100644 --- a/src/frontends/gnome/ChangeLog +++ b/src/frontends/gnome/ChangeLog @@ -1,3 +1,10 @@ +2002-03-14 Michael A. Koziarski + + * Timeout_pimpl.C + * Timeout_pimpl.h: implemented running to fix compilation, linking + fix still to come + + 2002-03-11 Lars Gullik Bjønnes * docygen fixes. diff --git a/src/frontends/gnome/Timeout_pimpl.C b/src/frontends/gnome/Timeout_pimpl.C index 808976e5d9..97dba44e76 100644 --- a/src/frontends/gnome/Timeout_pimpl.C +++ b/src/frontends/gnome/Timeout_pimpl.C @@ -4,6 +4,7 @@ * Read COPYING * * \author Baruch Even + * \author Michael Koziarski */ #include @@ -28,7 +29,11 @@ void Timeout::Pimpl::reset() stop(); } - +bool Timeout::Pimpl::running() const +{ + return running_; +} + void Timeout::Pimpl::start() { if (conn_.connected()) { @@ -40,12 +45,14 @@ void Timeout::Pimpl::start() SigC::slot(this, &Timeout::Pimpl::timeoutEvent), owner_->timeout_ms ); + running_ = true; } void Timeout::Pimpl::stop() { conn_.disconnect(); + running_ = false; } diff --git a/src/frontends/gnome/Timeout_pimpl.h b/src/frontends/gnome/Timeout_pimpl.h index f5bfd0a09c..edd9a69001 100644 --- a/src/frontends/gnome/Timeout_pimpl.h +++ b/src/frontends/gnome/Timeout_pimpl.h @@ -31,7 +31,10 @@ public: /// stop the timer void stop(); /// reset - void reset(); + void reset(); + /// Is the timer running? + bool running() const; + public: /// The timeout signal, this gets called when the timeout passed. @@ -41,6 +44,8 @@ private: Timeout * owner_; /// Timer connection SigC::Connection conn_; + /// Used for running as SigC::Connection::connected() isn't const + bool running_; }; #endif -- 2.39.2