From af920d4a01ee4a5c087595577fa96212388f9020 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 12 Oct 2017 01:07:01 -0400 Subject: mq_web_view_get_uri(): New function --- (limited to 'src') 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); -- cgit v0.9.1