mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 06:49:41 +03:00
Introduced attached flag for Statusbar.
svn path=/trunk/netsurf/; revision=11441
This commit is contained in:
parent
4e944c1a69
commit
67fa1c50f1
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user