diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/web-view.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/web-view.c b/src/web-view.c index 10e96a3..c8fded2 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -45,7 +45,7 @@ struct _MqWebView { enum { PROP_TAB_PAGE = 1, - PROP_REWRITTEN_URI, + PROP_DISPLAY_URI, N_PROPERTIES }; @@ -500,7 +500,7 @@ uri_cb(WebKitWebView *wk_web_view, GParamSpec G_GNUC_UNUSED *param_spec) } g_object_notify_by_pspec(G_OBJECT(web_view), - obj_properties[PROP_REWRITTEN_URI]); + obj_properties[PROP_DISPLAY_URI]); } static void @@ -677,7 +677,7 @@ get_property(GObject *object, guint property_id, GValue *value, case PROP_TAB_PAGE: g_value_set_object(value, web_view->tab_page); break; - case PROP_REWRITTEN_URI: + case PROP_DISPLAY_URI: g_value_set_string(value, web_view->uri); break; default: @@ -699,7 +699,7 @@ set_property(GObject *object, guint property_id, const GValue *value, case PROP_TAB_PAGE: web_view->tab_page = g_value_get_object(value); break; - case PROP_REWRITTEN_URI: + case PROP_DISPLAY_URI: mq_web_view_load_uri(web_view, g_value_get_string(value)); break; @@ -727,8 +727,8 @@ mq_web_view_class_init(MqWebViewClass *klass) MQ_TYPE_TAB_PAGE, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB); - obj_properties[PROP_REWRITTEN_URI] = g_param_spec_string( - "rewritten-uri", + obj_properties[PROP_DISPLAY_URI] = g_param_spec_string( + "display-uri", "URI", "The current active URI of the Web view, " "with \"mq-about:\" rewritten to \"about:\"", @@ -761,7 +761,7 @@ mq_web_view_new(MqTabPage *tab_page, const gchar *uri) { return g_object_new(MQ_TYPE_WEB_VIEW, "tab-page", tab_page, /* TODO: Use gtk_widget_get_parent()? */ - "rewritten-uri", uri, + "display-uri", uri, "web-context", webkit_web_context_get_default(), NULL); } @@ -796,7 +796,7 @@ mq_web_view_load_uri(MqWebView *web_view, const gchar *uri) } g_object_notify_by_pspec(G_OBJECT(web_view), - obj_properties[PROP_REWRITTEN_URI]); + obj_properties[PROP_DISPLAY_URI]); } void |