Add a variable in config.def.h for configuring spatial browsing.
[surf.git] / surf.c
diff --git a/surf.c b/surf.c
index 492c836..a3508bf 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -461,7 +461,7 @@ newclient(void) {
                 * window class (WM_CLASS) is capped, while the resource is in
                 * lowercase.   Both these values come as a pair.
                 */
-               gtk_window_set_wmclass(GTK_WINDOW(c->win), "surf", "surf");
+               gtk_window_set_wmclass(GTK_WINDOW(c->win), "surf", "Surf");
 
                /* TA:  20091214:  And set the role here as well -- so that
                 * sessions can pick this up.
@@ -529,7 +529,7 @@ newclient(void) {
        g_object_set(G_OBJECT(settings), "auto-load-images", loadimage, NULL);
        g_object_set(G_OBJECT(settings), "enable-plugins", plugin, NULL);
        g_object_set(G_OBJECT(settings), "enable-scripts", script, NULL);
-       g_object_set(G_OBJECT(settings), "enable-spatial-navigation", true, NULL);
+       g_object_set(G_OBJECT(settings), "enable-spatial-navigation", SPATIAL_BROWSING, NULL);
 
        g_free(uri);
 
@@ -793,10 +793,10 @@ void
 update(Client *c) {
        char *t;
 
-       if(c->progress != 100)
-               t = g_strdup_printf("[%i%%] %s", c->progress, c->title);
-       else if(c->linkhover)
+       if(c->linkhover)
                t = g_strdup(c->linkhover);
+        else if(c->progress != 100)
+               t = g_strdup_printf("[%i%%] %s", c->progress, c->title);
        else
                t = g_strdup(c->title);
        drawindicator(c);