Prevent gadget and menu disable/enable magic from acting on frames (this fixes bug#207

at bugs.os4depot.net)

svn path=/trunk/netsurf/; revision=7541
This commit is contained in:
Chris Young 2009-05-24 13:13:27 +00:00
parent dc9fc39972
commit 8ac6d344f5
1 changed files with 8 additions and 2 deletions

View File

@ -1525,6 +1525,9 @@ void ami_update_buttons(struct gui_window_2 *gwin)
{
BOOL back=FALSE,forward=TRUE,tabclose=FALSE,stop=FALSE,reload=FALSE;
if(gwin->bw->browser_window_type != BROWSER_WINDOW_NORMAL)
return;
if(!browser_window_back_available(gwin->bw))
back=TRUE;
@ -2779,6 +2782,11 @@ void gui_window_new_content(struct gui_window *g)
c = g->shared->bw->current_content;
else return;
ami_clearclipreg(currp);
if(g->shared->bw->browser_window_type != BROWSER_WINDOW_NORMAL)
return;
if(c->type <= CONTENT_CSS)
{
OnMenu(g->shared->win,AMI_MENU_SAVEAS_TEXT);
@ -2816,8 +2824,6 @@ void gui_window_new_content(struct gui_window *g)
OffMenu(g->shared->win,AMI_MENU_SAVEAS_IFF);
}
}
ami_clearclipreg(currp);
}
bool gui_window_scroll_start(struct gui_window *g)