Remove more checks for browser_window_type

svn path=/trunk/netsurf/; revision=12719
This commit is contained in:
Chris Young 2011-09-04 22:35:11 +00:00
parent 985bf9e191
commit 330227d87a
4 changed files with 2 additions and 7 deletions

View File

@ -143,8 +143,7 @@ BOOL ami_context_menu_mouse_trap(struct gui_window_2 *gwin, BOOL trap)
if(option_context_menu == false) return FALSE;
if((option_kiosk_mode == false) && (trap == FALSE) &&
(gwin->bw->browser_window_type == BROWSER_WINDOW_NORMAL))
if((option_kiosk_mode == false) && (trap == FALSE))
{
if(browser_window_back_available(gwin->bw) &&
ami_gadget_hit(gwin->objects[GID_BACK],

View File

@ -3681,8 +3681,7 @@ void gui_window_set_search_ico(hlcache_handle *ico)
nnode=(struct nsObject *)GetSucc((struct Node *)node);
gwin = node->objstruct;
if((node->Type == AMINS_WINDOW) &&
(gwin->bw->browser_window_type == BROWSER_WINDOW_NORMAL))
if(node->Type == AMINS_WINDOW)
{
GetAttr(SPACE_AreaBox, gwin->objects[GID_SEARCH_ICON], (ULONG *)&bbox);

View File

@ -908,7 +908,6 @@ void ami_menu_update_disabled(struct gui_window *g, hlcache_handle *c)
{
struct Window *win = g->shared->win;
if(g->shared->bw->browser_window_type != BROWSER_WINDOW_NORMAL) return;
if(option_kiosk_mode == true) return;
OffMenu(win,AMI_MENU_CUT);

View File

@ -401,7 +401,6 @@ void gui_window_start_throbber(struct gui_window *g)
if(!g) return;
if(option_kiosk_mode) return;
if(g->shared->bw->browser_window_type != BROWSER_WINDOW_NORMAL) return;
if(g->tab_node && (g->shared->tabs > 1))
{
@ -432,7 +431,6 @@ void gui_window_stop_throbber(struct gui_window *g)
if(!g) return;
if(option_kiosk_mode) return;
if(g->shared->bw->browser_window_type != BROWSER_WINDOW_NORMAL) return;
if(g->tab_node && (g->shared->tabs > 1))
{