mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 23:09:39 +03:00
Remove more checks for browser_window_type
svn path=/trunk/netsurf/; revision=12719
This commit is contained in:
parent
985bf9e191
commit
330227d87a
@ -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],
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user