diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2005-03-18 23:52:38 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2005-03-18 23:52:38 +0000 |
commit | 036622f35fc98ad154a982f1dd6f384f66d79707 (patch) | |
tree | 89f47a06134b137a24df04417799330eff9a1cfb /riscos/gui.c | |
parent | 793bb9119a04a109c2ac55200f0d4a00d026dee0 (diff) | |
download | netsurf-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/gui.c')
-rw-r--r-- | riscos/gui.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/riscos/gui.c b/riscos/gui.c index cee09ef8d..fe12a5eac 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -785,13 +785,14 @@ void ro_gui_redraw_window_request(wimp_draw *redraw) ro_gui_url_complete_redraw(redraw); else if ((hotlist_tree) && (redraw->w == (wimp_w)hotlist_tree->handle)) ro_gui_tree_redraw(redraw, hotlist_tree); - else if ((hotlist_toolbar) && (hotlist_toolbar->toolbar_handle == redraw->w)) - ro_gui_theme_redraw(hotlist_toolbar, redraw); + else if ((hotlist_tree) && (hotlist_tree->toolbar) && + (hotlist_tree->toolbar->toolbar_handle == redraw->w)) + ro_gui_theme_redraw(hotlist_tree->toolbar, redraw); else if ((global_history_tree) && (redraw->w == (wimp_w)global_history_tree->handle)) ro_gui_tree_redraw(redraw, global_history_tree); - else if ((global_history_toolbar) && - (global_history_toolbar->toolbar_handle == redraw->w)) - ro_gui_theme_redraw(global_history_toolbar, redraw); + else if ((global_history_tree) && (global_history_tree->toolbar) && + (global_history_tree->toolbar->toolbar_handle == redraw->w)) + ro_gui_theme_redraw(global_history_tree->toolbar, redraw); else if (redraw->w == dialog_debug) ro_gui_debugwin_redraw(redraw); else if ((g = ro_gui_window_lookup(redraw->w)) != NULL) @@ -918,13 +919,12 @@ void ro_gui_mouse_click(wimp_pointer *pointer) ro_gui_global_history_click(pointer); else if (pointer->w == dialog_saveas) ro_gui_save_click(pointer); - else if (hotlist_toolbar && - hotlist_toolbar->toolbar_handle == pointer->w) - ro_gui_tree_toolbar_click(pointer, hotlist_tree, hotlist_toolbar); - else if (global_history_toolbar && - global_history_toolbar->toolbar_handle == pointer->w) - ro_gui_tree_toolbar_click(pointer, global_history_tree, - global_history_toolbar); + else if ((hotlist_tree) && (hotlist_tree->toolbar) && + (hotlist_tree->toolbar->toolbar_handle == pointer->w)) + ro_gui_tree_toolbar_click(pointer, hotlist_tree); + else if ((global_history_tree) && (global_history_tree->toolbar) && + (global_history_tree->toolbar->toolbar_handle == pointer->w)) + ro_gui_tree_toolbar_click(pointer, global_history_tree); else if ((g = ro_gui_window_lookup(pointer->w)) != NULL) ro_gui_window_click(g, pointer); else if ((g = ro_gui_toolbar_lookup(pointer->w)) != NULL) |