mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-03 05:41:35 +03:00
Removed window_set_icon
svn path=/trunk/netsurf/; revision=13123
This commit is contained in:
parent
389722916a
commit
5786f7eb17
@ -323,11 +323,6 @@ int window_create( struct gui_window * gw, struct browser_window * bw, unsigned
|
||||
EvntDataAttach( gw->root->handle, WM_ICONDRAW, evnt_window_icondraw, gw);
|
||||
EvntDataAttach( gw->root->handle, WM_XM1, evnt_window_m1, gw );
|
||||
|
||||
/*
|
||||
OBJECT * tbut;
|
||||
RsrcGaddr( h_gem_rsrc, R_TREE, FAVICO , &tbut );
|
||||
window_set_icon(gw, &tbut[]);
|
||||
*/
|
||||
/* TODO: check if window is openend as "foreground" window... */
|
||||
window_set_focus( gw, BROWSER, gw->browser);
|
||||
return (err);
|
||||
@ -342,8 +337,7 @@ int window_destroy( struct gui_window * gw)
|
||||
if( input_window == gw )
|
||||
input_window = NULL;
|
||||
|
||||
if( gw->root ) {
|
||||
window_set_icon( gw, NULL );
|
||||
if( gw->root ) {
|
||||
if( gw->root->toolbar )
|
||||
tb_destroy( gw->root->toolbar );
|
||||
|
||||
@ -357,10 +351,6 @@ int window_destroy( struct gui_window * gw)
|
||||
if( gw->browser )
|
||||
browser_destroy( gw->browser );
|
||||
|
||||
|
||||
/* destroy the icon: */
|
||||
/*window_set_icon(gw, NULL, false );*/
|
||||
|
||||
/* needed? */ /*listRemove( (LINKABLE*)gw->root->cmproot ); */
|
||||
LOG(("Freeing root window"));
|
||||
if( gw->root ) {
|
||||
@ -403,17 +393,6 @@ void window_open( struct gui_window * gw)
|
||||
}
|
||||
|
||||
|
||||
void window_set_icon(struct gui_window * gw, struct bitmap * bmp )
|
||||
{
|
||||
/*
|
||||
if( gw->icon != NULL ){
|
||||
bitmap_destroy( gw->icon );
|
||||
gw->icon = NULL;
|
||||
}*/
|
||||
gw->icon = bmp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* update back forward buttons (see tb_update_buttons (bug) ) */
|
||||
void window_update_back_forward( struct gui_window * gw)
|
||||
|
Loading…
x
Reference in New Issue
Block a user