summaryrefslogtreecommitdiff
path: root/riscos/textselection.c
diff options
context:
space:
mode:
authorSteve Fryatt <steve@stevefryatt.org.uk>2011-02-20 23:16:33 +0000
committerSteve Fryatt <steve@stevefryatt.org.uk>2011-02-20 23:16:33 +0000
commitcd9c0998e9849472473e577c4c04906e380896e1 (patch)
tree9bef19ebd3d56eccd03fa5613f1506c82762584b /riscos/textselection.c
parentf54fc080c2a96ffdb713a9c8b5d0ccb604197c07 (diff)
downloadnetsurf-cd9c0998e9849472473e577c4c04906e380896e1.tar.gz
netsurf-cd9c0998e9849472473e577c4c04906e380896e1.tar.bz2
Merge branches/stevef/toolbars to trunk.
svn path=/trunk/netsurf/; revision=11741
Diffstat (limited to 'riscos/textselection.c')
-rw-r--r--riscos/textselection.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/riscos/textselection.c b/riscos/textselection.c
index 07a87e50b..1f3809f50 100644
--- a/riscos/textselection.c
+++ b/riscos/textselection.c
@@ -30,6 +30,7 @@
#include "desktop/selection.h"
#include "desktop/textinput.h"
#include "riscos/gui.h"
+#include "riscos/menus.h"
#include "riscos/message.h"
#include "riscos/save.h"
#include "riscos/textselection.h"
@@ -260,6 +261,8 @@ bool gui_empty_clipboard(void)
void gui_clear_selection(struct gui_window *g)
{
+ /* Refresh any open menu, in case it's the browser window menu. */
+ ro_gui_menu_refresh(0);
}
@@ -566,7 +569,7 @@ void ro_gui_selection_dragging(wimp_message *message)
bw = g->bw;
h = bw->current_content;
- if (h && content_get_type(h) == CONTENT_HTML &&
+ if (h && content_get_type(h) == CONTENT_HTML &&
html_get_box_tree(h)) {
struct box *box = html_get_box_tree(h);