diff options
Diffstat (limited to 'src/variables.c')
-rw-r--r-- | src/variables.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/variables.c b/src/variables.c index 3488aa4..d1552f9 100644 --- a/src/variables.c +++ b/src/variables.c @@ -247,6 +247,15 @@ view_settings() { } void +uri_change_cb (WebKitWebView *web_view, GParamSpec param_spec) { + (void) param_spec; + + g_free (uzbl.state.uri); + g_object_get (web_view, "uri", &uzbl.state.uri, NULL); + g_setenv("UZBL_URI", uzbl.state.uri, TRUE); +} + +void cmd_load_uri() { const gchar *uri = uzbl.state.uri; |