]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetinfo.C
reformatting and remove using delc
[lyx.git] / src / insets / insetinfo.C
index 66c7712191bd146c36b49b96bb4fc2e071e33e7c..dfc580636b2e938266ae7904f79c91bedf317dbe 100644 (file)
@@ -82,12 +82,7 @@ void InsetInfo::draw(BufferView * bv, LyXFont const &,
                     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),
@@ -226,7 +221,8 @@ void InsetInfo::Edit(BufferView *bv, int, int, unsigned int)
        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;