summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-01-08 16:53:00 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-01-08 16:53:00 +0000
commit147f2bd08aa48ba6a4f945e28db05b378ab85a13 (patch)
tree9ae20fa597b84409ee9dd4ff4c702f814cf99d39
parente93fae7f2d9fdcc4ddf2a4db936cbd0dd33de20c (diff)
downloadnetsurf-147f2bd08aa48ba6a4f945e28db05b378ab85a13.tar.gz
netsurf-147f2bd08aa48ba6a4f945e28db05b378ab85a13.tar.bz2
Remove content_msg for PASTE, since it doesn't need a gui_window to get the buffer from the front end now.
-rw-r--r--content/content.h3
-rw-r--r--desktop/browser.c6
-rw-r--r--render/html.c1
3 files changed, 1 insertions, 9 deletions
diff --git a/content/content.h b/content/content.h
index 649f54dfa..7781ba9b8 100644
--- a/content/content.h
+++ b/content/content.h
@@ -78,8 +78,7 @@ typedef enum {
CONTENT_MSG_SCROLL, /**< Request to scroll content */
CONTENT_MSG_DRAGSAVE, /**< Allow drag saving of content */
CONTENT_MSG_SAVELINK, /**< Allow URL to be saved */
- CONTENT_MSG_POINTER, /**< Wants a specific mouse pointer set */
- CONTENT_MSG_PASTE /**< Inform that content wants clipboard paste */
+ CONTENT_MSG_POINTER /**< Wants a specific mouse pointer set */
} content_msg;
/** RFC5988 metadata link */
diff --git a/desktop/browser.c b/desktop/browser.c
index 6262f2453..6a1688192 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -1545,12 +1545,6 @@ nserror browser_window_callback(hlcache_handle *c,
browser_window_set_pointer(bw, event->data.pointer);
break;
- case CONTENT_MSG_PASTE:
- /* Content wants a clipboard paste */
- gui_paste_from_clipboard(bw->window,
- event->data.paste.x, event->data.paste.y);
- break;
-
default:
assert(0);
}
diff --git a/render/html.c b/render/html.c
index 19ea5a9d0..3e26928fd 100644
--- a/render/html.c
+++ b/render/html.c
@@ -1302,7 +1302,6 @@ html_object_callback(hlcache_handle *object,
case CONTENT_MSG_SAVELINK:
case CONTENT_MSG_POINTER:
- case CONTENT_MSG_PASTE:
/* These messages are for browser window layer.
* we're not interested, so pass them on. */
content_broadcast(&c->base, event->type, event->data);