pinosaur
/
surf.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Applying the patch to show the indicator only on loading. Based on a patch
[surf.git]
/
surf.c
diff --git
a/surf.c
b/surf.c
index
7cf6491
..
bb9343b
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-871,13
+871,16
@@
void
update(Client *c) {
char *t;
update(Client *c) {
char *t;
- if(c->linkhover)
+ if(c->linkhover)
{
t = g_strdup(c->linkhover);
t = g_strdup(c->linkhover);
- else if(c->progress != 100)
+ } else if(c->progress != 100) {
+ drawindicator(c);
+ gtk_widget_show(c->indicator);
t = g_strdup_printf("[%i%%] %s", c->progress, c->title);
t = g_strdup_printf("[%i%%] %s", c->progress, c->title);
- else
+ } else {
+ gtk_widget_hide_all(c->indicator);
t = g_strdup(c->title);
t = g_strdup(c->title);
- drawindicator(c);
+ }
gtk_window_set_title(GTK_WINDOW(c->win), t);
g_free(t);
}
gtk_window_set_title(GTK_WINDOW(c->win), t);
g_free(t);
}