summaryrefslogtreecommitdiff
path: root/riscos/global_history.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2005-03-18 23:52:38 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2005-03-18 23:52:38 +0000
commit036622f35fc98ad154a982f1dd6f384f66d79707 (patch)
tree89f47a06134b137a24df04417799330eff9a1cfb /riscos/global_history.c
parent793bb9119a04a109c2ac55200f0d4a00d026dee0 (diff)
downloadnetsurf-036622f35fc98ad154a982f1dd6f384f66d79707.tar.gz
netsurf-036622f35fc98ad154a982f1dd6f384f66d79707.tar.bz2
[project @ 2005-03-18 23:52:38 by rjw]
Allow windows to be resized to an absolute minimum (toolbars collapse.) svn path=/import/netsurf/; revision=1541
Diffstat (limited to 'riscos/global_history.c')
-rw-r--r--riscos/global_history.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/riscos/global_history.c b/riscos/global_history.c
index 87b4b1739..c0ee1ac9e 100644
--- a/riscos/global_history.c
+++ b/riscos/global_history.c
@@ -76,7 +76,7 @@ static wimp_window history_window_definition = {
wimp_BUTTON_DOUBLE_CLICK_DRAG << wimp_ICON_BUTTON_TYPE_SHIFT,
wimpspriteop_AREA,
1,
- 100,
+ 1,
{""},
0,
{}
@@ -86,7 +86,6 @@ static wimp_window history_window_definition = {
/* The history window, toolbar and plot origins
*/
static wimp_w global_history_window;
-struct toolbar *global_history_toolbar;
struct tree *global_history_tree;
void ro_gui_global_history_initialise(void) {
@@ -134,13 +133,11 @@ void ro_gui_global_history_initialise(void) {
/* Create our toolbar
*/
- global_history_toolbar = ro_gui_theme_create_toolbar(NULL,
+ global_history_tree->toolbar = ro_gui_theme_create_toolbar(NULL,
THEME_HISTORY_TOOLBAR);
- if (global_history_toolbar) {
- ro_gui_theme_attach_toolbar(global_history_toolbar,
+ if (global_history_tree->toolbar)
+ ro_gui_theme_attach_toolbar(global_history_tree->toolbar,
global_history_window);
- global_history_tree->offset_y = global_history_toolbar->height;
- }
/* load recent URLs */
fp = fopen(GLOBAL_HISTORY_RECENT_READ, "r");
@@ -331,7 +328,7 @@ void ro_gui_global_history_save_node(struct node *node, FILE *fp) {
* Shows the history window.
*/
void ro_gui_global_history_show(void) {
- ro_gui_tree_show(global_history_tree, global_history_toolbar);
+ ro_gui_tree_show(global_history_tree);
ro_gui_menu_prepare_global_history();
}