summaryrefslogtreecommitdiff
path: root/src/view.c
diff options
context:
space:
mode:
authorportix <none@none>2013-02-09 12:54:21 +0100
committerportix <none@none>2013-02-09 12:54:21 +0100
commite4d5721a9e18aac5528b49697fc3259dd38cbb52 (patch)
tree493e731f6021d559a4e542ef339969eec5beb79c /src/view.c
parentc2d77cba544943dd64fad83d399fadbf8b184efc (diff)
downloaddwb-e4d5721a9e18aac5528b49697fc3259dd38cbb52.zip
Update tab title of tabs that hasn't been loaded
Diffstat (limited to 'src/view.c')
-rw-r--r--src/view.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/view.c b/src/view.c
index 7f3b64e5..a163b734 100644
--- a/src/view.c
+++ b/src/view.c
@@ -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;
}