diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-07-16 00:21:15 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-07-16 00:21:15 +0000 |
commit | 00d74fdd2d75cc29b651ffd3bac6f19f75b4bc22 (patch) | |
tree | a8848bd19667ffc173beb01afdbfa56347154531 /riscos/treeview.c | |
parent | cb04a8c7792dee47bf66a36f474c6bcf20dba82d (diff) | |
download | netsurf-00d74fdd2d75cc29b651ffd3bac6f19f75b4bc22.tar.gz netsurf-00d74fdd2d75cc29b651ffd3bac6f19f75b4bc22.tar.bz2 |
Allow the viewing of the entire SSL certificate chain.
svn path=/trunk/netsurf/; revision=2755
Diffstat (limited to 'riscos/treeview.c')
-rw-r--r-- | riscos/treeview.c | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/riscos/treeview.c b/riscos/treeview.c index a01c9b01c..827f01408 100644 --- a/riscos/treeview.c +++ b/riscos/treeview.c @@ -45,8 +45,8 @@ static bool ro_gui_tree_initialise_sprite(const char *name, int number); -static void ro_gui_tree_launch_selected_node(struct node *node, bool all); -static bool ro_gui_tree_launch_node(struct node *node); +static void ro_gui_tree_launch_selected_node(struct tree *tree, struct node *node, bool all); +static bool ro_gui_tree_launch_node(struct tree *tree, struct node *node); static void tree_handle_node_changed_callback(void *p); /* an array of sprite addresses for Tinct */ @@ -822,7 +822,7 @@ bool ro_gui_tree_click(wimp_pointer *pointer, struct tree *tree) { /* double click starts launches the leaf */ if ((pointer->buttons == wimp_CLICK_SELECT) || (pointer->buttons == wimp_CLICK_ADJUST)) { - if (!ro_gui_tree_launch_node(node)) + if (!ro_gui_tree_launch_node(tree, node)) return false; if (pointer->buttons == wimp_CLICK_ADJUST) ro_gui_dialog_close((wimp_w)tree->handle); @@ -1435,7 +1435,7 @@ void ro_gui_tree_launch_selected(struct tree *tree) { assert(tree); if (tree->root->child) - ro_gui_tree_launch_selected_node(tree->root->child, false); + ro_gui_tree_launch_selected_node(tree, tree->root->child, false); } @@ -1444,12 +1444,12 @@ void ro_gui_tree_launch_selected(struct tree *tree) { * * \param node the node to launch all selected nodes for */ -void ro_gui_tree_launch_selected_node(struct node *node, bool all) { +void ro_gui_tree_launch_selected_node(struct tree *tree, struct node *node, bool all) { for (; node; node = node->next) { if (((node->selected) || (all)) && (!node->folder)) - ro_gui_tree_launch_node(node); + ro_gui_tree_launch_node(tree, node); if ((node->child) && ((node->expanded) || (node->selected) | (all))) - ro_gui_tree_launch_selected_node(node->child, + ro_gui_tree_launch_selected_node(tree, node->child, (node->selected) | (all)); } } @@ -1461,7 +1461,7 @@ void ro_gui_tree_launch_selected_node(struct node *node, bool all) { * \param node the node to launch * \return whether the node could be launched */ -bool ro_gui_tree_launch_node(struct node *node) { +bool ro_gui_tree_launch_node(struct tree *tree, struct node *node) { struct node_element *element; assert(node); @@ -1471,6 +1471,15 @@ bool ro_gui_tree_launch_node(struct node *node) { browser_window_create(element->text, NULL, 0, true); return true; } + element = tree_find_element(node, TREE_ELEMENT_SSL); + if (element) { + ro_gui_cert_open(tree, node); + return true; + } return false; } + +int ro_gui_tree_help(int x, int y) { + return -1; +} |