summaryrefslogtreecommitdiff
path: root/riscos/gui.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-07-04 18:44:51 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-07-04 18:44:51 +0000
commit5db1eae529dca654aa4591371918a07954824edb (patch)
tree14bb1326616c9209b76c8d2997fdc786d8f176f6 /riscos/gui.c
parenta2960c79f23c51f0829457177f5d8eba9fa141c9 (diff)
downloadnetsurf-5db1eae529dca654aa4591371918a07954824edb.tar.gz
netsurf-5db1eae529dca654aa4591371918a07954824edb.tar.bz2
[project @ 2004-07-04 18:44:51 by rjw]
Loading/saving of hotlists. Initial work for hotlist menu. svn path=/import/netsurf/; revision=1046
Diffstat (limited to 'riscos/gui.c')
-rw-r--r--riscos/gui.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 8ae1fd26c..49c71f77e 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -71,13 +71,14 @@ static clock_t gui_last_poll; /**< Time of last wimp_poll. */
osspriteop_area *gui_sprites; /**< Sprite area containing pointer and hotlist sprites */
/** Accepted wimp user messages. */
-static wimp_MESSAGE_LIST(28) task_messages = { {
+static wimp_MESSAGE_LIST(29) task_messages = { {
message_HELP_REQUEST,
message_DATA_SAVE,
message_DATA_SAVE_ACK,
message_DATA_LOAD,
message_DATA_OPEN,
message_MENU_WARNING,
+ message_MENUS_DELETED,
#ifdef WITH_URI
message_URI_PROCESS,
message_URI_RETURN_RESULT,
@@ -386,6 +387,7 @@ void ro_gui_check_resolvers(void)
void gui_quit(void)
{
+ ro_gui_hotlist_save();
ro_gui_history_quit();
free(gui_sprites);
wimp_close_down(task_handle);
@@ -834,6 +836,11 @@ void ro_gui_user_message(wimp_event_no event, wimp_message *message)
ro_gui_menu_warning((wimp_message_menu_warning *)
&message->data);
break;
+ case message_MENUS_DELETED:
+ if (current_menu == hotlist_menu) {
+ ro_gui_hotlist_menu_closed();
+ }
+ break;
#ifdef WITH_URI
case message_URI_PROCESS: