Skip to content
  • xan@webkit.org's avatar
    WebCore: · 0fad170a
    xan@webkit.org authored
    2009-05-13  Holger Hans Peter Freyther  <zecke@selfish.org>
    
            Reviewed by Xan Lopez.
    
            https://bugs.webkit.org/show_bug.cgi?id=25685
            [GTK] Middle click paste form the pasteboard
    
            The kit wants to paste from at least two different
            clipboards. By introducing getCurrentTarget to the
            PasteboardHelper interface we can make this decision
            in the kit.
            Use the new method in PasteboardGtk to get the right
            GdkClipboard for the paste operation.
    
            * platform/gtk/PasteboardGtk.cpp:
            (WebCore::Pasteboard::documentFragment):
            (WebCore::Pasteboard::plainText):
            * platform/gtk/PasteboardHelper.h:
    
    WebKit/gtk:
    
    2009-05-11  Holger Hans Peter Freyther  <zecke@selfish.org>
    
            Reviewed by Xan Lopez.
    
            https://bugs.webkit.org/show_bug.cgi?id=25685
            [GTK] Middle click paste form the pasteboard
    
            For paste from middle button (button==2) we want to use
            the GDK_PRIMARY_SELECTION. Implement the new getCurrentTarget
            method in PasteboardHelperGtk by asking the WebView which
            clipboard to use.
    
            * WebCoreSupport/PasteboardHelperGtk.cpp:
            (WebKit::PasteboardHelperGtk::getCurrentTarget):
            * WebCoreSupport/PasteboardHelperGtk.h:
            * webkit/webkitprivate.h:
            * webkit/webkitwebview.cpp:
            (webkit_web_view_button_press_event):
            (webkit_web_view_use_primary_for_paste):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0fad170a