]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gtk/GuiImplementation.C
make it compile again
[lyx.git] / src / frontends / gtk / GuiImplementation.C
index 056a67729648c5a0b7d0677ab6e5e246e9a52688..1e903216d8ba9411bdc8c963539b7d0a26f543f7 100644 (file)
@@ -9,17 +9,30 @@
  * Full author contact details are available in file CREDITS.
  */
 
+#include <config.h>
+
+// Too hard to make concept checks work with this file
+#ifdef _GLIBCXX_CONCEPT_CHECKS
+#undef _GLIBCXX_CONCEPT_CHECKS
+#endif
+#ifdef _GLIBCPP_CONCEPT_CHECKS
+#undef _GLIBCPP_CONCEPT_CHECKS
+#endif
+
 #include "GuiImplementation.h"
 
 #include "GView.h"
 #include "BufferView.h"
 
+// FIXME: defined in X.h, spuriously pulled in by some gui headers
+#undef CursorShape
+
 namespace lyx {
 namespace frontend {
 
 int GuiImplementation::newView(unsigned int /*w*/, unsigned int /*h*/)
 {
-       view_.reset(new GView(*this));
+       view_.reset(new GView);
        return 0;
 }
 
@@ -29,8 +42,6 @@ int GuiImplementation::newWorkArea(unsigned int w, unsigned int h, int /*view_id
        old_work_area_.reset(new GWorkArea(*view_.get(), w, h));
        old_screen_.reset(new GScreen(*old_work_area_.get()));
        work_area_.reset(new GuiWorkArea(old_screen_.get(), old_work_area_.get()));
-       clipboard_.reset(new GuiClipboard(old_work_area_.get()));
-       guiCursor().connect(work_area_.get());
 
        // FIXME BufferView creation should be independant of WorkArea creation
        buffer_views_[0].reset(new BufferView(view_.get()));
@@ -42,7 +53,6 @@ int GuiImplementation::newWorkArea(unsigned int w, unsigned int h, int /*view_id
 
 void GuiImplementation::destroyWorkArea(int /*id*/)
 {
-       clipboard_.reset();
        work_area_.reset();
        old_work_area_.reset();
        old_screen_.reset();