[Webkit-unassigned] [Bug 27028] [gtk] Pasteboard/GtkClipboard can't handle the "text/html" target.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 7 09:15:28 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27028





--- Comment #4 from Jiahua Huang <jhuangjiahua at gmail.com>  2009-07-07 09:15:28 PDT ---
(In reply to comment #3)
> Maybe we can remove this altogether by grabbing the target infos via m_helper?

How about it:
> Index: WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp
> ===================================================================
> --- WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp	(revision 45595)
> +++ WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp	(working copy)
> @@ -57,8 +57,10 @@ GtkClipboard* PasteboardHelperGtk::getPr
>  
>  GtkTargetList* PasteboardHelperGtk::getCopyTargetList(Frame* frame) const
>  {
> -    WebKitWebView* webView = webkit_web_frame_get_web_view(kit(frame));
> -    return webkit_web_view_get_copy_target_list(webView);
> +    GtkTargetList* target_list = gtk_target_list_new(NULL, 0);
> +    gtk_target_list_add(target_list, gdk_atom_intern_static_string("text/html"), 0, WEBKIT_WEB_VIEW_TARGET_INFO_HTML);
> +    gtk_target_list_add_text_targets(target_list, WEBKIT_WEB_VIEW_TARGET_INFO_TEXT);    
> +    return target_list;
>  }
>  
>  GtkTargetList* PasteboardHelperGtk::getPasteTargetList(Frame* frame) const

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list