diff options
Diffstat (limited to 'atari')
-rwxr-xr-x | atari/gui.c | 11 | ||||
-rwxr-xr-x | atari/gui.h | 2 |
2 files changed, 6 insertions, 7 deletions
diff --git a/atari/gui.c b/atari/gui.c index e52965ffb..b0cdc1116 100755 --- a/atari/gui.c +++ b/atari/gui.c @@ -292,8 +292,6 @@ void gui_window_destroy(struct gui_window *w) LGRECT dbg;
struct gui_window * root = browser_find_root( w );
browser_get_rect( root, BR_CONTENT, &dbg );
- printf("destroy browser\n");
- /* search_destroy(); */
switch(w->browser->bw->browser_window_type) {
case BROWSER_WINDOW_NORMAL:
window_destroy( w );
@@ -347,11 +345,12 @@ void gui_window_set_title(struct gui_window *gw, const char *title) {
if (gw == NULL)
return;
- char tmp[80];
/* TODO: query AES for max. title length */
- strncpy((char*)&tmp, title, 80);
- tmp[79]=0;
- WindSetStr( gw->root->handle, WF_NAME, (char *)&tmp );
+ if( gw->root && gw->parent == NULL ){
+ strncpy((char*)&gw->root->title, title, 79);
+ gw->root->title[79] = 0;
+ WindSetStr( gw->root->handle, WF_NAME, (char *)&gw->root->title );
+ }
}
/**
diff --git a/atari/gui.h b/atari/gui.h index d67475f26..ece6d99f2 100755 --- a/atari/gui.h +++ b/atari/gui.h @@ -217,6 +217,7 @@ struct s_gui_win_root struct s_focus_info focus; float scale; bool throbbing; + char title[80]; GRECT loc; /* current size of window on screen */ }; @@ -227,7 +228,6 @@ struct gui_window { struct gui_window *next, *prev; }; - extern struct gui_window *window_list; /* scroll a window */ |