diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-12 01:07:01 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-12 01:07:01 (EDT) |
commit | af920d4a01ee4a5c087595577fa96212388f9020 (patch) | |
tree | 97c632392a4799dd7fab04cd12a3ebf7cc036c8a | |
parent | 8187636777928087f0042e409dfbf51bc98ac1e3 (diff) | |
download | marquee-af920d4a01ee4a5c087595577fa96212388f9020.zip marquee-af920d4a01ee4a5c087595577fa96212388f9020.tar.gz marquee-af920d4a01ee4a5c087595577fa96212388f9020.tar.bz2 |
mq_web_view_get_uri(): New function
-rw-r--r-- | src/web-view.c | 6 | ||||
-rw-r--r-- | src/web-view.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/web-view.c b/src/web-view.c index 47324f5..dc0f243 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -660,6 +660,12 @@ mq_web_view_new(MqTab *tab, const gchar *uri) NULL); } +const gchar * +mq_web_view_get_uri(MqWebView *web_view) +{ + return web_view->uri; +} + void mq_web_view_load_uri(MqWebView *web_view, const gchar *uri) { diff --git a/src/web-view.h b/src/web-view.h index 7f1de44..7a77c66 100644 --- a/src/web-view.h +++ b/src/web-view.h @@ -54,6 +54,9 @@ mq_web_view_get_type(void); MqWebView * mq_web_view_new(MqTab *tab, const gchar *uri); +const gchar * +mq_web_view_get_uri(MqWebView *web_view); + void mq_web_view_load_uri(MqWebView *web_view, const gchar *uri); |