diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2005-11-27 12:53:59 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2005-11-27 12:53:59 +0000 |
commit | 6f2e8ea329b5600eb7e6b0f956121c25819698c4 (patch) | |
tree | a202625fd701f7a347d3e954fbfd3f965cd1086a | |
parent | 7856e32d13528e4952b157a084a6bdddacf9a82e (diff) | |
download | netsurf-6f2e8ea329b5600eb7e6b0f956121c25819698c4.tar.gz netsurf-6f2e8ea329b5600eb7e6b0f956121c25819698c4.tar.bz2 |
[project @ 2005-11-27 12:53:59 by jmb]
Some debug
svn path=/import/netsurf/; revision=1885
-rw-r--r-- | riscos/menus.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/riscos/menus.c b/riscos/menus.c index 271117405..a1951099f 100644 --- a/riscos/menus.c +++ b/riscos/menus.c @@ -708,6 +708,11 @@ void ro_gui_menu_warning(wimp_message_menu_warning *warning) { menu_entry = &menu_entry->sub_menu-> entries[warning->selection.items[i]]; + LOG(("menu (%s): %p submenu: %p", + menu_entry->data.indirected_text.text, + menu_entry, + menu_entry->sub_menu)); + if (IS_MENU(menu_entry, menu_entry->sub_menu)) { sub_menu = menu_entry->sub_menu; i = 0; @@ -1144,7 +1149,7 @@ wimp_menu *ro_gui_menu_define_menu(struct ns_menu *menu) { * \param depth Depth of menu we're currently building * \param parent_entry Entry in parent menu, or NULL if root menu * \param first First index in declaration data that is used by this menu - * \param last Last index in declaration data that is used by this menu + * \param last Last index in declaration data that is used by this menu * \param prefix Prefix pf menu declaration string already seen * \param prefix_length Length of prefix */ @@ -2312,6 +2317,11 @@ bool ro_gui_menu_translate(struct menu_definition *menu) entry->menu_entry->data.indirected_text.size = strlen(translated); + LOG(("menu (%s): %p submenu: %p", + entry->menu_entry->data.indirected_text.text, + entry->menu_entry, + submenu)); + /* child menu title - this is the same as the text of * the parent menu entry, so just copy the pointer */ if (submenu != wimp_NO_SUB_MENU && |