]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetinfo.C
prepare for 1.1.6pre2
[lyx.git] / src / insets / insetinfo.C
index ae77a9b5cea8f457b01b67b759a5bdf6e426e607..da55067adfffd9a09d4d64fd4ecd3ee50a003eca 100644 (file)
@@ -173,7 +173,7 @@ void InsetInfo::CloseInfoCB(FL_OBJECT * ob, long)
        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;
        }
@@ -203,7 +203,7 @@ void InsetInfo::Edit(BufferView *bv, int, int, unsigned int)
 {
        static int ow = -1, oh;
 
-       if(bv->buffer()->isReadonly())
+       if (bv->buffer()->isReadonly())
                WarnReadonly(bv->buffer()->fileName());
        
        if (!form) {
@@ -226,7 +226,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;
@@ -237,7 +238,7 @@ void InsetInfo::Edit(BufferView *bv, int, int, unsigned int)
 }
 
 
-Inset * InsetInfo::Clone() const
+Inset * InsetInfo::Clone(Buffer const &) const
 {
        return new InsetInfo(contents);
 }