mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Remove figinset_canvas cruft.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3741 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ff6f729817
commit
ad6d9e444b
@ -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>
|
2002-03-12 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||||
|
|
||||||
* lyxtextclass.C (operator): add one item cache optimization.
|
* lyxtextclass.C (operator): add one item cache optimization.
|
||||||
|
@ -39,8 +39,6 @@ using std::endl;
|
|||||||
using std::abs;
|
using std::abs;
|
||||||
using std::hex;
|
using std::hex;
|
||||||
|
|
||||||
FL_OBJECT * figinset_canvas;
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
inline
|
inline
|
||||||
@ -84,8 +82,6 @@ WorkArea::WorkArea(int xpos, int ypos, int width, int height)
|
|||||||
{
|
{
|
||||||
fl_freeze_all_forms();
|
fl_freeze_all_forms();
|
||||||
|
|
||||||
figinset_canvas = 0;
|
|
||||||
|
|
||||||
if (lyxerr.debugging(Debug::WORKAREA))
|
if (lyxerr.debugging(Debug::WORKAREA))
|
||||||
lyxerr << "Creating work area: +"
|
lyxerr << "Creating work area: +"
|
||||||
<< xpos << '+' << ypos << ' '
|
<< xpos << '+' << ypos << ' '
|
||||||
@ -94,14 +90,6 @@ WorkArea::WorkArea(int xpos, int ypos, int width, int height)
|
|||||||
FL_OBJECT * obj;
|
FL_OBJECT * obj;
|
||||||
int const bw = int(abs(fl_get_border_width()));
|
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
|
// a box
|
||||||
if (lyxerr.debugging(Debug::WORKAREA))
|
if (lyxerr.debugging(Debug::WORKAREA))
|
||||||
lyxerr << "\tbackground box: +"
|
lyxerr << "\tbackground box: +"
|
||||||
|
@ -151,8 +151,6 @@ private:
|
|||||||
Pixmap workareapixmap;
|
Pixmap workareapixmap;
|
||||||
///
|
///
|
||||||
Painter painter_;
|
Painter painter_;
|
||||||
///
|
|
||||||
FL_OBJECT * figinset_canvas;
|
|
||||||
/// if we call redraw with true needed for locking-insets
|
/// if we call redraw with true needed for locking-insets
|
||||||
bool screen_cleared;
|
bool screen_cleared;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user