Fixed different load percent in title and statusbar.
authorDaniel Carl <danielcarl@gmx.de>
Wed, 23 Oct 2013 07:47:31 +0000 (09:47 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Wed, 23 Oct 2013 07:47:31 +0000 (09:47 +0200)
src/main.c

index 459a91f..aa5c453 100644 (file)
@@ -386,6 +386,7 @@ static void webview_download_progress_cb(WebKitWebView *view, GParamSpec *pspec)
         vb.state.progress /= g_list_length(vb.state.downloads);
     }
     vb_update_statusbar();
+    update_title();
 }
 
 static void webview_load_status_cb(WebKitWebView *view, GParamSpec *pspec)
@@ -397,6 +398,7 @@ static void webview_load_status_cb(WebKitWebView *view, GParamSpec *pspec)
             /* update load progress in statusbar */
             vb.state.progress = 0;
             vb_update_statusbar();
+            update_title();
             break;
 
         case WEBKIT_LOAD_COMMITTED: