Applying the patch to show the indicator only on loading. Based on a patch
from http://xteddy.org/surf.html#toc5.
This commit is contained in:
parent
3d3b105de7
commit
161247eaf4
13
surf.c
13
surf.c
|
@ -871,13 +871,16 @@ void
|
||||||
update(Client *c) {
|
update(Client *c) {
|
||||||
char *t;
|
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) {
|
||||||
t = g_strdup_printf("[%i%%] %s", c->progress, c->title);
|
|
||||||
else
|
|
||||||
t = g_strdup(c->title);
|
|
||||||
drawindicator(c);
|
drawindicator(c);
|
||||||
|
gtk_widget_show(c->indicator);
|
||||||
|
t = g_strdup_printf("[%i%%] %s", c->progress, c->title);
|
||||||
|
} else {
|
||||||
|
gtk_widget_hide_all(c->indicator);
|
||||||
|
t = g_strdup(c->title);
|
||||||
|
}
|
||||||
gtk_window_set_title(GTK_WINDOW(c->win), t);
|
gtk_window_set_title(GTK_WINDOW(c->win), t);
|
||||||
g_free(t);
|
g_free(t);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue