]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gtk/GWorkArea.C
make it compile again
[lyx.git] / src / frontends / gtk / GWorkArea.C
index f85330beea8bd2b9a43c536d81ad80df00d1c4b8..9b4e3585fbe2d00fcd1b4607e2101c5348414422 100644 (file)
@@ -28,6 +28,8 @@
 #include "funcrequest.h"
 #include "LColor.h"
 #include "WorkArea.h"
+#include "Gui.h"
+#include "Selection.h"
 
 using boost::shared_ptr;
 
@@ -491,34 +493,5 @@ bool GWorkArea::onKeyPress(GdkEventKey * event)
        return true;
 }
 
-
-void GWorkArea::onClipboardGet(Gtk::SelectionData & /*selection_data*/,
-                              guint /*info*/)
-{
-       view_.view()->selectionRequested();
-}
-
-
-void GWorkArea::onClipboardClear()
-{
-//     selectionLost();
-}
-
-
-void GWorkArea::haveSelection(bool toHave)
-{
-       if (toHave) {
-               Glib::RefPtr<Gtk::Clipboard> clipboard =
-                       Gtk::Clipboard::get(GDK_SELECTION_PRIMARY);
-               std::vector<Gtk::TargetEntry> listTargets;
-               listTargets.push_back(Gtk::TargetEntry("UTF8_STRING"));
-               clipboard->set(listTargets,
-                              sigc::mem_fun(const_cast<GWorkArea&>(*this),
-                                         &GWorkArea::onClipboardGet),
-                              sigc::mem_fun(const_cast<GWorkArea&>(*this),
-                                         &GWorkArea::onClipboardClear));
-       }
-}
-
 } // namespace frontend
 } // namespace lyx