Fix small build

svn path=/trunk/netsurf/; revision=2762
This commit is contained in:
John Mark Bell 2006-07-16 11:34:51 +00:00
parent 74b6dce0be
commit 488f3e0d8a

View File

@ -362,7 +362,7 @@ void tree_draw_node_element(struct tree *tree, struct node_element *element) {
0, 0,
element->box.height - 3); element->box.height - 3);
} }
} }
break; break;
} }
} }
@ -1039,7 +1039,7 @@ void ro_gui_tree_start_edit(struct tree *tree, struct node_element *element,
if (error) if (error)
LOG(("xwimp_create_icon: 0x%x: %s", LOG(("xwimp_create_icon: 0x%x: %s",
error->errnum, error->errmess)); error->errnum, error->errmess));
tree->textarea_handle = textarea_create((wimp_w)tree->handle, tree->textarea_handle = textarea_create((wimp_w)tree->handle,
(wimp_i)tree->edit_handle, 0, "Homerton", 192); (wimp_i)tree->edit_handle, 0, "Homerton", 192);
if (!tree->textarea_handle) { if (!tree->textarea_handle) {
@ -1193,7 +1193,7 @@ void ro_gui_tree_open(wimp_open *open) {
error->errnum, error->errmess)); error->errnum, error->errmess));
warn_user("WimpError", error->errmess); warn_user("WimpError", error->errmess);
} }
/* hide the scroll bar? */ /* hide the scroll bar? */
if ((tree->no_vscroll) && (height != tree->window_height)) { if ((tree->no_vscroll) && (height != tree->window_height)) {
vscroll = (tree->height > height); vscroll = (tree->height > height);
@ -1207,7 +1207,7 @@ void ro_gui_tree_open(wimp_open *open) {
open->visible.x1 += ro_get_vscroll_width(open->w); open->visible.x1 += ro_get_vscroll_width(open->w);
} }
} }
tree->window_width = width; tree->window_width = width;
tree->window_height = height; tree->window_height = height;
} }
@ -1471,11 +1471,14 @@ bool ro_gui_tree_launch_node(struct tree *tree, struct node *node) {
browser_window_create(element->text, NULL, 0, true); browser_window_create(element->text, NULL, 0, true);
return true; return true;
} }
#ifdef WITH_SSL
element = tree_find_element(node, TREE_ELEMENT_SSL); element = tree_find_element(node, TREE_ELEMENT_SSL);
if (element) { if (element) {
ro_gui_cert_open(tree, node); ro_gui_cert_open(tree, node);
return true; return true;
} }
#endif
return false; return false;
} }