From 036622f35fc98ad154a982f1dd6f384f66d79707 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Fri, 18 Mar 2005 23:52:38 +0000 Subject: [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 --- riscos/hotlist.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'riscos/hotlist.c') diff --git a/riscos/hotlist.c b/riscos/hotlist.c index cdcf9960b..7cccd635c 100644 --- a/riscos/hotlist.c +++ b/riscos/hotlist.c @@ -2,7 +2,7 @@ * This file is part of NetSurf, http://netsurf.sourceforge.net/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license - * Copyright 2004 Richard Wilson + * Copyright 2004, 2005 Richard Wilson */ /** \file @@ -64,7 +64,7 @@ static wimp_window hotlist_window_definition = { wimp_BUTTON_DOUBLE_CLICK_DRAG << wimp_ICON_BUTTON_TYPE_SHIFT, wimpspriteop_AREA, 1, - 100, + 1, {""}, 0, {} @@ -74,7 +74,6 @@ static wimp_window hotlist_window_definition = { /* The hotlist window, toolbar and plot origins */ static wimp_w hotlist_window; -struct toolbar *hotlist_toolbar; struct tree *hotlist_tree; /* Whether the editing facilities are for add so that we know how @@ -137,11 +136,9 @@ void ro_gui_hotlist_initialise(void) { /* Create our toolbar */ - hotlist_toolbar = ro_gui_theme_create_toolbar(NULL, THEME_HOTLIST_TOOLBAR); - if (hotlist_toolbar) { - ro_gui_theme_attach_toolbar(hotlist_toolbar, hotlist_window); - hotlist_tree->offset_y = hotlist_toolbar->height; - } + hotlist_tree->toolbar = ro_gui_theme_create_toolbar(NULL, THEME_HOTLIST_TOOLBAR); + if (hotlist_tree->toolbar) + ro_gui_theme_attach_toolbar(hotlist_tree->toolbar, hotlist_window); } @@ -168,7 +165,7 @@ void ro_gui_hotlist_save(void) { * Shows the hotlist window. */ void ro_gui_hotlist_show(void) { - ro_gui_tree_show(hotlist_tree, hotlist_toolbar); + ro_gui_tree_show(hotlist_tree); ro_gui_menu_prepare_hotlist(); } -- cgit v1.2.3