compile fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14461 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-07-15 11:39:58 +00:00
parent c77d599622
commit 5ddabc82ac

View File

@ -159,7 +159,9 @@ bool GView::onFocusIn(GdkEventFocus * /*event*/)
void GView::prohibitInput() const
{
workArea()->hideCursor();
// FIXME: Why is prohibitInput const?
// FIXME: hideCursor is protected
//const_cast<GView*>(this)->workArea()->hideCursor();
const_cast<GView*>(this)->set_sensitive(false);
}
@ -190,8 +192,10 @@ void GView::setWindowTitle(string const & t, string const & /*it*/)
void GView::busy(bool yes) const
{
if (yes ) {
workArea()->hideCursor();
// FIXME: Why is busy const?
if (yes) {
// FIXME: hideCursor is protected
//const_cast<GView*>(this)->workArea()->hideCursor();
Gdk::Cursor cursor(Gdk::WATCH);
const_cast<GView *>(this)->get_window()->set_cursor(cursor);
const_cast<GView *>(this)->set_sensitive(false);