diff options
author | portix <none@none> | 2013-02-09 12:54:21 +0100 |
---|---|---|
committer | portix <none@none> | 2013-02-09 12:54:21 +0100 |
commit | e4d5721a9e18aac5528b49697fc3259dd38cbb52 (patch) | |
tree | 493e731f6021d559a4e542ef339969eec5beb79c /src/view.c | |
parent | c2d77cba544943dd64fad83d399fadbf8b184efc (diff) | |
download | dwb-e4d5721a9e18aac5528b49697fc3259dd38cbb52.zip |
Update tab title of tabs that hasn't been loaded
Diffstat (limited to 'src/view.c')
-rw-r--r-- | src/view.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -491,15 +491,13 @@ view_navigation_policy_cb(WebKitWebView *web, WebKitWebFrame *frame, WebKitNetwo { if (gl != dwb.state.fview) { - char buffer[128]; const char *stripped; VIEW(gl)->status->deferred_uri = g_strdup(uri); stripped = strstr(uri, "://"); - snprintf(buffer, sizeof(buffer), "*%s", stripped ? stripped + 3 : uri); - dwb_tab_label_set_text(gl, buffer); + dwb_tab_label_set_text(gl, stripped ? stripped + 3 : uri); webkit_web_policy_decision_ignore(policy); return true; } |