summaryrefslogtreecommitdiff
path: root/atari/misc.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-11-27 02:12:09 +0100
committerOle Loots <ole@monochrom.net>2012-11-27 02:12:09 +0100
commitfe0e2508e62323955df415b45e2ea9b1b7d6373f (patch)
tree281f289f43c09c168a35714c5800a0e3dcf74300 /atari/misc.c
parent6ea22068aa50dfa15807e80277b1ad843146a76c (diff)
downloadnetsurf-fe0e2508e62323955df415b45e2ea9b1b7d6373f.tar.gz
netsurf-fe0e2508e62323955df415b45e2ea9b1b7d6373f.tar.bz2
Refactored a lot of browser window code,... still totally WIP.
...but it compiles...
Diffstat (limited to 'atari/misc.c')
-rwxr-xr-xatari/misc.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/atari/misc.c b/atari/misc.c
index 575e96491..22f820eb6 100755
--- a/atari/misc.c
+++ b/atari/misc.c
@@ -121,8 +121,8 @@ struct gui_window * find_guiwin_by_aes_handle(short handle){
}
while(gw != NULL) {
- if( gw->root->handle != NULL
- && gw->root->handle->handle == handle ) {
+ if( gw->root->win != NULL
+ && guiwin_get_handle(gw->root->win) == handle ) {
return(gw);
}
else
@@ -133,21 +133,6 @@ struct gui_window * find_guiwin_by_aes_handle(short handle){
}
-struct gui_window * find_cmp_window( COMPONENT * c )
-{
- struct gui_window * gw;
- gw = window_list;
- while( gw != NULL ) {
- assert( gw->browser != NULL );
- if( gw->browser->comp == c ) {
- return( gw );
- }
- else
- gw = gw->next;
- }
- return( NULL );
-}
-
static int scan_process_list(scan_process_callback cb, void *data)
{
int pid, count = 0;