Introduced attached flag for Statusbar.

svn path=/trunk/netsurf/; revision=11441
This commit is contained in:
Ole Loots 2011-01-22 16:30:55 +00:00
parent 4e944c1a69
commit 67fa1c50f1

View File

@ -106,6 +106,7 @@ int window_create( struct gui_window * gw, struct browser_window * bw, unsigned
gw->root = malloc( sizeof(struct s_gui_win_root) );
if( gw->root == NULL )
return( -1 );
memset( gw->root, 0, sizeof(struct s_gui_win_root) );
gw->root->handle = WindCreate( flags,40, 40, app.w, app.h );
gw->root->cmproot = mt_CompCreate(&app, CLT_VERTICAL, 1, 1);
WindSetPtr( gw->root->handle, WF_COMPONENT, gw->root->cmproot, NULL);
@ -217,6 +218,9 @@ void window_open( struct gui_window * gw)
plotter->move( plotter, br.g_x, br.g_y );
plotter->resize( plotter, br.g_w, br.g_h );
gw->browser->attached = true;
if( gw->root->statusbar != NULL ){
gw->root->statusbar->attached = true;
}
snd_rdw( gw->root->handle );
}