int baseline, float & x, bool) const
{
Painter & pain = bv->painter();
-#if 0
- LyXFont font(f);
-
- // Info-insets are never LaTeX, so just correct the font
- font.setLatex(LyXFont::OFF).setColor(LColor::note);
-#endif
+
// Draw as "Note" in a yellow box
x += 1;
pain.fillRectangle(int(x), baseline - ascent(bv, labelfont),
InsetInfo * inset = static_cast<InsetInfo*>(ob->u_vdata);
string tmp = fl_get_input(inset->strobj);
Buffer * buffer = current_view->buffer();
- if(tmp != inset->contents && !(buffer->isReadonly()) ) {
+ if (tmp != inset->contents && !(buffer->isReadonly())) {
buffer->markDirty();
inset->contents = tmp;
}
{
static int ow = -1, oh;
- if(bv->buffer()->isReadonly())
+ if (bv->buffer()->isReadonly())
WarnReadonly(bv->buffer()->fileName());
if (!form) {
if (form->visible) {
fl_raise_form(form);
} else {
- fl_show_form(form, FL_PLACE_MOUSE | FL_FREE_SIZE, FL_FULLBORDER,
+ fl_show_form(form,
+ FL_PLACE_MOUSE | FL_FREE_SIZE, FL_TRANSIENT,
_("Note"));
if (ow < 0) {
ow = form->w;