From 004aee8281895120f69bb83559278c17805584cd Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 24 Jul 2010 16:39:37 +0000 Subject: Amiga: Add "cut" option; make cut/copy/paste menus context sensitive; allow dragging selections within NetSurf window to text fields (does not work across windows). todo: switching tabs will reset cut/copy/paste menus to initial state; cut option is putting something on the clipboard which causes a crash when pasting it back svn path=/trunk/netsurf/; revision=10660 --- desktop/gui.h | 1 + desktop/selection.c | 2 ++ 2 files changed, 3 insertions(+) (limited to 'desktop') diff --git a/desktop/gui.h b/desktop/gui.h index ba5912ae7..abfb413cc 100644 --- a/desktop/gui.h +++ b/desktop/gui.h @@ -117,6 +117,7 @@ void gui_drag_save_object(gui_save_type type, hlcache_handle *c, struct gui_window *g); void gui_drag_save_selection(struct selection *s, struct gui_window *g); void gui_start_selection(struct gui_window *g); +void gui_clear_selection(struct gui_window *g); void gui_paste_from_clipboard(struct gui_window *g, int x, int y); bool gui_empty_clipboard(void); diff --git a/desktop/selection.c b/desktop/selection.c index dc66fef91..5962a8f36 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -703,6 +703,8 @@ void selection_clear(struct selection *s, bool redraw) s->start_idx = 0; s->end_idx = 0; + gui_clear_selection(s->bw->window); + if (redraw && was_defined) selection_redraw(s, old_start, old_end); } -- cgit v1.2.3