From: Daniel Carl <danielcarl@gmx.de>
Date: Tue, 22 Oct 2013 19:34:02 +0000 (+0200)
Subject: Show url in window title until page title is received.
X-Git-Url: https://git.owens.tech/dummy.html/dummy.html/git?a=commitdiff_plain;h=8c20b1c90993f3e691f8b183deae1a16fd748d94;p=vimb.git

Show url in window title until page title is received.
---

diff --git a/src/main.c b/src/main.c
index 515bea4..459a91f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -216,6 +216,10 @@ gboolean vb_load_uri(const Arg *arg)
     } else {
         /* Load a web page into the browser instance */
         webkit_web_view_load_uri(vb.gui.webview, uri);
+        /* show the url to be opened in the windo title until we receive the
+         * page title */
+        OVERWRITE_STRING(vb.state.title, uri);
+        update_title();
     }
     g_free(uri);