diff options
Diffstat (limited to 'atari/misc.c')
-rwxr-xr-x | atari/misc.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/atari/misc.c b/atari/misc.c index fc1d6a661..18130e3b9 100755 --- a/atari/misc.c +++ b/atari/misc.c @@ -100,6 +100,23 @@ bool path_add_part(char *path, int length, const char *newpart) return true;
}
+struct gui_window * find_gui_window( WINDOW * win ){
+
+ struct gui_window * gw;
+ gw = window_list;
+
+ if( win == NULL )
+ return( NULL );
+
+ while( gw != NULL) {
+ if( gw->root->handle == win ) {
+ return( gw );
+ }
+ else
+ gw = gw->next;
+ }
+ return( NULL );
+}
struct gui_window * find_cmp_window( COMPONENT * c )
{
|