aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/variables.c
diff options
context:
space:
mode:
authorGravatar David Keijser <keijser@gmail.com>2011-05-30 07:01:30 +0200
committerGravatar David Keijser <keijser@gmail.com>2011-05-30 07:18:20 +0200
commit952ceba2183d781245236834dbabf4365b549b95 (patch)
treec7eeb00ea856a0e880a04e0394353c01b5ba0fee /src/variables.c
parent50cf5cb0605d51ee928fb4913bdcfb59d89a64f4 (diff)
move uri_change_cb to variables
Diffstat (limited to 'src/variables.c')
-rw-r--r--src/variables.c9
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;