X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=surf.c;h=bff621bbe7d15ea3f14f2c0ba64461cba1e66c62;hb=a0e269b6bd9d7a70148f4ccbc733df35f071ba74;hp=baebe5c6411d8b8eeedde01e84c9802e7cf6d3b0;hpb=543d0c77ee1ec96f57966e06337eb0351adae017;p=surf.git diff --git a/surf.c b/surf.c index baebe5c..bff621b 100644 --- a/surf.c +++ b/surf.c @@ -127,7 +127,7 @@ buildpath(const char *path) { apath = g_strconcat(g_get_home_dir(), "/", path, NULL); if((p = strrchr(apath, '/'))) { *p = '\0'; - g_mkdir_with_parents(apath, 0755); + g_mkdir_with_parents(apath, 0700); *p = '/'; } /* creating file (gives error when apath ends with "/") */ @@ -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); @@ -867,7 +867,7 @@ main(int argc, char *argv[]) { showxid = TRUE; break; case 'v': - die("surf-"VERSION", © 2009 surf engineers, see LICENSE for details\n"); + die("surf-"VERSION", ©2009-2012 surf engineers, see LICENSE for details\n"); default: usage(); }