summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-02-25 23:19:06 +0000
committerOle Loots <ole@monochrom.net>2011-02-25 23:19:06 +0000
commit558292505214dd703b0f5b519f2c8716132de71c (patch)
tree74ec5c1ab0d391c2886ff118861ae2fa697cc38e /atari
parentac80ab3d138cb9ee91f9c1361328726cd3cfc40d (diff)
downloadnetsurf-558292505214dd703b0f5b519f2c8716132de71c.tar.gz
netsurf-558292505214dd703b0f5b519f2c8716132de71c.tar.bz2
merged clipping parameter changes.
svn path=/trunk/netsurf/; revision=11809
Diffstat (limited to 'atari')
-rwxr-xr-xatari/gui.c11
-rwxr-xr-xatari/gui.h2
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 */