// Make sure the buttons are disabled if needed.
toolbar->update();
+ menubar->update();
dialogs_ = new Dialogs(this);
// temporary until all dialogs moved into Dialogs.
void LyXView::updateToolbar()
{
toolbar->update();
+ menubar->update();
}
// Wrapper for the above
-extern "C" int C_LyXView_atCloseMainFormCB(FL_FORM * form, void * p)
+extern "C"
+int C_LyXView_atCloseMainFormCB(FL_FORM * form, void * p)
{
return LyXView::atCloseMainFormCB(form, p);
}
}
+#if 0
extern "C"
int C_LyXView_KeyPressMask_raw_callback(FL_FORM * fl, void * xev);
+#endif
+
void LyXView::init()
{
autosave_timeout.setTimeout(lyxrc.autosave * 1000);
autosave_timeout.start();
}
-
+
+#if 0
// Install the raw callback for keyboard events
fl_register_raw_callback(form_,
KeyPressMask,
C_LyXView_KeyPressMask_raw_callback);
+#endif
intl->InitKeyMapper(lyxrc.use_kbmap);
}
}
+#if 0
// This is necessary, since FL_FREE-Objects doesn't get all keypress events
// as FL_KEYBOARD events :-( Matthias 280596
int LyXView::KeyPressMask_raw_callback(FL_FORM * fl, void * xev)
// last_time_pressed is 0, that sinifies an autoreapeat
// at least on my system. It like some feedback from
// others, especially from user running LyX remote.
- //lyxerr << "Syncing - purging X events." << endl;
+ lyxerr[Debug::KEY] << "Syncing - purging X events." << endl;
XSync(fl_get_display(), 1);
// This purge make f.ex. scrolling stop imidiatly when
// releaseing the PageDown button. The question is if this
{
return LyXView::KeyPressMask_raw_callback(fl, xev);
}
+#endif
// Updates the title of the window with the filename of the current document
{
getMiniBuffer()->Set(CurrentState(view()));
getToolbar()->update();
+ menubar->update();
}