[hackers] [surf] Applying the patch to show the indicator only on loading. Based on a patch || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Wed, 31 Oct 2012 21:15:44 +0100 (CET)

changeset: 254:302fbbc42629
user: Christoph Lohmann <20h_AT_r-36.net>
date: Sun Oct 28 14:06:17 2012 +0100
files: surf.c
description:
Applying the patch to show the indicator only on loading. Based on a patch
from http://xteddy.org/surf.html#toc5.


diff -r aeed559cc252 -r 302fbbc42629 surf.c
--- a/surf.c Sun Oct 28 14:03:00 2012 +0100
+++ b/surf.c Sun Oct 28 14:06:17 2012 +0100
_AT_@ -871,13 +871,16 @@
 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);
 }
Received on Wed Oct 31 2012 - 21:15:44 CET

This archive was generated by hypermail 2.3.0 : Wed Oct 31 2012 - 21:24:09 CET