I've attached a patch for WebCore/page/gtk/
EventHandlerGtk.cpp which fix build problem with DRAG_SUPPORT set to 0

just add some "#if ENABLE(DRAG_SUPPORT)"  to match header file.

regards.
diff -Naur webkit-1.1.16.orig/WebCore/page/gtk/EventHandlerGtk.cpp webkit-1.1.16/WebCore/page/gtk/EventHandlerGtk.cpp
--- webkit-1.1.16.orig/WebCore/page/gtk/EventHandlerGtk.cpp	2009-10-27 00:35:24.000000000 +0800
+++ webkit-1.1.16/WebCore/page/gtk/EventHandlerGtk.cpp	2009-10-28 14:04:46.821427000 +0800
@@ -42,7 +42,9 @@
 
 namespace WebCore {
 
-const double EventHandler::TextDragDelay = 0.0;
+#if ENABLE(DRAG_SUPPORT)
+    const double EventHandler::TextDragDelay = 0.0;
+#endif // ENABLE(DRAG_SUPPORT)
 
 bool EventHandler::tabsToAllControls(KeyboardEvent* event) const
 {
@@ -93,11 +95,12 @@
 
     return static_cast<FrameView*>(widget)->frame()->eventHandler()->handleWheelEvent(event);
 }
-
+#if ENABLE(DRAG_SUPPORT)
 PassRefPtr<Clipboard> EventHandler::createDraggingClipboard() const
 {
     return ClipboardGtk::create(ClipboardWritable, true);
 }
+#endif // ENABLE(DRAG_SUPPORT)
 
 bool EventHandler::passMousePressEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe)
 {
_______________________________________________
webkit-gtk mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-gtk

Reply via email to