aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBrendan Taylor <whateley@gmail.com>2012-04-21 19:29:17 -0600
committerBrendan Taylor <whateley@gmail.com>2012-04-21 19:31:19 -0600
commit808561bb2a5f89a59cb354aea88f5363ef73c40f (patch)
treee6a221d5b15e6438f3655c1c5e5a93c1aea569d0
parent29d4d3b7952a687b4338ca69a6789739728d8df8 (diff)
remove special handling of the SELECTION_CHANGED event
fixes #296 (primary selection replaces content of clipboard) fixes slow insertion in some textareas (#295 ?)
-rw-r--r--src/callbacks.c11
-rw-r--r--src/callbacks.h3
-rw-r--r--src/uzbl-core.c1
3 files changed, 0 insertions, 15 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index 5b66905..eee9f69 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -95,17 +95,6 @@ load_error_cb (WebKitWebView* page, WebKitWebFrame* frame, gchar *uri, gpointer
}
void
-selection_changed_cb(WebKitWebView *webkitwebview, gpointer ud) {
- (void)ud;
- gchar *tmp;
-
- webkit_web_view_copy_clipboard(webkitwebview);
- tmp = gtk_clipboard_wait_for_text(gtk_clipboard_get (GDK_SELECTION_CLIPBOARD));
- send_event(SELECTION_CHANGED, NULL, TYPE_STR, tmp ? tmp : "", NULL);
- g_free(tmp);
-}
-
-void
destroy_cb (GtkWidget* widget, gpointer data) {
(void) widget;
(void) data;
diff --git a/src/callbacks.h b/src/callbacks.h
index e9240b5..6a10205 100644
--- a/src/callbacks.h
+++ b/src/callbacks.h
@@ -19,9 +19,6 @@ gboolean
load_error_cb (WebKitWebView* page, WebKitWebFrame* frame, gchar *uri, gpointer web_err, gpointer ud);
void
-selection_changed_cb(WebKitWebView *webkitwebview, gpointer ud);
-
-void
destroy_cb (GtkWidget* widget, gpointer data);
gboolean
diff --git a/src/uzbl-core.c b/src/uzbl-core.c
index 770d832..9db034a 100644
--- a/src/uzbl-core.c
+++ b/src/uzbl-core.c
@@ -771,7 +771,6 @@ create_scrolled_win() {
"signal::button-release-event", (GCallback)button_release_cb, NULL,
"signal::motion-notify-event", (GCallback)motion_notify_cb, NULL,
"signal::notify::title", (GCallback)title_change_cb, NULL,
- "signal::selection-changed", (GCallback)selection_changed_cb, NULL,
"signal::notify::progress", (GCallback)progress_change_cb, NULL,
"signal::notify::load-status", (GCallback)load_status_change_cb, NULL,
"signal::notify::uri", (GCallback)uri_change_cb, NULL,