summaryrefslogtreecommitdiff
path: root/riscos/window.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-10-04 23:54:42 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-10-04 23:54:42 +0000
commit403f12872d55a71b04287ed828be0c63be19e856 (patch)
tree190dbf327b98bb49831dc609f6c13bd828ded377 /riscos/window.c
parent7144ce65ebbc7b1cb77d1f6b678a6d2b3c6547d1 (diff)
downloadnetsurf-403f12872d55a71b04287ed828be0c63be19e856.tar.gz
netsurf-403f12872d55a71b04287ed828be0c63be19e856.tar.bz2
[project @ 2004-10-04 23:54:42 by rjw]
Moved GIF file reading to image/, optimisation of plotting for GIFs, JNGs, PNGs and JPEGs, initial work for toolbar customisation. Possibly some other things too. svn path=/import/netsurf/; revision=1301
Diffstat (limited to 'riscos/window.c')
-rw-r--r--riscos/window.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/riscos/window.c b/riscos/window.c
index 9f0c7dcf6..a1e9ff8bc 100644
--- a/riscos/window.c
+++ b/riscos/window.c
@@ -1064,10 +1064,17 @@ void ro_gui_toolbar_click(struct gui_window *g, wimp_pointer *pointer)
{
char url[80];
- /* Reject Menu clicks
+ /* Store the toolbar
*/
- if (pointer->buttons == wimp_CLICK_MENU)
+ current_toolbar = g->toolbar;
+
+ /* Handle Menu clicks
+ */
+ if (pointer->buttons == wimp_CLICK_MENU) {
+ ro_gui_create_menu(toolbar_menu, pointer->pos.x,
+ pointer->pos.y, g);
return;
+ }
/* Handle the buttons appropriately
*/