From e4d5721a9e18aac5528b49697fc3259dd38cbb52 Mon Sep 17 00:00:00 2001 From: portix Date: Sat, 9 Feb 2013 12:54:21 +0100 Subject: Update tab title of tabs that hasn't been loaded --- src/view.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/view.c') 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; } -- cgit v1.2.3