summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-10-18 21:14:07 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-10-18 21:14:07 +0100
commitea851ba788cdaad7793763fbb64ee46442d0ebd4 (patch)
treee8638b4d2667b2c3817cbb3ba33f41b02281cf11 /riscos
parentefb009988eb030e2253ca98b05f33f4e0b86b047 (diff)
downloadnetsurf-ea851ba788cdaad7793763fbb64ee46442d0ebd4.tar.gz
netsurf-ea851ba788cdaad7793763fbb64ee46442d0ebd4.tar.bz2
Keep throbber status in the gui_window.
Diffstat (limited to 'riscos')
-rw-r--r--riscos/gui.h1
-rw-r--r--riscos/window.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/riscos/gui.h b/riscos/gui.h
index 95b59c124..f402fc925 100644
--- a/riscos/gui.h
+++ b/riscos/gui.h
@@ -87,6 +87,7 @@ struct gui_window {
int old_width; /**< Width when last opened / os units. */
int old_height; /**< Height when last opened / os units. */
bool update_extent; /**< Update the extent on next opening */
+ bool active; /**< Whether the throbber should be active */
char title[256]; /**< Buffer for window title. */
diff --git a/riscos/window.c b/riscos/window.c
index b6c7cca30..bce6721ad 100644
--- a/riscos/window.c
+++ b/riscos/window.c
@@ -427,6 +427,7 @@ static struct gui_window *gui_window_create(struct browser_window *bw,
g->old_width = 0;
g->old_height = 0;
g->update_extent = true;
+ g->active = false;
strcpy(g->title, "NetSurf");
g->iconise_icon = -1;
g->scale = 1.0;
@@ -1073,6 +1074,7 @@ static void gui_window_start_throbber(struct gui_window *g)
ro_gui_menu_refresh(ro_gui_browser_window_menu);
if (g->toolbar != NULL)
ro_toolbar_start_throbbing(g->toolbar);
+ g->active = true;
}
@@ -1089,6 +1091,7 @@ static void gui_window_stop_throbber(struct gui_window *g)
ro_gui_menu_refresh(ro_gui_browser_window_menu);
if (g->toolbar != NULL)
ro_toolbar_stop_throbbing(g->toolbar);
+ g->active = false;
}
/**
@@ -4287,7 +4290,7 @@ void ro_gui_throb(void)
struct browser_window *top;
for (g = window_list; g; g = g->next) {
- if (!g->bw->throbbing)
+ if (!g->active)
continue;
for (top = g->bw; top->parent; top = top->parent);
if (top->window != NULL && top->window->toolbar != NULL)