]> git.lyx.org Git - lyx.git/blobdiff - src/insets/figinset.C
paragraph-spacing, redoparagraph in deleteemptyparagraphmechanism, got rid of some...
[lyx.git] / src / insets / figinset.C
index 979f144273461fad3b1f391318fd78e52d4dfee2..ac649e70ff67df9b989ed99cc016097a901f4b02 100644 (file)
@@ -58,6 +58,7 @@
 #include "support/lyxlib.h"
 #include "Painter.h"
 #include "font.h"
+#include "lyx_cb.h"
 
 using std::ostream;
 using std::istream;
@@ -75,9 +76,6 @@ extern FL_OBJECT * figinset_canvas;
 
 extern char ** environ; // is this only redundtant on linux systems? Lgb.
 
-extern void ProhibitInput();
-extern void AllowInput();
-
 static float const DEG2PI = 57.295779513;
 
 struct queue_element {
@@ -2066,7 +2064,7 @@ void InsetFig::BrowseFile()
 
        bool error = false;
        do {
-               ProhibitInput();
+               ProhibitInput(current_view);
                if (once) {
                        p = fileDlg.Select(_("EPS Figure"),
                                           current_figure_path,
@@ -2075,7 +2073,7 @@ void InsetFig::BrowseFile()
                        p = fileDlg.Select(_("EPS Figure"), buf,
                                           "*ps", string());
                }
-               AllowInput();
+               AllowInput(current_view);
 
                if (p.empty()) return;