summaryrefslogtreecommitdiff
path: root/riscos/hotlist.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/hotlist.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/hotlist.c')
-rw-r--r--riscos/hotlist.c15
1 files changed, 6 insertions, 9 deletions
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 <not_ginger_matt@users.sourceforge.net>
+ * Copyright 2004, 2005 Richard Wilson <info@tinct.net>
*/
/** \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();
}