path: root/desktop
diff options
authorChris Young <>2010-07-24 16:39:37 +0000
committerChris Young <>2010-07-24 16:39:37 +0000
commit004aee8281895120f69bb83559278c17805584cd (patch)
tree01d99e47995846d4a3afaa28163f7ed01f890890 /desktop
parentd5b8cf89da0552129c9a88e93cbc25aab61ae25e (diff)
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
Diffstat (limited to 'desktop')
2 files changed, 3 insertions, 0 deletions
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);