diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-10-28 14:06:17 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-10-28 14:06:17 +0100 |
commit | 161247eaf4ff22bd2a283607b32d32d1f900134d (patch) | |
tree | e068c1908ecbb76ccd89f2464f15c7b8fcaa1af6 /surf.c | |
parent | 3d3b105de7cfd228109f23c21698afda961891b6 (diff) | |
download | surf-161247eaf4ff22bd2a283607b32d32d1f900134d.tar.gz surf-161247eaf4ff22bd2a283607b32d32d1f900134d.tar.bz2 surf-161247eaf4ff22bd2a283607b32d32d1f900134d.zip |
Applying the patch to show the indicator only on loading. Based on a patch
from http://xteddy.org/surf.html#toc5.
Diffstat (limited to 'surf.c')
-rw-r--r-- | surf.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -871,13 +871,16 @@ void update(Client *c) { char *t; - if(c->linkhover) + if(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); - else + } else { + gtk_widget_hide_all(c->indicator); t = g_strdup(c->title); - drawindicator(c); + } gtk_window_set_title(GTK_WINDOW(c->win), t); g_free(t); } |