]> git.lyx.org Git - features.git/commitdiff
Remove figinset_canvas cruft.
authorAngus Leeming <leeming@lyx.org>
Wed, 13 Mar 2002 12:25:35 +0000 (12:25 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 13 Mar 2002 12:25:35 +0000 (12:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3741 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/WorkArea.C
src/WorkArea.h

index 6d9721a6029741606b400aeb1b3dc4b4600dd187..98a298caff0aa224c207e12ae5c0a72a1e23caad 100644 (file)
@@ -1,3 +1,7 @@
+2002-03-13  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * WorkArea.[Ch]: remove figinset_canvas cruft.
+
 2002-03-12  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * lyxtextclass.C (operator): add one item cache optimization.
index 792bad1d7f66ec32d34e49bea74daf2e9e381c4c..7b028ef122966cb1b47716aa94a61582c1f94193 100644 (file)
@@ -39,8 +39,6 @@ using std::endl;
 using std::abs;
 using std::hex;
 
-FL_OBJECT * figinset_canvas;
-
 namespace {
 
 inline
@@ -84,8 +82,6 @@ WorkArea::WorkArea(int xpos, int ypos, int width, int height)
 {
        fl_freeze_all_forms();
 
-       figinset_canvas = 0;
-
        if (lyxerr.debugging(Debug::WORKAREA))
                lyxerr << "Creating work area: +"
                       << xpos << '+' << ypos << ' '
@@ -94,14 +90,6 @@ WorkArea::WorkArea(int xpos, int ypos, int width, int height)
        FL_OBJECT * obj;
        int const bw = int(abs(fl_get_border_width()));
 
-       // We really want to get rid of figinset_canvas.
-       ::figinset_canvas = figinset_canvas = obj =
-                 fl_add_canvas(FL_NORMAL_CANVAS,
-                               xpos + 1, ypos + 1, 1, 1, "");
-       fl_set_object_boxtype(obj, FL_NO_BOX);
-       fl_set_object_resize(obj, FL_RESIZE_ALL);
-       fl_set_object_gravity(obj, NorthWestGravity, NorthWestGravity);
-
        // a box
        if (lyxerr.debugging(Debug::WORKAREA))
                lyxerr << "\tbackground box: +"
index eb1bf551ff0a1855a6d8ef1124381d81ece880ac..b0b22efcda749112a7d4420b807e0fe42f21d048 100644 (file)
@@ -151,8 +151,6 @@ private:
        Pixmap workareapixmap;
        ///
        Painter painter_;
-       ///
-       FL_OBJECT * figinset_canvas;
        /// if we call redraw with true needed for locking-insets
        bool screen_cleared;
 };