diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-09-13 22:39:48 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-09-13 22:39:48 +0000 |
commit | 684d452e9cf6620b8b22a4ea71a4894d30e2c11e (patch) | |
tree | b2520a1f8367256b6c23ffeee590bedf894c6c7a /amiga/gui.h | |
parent | 10bf100cc1cbc2bc6c2f2f178a588a9ec242af8b (diff) | |
download | netsurf-684d452e9cf6620b8b22a4ea71a4894d30e2c11e.tar.gz netsurf-684d452e9cf6620b8b22a4ea71a4894d30e2c11e.tar.bz2 |
Improved throbber, works independently on multiple windows, stops when it should, no
weird crashes, lock-ups etc.
The format has changed, Resources/Throbber now needs to be in a picture.datatype
format, as a "film strip" of frames with the first image the inactive (stopped
throbber) and the rest the active animation. The number of frames needs to be set in
the Options file throbber_frames variable (currently - will probably move to a
tooltype of Resources/Throbber in the future for better theming ability)
svn path=/trunk/netsurf/; revision=5310
Diffstat (limited to 'amiga/gui.h')
-rwxr-xr-x | amiga/gui.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/amiga/gui.h b/amiga/gui.h index b91fd7424..e8c6481c4 100755 --- a/amiga/gui.h +++ b/amiga/gui.h @@ -37,6 +37,7 @@ enum GID_HOME, GID_BACK, GID_FORWARD, + GID_THROBBER, GID_USER, GID_PASS, GID_LOGIN, @@ -50,7 +51,6 @@ enum OID_VSCROLL, OID_HSCROLL, OID_MENU, - OID_THROBBER, OID_LAST }; @@ -84,6 +84,8 @@ struct gui_window { union content_msg_data *redraw_data; browser_mouse_state mouse_state; browser_mouse_state key_state; + int throbber_frame; + ULONG throbber_update_count; int c_x; int c_y; int c_h; |