Changeset 42855 in webkit
- Timestamp:
- Apr 24, 2009 5:05:21 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r42854 r42855 1 2009-04-24 Sergio GarcÃa-Cuevas <sergio_gcg@telefonica.net> 2 3 Reviewed by Gustavo Noronha. 4 5 https://bugs.webkit.org/show_bug.cgi?id=17267 6 [GTK] Primary selection/clipboard support 7 8 Copy the link location to the primary selection as well as the 9 clipboard selection when using the "copy link selection" context 10 menu entry. 11 12 * platform/gtk/PasteboardGtk.cpp: 13 (WebCore::Pasteboard::writeURL): 14 * platform/gtk/PasteboardHelper.h: 15 1 16 2009-04-24 Eric Seidel <eric@webkit.org> 2 17 -
trunk/WebCore/platform/gtk/PasteboardGtk.cpp
r42199 r42855 121 121 122 122 GtkClipboard* clipboard = m_helper->getClipboard(frame); 123 GtkClipboard* primary = m_helper->getPrimary(frame); 123 124 gtk_clipboard_set_text(clipboard, url.string().utf8().data(), url.string().utf8().length()); 125 gtk_clipboard_set_text(primary, url.string().utf8().data(), url.string().utf8().length()); 124 126 } 125 127 -
trunk/WebCore/platform/gtk/PasteboardHelper.h
r29961 r42855 39 39 40 40 virtual GtkClipboard* getClipboard(Frame*) const = 0; 41 virtual GtkClipboard* getPrimary(Frame*) const = 0; 41 42 virtual GtkTargetList* getCopyTargetList(Frame*) const = 0; 42 43 virtual GtkTargetList* getPasteTargetList(Frame*) const = 0; -
trunk/WebKit/gtk/ChangeLog
r42837 r42855 1 2009-04-24 Sergio García-Cuevas <sergio_gcg@telefonica.net> 2 3 Reviewed by Gustavo Noronha. 4 5 https://bugs.webkit.org/show_bug.cgi?id=17267 6 [GTK] Primary selection/clipboard support 7 8 Add a method for getting the primary selection. 9 10 * WebCoreSupport/PasteboardHelperGtk.cpp: 11 (WebKit::PasteboardHelperGtk::getPrimary): 12 * WebCoreSupport/PasteboardHelperGtk.h: 13 1 14 2009-04-24 Johan Bilien <jobi@via.ecp.fr> 2 15 -
trunk/WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp
r36079 r42855 38 38 } 39 39 40 GtkClipboard* PasteboardHelperGtk::getPrimary(Frame* frame) const 41 { 42 WebKitWebView* webView = webkit_web_frame_get_web_view(kit(frame)); 43 return gtk_widget_get_clipboard(GTK_WIDGET (webView), 44 GDK_SELECTION_PRIMARY); 45 } 46 40 47 GtkTargetList* PasteboardHelperGtk::getCopyTargetList(Frame* frame) const { 41 48 WebKitWebView* webView = webkit_web_frame_get_web_view(kit(frame)); -
trunk/WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h
r29961 r42855 41 41 PasteboardHelperGtk() { } 42 42 virtual GtkClipboard* getClipboard(Frame*) const; 43 virtual GtkClipboard* getPrimary(Frame*) const; 43 44 virtual GtkTargetList* getCopyTargetList(Frame*) const; 44 45 virtual GtkTargetList* getPasteTargetList(Frame*) const;
Note: See TracChangeset
for help on using the changeset viewer.