Show url in window title until page title is received.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 22 Oct 2013 19:34:02 +0000 (21:34 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 22 Oct 2013 19:34:02 +0000 (21:34 +0200)
src/main.c

index 515bea4..459a91f 100644 (file)
@@ -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);