Undo the Primary Clipboard hack, WebKit has it now
This commit is contained in:
parent
5eb74b6bf3
commit
ba681359f5
1 changed files with 0 additions and 19 deletions
|
@ -1228,23 +1228,6 @@ gtk_widget_button_press_event_cb (WebKitWebView* web_view,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gtk_widget_button_release_event_cb (WebKitWebView* web_view,
|
||||
GdkEventButton* event,
|
||||
MidoriView* view)
|
||||
{
|
||||
GtkClipboard* clipboard;
|
||||
gchar* text;
|
||||
|
||||
/* Emulate the primary clipboard, which WebKit doesn't support */
|
||||
text = webkit_web_view_get_selected_text (WEBKIT_WEB_VIEW (web_view));
|
||||
clipboard = gtk_clipboard_get_for_display (
|
||||
gtk_widget_get_display (GTK_WIDGET (web_view)), GDK_SELECTION_PRIMARY);
|
||||
gtk_clipboard_set_text (clipboard, text, -1);
|
||||
g_free (text);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gtk_widget_scroll_event_cb (WebKitWebView* web_view,
|
||||
GdkEventScroll* event,
|
||||
|
@ -1505,8 +1488,6 @@ midori_view_realize (MidoriView* view)
|
|||
webkit_web_view_hovering_over_link_cb, view,
|
||||
"signal::button-press-event",
|
||||
gtk_widget_button_press_event_cb, view,
|
||||
"signal::button-release-event",
|
||||
gtk_widget_button_release_event_cb, view,
|
||||
"signal::scroll-event",
|
||||
gtk_widget_scroll_event_cb, view,
|
||||
"signal::populate-popup",
|
||||
|
|
Loading…
Reference in a new issue