r9548 chris_y - in /trunk/netsurf/amiga: gui.c
resources/Themes/AISS/Theme resources/Themes/Default/Theme
netsurf at semichrome.net
netsurf at semichrome.net
Sun Sep 6 12:23:35 BST 2009
Author: chris_y
Date: Sun Sep 6 06:23:35 2009
New Revision: 9548
URL: http://source.netsurf-browser.org?rev=9548&view=rev
Log:
Indicate when tabs are loading. Currently this only works with the AISS theme (and
probably only under OS4.1), showing a yellow flag on tabs which are currently loading.
In the future this could be expanded to show a proper animated throbber on loading
tabs, maybe instead of the main throbber.
Modified:
trunk/netsurf/amiga/gui.c
trunk/netsurf/amiga/resources/Themes/AISS/Theme
trunk/netsurf/amiga/resources/Themes/Default/Theme
Modified: trunk/netsurf/amiga/gui.c
URL: http://source.netsurf-browser.org/trunk/netsurf/amiga/gui.c?rev=9548&r1=9547&r2=9548&view=diff
==============================================================================
--- trunk/netsurf/amiga/gui.c (original)
+++ trunk/netsurf/amiga/gui.c Sun Sep 6 06:23:35 2009
@@ -1705,6 +1705,7 @@
char reload[100],reload_s[100],reload_g[100];
char home[100],home_s[100],home_g[100];
char closetab[100],closetab_s[100],closetab_g[100];
+ char tabthrobber[100];
if((bw->browser_window_type == BROWSER_WINDOW_IFRAME) && option_no_iframes) return NULL;
@@ -1884,6 +1885,7 @@
ami_get_theme_filename(closetab,"theme_closetab");
ami_get_theme_filename(closetab_s,"theme_closetab_s");
ami_get_theme_filename(closetab_g,"theme_closetab_g");
+ ami_get_theme_filename(tabthrobber,"theme_tab_loading");
gwin->shared->objects[OID_MAIN] = WindowObject,
WA_ScreenTitle,nsscreentitle,
@@ -2046,6 +2048,11 @@
GA_Underscore,13, // disable kb shortcuts
CLICKTAB_Labels,&gwin->shared->tab_list,
CLICKTAB_LabelTruncate,TRUE,
+ CLICKTAB_FlagImage, BitMapObject,
+ BITMAP_SourceFile, tabthrobber,
+ BITMAP_Screen,scrn,
+ BITMAP_Masking,TRUE,
+ BitMapEnd,
ClickTabEnd,
CHILD_CacheDomain,FALSE,
LayoutEnd,
@@ -3003,7 +3010,13 @@
if(!g) return;
- if(g->tab_node) GetAttr(CLICKTAB_Current,g->shared->gadgets[GID_TABS],(ULONG *)&cur_tab);
+ if(g->tab_node)
+ {
+ GetAttr(CLICKTAB_Current,g->shared->gadgets[GID_TABS],(ULONG *)&cur_tab);
+ SetClickTabNodeAttrs(g->tab_node, TNA_Flagged, TRUE, TAG_DONE);
+ RefreshGadgets((APTR)g->shared->gadgets[GID_TABS],
+ g->shared->win, NULL);
+ }
g->throbbing = true;
@@ -3024,8 +3037,14 @@
if(!g) return;
- if(g->tab_node) GetAttr(CLICKTAB_Current, g->shared->gadgets[GID_TABS],
- (ULONG *)&cur_tab);
+ if(g->tab_node)
+ {
+ GetAttr(CLICKTAB_Current, g->shared->gadgets[GID_TABS],
+ (ULONG *)&cur_tab);
+ SetClickTabNodeAttrs(g->tab_node, TNA_Flagged, FALSE, TAG_DONE);
+ RefreshGadgets((APTR)g->shared->gadgets[GID_TABS],
+ g->shared->win, NULL);
+ }
g->throbbing = false;
Modified: trunk/netsurf/amiga/resources/Themes/AISS/Theme
URL: http://source.netsurf-browser.org/trunk/netsurf/amiga/resources/Themes/AISS/Theme?rev=9548&r1=9547&r2=9548&view=diff
==============================================================================
--- trunk/netsurf/amiga/resources/Themes/AISS/Theme (original)
+++ trunk/netsurf/amiga/resources/Themes/AISS/Theme Sun Sep 6 06:23:35 2009
@@ -30,6 +30,7 @@
theme_throbber:Throbber
theme_throbber_frames:13
theme_throbber_delay:100
+theme_tab_loading:*TBImages:list_flagyellow
ptr_default:*PROGDIR:Resources/Pointers/Default
ptr_point:*PROGDIR:Resources/Pointers/Point
ptr_caret:*PROGDIR:Resources/Pointers/Caret
Modified: trunk/netsurf/amiga/resources/Themes/Default/Theme
URL: http://source.netsurf-browser.org/trunk/netsurf/amiga/resources/Themes/Default/Theme?rev=9548&r1=9547&r2=9548&view=diff
==============================================================================
--- trunk/netsurf/amiga/resources/Themes/Default/Theme (original)
+++ trunk/netsurf/amiga/resources/Themes/Default/Theme Sun Sep 6 06:23:35 2009
@@ -43,6 +43,7 @@
theme_throbber:Throbber
theme_throbber_frames:9
theme_throbber_delay:100
+theme_tab_loading:
ptr_default:*PROGDIR:Resources/Pointers/Default
ptr_point:*PROGDIR:Resources/Pointers/Point
ptr_caret:*PROGDIR:Resources/Pointers/Caret
More information about the netsurf-commits
mailing list